getcwd: fix mingw bugs
[gnulib.git] / ChangeLog
1 2011-04-27  Eric Blake  <eblake@redhat.com>
2
3         getcwd: fix mingw bugs
4         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
5         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
6         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
7
8 2011-04-27  Bruno Haible  <bruno@clisp.org>
9
10         mkstemps: Ensure declaration on MacOS X 10.5.
11         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12         * doc/glibc-functions/mkstemps.texi: Document header file problem on
13         MacOS X.
14
15 2011-04-27  Bruno Haible  <bruno@clisp.org>
16
17         mkstemp: More documentation.
18         * doc/posix-functions/mkstemp.texi: Document header file problem on
19         MacOS X.
20
21 2011-04-27  Bruno Haible  <bruno@clisp.org>
22
23         mkstemp: Tweak configure message when cross-compiling.
24         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
25         result as a guess.
26
27 2011-04-27  Bruno Haible  <bruno@clisp.org>
28
29         clean-temp: Clarify what it does.
30         * lib/clean-temp.h: Add more comments.
31         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
32         module.
33         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
34         * doc/glibc-functions/mkstemps.texi: Likewise.
35         * doc/glibc-functions/mkostemps.texi: Likewise.
36
37 2011-04-27  Eric Blake  <eblake@redhat.com>
38
39         fchdir: avoid extra chdir and fix test
40         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
41         getcwd-lgpl.
42         * lib/fchdir.c (get_name): Any absolute name will do; it does not
43         have to be canonical.
44         (canonicalize_file_name): Drop unused macro.
45         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
46
47         filenamecat-lgpl: fix licence
48         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
49         when it was first created.
50
51         linkat, renameat: add missing dependency
52         * modules/linkat (Depends-on): Require getcwd-lgpl.
53         * modules/renameat (Depends-on): Likewise.
54
55         tests: reduce dependencies
56         * tests/test-linkat.c (main): Use lighter-weight getcwd.
57         * tests/test-renameat.c (main): Likewise.
58         * modules/linkat-tests (Depends-on): Relax dependency.
59         * modules/renameat-tests (Depends-on): Likewise.
60         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
61         dependency explicit.
62
63         save-cwd: reduce default dependency
64         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
65         * lib/save-cwd.c: Update comments.
66         * NEWS: Document the semantic change.
67
68         getcwd: enhance tests
69         * tests/test-getcwd-lgpl.c: New file, taken from...
70         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
71         repeat long path stress tests from m4 probe.
72         * modules/getcwd-lgpl-tests: New module.
73         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
74         * m4/getcwd-abort-bug.m4: Update comment.
75         * m4/getcwd-path-max.m4: Likewise.
76
77         getcwd-lgpl: new module
78         * modules/getcwd-lgpl: New module.
79         * lib/getcwd-lgpl.c: New file.
80         * doc/posix-functions/getcwd.texi (getcwd): Document it.
81         * MODULES.html.sh (lacking POSIX:2008): Likewise.
82         * modules/getcwd (configure.ac): Set C witness.
83         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
84
85         getcwd: tweak comments
86         * m4/getcwd-abort-bug.m4: Fix comments.
87         * m4/getcwd-path-max.m4: Likewise.
88         * m4/getcwd.m4: Likewise.
89
90 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
91         and Eric Blake  <eblake@redhat.com>
92
93         mkstemp: replace if system version uses wrong permissions
94         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
95         read/write mode bits set in file created by mkstemp.
96         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
97
98 2011-04-27  Eric Blake  <eblake@redhat.com>
99
100         passfd: avoid compiler warning
101         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
102         Reported by Laine Stump.
103
104 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
105
106         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
107         required by the NetBSD (and perhaps other 4.4BSD derived) join.
108
109 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
110         and Eric Blake  <eblake@redhat.com>
111
112         mkstemp: mention clean-temp module
113         * lib/mkstemp.c: Add comment.
114         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
115
116 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
117
118         inttypes: also provide default values for 32-bit tests
119         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
120         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
121
122 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
123
124         strtoumax: remove dependency on strtoimax
125         This is like the strtoull change of yesterday.
126         * modules/strtoumax (Files): Add lib/strtoimax.c.
127         (Depends-on): Remove strtoimax and add verify.
128
129         inttypes-incomplete: new module
130         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
131         all but the PRI* and SCN* parts of gl_INTTYPES_H.
132         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
133         of gl_INTTYPES_H.
134         (gl_INTTYPES_H): Rewrite in terms of these new macros.
135         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
136         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
137         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
138         * modules/strtoumax, modules/xstrtol (Depends-on):
139         Depend on inttypes-incomplete, not inttypes.
140         * modules/inttypes-incomplete: New module, containing the contents
141         of the old modules/inttypes module, except that the Files: section
142         omits m4/inttypes-pri.m4, and the configure.ac section invokes
143         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
144         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
145         (Depends-on): Depend only on inttypes-incomplete.
146         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
147
148         inttypes: omit now-redundant strtoimax and strtoumax work
149         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
150         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
151
152         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
153         This supports apps that need pointers to strtoimax and strtoumax,
154         and ports to HP-UX 11.00 64.bit, which has macros that expand to
155         nonexistent functions.  See
156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
157         et seq.
158         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
159         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
160         a macro.
161         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
162
163 2011-04-25  Simon Josefsson  <simon@josefsson.org>
164
165         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
166
167 2011-04-25  Bruno Haible  <bruno@clisp.org>
168
169         strtol, strtoul: Mark modules as obsolete.
170         * modules/strtol (Status, Notice): New sections.
171         * modules/strtoul (Status, Notice): New sections.
172
173 2011-04-25  Bruno Haible  <bruno@clisp.org>
174
175         strtod: Remove check for strtod, unless supporting old platforms.
176         * modules/strtod-obsolete: New file.
177         * m4/strtod-obsolete.m4: New file.
178         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
179         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
180         * modules/strtod (Depends-on): Add strtod-obsolete.
181         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
182
183 2011-04-25  Bruno Haible  <bruno@clisp.org>
184
185         strcase: Make module obsolete.
186         * modules/strcase (Status, Notice): New sections.
187
188 2011-04-25  Bruno Haible  <bruno@clisp.org>
189
190         dup2: Remove check for dup2, unless supporting old obsolete platforms.
191         * modules/dup2-obsolete: New file.
192         * m4/dup2-obsolete.m4: New file.
193         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
194         gl_FUNC_DUP2_OBSOLETE is not also defined.
195         * modules/dup2 (Depends-on): Add dup2-obsolete.
196         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
197
198 2011-04-25  Bruno Haible  <bruno@clisp.org>
199
200         strnlen: Avoid memchr related link error on old obsolete platforms.
201         * modules/memchr-obsolete: New file.
202         * m4/memchr-obsolete.m4: New file.
203         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
204         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
205         * modules/memchr (Depends-on): Add memchr-obsolete.
206         * modules/strnlen (Depends-on): Likewise.
207         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
208
209 2011-04-25  Jim Meyering  <meyering@redhat.com>
210
211         maint.mk: makefile_at_at_check extend and clean up
212         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
213         in addition to */Makefile.am.
214         Exempt legitimate uses of @VAR@ notation, e.g.,
215         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
216         Remove obsolete coreutils-specific comment.
217         Prompted by discussion here:
218         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
219
220 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
221
222         strtoul: remove dependency on strtol
223         This is so that 'configure' need not check for strtol merely because
224         the application needs strtoul.
225         * modules/strtoul (Files): Add lib/strtol.c.
226         (Depends-on): Remove strtol.
227
228         strtoull: remove dependency on strtoul
229         This is like the strtoll change.
230         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
231         (Depends-on): Remove strtoul.
232
233         strtoll: remove dependency on strtol
234         This is so that 'configure' need not check for strtol merely because
235         the application needs strtoll.
236         * modules/strtoll (Files): Add lib/strtol.c.
237         (Depends-on): Remove strtol.
238
239 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
240
241         inttypes: Move some configure check to module 'imaxdiv'.
242         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
243         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
244         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
245
246 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
247
248         inttypes: Move some configure check to module 'imaxabs'.
249         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
250         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
251         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
252
253 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
254
255         inttypes: Remove configure tests that are not needed since 2009-12-31.
256         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
257         gl_cv_header_working_inttypes_h.
258
259 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
260
261         * modules/strnlen (Depends-on): Remove memchr.
262         The strnlen implementation doesn't need the memchr module's fixes; see
263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
264
265         strtol: remove dependency on wchar
266         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
267         * modules/strtol (Depends-on): Remove wchar.
268
269 2011-04-21  Eric Blake  <eblake@redhat.com>
270
271         passfd: fix test regression on Linux
272         * modules/passfd-tests (configure.ac): Correct socketpair check.
273
274         passfd: speed up configure and drop unused code
275         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
276         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
277         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
278         Instead of probing at configure for unix_scm_rights_bsd44_way,
279         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
280         check to a struct member probe.
281         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
282         (sendfd, recvfd): Update preprocessor checks.
283         * modules/passfd (Files): Reflect rename, and drop unused file.
284         (Depends-on): Drop unused dependency.
285
286         passfd: allow compilation on mingw
287         * modules/sys_socket (Depends-on): Add sys_uio.
288         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
289         iovec and a minimal struct msghdr.
290         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
291         * tests/test-sys_socket.c (main): Enhance test.
292         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
293         guaranteed to provide what we need.
294         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
295         * modules/passfd-tests (Depends-on): Add sys_wait.
296         * tests/test-passfd.c (main): Skip test on mingw, for now.
297         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
298         partial 'struct msghdr' implementation.
299
300         sys_uio: new module
301         * modules/sys_uio: New module.
302         * modules/sys_uio-tests: Likewise.
303         * lib/sys_uio.in.h: New file.
304         * m4/sys_uio_h.m4: Likewise.
305         * tests/test-sys_uio.c: Likewise.
306         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
307         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
308
309 2011-04-20  Jim Meyering  <meyering@redhat.com>
310
311         useless-if-before-free: avoid false-positive
312         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
313         disjunct so that it too requires a terminating ";".  Without that,
314         this script would identify as useless one statement from gcc that
315         was not:
316           if (aligned_ptr)
317             free (((void **) aligned_ptr) [-1]);
318
319 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
320
321         doc: update users.txt.
322         * users.txt: Add barcode.
323
324 2011-04-19  Bruno Haible  <bruno@clisp.org>
325
326         ioctl: Remove link dependency on native Windows.
327         * lib/fd-hook.h: Renamed from lib/close-hook.h.
328         (gl_close_fn, gl_ioctl_fn): New types.
329         (struct fd_hook): Renamed from struct close_hook. Change type of
330         private_close_fn field. Add private_ioctl_fn field.
331         (close_hook_fn): Add parameter for primary close method.
332         (execute_close_hooks, execute_all_close_hooks): Likewise.
333         (ioctl_hook_fn): New type.
334         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
335         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
336         argument.
337         (unregister_fd_hook): Renamed from unregister_close_hook.
338         * lib/fd-hook.c: Renamed from lib/close-hook.c.
339         Don't include <unistd.h>.
340         (close): Remove undef.
341         (anchor): Update.
342         (execute_close_hooks): Add argument for primary close method.
343         (execute_all_close_hooks): Likewise.
344         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
345         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
346         argument. Allow each argument to be NULL.
347         (unregister_fd_hook): Renamed from unregister_close_hook.
348         * lib/close.c (rpl_close): Pass 'close' function pointer to
349         execute_all_close_hooks.
350         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
351         (primary_ioctl): New function.
352         (ioctl): Don't call ioctlsocket here. Instead, call
353         execute_all_ioctl_hooks.
354         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
355         close method.
356         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
357         (fd_sockets_hook): Renamed from close_sockets_hook.
358         (gl_sockets_startup, gl_sockets_cleanup): Update.
359         * modules/fd-hook: Renamed from modules/close-hook. Update.
360         * modules/close (Depends-on): Add fd-hook, remove close-hook.
361         * modules/sockets (Depends-on): Likewise.
362         * modules/ioctl (Depends-on): Add fd-hook.
363         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
364         GNULIB_SOCKET.
365
366 2011-04-19  Bruno Haible  <bruno@clisp.org>
367
368         Move the support of O_NONBLOCK in open() to the 'open' module.
369         * modules/nonblocking (Depends-on): Remove 'open'.
370         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
371         gl_cv_have_open_O_NONBLOCK.
372         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
373         O_NONBLOCK support.
374         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
375
376 2011-04-17  Bruno Haible  <bruno@clisp.org>
377
378         pipe2: Simplify code.
379         * lib/pipe2.c (pipe2): Reduce code duplication.
380
381 2011-04-17  Bruno Haible  <bruno@clisp.org>
382
383         nonblocking: Add comment.
384         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
385
386 2011-04-17  Bruno Haible  <bruno@clisp.org>
387
388         nonblocking: Add tests for sockets.
389         * tests/test-nonblocking-socket.sh: New file.
390         * tests/test-nonblocking-socket-main.c: New file.
391         * tests/test-nonblocking-socket-child.c: New file.
392         * tests/test-nonblocking-socket.h: New file.
393         * tests/socket-server.h: New file.
394         * tests/socket-client.h: New file.
395         * modules/nonblocking-socket-tests: New file.
396         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
397
398 2011-04-17  Bruno Haible  <bruno@clisp.org>
399
400         nonblocking: Add tests for pipes.
401         * tests/test-nonblocking-pipe.sh: New file.
402         * tests/test-nonblocking-pipe-main.c: New file.
403         * tests/test-nonblocking-pipe-child.c: New file.
404         * tests/test-nonblocking-pipe.h: New file.
405         * tests/test-nonblocking-writer.h: New file.
406         * tests/test-nonblocking-reader.h: New file.
407         * tests/test-nonblocking-misc.h: New file.
408         * modules/nonblocking-pipe-tests: New file.
409         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
410
411 2011-04-16  Bruno Haible  <bruno@clisp.org>
412
413         gettext: Clarify the needed programmer actions.
414         * modules/gettext (Notice): New field.
415         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
416
417 2011-04-16  Bruno Haible  <bruno@clisp.org>
418
419         strchrnul: Tweak last commit.
420         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
421         bug.
422         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
423         as in _GL_FUNCDECL_SYS.
424         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
425         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
426
427 2011-04-15  Eric Blake  <eblake@redhat.com>
428
429         strchrnul: work around cygwin bug
430         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
431         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
432         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
433         * modules/string (Makefile.am): Substitute it.
434         * lib/string.in.h (strchrnul): Use it.
435
436 2011-04-15  Bruno Haible  <bruno@clisp.org>
437
438         Don't require lib/stdio-write.c when only module 'stdio' is used.
439         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
440         invocation.
441         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
442
443 2011-04-14  Bruno Haible  <bruno@clisp.org>
444
445         Support non-blocking pipe I/O in read() on native Windows.
446         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
447         (read): New declaration.
448         * lib/read.c: New file.
449         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
450         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
451         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
452         vscanf): New declarations.
453         * lib/stdio-read.c: New file.
454         * m4/read.m4: New file.
455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
456         REPLACE_READ.
457         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
458         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
459         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
460         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
461         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
462         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
463         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
464         * modules/read: New file.
465         * modules/nonblocking (Files): Add lib/stdio-read.c.
466         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
467         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
468         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
469         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
470         * modules/pread (Depends-on): Add read.
471         * modules/safe-read (Depends-on): Likewise.
472         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
473         gets, scanf, vfscanf, vscanf): Verify signatures.
474         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
475         problem with non-blocking pipes.
476         * doc/posix-functions/fgetc.texi: Likewise.
477         * doc/posix-functions/fgets.texi: Likewise.
478         * doc/posix-functions/fread.texi: Likewise.
479         * doc/posix-functions/fscanf.texi: Likewise.
480         * doc/posix-functions/getc.texi: Likewise.
481         * doc/posix-functions/getchar.texi: Likewise.
482         * doc/posix-functions/gets.texi: Likewise.
483         * doc/posix-functions/scanf.texi: Likewise.
484         * doc/posix-functions/vfscanf.texi: Likewise.
485         * doc/posix-functions/vscanf.texi: Likewise.
486
487 2011-04-14  Bruno Haible  <bruno@clisp.org>
488
489         Support non-blocking pipe I/O in write() on native Windows.
490         * lib/write.c (rpl_write): Split a write request that failed merely
491         because the byte count was larger than the pipe buffer's size.
492         * doc/posix-functions/write.texi: Mention the problem with large byte
493         counts.
494
495 2011-04-14  Bruno Haible  <bruno@clisp.org>
496
497         wchar: Ensure that wchar_t gets defined on uClibc.
498         * lib/wchar.in.h: On uClibc, include <stddef.h>.
499         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
500
501 2011-04-13  Bruno Haible  <bruno@clisp.org>
502
503         safe-write, full-read: Avoid unnecessary compilation units.
504         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
505         (Depends-on): Remove safe-read. Add ssize_t.
506         * modules/full-read (Files): Add lib/full-write.c.
507         (Depends-on): Add full-write.
508
509 2011-04-13  Bruno Haible  <bruno@clisp.org>
510
511         Support non-blocking pipe I/O and SIGPIPE in pwrite().
512         * modules/pwrite (Depends-on): Add 'write'.
513
514 2011-04-13  Bruno Haible  <bruno@clisp.org>
515
516         Support non-blocking pipe I/O in write() on native Windows.
517         * lib/unistd.in.h (write): Enable replacement also if
518         GNULIB_UNISTD_H_NONBLOCKING is 1.
519         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
520         (rpl_write): When failing to write on a non-blocking pipe, change
521         errno from ENOSPC to EAGAIN.
522         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
523         putchar, puts, vfprintf, vprintf): Enable replacement also if
524         GNULIB_STDIO_H_NONBLOCKING is 1.
525         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
526         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
527         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
528         CALL_WITH_SIGPIPE_EMULATION.
529         (CALL_WITH_SIGPIPE_EMULATION): Use them.
530         * m4/nonblocking.m4: New file.
531         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
532         for non-blocking I/O support.
533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
534         GNULIB_UNISTD_H_NONBLOCKING.
535         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
536         required for non-blocking I/O support.
537         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
538         * modules/nonblocking (Files): Add m4/nonblocking.m4,
539         lib/stdio-write.c, m4/asm-underscore.m4.
540         (Depends-on): Add stdio, unistd.
541         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
542         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
543         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
544         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
545         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
546         problem with non-blocking pipes.
547         * doc/posix-functions/fputc.texi: Likewise.
548         * doc/posix-functions/fputs.texi: Likewise.
549         * doc/posix-functions/fwrite.texi: Likewise.
550         * doc/posix-functions/printf.texi: Likewise.
551         * doc/posix-functions/putc.texi: Likewise.
552         * doc/posix-functions/putchar.texi: Likewise.
553         * doc/posix-functions/puts.texi: Likewise.
554         * doc/posix-functions/vfprintf.texi: Likewise.
555         * doc/posix-functions/vprintf.texi: Likewise.
556         * doc/posix-functions/write.texi: Likewise.
557
558 2011-04-10  Jim Meyering  <meyering@redhat.com>
559
560         maint.mk: prohibit doubled words
561         Detect them also when they're separated by a newline.
562         There are 3 ways to customize it:
563           - disable the test on a per file basis, as usual with rules using
564             $(VC_LIST_EXCEPT)
565           - replace the default doubled-word-selecting regexp (affects all files)
566           - ignore a particular file-vs-doubled-word match
567         I nearly used that last one to ignore the "is is" match in
568         coreutils' NEWS file, since the text was "ls -is is ..."
569         To do that, I would have added this line to cfg.mk:
570           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
571         but it would have ignored any "is is" match in NEWS.
572         Low probability, but still...
573         Instead, I changed the text, slightly:
574           -  ls -is is now consistent with ls -lis in ignoring values returned
575           +  "ls -is" is now consistent with ls -lis in ignoring values returned
576         * top/maint.mk (prohibit_double_word_RE_): Provide default.
577         (prohibit_doubled_word_): Define.
578         (sc_prohibit_doubled_word): New rule.
579         (sc_prohibit_the_the): Remove.  Subsumed by the above.
580
581 2011-04-10  Jim Meyering  <meyering@redhat.com>
582
583         maint: fix doubled-word typo in comment
584         * m4/gethostname.m4: s/is is/it is/
585         * m4/getdomainname.m4: Likewise.
586
587 2011-04-10  Jim Meyering  <meyering@redhat.com>
588
589         maint: remove doubled word: s/it it/it/
590         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
591
592 2011-04-10  Jim Meyering  <meyering@redhat.com>
593
594         maint.mk: remove useless semicolon and backslash
595         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
596         semicolon and backslash.
597
598 2011-04-10  Bruno Haible  <bruno@clisp.org>
599
600         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
601         * modules/stdint-tests (Depends-on): Add wchar.
602
603 2011-04-10  Jim Meyering  <meyering@redhat.com>
604
605         maint: remove doubled words in comments, e.g., s/a a/a/
606         * lib/strptime.c (day_of_the_week): s/the the/the/
607         * tests/test-chown.h (test_chown): s/a a/a/
608
609         test-chown.h: correct a cast
610         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
611         when the destination is a stat.st_gid.
612
613 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
614
615         getaddrinfo: Fix test for sa_len member.
616         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
617         include <sys/types.h> before <sys/socket.h>.
618
619 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
620
621         maint: change "can not" to "cannot"
622         * doc/posix-functions/iconv.texi (iconv): This one crossed line
623         boundaries.
624
625 2011-04-09  Jim Meyering  <meyering@redhat.com>
626
627         maint: change "a a" to "a"
628         * tests/test-lchown.h (test_lchown): s/a a/a/
629
630         maint.mk: prohibit \<the the\>
631         * top/maint.mk (sc_prohibit_the_the): New rule.
632
633         maint: fix "the the" in comment
634         * lib/count-one-bits.h: s/the the/the/
635
636         maint: change "can not" to "cannot"
637         But do not change the occurrences in maintain.texi or in
638         build-aux/po/Makefile.in.in, which I presume comes from gettext.
639         * doc/gnulib-tool.texi: s/can not/cannot/
640         * doc/posix-functions/accept.texi (accept): Likewise.
641         * doc/posix-functions/socket.texi (socket): Likewise.
642         * lib/mbrtowc.c: Likewise.
643
644         maint.mk: prohibit use of "can not"
645         * top/maint.mk (sc_prohibit_can_not): New rule.
646         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
647
648 2011-04-09  Bruno Haible  <bruno@clisp.org>
649
650         careadlinkat: Guard against misuse of careadlinkatcwd.
651         * lib/careadlinkat.c: Include <stdlib.h>.
652         (careadlinkatcwd): Check that the fd argument is as expected.
653
654 2011-04-09  Bruno Haible  <bruno@clisp.org>
655
656         careadlinkat: Use common coding style.
657         * lib/careadlinkat.c: Move gnulib includes after system includes.
658
659 2011-04-09  Bruno Haible  <bruno@clisp.org>
660
661         careadlinkat: Clarify specification.
662         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
663         (careadlinkatcwd): Add comment.
664         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
665
666 2011-04-09  Bruno Haible  <bruno@clisp.org>
667
668         areadlinkat: Avoid link error on many platforms.
669         * modules/areadlinkat (Depends-on): Add areadlink.
670
671 2011-04-09  Bruno Haible  <bruno@clisp.org>
672
673         allocator, careadlinkat: Fix double-inclusion guard.
674         * lib/allocator.h: Fix double-inclusion guard.
675         * lib/careadlinkat.h: Likewise.
676
677 2011-04-09  Bruno Haible  <bruno@clisp.org>
678
679         relocatable-prog-wrapper: Update after module 'areadlink' changed.
680         * lib/relocwrapper.c: Update dependencies hierarchy.
681         * build-aux/install-reloc: Update list of files to be compiled.
682         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
683         lib/allocator.[hc].
684
685 2011-04-08  Eric Blake  <eblake@redhat.com>
686
687         strftime: silence gnulib-tool warning
688         * modules/strftime-tests (Depends-on): Drop automatic dependency.
689
690 2011-04-08  Bruno Haible  <bruno@clisp.org>
691
692         verify: Fix syntax error with GCC 4.6 in C++ mode.
693         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
694         (HAVE_STATIC_ASSERT): New macro.
695         (verify_true, verify): Use 'static_assert' if it is supported and
696         '_Static_assert' is not supported.
697
698 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
699
700         allocator: New module.
701         * modules/allocator, lib/allocator.c: New files.
702         * lib/allocator.h (stdlib_allocator): New decl.
703         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
704         Remove.  Do not include <stdlib.h>.
705         (careadlinkat): Use stdlib_allocator instead of rolling our own.
706         * modules/careadlinkat (Files): Remove lib/allocator.h.
707         (Depends-on): Add allocator.
708
709         stdlib: let modules use system malloc, realloc
710         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
711         if !_GL_USE_STDLIB_ALLOC.
712         (malloc, realloc): Limit this change to a smaller scope.
713
714         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
715         (malloc, realloc): Don't #undef; no longer needed.
716         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
717         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
718         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
719         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
720         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
721         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
722         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
723         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
724
725         careadlinkat: rename members to avoid problem
726         * lib/allocator.h (struct allocator): Rename members from
727         malloc/realloc to allocate/reallocate, to avoid problems if malloc
728         and realloc are #define'd.  Reported by Eric Blake in
729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
730         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
731
732 2011-04-08  Eric Blake  <eblake@redhat.com>
733
734         nonblocking: reduce dependency
735         * tests/test-nonblocking.c: Only test sockets when in use.
736         * modules/nonblocking-tests (Depends-on): Drop socket.
737         (Makefile.am): Link even if sockets are not present.
738         * modules/pipe2-tests (Makefile.am): Likewise.
739         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
740
741         pipe2: fix O_NONBLOCK support on mingw
742         * modules/pipe2 (Depends-on): Add nonblocking.
743         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
744         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
745         * tests/test-nonblocking.c (main): Likewise.
746         * modules/pipe2-tests (Makefile.am): Avoid link failure.
747
748         fcntl-h: fix O_ACCMODE on cygwin
749         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
750         * lib/fcntl.in.h (O_ACCMODE): Fix it.
751
752         pipe-filter: drop O_NONBLOCK workarounds
753         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
754         * modules/pipe-filter-ii (Depends-on): Likewise.
755         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
756
757         nonblocking: provide O_NONBLOCK for mingw
758         * modules/nonblocking (Depends-on): Add open.
759         (configure.ac): Set new witness macro.
760         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
761         * modules/fcntl-h (Makefile.am): Substitute it.
762         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
763         nonblocking module is in use.
764         * lib/nonblocking.c: Adjust portability test.
765         * lib/open.c (open): Don't let native open see gnulib flag.
766         * tests/test-fcntl-h.c (main): Enhance test.
767         * tests/test-open.h (test_open): Likewise.
768         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
769
770         careadlinkat: fix compilation error on mingw
771         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
772         within struct allocator.
773
774 2011-04-06  Eric Blake  <eblake@redhat.com>
775
776         binary-io: relicense under LGPLv2+
777         * modules/binary-io (License): Relax to LGPLv2+.
778         Requested for libvirt, and required by pipe2.
779
780 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
781
782         verify: use _Static_assert if available
783         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
784         (verify_true, verify): Use it if available.  This generates better
785         diagnostics with GCC 4.6.0 and later.
786
787 2011-04-05  Bruno Haible  <bruno@clisp.org>
788
789         Remove leftover generated .h files after config.status changed.
790
791         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
792         GL_GENERATE_ALLOCA_H.
793         * modules/alloca-opt (Makefile.am): Remove alloca.h if
794         GL_GENERATE_ALLOCA_H evaluates to false.
795
796         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
797         GL_GENERATE_ARGZ_H.
798         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
799         evaluates to false.
800
801         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
802         GL_GENERATE_BYTESWAP_H.
803         * modules/byteswap (Makefile.am): Remove byteswap.h if
804         GL_GENERATE_BYTESWAP_H evaluates to false.
805
806         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
807         GL_GENERATE_ERRNO_H.
808         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
809         evaluates to false.
810
811         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
812         GL_GENERATE_FLOAT_H.
813         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
814         evaluates to false.
815
816         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
817         GL_GENERATE_FNMATCH_H.
818         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
819         GL_GENERATE_FNMATCH_H evaluates to false.
820
821         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
822         GL_GENERATE_GLOB_H.
823         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
824         evaluates to false.
825
826         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
827         automake conditional GL_GENERATE_ICONV_H.
828         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
829         evaluates to false.
830
831         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
832         GL_GENERATE_NETINET_IN_H.
833         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
834         GL_GENERATE_NETINET_IN_H evaluates to false.
835
836         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
837         conditional GL_GENERATE_PTHREAD_H.
838         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
839         * modules/pthread (Makefile.am): Remove pthread.h if
840         GL_GENERATE_PTHREAD_H evaluates to false.
841
842         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
843         GL_GENERATE_SCHED_H.
844         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
845         evaluates to false.
846
847         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
848         conditional GL_GENERATE_SELINUX_CONTEXT_H.
849         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
850         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
851
852         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
853         GL_GENERATE_STDARG_H.
854         * modules/stdarg (Makefile.am): Remove stdarg.h if
855         GL_GENERATE_STDARG_H evaluates to false.
856
857         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
858         GL_GENERATE_STDBOOL_H.
859         * modules/stdbool (Makefile.am): Remove stdbool.h if
860         GL_GENERATE_STDBOOL_H evaluates to false.
861
862         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
863         conditional GL_GENERATE_STDDEF_H.
864         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
865         * modules/stddef (Makefile.am): Remove stddef.h if
866         GL_GENERATE_STDDEF_H evaluates to false.
867
868         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
869         GL_GENERATE_STDINT_H.
870         * modules/stdint (Makefile.am): Remove stdint.h if
871         GL_GENERATE_STDINT_H evaluates to false.
872
873         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
874         GL_GENERATE_SYSEXITS_H.
875         * modules/sysexits (Makefile.am): Remove sysexits.h if
876         GL_GENERATE_SYSEXITS_H evaluates to false.
877
878         Reported by Karl Berry and Ralf Wildenhues.
879
880 2011-04-05  Bruno Haible  <bruno@clisp.org>
881
882         Ensure to rebuild generated .h files when config.status has changed.
883         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
884         config.status.
885         * modules/ctype (Makefile.am): Likewise.
886         * modules/dirent (Makefile.am): Likewise.
887         * modules/errno (Makefile.am): Likewise.
888         * modules/fcntl-h (Makefile.am): Likewise.
889         * modules/float (Makefile.am): Likewise.
890         * modules/getopt-posix (Makefile.am): Likewise.
891         * modules/glob (Makefile.am): Likewise.
892         * modules/iconv-h (Makefile.am): Likewise.
893         * modules/inttypes (Makefile.am): Likewise.
894         * modules/langinfo (Makefile.am): Likewise.
895         * modules/locale (Makefile.am): Likewise.
896         * modules/math (Makefile.am): Likewise.
897         * modules/netdb (Makefile.am): Likewise.
898         * modules/netinet_in (Makefile.am): Likewise.
899         * modules/poll-h (Makefile.am): Likewise.
900         * modules/pthread (Makefile.am): Likewise.
901         * modules/pty (Makefile.am): Likewise.
902         * modules/sched (Makefile.am): Likewise.
903         * modules/search (Makefile.am): Likewise.
904         * modules/selinux-h (Makefile.am): Likewise.
905         * modules/signal (Makefile.am): Likewise.
906         * modules/spawn (Makefile.am): Likewise.
907         * modules/stdarg (Makefile.am): Likewise.
908         * modules/stdbool (Makefile.am): Likewise.
909         * modules/stddef (Makefile.am): Likewise.
910         * modules/stdint (Makefile.am): Likewise.
911         * modules/stdio (Makefile.am): Likewise.
912         * modules/stdlib (Makefile.am): Likewise.
913         * modules/string (Makefile.am): Likewise.
914         * modules/strings (Makefile.am): Likewise.
915         * modules/sys_file (Makefile.am): Likewise.
916         * modules/sys_ioctl (Makefile.am): Likewise.
917         * modules/sys_select (Makefile.am): Likewise.
918         * modules/sys_socket (Makefile.am): Likewise.
919         * modules/sys_stat (Makefile.am): Likewise.
920         * modules/sys_time (Makefile.am): Likewise.
921         * modules/sys_times (Makefile.am): Likewise.
922         * modules/sys_utsname (Makefile.am): Likewise.
923         * modules/sys_wait (Makefile.am): Likewise.
924         * modules/sysexits (Makefile.am): Likewise.
925         * modules/termios (Makefile.am): Likewise.
926         * modules/time (Makefile.am): Likewise.
927         * modules/unistd (Makefile.am): Likewise.
928         * modules/wchar (Makefile.am): Likewise.
929         * modules/wctype-h (Makefile.am): Likewise.
930         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
931
932 2011-04-05  Bruno Haible  <bruno@clisp.org>
933
934         pipe2: Relicense under LGPLv2+.
935         * modules/pipe2 (License): Change to LGPLv2+.
936         Requested by Eric Blake, for libvirt.
937
938 2011-04-05  Bruce Korb  <bkorb@gnu.org>
939
940         bootstrap: compute gnulib_extra_files after updating build_aux
941         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
942         change build_aux or also supply gnulib_extra_files.  Handle correctly.
943
944 2011-04-05  Eric Blake  <eblake@redhat.com>
945
946         bootstrap: preserve git whitelist item sorting
947         * build-aux/bootstrap (sort_patterns): New function.
948         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
949
950 2011-04-05  Simon Josefsson  <simon@josefsson.org>
951
952         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
953         sc_space_tab check.
954
955 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
956
957         areadlink, areadlinkat: rewrite in terms of careadlinkat
958         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
959         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
960         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
961         (malloc, realloc): Remove #undefs.
962         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
963         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
964         readlink, ssize_t, stdint, unistd.
965         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
966         areadlink, stdint.
967
968         careadlinkat: new module
969         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
970         * modules/careadlinkat: New files, written by me with
971         a review and feedback from Ben Pfaff in
972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
973
974 2011-04-01  Bruno Haible  <bruno@clisp.org>
975
976         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
977         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
978         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
979         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
980         Reported by Bruce Korb <bruce.korb@gmail.com>.
981
982 2011-04-01  Bruno Haible  <bruno@clisp.org>
983
984         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
985         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
986         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
987         * modules/wcpcpy (Depends-on): Add extensions.
988         * modules/wcpncpy (Depends-on): Likewise.
989         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
990         systems.
991         * doc/posix-functions/wcpncpy.texi: Likewise.
992         * doc/posix-functions/wcwidth.texi: Likewise.
993
994 2011-03-31  Eric Blake  <eblake@redhat.com>
995
996         nonblocking: fix mingw test failures
997         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
998         non-blocking flag on regular file.
999         (get_nonblocking_flag): Set errno on invalid fd.
1000         * tests/test-nonblocking.c (main): Avoid test failure on
1001         directories if fchdir is not active.
1002         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
1003
1004 2011-03-31  Bruno Haible  <bruno@clisp.org>
1005
1006         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
1007         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
1008         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
1009         Reported by Simon Josefsson <simon@josefsson.org>.
1010
1011 2011-03-31  Bruno Haible  <bruno@clisp.org>
1012         and Eric Blake  <eblake@redhat.com>
1013
1014         nonblocking: new module
1015         * modules/nonblocking: New module.
1016         * modules/nonblocking-tests: Likewise.
1017         * lib/nonblocking.h: New file.
1018         * lib/nonblocking.c: Likewise.
1019         * tests/test-nonblocking.c: New test.
1020         * lib/ioctl.c (ioctl) [mingw]: Update comment.
1021
1022 2011-03-30  Bruno Haible  <bruno@clisp.org>
1023
1024         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
1025         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
1026         instead of 'printf' format for GCC >= 4.4.
1027         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
1028         (fprintf, printf, vfprintf, vprintf): Declare with
1029         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
1030         the system's vfprintf() function.
1031         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
1032
1033 2011-03-30  Eric Blake  <eblake@redhat.com>
1034
1035         passfd: fix scoping bug
1036         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
1037         before sendmsg/recvmsg.
1038
1039         passfd: standardize coding conventions
1040         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
1041         can be learned at compile time.
1042         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
1043         ifdefs.
1044         (sendfd, recvfd): Follow gnulib code conventions.
1045
1046         passfd: fix incorrect sendmsg arguments
1047         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
1048         incorrect msg_controllen value.
1049         * modules/passfd-tests (Depends-on): Check for alarm.
1050         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
1051         Reported by Bastien ROUCARIES.
1052
1053 2011-03-30  Bruno Haible  <bruno@clisp.org>
1054
1055         c-strcasestr: Relicense under LGPLv2+.
1056         * modules/c-strcasestr (License): Change to LGPLv2+.
1057         Requested by Eric Blake, for libvirt.
1058
1059 2011-03-30  Simon Josefsson  <simon@josefsson.org>
1060
1061         * users.txt: Add libidn2.  Fix libtasn1 link.
1062
1063 2011-03-30  Jim Meyering  <meyering@redhat.com>
1064
1065         tests: readlink* ("",... fails with EINVAL on newer kernels
1066         readlink and readlinkat have typically failed with ENOENT for
1067         the invalid, empty file name,  "".  However, with the advent
1068         of linux-2.6.39, they fail with EINVAL.
1069         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
1070         when operating on the empty file name.
1071         * tests/test-readlink.h (test_readlink): Likewise.
1072
1073 2011-03-29  Bruno Haible  <bruno@clisp.org>
1074
1075         Relicense some modules under LGPLv2+, for libidn2.
1076         * modules/array-mergesort (License): Change to LGPLv2+.
1077         * modules/c-strcaseeq (License): Likewise.
1078         * modules/striconveh (License): Likewise.
1079         * modules/striconveha (License): Likewise.
1080         * modules/uniconv/base (License): Likewise.
1081         * modules/uniconv/u8-conv-from-enc (License): Likewise.
1082         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
1083         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
1084         * modules/unictype/base (License): Likewise.
1085         * modules/unictype/bidiclass-of (License): Likewise.
1086         * modules/unictype/category-M (License): Likewise.
1087         * modules/unictype/category-none (License): Likewise.
1088         * modules/unictype/category-of (License): Likewise.
1089         * modules/unictype/category-test (License): Likewise.
1090         * modules/unictype/category-test-withtable (License): Likewise.
1091         * modules/unictype/combining-class (License): Likewise.
1092         * modules/unictype/joiningtype-of (License): Likewise.
1093         * modules/unictype/scripts (License): Likewise.
1094         * modules/uninorm/base (License): Likewise.
1095         * modules/uninorm/canonical-decomposition (License): Likewise.
1096         * modules/uninorm/composition (License): Likewise.
1097         * modules/uninorm/decompose-internal (License): Likewise.
1098         * modules/uninorm/decomposition-table (License): Likewise.
1099         * modules/uninorm/nfc (License): Likewise.
1100         * modules/uninorm/nfd (License): Likewise.
1101         * modules/uninorm/u32-normalize (License): Likewise.
1102         * modules/unistr/base (License): Likewise.
1103         * modules/unistr/u32-cpy (License): Likewise.
1104         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
1105         * modules/unistr/u32-to-u8 (License): Likewise.
1106         * modules/unistr/u32-uctomb (License): Likewise.
1107         * modules/unistr/u8-check (License): Likewise.
1108         * modules/unistr/u8-mblen (License): Likewise.
1109         * modules/unistr/u8-mbtouc (License): Likewise.
1110         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
1111         * modules/unistr/u8-mbtoucr (License): Likewise.
1112         * modules/unistr/u8-prev (License): Likewise.
1113         * modules/unistr/u8-strlen (License): Likewise.
1114         * modules/unistr/u8-to-u32 (License): Likewise.
1115         * modules/unistr/u8-uctomb (License): Likewise.
1116         * modules/unitypes (License): Likewise.
1117         Requested by Simon Josefsson.
1118
1119 2011-03-29  Simon Josefsson  <simon@josefsson.org>
1120
1121         lib-symbol-visibility: Add a notice.
1122         * modules/lib-symbol-visibility (Notice): New field.
1123
1124 2011-03-29  Bruno Haible  <bruno@clisp.org>
1125
1126         getaddrinfo: Doc fix.
1127         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
1128         section "fixed in Gnulib".
1129
1130 2011-03-28  Simon Josefsson  <simon@josefsson.org>
1131
1132         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
1133         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
1134
1135 2011-03-26  Bruno Haible  <bruno@clisp.org>
1136
1137         unictype/property-byname: Reduce the number of load-time relocations.
1138         * lib/unictype/pr_byname.c: Include <stdlib.h>.
1139         (UC_PROPERTY_INDEX_*): New enumeration values.
1140         (uc_property_byname): Convert an index from the lookup table to an
1141         uc_property_t.
1142         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
1143         values.
1144
1145 2011-03-26  Bruno Haible  <bruno@clisp.org>
1146
1147         unictype/property-byname: Allow omitted word separators and aliases.
1148         * lib/unictype/pr_byname.gperf: Add property names without word
1149         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
1150         for 'space'.
1151
1152 2011-03-26  Bruno Haible  <bruno@clisp.org>
1153
1154         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
1155         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
1156         also hyphens to space.
1157         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
1158         without spaces.
1159         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
1160
1161 2011-03-26  Bruno Haible  <bruno@clisp.org>
1162
1163         unictype/joiningtype-byname: Recognize long names as well.
1164         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
1165         a long name.
1166         * lib/unictype/joiningtype_byname.c: Include <string.h>,
1167         unictype/joiningtype_byname.h.
1168         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
1169         * lib/unictype/joiningtype_byname.gperf: New file.
1170         * modules/unictype/joiningtype-byname (Files): Add
1171         lib/unictype/joiningtype_byname.gperf.
1172         (Depends-on): Add gperf.
1173         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
1174         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
1175         long names.
1176
1177         Tests for module 'unictype/joiningtype-longname'.
1178         * modules/unictype/joiningtype-longname-tests: New file.
1179         * tests/unictype/test-joiningtype_longname.c: New file.
1180
1181         New module 'unictype/joiningtype-longname'.
1182         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
1183         * lib/unictype/joiningtype_longname.c: New file.
1184         * modules/unictype/joiningtype-longname: New file.
1185         * modules/unictype/joiningtype-all (Depends-on): Add
1186         unictype/joiningtype-longname.
1187
1188 2011-03-26  Bruno Haible  <bruno@clisp.org>
1189
1190         unictype/bidiclass-byname: Recognize long names as well.
1191         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
1192         name.
1193         * lib/unictype/bidi_byname.c: Include <string.h>,
1194         unictype/bidi_byname.h.
1195         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
1196         * lib/unictype/bidi_byname.gperf: New file.
1197         * modules/unictype/bidiclass-byname (Files): Add
1198         lib/unictype/bidi_byname.gperf.
1199         (Depends-on): Add gperf.
1200         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
1201         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
1202         long names.
1203
1204         Tests for module 'unictype/bidiclass-longname'.
1205         * modules/unictype/bidiclass-longname-tests: New file.
1206         * tests/unictype/test-bidi_longname.c: New file.
1207
1208         New module 'unictype/bidiclass-longname'.
1209         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
1210         * lib/unictype/bidi_longname.c: New file.
1211         * modules/unictype/bidiclass-longname: New file.
1212         * modules/unictype/bidiclass-all (Depends-on): Add
1213         unictype/bidiclass-longname.
1214
1215 2011-03-26  Bruno Haible  <bruno@clisp.org>
1216
1217         unictype/bidi*: Rename modules.
1218         * modules/unictype/bidiclass-all: Renamed from
1219         modules/unictype/bidicategory-all.
1220         * modules/unictype/bidiclass-name: Renamed from
1221         modules/unictype/bidiclass-name.
1222         (Description): Update.
1223         * modules/unictype/bidiclass-name-tests: Renamed from
1224         modules/unictype/bidicategory-name-tests.
1225         * modules/unictype/bidiclass-byname: Renamed from
1226         modules/unictype/bidicategory-byname.
1227         (Description): Update.
1228         * modules/unictype/bidiclass-byname-tests: Renamed from
1229         modules/unictype/bidicategory-byname-tests.
1230         * modules/unictype/bidiclass-of: Renamed from
1231         modules/unictype/bidicategory-of.
1232         (Description): Update.
1233         * modules/unictype/bidiclass-of-tests: Renamed from
1234         modules/unictype/bidicategory-of-tests.
1235         * modules/unictype/bidiclass-test: Renamed from
1236         modules/unictype/bidicategory-test.
1237         (Description): Update.
1238         * modules/unictype/bidiclass-test-tests: Renamed from
1239         modules/unictype/bidicategory-test-tests.
1240         * modules/unictype/bidicategory-all: New file, a simple redirection.
1241         * modules/unictype/bidicategory-name: Likewise.
1242         * modules/unictype/bidicategory-byname: Likewise.
1243         * modules/unictype/bidicategory-of: Likewise.
1244         * modules/unictype/bidicategory-test: Likewise.
1245         * modules/unictype/property-bidi-* (Dependencies): Update.
1246         * lib/unictype/bidi_*.c: Update comment.
1247
1248 2011-03-26  Bruno Haible  <bruno@clisp.org>
1249
1250         unictype/bidi*: Rename functions, part 2.
1251         * modules/unictype/bidicategory-name (configure.ac): Update required
1252         libunistring version.
1253         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
1254
1255 2011-03-25  Bruno Haible  <bruno@clisp.org>
1256
1257         New module 'unictype/combining-class-all'.
1258         * modules/unictype/combining-class-all: New file.
1259
1260         Tests for module 'unictype/combining-class-byname'.
1261         * modules/unictype/combining-class-byname-tests: New file.
1262         * tests/unictype/test-combiningclass_byname.c: New file.
1263
1264         New module 'unictype/combining-class-byname'.
1265         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
1266         * lib/unictype/combiningclass_byname.c: New file.
1267         * lib/unictype/combiningclass_byname.gperf: New file.
1268         * modules/unictype/combining-class-byname: New file.
1269
1270         Tests for module 'unictype/combining-class-longname'.
1271         * modules/unictype/combining-class-longname-tests: New file.
1272         * tests/unictype/test-combiningclass_longname.c: New file.
1273
1274         New module 'unictype/combining-class-longname'.
1275         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
1276         * lib/unictype/combiningclass_longname.c: New file.
1277         * modules/unictype/combining-class-longname: New file.
1278
1279         Tests for module 'unictype/combining-class-name'.
1280         * modules/unictype/combining-class-name-tests: New file.
1281         * tests/unictype/test-combiningclass_name.c: New file.
1282
1283         New module 'unictype/combining-class-name'.
1284         * lib/unictype.in.h (uc_combining_class_name): New declaration.
1285         * lib/unictype/combiningclass_name.c: New file.
1286         * modules/unictype/combining-class-name: New file.
1287
1288 2011-03-25  Bruno Haible  <bruno@clisp.org>
1289
1290         unictype/combining-class: Rename source files.
1291         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
1292         of unictype/combining.h.
1293         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
1294         Update.
1295         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
1296         * modules/unictype/combining-class (Description): Fix.
1297         (Files, Makefile.am): Update.
1298         * tests/unictype/test-combiningclass.c: Renamed from
1299         tests/unictype/test-combining.c.
1300         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
1301
1302 2011-03-25  Bruno Haible  <bruno@clisp.org>
1303
1304         unictype: Update list of canonical combining classes.
1305         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
1306
1307 2011-03-25  Bruno Haible  <bruno@clisp.org>
1308
1309         unictype/category-byname: Recognize long names as well.
1310         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
1311         a long name.
1312         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
1313         unictype/categ_byname.h.
1314         (UC_CATEGORY_INDEX_*): New enumeration values.
1315         (uc_general_category_byname): Use uc_general_category_lookup and
1316         convert from index to value.
1317         * lib/unictype/categ_byname.gperf: New file.
1318         * modules/unictype/category-byname (Files): Add
1319         lib/unictype/categ_byname.gperf.
1320         (Depends-on): Add gperf.
1321         (Makefile.am): Add rule for generating unictype/categ_byname.h.
1322         * tests/unictype/test-categ_byname.c (main): Test the recognition of
1323         long names.
1324
1325         Tests for module 'unictype/category-longname'.
1326         * modules/unictype/category-longname-tests: New file.
1327         * tests/unictype/test-categ_longname.c: New file.
1328
1329         New module 'unictype/category-longname'.
1330         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
1331         * lib/unictype/categ_longname.c: New file.
1332         * modules/unictype/category-longname: New file.
1333         * modules/unictype/category-all (Depends-on): Add it.
1334
1335 2011-03-25  Bruno Haible  <bruno@clisp.org>
1336
1337         Tests for module 'unictype/category-LC'.
1338         * modules/unictype/category-LC-tests: New file.
1339         * tests/unictype/test-categ_LC.c: New file, automatically generated.
1340
1341         New module 'unictype/category-LC'.
1342         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
1343         (UC_CATEGORY_LC): New declaration.
1344         (UC_CASED_LETTER): New macro.
1345         * lib/gen-uni-tables.c (is_category_LC): New function.
1346         (output_categories): Also handle category LC.
1347         (UC_CATEGORY_MASK_LC): New enumeration value.
1348         (general_category_byname): Also handle category LC.
1349         * lib/unictype/categ_LC.c: New file.
1350         * lib/unictype/categ_LC.h: New file, automatically generated.
1351         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
1352         category LC.
1353         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
1354         * modules/unictype/category-LC: New file.
1355         * modules/unictype/category-byname (Depends-on): Add
1356         unictype/category-LC.
1357         * modules/unictype/category-all (Depends-on): Likewise.
1358
1359 2011-03-25  Eric Blake  <eblake@redhat.com>
1360
1361         xmalloc: revert yesterday's regression
1362         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
1363         realloc's underlying behavior (allowing allocation of zero-size
1364         objects, especially if malloc-gnu is also in use).
1365
1366 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
1367
1368         maint.mk: add missing version to VC-tag
1369         * top/maint.mk: git tag was missing actual tag name; add it.
1370
1371         valgrind: do leak checking, and exit with code 1 on error (not 0)
1372         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
1373         to VALGRIND.
1374
1375 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
1376
1377         posix-modules: say what it does.
1378         * posix-modules: Add a line to the --help output saying what it does.
1379
1380 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
1381
1382         xmalloc: Do not leak if underlying realloc is C99 compatible.
1383         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
1384         This avoids a leak on C99-based systems.  See
1385         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
1386
1387 2011-03-24  Eric Blake  <eblake@redhat.com>
1388
1389         realloc: document portability problem
1390         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
1391         passing 0 size to realloc.
1392
1393 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
1394
1395         doc: update users.txt
1396         * users.txt: Add cvsps, tmpwatch
1397
1398 2011-03-23  Matt Rice  <ratmice@gmail.com>
1399
1400         doc: update users.txt
1401         * users.txt: Add gdb.
1402
1403 2011-03-23  Jim Meyering  <meyering@redhat.com>
1404
1405         doc: update users.txt
1406         Looking through matches up to the following URL (there are still
1407         several more pages), I found several projects that use gnulib:
1408         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
1409         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
1410         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
1411
1412 2011-03-22  Bruno Haible  <bruno@clisp.org>
1413
1414         unictype/bidi*: Rename functions.
1415         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
1416         uc_bidi_class, uc_is_bidi_class): New declarations.
1417         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
1418         uc_bidi_category_byname.
1419         (uc_bidi_category_byname): New function.
1420         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
1421         u_bidi_category_name.
1422         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
1423         (uc_bidi_category_name): New function.
1424         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
1425         uc_bidi_category.
1426         (uc_bidi_category): New function.
1427         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
1428         uc_is_bidi_category. Invoke uc_bidi_class.
1429         (uc_is_bidi_category): New function.
1430         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
1431         instead of uc_bidi_category_byname.
1432         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
1433         instead of uc_bidi_category_name.
1434         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
1435         uc_bidi_category.
1436         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
1437         instead of uc_is_bidi_category.
1438
1439 2011-03-21  Bruno Haible  <bruno@clisp.org>
1440
1441         New module 'unictype/joininggroup-all'.
1442         * modules/unictype/joininggroup-all: New file.
1443
1444         Tests for module 'unictype/joininggroup-of'.
1445         * modules/unictype/joininggroup-of-tests: New file.
1446         * tests/unictype/test-joininggroup_of.c: New file.
1447         * tests/unictype/test-joininggroup_of.h: New file, automatically
1448         generated by gen-uni-tables.
1449
1450         New module 'unictype/joininggroup-of'.
1451         * modules/unictype/joininggroup-of: New file.
1452         * lib/unictype/joininggroup_of.c: New file.
1453         * lib/unictype/joininggroup_of.h: New file, automatically generated by
1454         gen-uni-tables.
1455
1456         Tests for module 'unictype/joininggroup-byname'.
1457         * modules/unictype/joininggroup-byname-tests: New file.
1458         * tests/unictype/test-joininggroup_byname.c: New file.
1459
1460         New module 'unictype/joininggroup-byname'.
1461         * modules/unictype/joininggroup-byname: New file.
1462         * lib/unictype/joininggroup_byname.c: New file.
1463         * lib/unictype/joininggroup_byname.gperf: New file.
1464
1465         Tests for module 'unictype/joininggroup-name'.
1466         * modules/unictype/joininggroup-name-tests: New file.
1467         * tests/unictype/test-joininggroup_name.c: New file.
1468
1469         New module 'unictype/joininggroup-name'.
1470         * modules/unictype/joininggroup-name: New file.
1471         * lib/unictype/joininggroup_name.c: New file.
1472         * lib/unictype/joininggroup_name.h: New file.
1473
1474         New module 'unictype/joiningtype-all'.
1475         * modules/unictype/joiningtype-all: New file.
1476
1477         Tests for module 'unictype/joiningtype-of'.
1478         * modules/unictype/joiningtype-of-tests: New file.
1479         * tests/unictype/test-joiningtype_of.c: New file.
1480         * tests/unictype/test-joiningtype_of.h: New file, automatically
1481         generated by gen-uni-tables.
1482
1483         New module 'unictype/joiningtype-of'.
1484         * modules/unictype/joiningtype-of: New file.
1485         * lib/unictype/joiningtype_of.c: New file.
1486         * lib/unictype/joiningtype_of.h: New file, automatically generated by
1487         gen-uni-tables.
1488
1489         Tests for module 'unictype/joiningtype-byname'.
1490         * modules/unictype/joiningtype-byname-tests: New file.
1491         * tests/unictype/test-joiningtype_byname.c: New file.
1492
1493         New module 'unictype/joiningtype-byname'.
1494         * modules/unictype/joiningtype-byname: New file.
1495         * lib/unictype/joiningtype_byname.c: New file.
1496
1497         Tests for module 'unictype/joiningtype-name'.
1498         * modules/unictype/joiningtype-name-tests: New file.
1499         * tests/unictype/test-joiningtype_name.c: New file.
1500
1501         New module 'unictype/joiningtype-name'.
1502         * modules/unictype/joiningtype-name: New file.
1503         * lib/unictype/joiningtype_name.c: New file.
1504
1505         unictype: Add support for Arabic shaping properties.
1506         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
1507         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
1508         declarations.
1509         (UC_JOINING_GROUP_*): New enumeration values.
1510         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
1511         declarations.
1512         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
1513         (unicode_joining_type): New variable.
1514         (UC_JOINING_GROUP_*): New enumeration values.
1515         (unicode_joining_group): New variable.
1516         (fill_arabicshaping, joining_type_as_c_identifier,
1517         output_joining_type_test, output_joining_type,
1518         joining_group_as_c_identifier, output_joining_group_test,
1519         output_joining_group): New functions.
1520         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
1521         fill_arabicshaping and output_joining_type_test, output_joining_type,
1522         output_joining_group_test, output_joining_group.
1523         Reported by Simon Josefsson.
1524
1525 2011-03-21  Jim Meyering  <meyering@redhat.com>
1526
1527         strftime: fix a bug in yesterday's change
1528         * lib/strftime.c (add): Accommodate width's initial value of -1.
1529         Otherwise, nstrftime would copy uninitialized data into
1530         the result buffer.
1531
1532 2011-03-21  Jim Meyering  <meyering@redhat.com>
1533
1534         tests: add strftime-tests module
1535         * tests/test-strftime.c: New file.
1536         * modules/strftime-tests: New module.
1537
1538 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1539
1540         strftime: don't assume a byte count fits in 'int'
1541         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
1542         found this problem by static analysis, using gcc -Wstrict-overflow
1543         (GCC 4.5.2, x86-64).  This reported an optimization that depended
1544         on an integer overflow having undefined behavior, but it turns out
1545         that the argument is a size, which might not fit in 'int' anyway,
1546
1547 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1548
1549         stdio: don't require ignore_value around fwrite
1550
1551         This patch works around libc bug 11959
1552         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
1553         Without this patch, applications must often write
1554         ignore_value (fwrite (...)) even though the ignore_value is
1555         not helpful here.  It's common to write many objects, using
1556         fwrite/printf/etc., and then use ferror to detect output error.
1557
1558         I considered making this patch optional, but decided against it,
1559         because libc is obviously being inconsistent here: there is no
1560         reason libc should insist that user code must inspect fwrite
1561         return's value without also insisting that it inspect printf's,
1562         putchar's, etc.  If user code wants to have a strict style where
1563         all these functions' values are checked (so that ferror need not
1564         be checked), we could add support for that style in a new gnulib
1565         module, but in the meantime it's better to be consistent and to
1566         support common usage.
1567
1568         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
1569         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
1570         that we are compiling in checking mode, and if not C++, and
1571         if not already wrapping fwrite for some other reason.
1572         (fwrite): #define to rpl_fwrite if the latter is defined.
1573
1574 2011-03-20  Bruno Haible  <bruno@clisp.org>
1575
1576         verror: Fix compilation error introduced on 2011-02-13.
1577         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
1578         instead of __attribute__.
1579         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1580
1581 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1582             Bruno Haible  <bruno@clisp.org>
1583
1584         socklen: do not depend on sys_socket
1585         While trying to modify Emacs to use gnulib's socklen module,
1586         I discovered a circular dependency: socklen depends on sys_socket
1587         and vice versa.  Emacs can use socklen, but it does not need
1588         sys_socket because it has its own substitute for sys/socket.h.
1589         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
1590         gl_TYPE_SOCKLEN_T.
1591         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
1592         gl_PREREQ_SYS_H_SOCKET.
1593         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
1594         gl_PREREQ_SYS_H_SOCKET.
1595         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
1596         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
1597         * modules/socklen (Depends-on): Do not depend on sys_socket.
1598         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
1599
1600 2011-03-20  Jim Meyering  <meyering@redhat.com>
1601
1602         maint.mk: sort file names *after* new transformation
1603         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
1604         prefix would have led to an unwarranted failure in GNU parted.
1605         Sort after that transformation.
1606
1607 2011-03-19  Jim Meyering  <meyering@redhat.com>
1608
1609         maint.mk: fix po-file syntax-check rule
1610         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
1611         Patch by Bruno Haible.
1612
1613 2011-03-19  Bruno Haible  <bruno@clisp.org>
1614
1615         socklen: Update comment.
1616         * m4/socklen.m4: Update comment about platforms.
1617
1618 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1619             Bruno Haible  <bruno@clisp.org>
1620
1621         inet_ntop, inet_pton: Simplify.
1622         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
1623         documented to provide socklen_t and we already depend on sys_socket.
1624         * modules/inet_pton (Depends-on): Likewise.
1625         * lib/arpa_inet.in.h: Adjust comment.
1626
1627 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1628             Bruno Haible  <bruno@clisp.org>
1629
1630         netdb: Simplify.
1631         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
1632         documented to provide socklen_t and we already depend on sys_socket.
1633         * lib/netdb.in.h: Adjust comment.
1634
1635 2011-03-19  Bruno Haible  <bruno@clisp.org>
1636
1637         sys_socket, netdb: Document problem with socklen_t.
1638         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
1639         platforms.
1640         * doc/posix-headers/netdb.texi: Likewise.
1641
1642 2011-03-18  Eric Blake  <eblake@redhat.com>
1643
1644         maint.mk: let po check work in VPATH build
1645         * top/maint.mk (po_file): Allow cfg.mk override.
1646         (sc_po_check): Allow VPATH use.
1647         Reported by Jiri Denemark.
1648
1649 2011-03-16  Jim Meyering  <meyering@redhat.com>
1650
1651         maint.mk: allow fine-grained syntax-check exclusion via Make variables
1652         Before, you would have had to create one .x-sc_ file per rule in order
1653         to exempt offending files.  Now, you may instead use a Make variable --
1654         usually defined in cfg.mk -- whose name identifies the affected rule.
1655         * top/maint.mk (_sc_excl): Define.
1656         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
1657         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
1658
1659 2011-03-13  Bruno Haible  <bruno@clisp.org>
1660
1661         ignore-value tests: Avoid warnings.
1662         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
1663         empty for gcc < 3.4.
1664
1665 2011-03-13  Bruno Haible  <bruno@clisp.org>
1666
1667         passfd: Fix link error on Solaris.
1668         * modules/passfd (Description): Correct.
1669         (Depends-on): Add socketlib.
1670         (Link): New section.
1671         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
1672
1673 2011-03-13  Bruno Haible  <bruno@clisp.org>
1674
1675         passfd: Fix link error on AIX 5.2.
1676         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
1677
1678 2011-03-13  Bruno Haible  <bruno@clisp.org>
1679
1680         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
1681         * lib/sys_socket.in.h: Include <stddef.h>.
1682         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
1683         CMSG_FIRSTHDR. Remove unused variable.
1684
1685 2011-03-13  Bruno Haible  <bruno@clisp.org>
1686
1687         passfd: Fix compilation error on OpenBSD.
1688         * lib/passfd.c: Include <sys/uio.h>.
1689
1690 2011-03-13  Bruno Haible  <bruno@clisp.org>
1691
1692         passfd test: Fix warnings.
1693         * tests/test-passfd.c: Include <sys/wait.h>.
1694         (main): Fix typo.
1695
1696 2011-03-13  Bruno Haible  <bruno@clisp.org>
1697
1698         passfd module, part 4, tweaks.
1699         * tests/test-passfd.c: Reorder includes.
1700         (main): Fix perror and printf calls.
1701
1702 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1703
1704         passfd module, part 4.
1705         * modules/passfd-tests: New file.
1706         * tests/test-passfd.c: New file.
1707
1708 2011-03-13  Jim Meyering  <meyering@redhat.com>
1709
1710         Makefile: rely on GNU make; derive syntax-check rule names
1711         Rather than requiring that each sc_ rule be listed as a dependent
1712         of "check", use features of GNU make to derive the list.
1713         * Makefile (syntax-check-rules): Define.
1714         (check): Depend on the new variable, not the hard-coded list.
1715
1716 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
1717             Bruno Haible  <bruno@clisp.org>
1718
1719         passfd module, part 3.
1720         * lib/passfd.h (recvfd): Add a flags argument.
1721         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
1722         (recvfd): Add a flags argument.
1723         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
1724         exists.
1725         * modules/passfd (Depends-on): Add cloexec.
1726         Suggested by Eric Blake.
1727
1728 2011-03-13  Bruno Haible  <bruno@clisp.org>
1729
1730         passfd module, part 2, tweaks.
1731         * modules/passfd (Files): Reorder.
1732         (Depends-on): Remove errno.
1733         (Include): Remove <sys/socket.h>, <sys/un.h>.
1734         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
1735         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
1736         specification header. Include <sys/socket.h> always. Don't include
1737         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
1738         (sendfd): Clarify that it sets errno when it fails.
1739         (recvfd): Fix specification.
1740
1741 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1742
1743         passfd module, part 2.
1744         * modules/passfd: New file.
1745         * lib/passfd.h: New file.
1746         * lib/passfd.c: New file.
1747
1748 2011-03-12  Bruno Haible  <bruno@clisp.org>
1749
1750         wcswidth, mbswidth: Avoid integer overflow.
1751         * lib/wcswidth.c: Include <limits.h>.
1752         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
1753         * lib/mbswidth.c: Include <limits.h>.
1754         (mbsnwidth): Avoid 'int' overflow.
1755         Reported by Jim Meyering.
1756
1757 2011-03-12  Bruno Haible  <bruno@clisp.org>
1758
1759         futimens, utimensat: Avoid endless recursion on Solaris 10.
1760         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
1761         Solaris.
1762         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
1763         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
1764
1765 2011-03-11  Jim Meyering  <meyering@redhat.com>
1766
1767         maint.mk: relax a regexp to accommodate other formatting styles
1768         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
1769         between "ngettext" and the following "(".
1770
1771 2011-03-11  Pádraig Brady <P@draigBrady.com>
1772
1773         maint.mk: suppress a false positive warning
1774         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
1775         diagnostics are marked with ngettext.
1776
1777 2011-03-10  Eric Blake  <eblake@redhat.com>
1778
1779         wchar: add explicit dependencies, for Tru64
1780         * modules/mbmemcasecoll (Depends-on): Add wchar.
1781         * modules/mbtowc (Depends-on): Likewise.
1782         * modules/vasnprintf (Depends-on): Likewise.
1783         * modules/unistdio/u-printf-args (Depends-on): Likewise.
1784         * modules/wctomb (Depends-on): Likewise.
1785         Reported by Peter O'Gorman.
1786
1787 2011-03-08  Bruno Haible  <bruno@clisp.org>
1788
1789         passfd module, part 1, tweaks.
1790         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
1791         Improve indentation. Improve AC_MSG_CHECKING messages.
1792         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
1793         gl_SOCKET_FAMILIES.
1794
1795 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1796
1797         passfd module, part 1.
1798         * m4/afunix.m4: New file.
1799         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
1800         sockets.
1801
1802 2011-03-08  Bruno Haible  <bruno@clisp.org>
1803
1804         regex-quote: New API.
1805         * lib/regex-quote.h: Include <stdbool.h>.
1806         (struct regex_quote_spec): New type.
1807         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1808         New declarations.
1809         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1810         'const struct regex_quote_spec *' argument.
1811         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
1812         (pcre_special): New constant.
1813         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1814         New functions.
1815         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1816         'const struct regex_quote_spec *' argument.
1817         * modules/regex-quote (Depends-on): Add stdbool.
1818         * tests/test-regex-quote.c (check): Update for new API. Add test for
1819         anchored results.
1820         * NEWS: Mention the API change.
1821         Reported by Reuben Thomas and Eric Blake.
1822
1823 2011-03-06  Bruno Haible  <bruno@clisp.org>
1824
1825         regex-quote: Fix creation of POSIX extended regular expressions.
1826         * lib/regex-quote.c (ere_special): Add grouping and alternation
1827         operators.
1828
1829 2011-03-05  Bruno Haible  <bruno@clisp.org>
1830
1831         doc: Improve doc regarding autopoint vs. gnulib.
1832         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
1833         disable autopoint while running autoreconf.
1834         Suggested by Ralf Wildenhues.
1835
1836 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1837
1838         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
1839         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
1840
1841 2011-03-03  Bruce Korb  <bkorb@gnu.org>
1842
1843         parse-duration: remove xalloc.h dependency
1844         * lib/parse-duration.c (parse_period): handle NULL return from
1845         strdup instead of calling xstrdup().
1846         * modules/parse-duration: remove "xalloc" dependency
1847
1848 2011-03-03  Matthew Booth  <mbooth@redhat.com>
1849
1850         bootstrap: honor m4_base when running aclocal
1851         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
1852
1853 2011-03-02  Jim Meyering  <meyering@redhat.com>
1854
1855         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
1856         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
1857         on request from Matt Booth.
1858
1859 2011-03-01  Eric Blake  <eblake@redhat.com>
1860
1861         test-link: work on Hurd
1862         * tests/test-link.h (test_link): Hurd rejects linking directories
1863         with EISDIR instead of the POSIX-mandated EPERM.
1864
1865 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
1866
1867         stdio: simplify by moving files to printf-posix, sigpipe
1868         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
1869         since this symbol is needed only if printf is replaced.
1870         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
1871         Require gl_ASM_SYMBOL_PREFIX.
1872         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
1873         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
1874         (Depends-on): Add 'raise'.
1875         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
1876         * modules/stdio (Files): Remove lib/stdio-write.c,
1877         m4/asm-underscore.m4.
1878         (Depends-on): Remove 'raise'.
1879
1880         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
1881         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
1882         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
1883         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
1884
1885 2011-02-28  Bruno Haible  <bruno@clisp.org>
1886
1887         localcharset: Assume ANSI C behaviour of free().
1888         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
1889         calling free().
1890         Suggested by Simon Josefsson <simon@josefsson.org>.
1891
1892 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
1893             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
1894             Bruno Haible  <bruno@clisp.org>  (tiny change)
1895
1896         On Cygwin, use /proc file system instead of win32 API.
1897         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
1898         Win32 file names.
1899         (DllMain): Simplify by removing Cygwin specific code.
1900         (find_shared_library_fullname): Use Linux specific implementation also
1901         for Cygwin.
1902         (get_shared_library_fullname): Update accordingly.
1903         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
1904         Win32 file names.
1905         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
1906         Cygwin specific code.
1907
1908 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
1909             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
1910
1911         Fix OpenMP flag detection for various Fortran compilers.
1912         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
1913         OpenMP-conditional compilation construct, to force compile
1914         failure with missing OpenMP flag.
1915         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
1916
1917 2011-02-25  Eric Blake  <eblake@redhat.com>
1918
1919         strstr: expand test coverage
1920         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
1921         compilation.
1922         * tests/test-memmem.c (main): Duplicate tests.
1923         * tests/test-strcasestr.c (main): Likewise.
1924         * tests/test-c-strcasestr.c (main): Likewise.
1925
1926 2011-02-25  Jim Meyering  <meyering@redhat.com>
1927
1928         maint.mk: detect missing-NL-at-EOF, too
1929         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
1930         it also detects when a file lacks a newline at EOF.
1931         (require_exactly_one_NL_at_EOF_): Renamed from
1932         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
1933         since people may well have .x-sc_... file names tied to the
1934         existing name.  Suggested by Eric Blake.
1935
1936 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1937
1938         dirname: move m4/dos.m4 functionality into lib/dosname.h
1939
1940         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
1941         extracts symbols from it, puts them into config.h; but it's much
1942         easier to use the symbols directly.  filename.h already does this,
1943         but it disagrees with dos.m4 in some respects.  This patch
1944         introduces a different include file dosname.h that packages up
1945         dos.m4, and then later we can work on merging filename.h and
1946         dosname.h.  Applications that need only the easy-to-configure
1947         symbols should consider including dosname.h rather than dirname.h.
1948         * NEWS: Mention incompatible changes.
1949         * m4/dos.m4: Remove.
1950         * lib/dosname.h, modules/dosname: New files.
1951         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
1952         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
1953         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
1954         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
1955         Include dosname.h, not dirname.h.
1956         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
1957         Include dosname.h, for definitions of symbols like ISSLASH
1958         that used to be in config.h.
1959         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
1960         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1961         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1962         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1963         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
1964         * modules/rmdir (Files): Likewise.
1965         * modules/stat (Files): Likewise.
1966         * modules/unlink (Files): Likewise.
1967         * modules/dirname-lgpl (Depends-on): Add dosname.
1968         * modules/lstat (Depends-on): Likewise.
1969         * modules/openat (Depends-on): Likewise.
1970         * modules/rmdir (Depends-on): Likewise.
1971         * modules/savewd (Depends-on): Likewise.
1972         * modules/stat (Depends-on): Likewise.
1973         * modules/unlink (Depends-on): Likewise.
1974         * modules/openat (Depends-on): Remove dirname-lgpl.
1975         * modules/savewd (Depends-on): Likewise.
1976         * tests/test-dirname.c: Do not use removed symbols like
1977         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
1978         the remaining symbols, e.g., ISSLASH ('\\').
1979
1980 2011-02-25  Eric Blake  <eblake@redhat.com>
1981
1982         strstr: revert patches that introduced bug and pessimization
1983         * lib/str-two-way.h: Add another reference.
1984         (two_way_short_needle, two_way_long_needle): Revert changes from
1985         2011-02-24; they pessimize search speed.
1986         (critical_factorization): Partially revert changes from
1987         2010-06-22; they violate the requirement that the left half of the
1988         needle be smaller than the period of the needle.
1989
1990 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
1991
1992         filenamecat: remove unnecessary dependency on dirname-lgpl
1993         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
1994         is no direct dependency, just an indirect one via filenamecat-lgpl.
1995
1996         remove: remove unnecessary use of m4/dos.m4
1997         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
1998         * modules/remove (FILES): Remove m4/dos.m4.
1999
2000         * lib/openat-proc.c: Don't include dirname.h; not needed.
2001
2002         backupfile: remove unnecessary use of m4/dos.m4
2003         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
2004         of its symbols are used by the backupfile code.  backupfile.c does
2005         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
2006         for the rare case of programs that want all their backup file
2007         names to live within 8+3 limits, and dos.m4 doesn't address that.
2008         * modules/backupfile (Files): Remove m4/dos.m4.
2009
2010 2011-02-24  Jim Meyering  <meyering@redhat.com>
2011
2012         strstr: fix a bug whereby strstr would mistakenly return NULL
2013         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
2014         in period calculation.
2015         (two_way_long_needle): Likewise.
2016         The original problem was reported by Mike Stump in
2017         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
2018         Ralf Wildenhues provided the short needle and haystack.
2019         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
2020         Add a more involved test to trigger the bug in two_way_long_needle.
2021
2022 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2023
2024         gnulib-tool: remove use of bold display in help screen
2025         * gnulib-tool (func_usage): Do not use bold display anymore in the
2026         help screen.  That was just meant to be a temporary emphasis for a
2027         backward-incompatible change.
2028
2029 2011-02-23  Bruno Haible  <bruno@clisp.org>
2030
2031         Fix misindentation of preprocessor directives.
2032         * lib/argp-namefrob.h: Reindent preprocessor directives.
2033         * lib/getopt_int.h (struct _getopt_data): Likewise.
2034         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
2035         * lib/vasnprintf.c (decode_long_double): Likewise.
2036         * tests/test-argmatch.c: Insert blank lines, for clarity.
2037         * tests/test-exclude.c: Likewise.
2038
2039 2011-02-22  Bruno Haible  <bruno@clisp.org>
2040
2041         ioctl: Fix for MacOS X in 64-bit mode.
2042         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
2043         value.
2044         Suggested by Eric Blake.
2045         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
2046
2047 2011-02-22  Jim Meyering  <meyering@redhat.com>
2048
2049         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
2050         * Makefile (sc_cpp_indent_check): Don't limit the check to files
2051         in lib/.
2052
2053 2011-02-22  Eric Blake  <eblake@redhat.com>
2054
2055         maint: avoid any CDPATH issue
2056         * Makefile (sc_cpp_indent_check): Anchor cd argument.
2057
2058         maint: adjust cpp indentation for my modules, as well
2059         * Makefile (sc_cpp_indent_check): Add my name.
2060         * lib/fbufmode.c: Filter through cppi.
2061         * lib/fpurge.c: Likewise.
2062         * lib/freadable.c: Likewise.
2063         * lib/freading.c: Likewise.
2064         * lib/fwritable.c: Likewise.
2065         * lib/fwriting.c: Likewise.
2066         * lib/sigaction.c: Likewise.
2067
2068 2011-02-22  Jim Meyering  <meyering@redhat.com>
2069
2070         maint: adjust cpp indentation to reflect nesting depth
2071         I.e., in a block of code that begins with an unnested "#if",
2072         put one space between the "#" in column 1 and following token.
2073         For example,
2074         -#include <sys/vfs.h>
2075         +# include <sys/vfs.h>
2076         Do this only in .c files that are part of a module I maintain.
2077         * lib/linkat.c: Filter through cppi.
2078         * lib/nanosleep.c: Likewise.
2079         * lib/openat.c: Likewise.
2080         * lib/openat-die.c: Likewise.
2081         * lib/dup3.c: Likewise.
2082         * lib/fchownat.c: Likewise.
2083         * lib/flock.c: Likewise.
2084         * lib/fsync.c: Likewise.
2085         * lib/fts.c: Likewise.
2086         * lib/getpass.c: Likewise.
2087         * lib/gettimeofday.c: Likewise.
2088         * lib/userspec.c: Likewise.
2089         * Makefile (sc_cpp_indent_check): New rule, to check this.
2090
2091 2011-02-22  Bruno Haible  <bruno@clisp.org>
2092
2093         New module 'wctomb'.
2094         * lib/stdlib.in.h (wctomb): New declaration.
2095         * lib/wctomb.c: New file.
2096         * lib/wctomb-impl.h: New file.
2097         * m4/wctomb.m4: New file.
2098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
2099         REPLACE_WCTOMB.
2100         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
2101         REPLACE_WCTOMB.
2102         * modules/wctomb: New file.
2103         * tests/test-stdlib-c++.cc: Test signature of wctomb.
2104         * doc/posix-functions/wctomb.texi: Mention the new module.
2105         * modules/wctob (Depends-on): Add wctomb.
2106
2107 2011-02-22  Bruno Haible  <bruno@clisp.org>
2108
2109         New module 'mbtowc'.
2110         * lib/stdlib.in.h (mbtowc): New declaration.
2111         * lib/mbtowc.c: New file.
2112         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
2113         * m4/mbtowc.m4: New file.
2114         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
2115         REPLACE_MBTOWC.
2116         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
2117         REPLACE_MBTOWC.
2118         * modules/mbtowc: New file.
2119         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
2120         * doc/posix-functions/mbtowc.texi: Mention the new module.
2121         * modules/btowc (Depends-on): Add mbtowc.
2122
2123 2011-02-22  Bruno Haible  <bruno@clisp.org>
2124
2125         wcrtomb: Add more tests for native Windows platforms.
2126         * tests/test-wcrtomb-w32-1.sh: New file.
2127         * tests/test-wcrtomb-w32-2.sh: New file.
2128         * tests/test-wcrtomb-w32-3.sh: New file.
2129         * tests/test-wcrtomb-w32-4.sh: New file.
2130         * tests/test-wcrtomb-w32-5.sh: New file.
2131         * tests/test-wcrtomb-w32.c: New file.
2132         * modules/wcrtomb-tests (Files): Add them.
2133         (Makefile.am): Arrange to run these tests.
2134         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
2135         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
2136
2137 2011-02-20  Bruno Haible  <bruno@clisp.org>
2138
2139         wcrtomb: Enhance test.
2140         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
2141
2142 2011-02-20  Bruno Haible  <bruno@clisp.org>
2143
2144         mbrtowc: Tiny optimization.
2145         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
2146
2147 2011-02-20  Jim Meyering  <meyering@redhat.com>
2148
2149         test-exclude.c: remove unmatched #endif
2150         * tests/test-exclude.c: Remove stray #endif, left over from
2151         the change of a week ago.
2152
2153 2011-02-19  Jim Meyering  <meyering@redhat.com>
2154
2155         git-version-gen: skip "-dirty" check when appropriate
2156         * build-aux/git-version-gen: Don't run any git commands when the
2157         version string comes from .tarball-version.  Prior to this, we
2158         would run git update-index --refresh even from a just-unpacked
2159         tarball directory, and that could affect a .git/ directory in a
2160         parent of the build directory.  Reported by Mike Frysinger.
2161
2162 2011-02-19  Bruno Haible  <bruno@clisp.org>
2163
2164         unictype/property-byname: Reduce the size of the 'data' segment.
2165         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
2166
2167 2011-02-19  Bruno Haible  <bruno@clisp.org>
2168
2169         unictype/scripts: Reduce the size of the 'data' segment.
2170         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
2171         '%pic'.
2172         * lib/unictype/scripts_byname.gperf: Regenerated.
2173
2174 2011-02-19  Bruno Haible  <bruno@clisp.org>
2175
2176         stdint: Update documentation.
2177         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
2178
2179 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
2180
2181         stdint: omit redundant check for wchar.h
2182         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
2183         always tests whether wchar.h exists, so remove the now-redundant test.
2184
2185 2011-02-18  Bruno Haible  <bruno@clisp.org>
2186
2187         stdint: Cut dependency to module 'wchar'.
2188         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
2189         include the necessary prerequisites.
2190         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
2191         * modules/stdint (Depends-on): Remove wchar.
2192         (Makefile.am): Substitute HAVE_WCHAR_H.
2193         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
2194
2195 2011-02-18  Eric Blake  <eblake@redhat.com>
2196
2197         longlong: skip, rather than fail, on cross-compilation
2198         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
2199         when cross-compiling; regression from 2011-02-16.
2200
2201 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2202
2203         * NEWS: Mention 2011-02-08 change to stdlib.
2204
2205 2011-02-17  Bruno Haible  <bruno@clisp.org>
2206
2207         getloadavg: Add comments about platforms.
2208         * m4/getloadavg.m4: Add comment.
2209         * lib/getloadavg.c: Likewise.
2210
2211 2011-02-17  Bruno Haible  <bruno@clisp.org>
2212
2213         getloadavg: Fix link error on Solaris 2.6.
2214         * modules/getloadavg (Link): New section.
2215         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
2216         linking test-getloadavg.
2217         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
2218         getloadavg.
2219
2220 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2221
2222         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
2223         It was 'int', but this doesn't match the IRIX 6.5 manual.
2224         Suggested by Bruno Haible in
2225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
2226
2227 2011-02-17  Bruno Haible  <bruno@clisp.org>
2228
2229         havelib: Fix comments.
2230         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
2231         change.
2232
2233 2011-02-17  Bruno Haible  <bruno@clisp.org>
2234
2235         havelib: Update config.rpath.
2236         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
2237
2238 2011-02-17  Bruno Haible  <bruno@clisp.org>
2239
2240         getloadavg test: Add some plausibility checks.
2241         * tests/test-getloadavg.c (check_avg): Print a warning when the value
2242         is improbable.
2243
2244 2011-02-16  Eric Blake  <eblake@redhat.com>
2245
2246         maintainer-makefile: make syntax-check a no-op from tarballs
2247         * top/maint.mk (no-vc-detected): New rule.
2248         (local-checks-available): Use it to avoid hanging if someone tries
2249         'make syntax-check' from a tarball.  Also append to any non-syntax
2250         checks already defined in cfg.mk.
2251
2252 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
2253
2254         longlong: tune, particularly for common case of c99
2255
2256         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
2257         or running anything if c99, or if unsigned long long int does not
2258         work.  In either case, we know the answer without further tests.
2259         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
2260         it at most once, and use its results for both long long int and
2261         unsigned long long int.  This is more likely to be efficient in
2262         the common case where the program wants to check for both long
2263         long int and unsigned long long int.
2264         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
2265         since the answer is already known.
2266
2267 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
2268
2269         getloadavg: set errno
2270         * lib/getloadavg.c: Set errno when returning -1.  If no other
2271         error number looks appropriate, set it to ENOSYS if the getloadavg
2272         looks like it can't possibly ever work, ENOTSUP otherwise.
2273         Suggested by Bruno Haible in
2274         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
2275
2276         getloadavg: trim unused parts and speed up 'configure'
2277         * NEWS: Document this.
2278         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
2279         always compiled if getloadavg is absent.
2280         Move test code to ...
2281         * tests/test-getloadavg.c: New file, containing previous
2282         contents of test from lib/getloadavg.c.  It also contains
2283         suggestions by Bruno Haible in
2284         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
2285         * modules/getloadavg-tests: New file.
2286         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
2287         Do tests in the same order as they're needed for getloadavg.c.
2288         Omit setgid-related tests that generate symbols KMEM_GROUP,
2289         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
2290         Do only the tests that are needed to see whether the system has
2291         getloadavg, moving the other tests into ...
2292         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
2293         NLIST_NAME_UNION; nobody should be using it.  Do not define
2294         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
2295         relevant, as the user of this module shouldn't care how getloadavg
2296         is implemented.
2297
2298         getloadavg: omit unused var
2299         * lib/getloadavg.c (getloadavg): Omit unused local variable.
2300
2301 2011-02-15  Jim Meyering  <meyering@redhat.com>
2302
2303         doc: update users.txt
2304         * users.txt: Update iwhd's URL.
2305
2306 2011-02-13  Bruno Haible  <bruno@clisp.org>
2307
2308         Consistent macro naming for macros that use GCC __attribute__.
2309         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
2310         _ATTRIBUTE_NONNULL_.
2311         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
2312         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
2313         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
2314         ATTRIBUTE_DEPRECATED.
2315         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
2316         ATTRIBUTE_NORETURN.
2317         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2318         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2319         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2320         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2321         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
2322         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
2323         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
2324         ATTRIBUTE_SENTINEL.
2325         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
2326         ATTRIBUTE_RETURN_CHECK.
2327         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
2328         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
2329         ATTRIBUTE_NORETURN.
2330         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
2331         Reported by Paul Eggert.
2332
2333 2011-02-13  Bruno Haible  <bruno@clisp.org>
2334
2335         Don't interfere with a program's definition of __attribute__.
2336         * lib/argp.h (__attribute__): Remove definition.
2337         (_GL_ATTRIBUTE_FORMAT): New macro.
2338         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
2339         * lib/argp-fmtstream.h (__attribute__): Remove definition.
2340         (_GL_ATTRIBUTE_FORMAT): New macro.
2341         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
2342         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
2343         GCC 3 or newer.
2344         * lib/error.h (__attribute__): Remove definition.
2345         (_GL_ATTRIBUTE_FORMAT): New macro.
2346         (error, error_at_line): Use it.
2347         * lib/hash.h (__attribute__): Remove definition.
2348         (ATTRIBUTE_WUR): Update definition. Define always.
2349         * lib/openat.h (__attribute__): Remove definition.
2350         (ATTRIBUTE_NORETURN): Update definition. Define always.
2351         * lib/sigpipe-die.h (__attribute__): Remove definition.
2352         (ATTRIBUTE_NORETURN): Update definition. Define always.
2353         * lib/vasnprintf.h (__attribute__): Remove definition.
2354         (_GL_ATTRIBUTE_FORMAT): New macro.
2355         (asnprintf, vasnprintf): Use it.
2356         * lib/xalloc.h (__attribute__): Remove definition.
2357         (ATTRIBUTE_NORETURN): Update definition. Define always.
2358         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
2359         * lib/xmemdup0.h (__attribute__): Remove definition.
2360         (ATTRIBUTE_NORETURN): Update definition. Define always.
2361         * lib/xprintf.h (__attribute__): Remove definition.
2362         (_GL_ATTRIBUTE_FORMAT): New macro.
2363         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
2364         * lib/xstrtol.h (__attribute__): Remove definition.
2365         (ATTRIBUTE_NORETURN): Update definition. Define always.
2366         * lib/xvasprintf.h (__attribute__): Remove definition.
2367         (_GL_ATTRIBUTE_FORMAT): New macro.
2368         (xasprintf, xvasprintf): Use it.
2369         * tests/test-argmatch.c (__attribute__): Remove definition.
2370         (ATTRIBUTE_NORETURN): Update definition. Define always.
2371         * tests/test-exclude.c (__attribute__): Remove definition.
2372         (ATTRIBUTE_NORETURN): Update definition. Define always.
2373         Reported by Paul Eggert.
2374
2375 2011-02-13  Bruno Haible  <bruno@clisp.org>
2376
2377         mbrtowc: Add more tests for native Windows platforms.
2378         * tests/test-mbrtowc-w32-1.sh: New file.
2379         * tests/test-mbrtowc-w32-2.sh: New file.
2380         * tests/test-mbrtowc-w32-3.sh: New file.
2381         * tests/test-mbrtowc-w32-4.sh: New file.
2382         * tests/test-mbrtowc-w32-5.sh: New file.
2383         * tests/test-mbrtowc-w32.c: New file.
2384         * modules/mbrtowc-tests (Files): Add them.
2385         (Makefile.am): Arrange to run these tests.
2386         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
2387         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
2388
2389 2011-02-13  Bruno Haible  <bruno@clisp.org>
2390
2391         mbrtowc: Work around native Windows bug.
2392         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
2393         guess when no suitable locale for testing was found.
2394         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
2395
2396 2011-02-13  Bruno Haible  <bruno@clisp.org>
2397
2398         mbsinit: Work around mingw bug.
2399         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
2400         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
2401         Windows.
2402         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
2403
2404 2011-02-13  Bruno Haible  <bruno@clisp.org>
2405
2406         mbsinit: Don't crash for a NULL argument.
2407         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
2408         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
2409
2410 2011-02-13  Bruno Haible  <bruno@clisp.org>
2411
2412         Don't interfere with a program's definition of __attribute__.
2413         * lib/stdio.in.h (__attribute__): Remove definition.
2414         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
2415         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
2416         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
2417         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
2418         * lib/string.in.h (__attribute__): Remove definition.
2419         Reported by Paul Eggert.
2420
2421 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2422
2423         stdlib: don't get in the way of non-GCC __attribute__
2424         See thread starting at
2425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
2426         Revert previous stdlib change, installing the following instead:
2427         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
2428         to get in the way of a non-GCC compiler that supports __attribute__.
2429         (_GL_ATTRIBUTE_RETURN): New macro.
2430         (_Exit): Use it instead of __attribute__.
2431
2432 2011-02-12  Bruno Haible  <bruno@clisp.org>
2433
2434         quotearg test: Avoid test failure on mingw.
2435         * tests/test-quotearg.sh: Convert the locale identifier from native
2436         Windows syntax to Unix syntax.
2437
2438 2011-02-12  Bruno Haible  <bruno@clisp.org>
2439
2440         setlocale: Prefer gnulib's override over libintl's override.
2441         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
2442         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
2443         GNULIB_defined_setlocale is set.
2444
2445 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2446
2447         stdlib: support non-GCC __attribute__
2448
2449         Fix a serious and tricky problem encountered when attempting to
2450         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
2451         5.5, but it crashed due to memory corruption on Solaris 10 with
2452         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
2453         bits that are otherwise zero.  This tagging is optional inside
2454         Emacs but is preferred and is used when __attribute__ ((__aligned
2455         (8))) works, as it does with both recent-enough GCC and with Sun C
2456         5.11.  However, Sun C 5.11 is not GCC and does not #define
2457         __GNUC__ and __GNUC_MINOR__.
2458
2459         When I added the getloadavg module to Emacs, it brought in
2460         stdlib.in.h, which contained this fragment:
2461
2462            #ifndef __attribute__
2463            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
2464            #  define __attribute__(Spec)   /* empty */
2465            # endif
2466            #endif
2467
2468         When files that include <stdlib.h> were compiled with Sun C 5.11,
2469         the above code disabled __attribute__ ((__aligned (8))), which
2470         caused variables to not be properly aligned, which eventually led
2471         to the pointer corruption mentioned above.  (This was a bit hard
2472         to diagnose, unfortunately.)
2473
2474         Several "#define __attribute__(X) /* empty */" code snippets need
2475         to be eradicated from Gnulib to work with non-GCC compilers that
2476         support __attribute__.  The Autoconf way to do this is to test for
2477         each kind of attribute that we want support for, and selectively
2478         enable that in source code.
2479
2480         Fix this problem just for stdlib.h, by adding a test for the
2481         __noreturn__ attribute, and change stdlib.in.h to use that test
2482         when needed.  This technique can be easily generalized to the
2483         other *.in.h files and attributes, and a similar technique can be
2484         used for *.h and *.c files.  This patch is enough to solve the
2485         problem for Emacs + getloadavg, and I thought I'd publish it for
2486         feedback before undertaking further, similar fixes in other
2487         modules.
2488
2489         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
2490         because it's not needed for stdlib.h.  It merely substitutes the
2491         value directly into stdlib.h.  We may well need to #define it, or
2492         similar symbols, for other modules, but it's nice to also have an
2493         option to not #define it for applications like Emacs that do not
2494         need it.
2495
2496         * lib/stdlib.in.h (__attribute__): Do not #define.
2497         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
2498         be defined only if the _Exit module is also used.
2499         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
2500         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
2501         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
2502         platforms.
2503         * modules/_Exit (Files): Add m4/attribute.m4.
2504         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
2505         * m4/attribute.m4: New file.
2506
2507 2011-02-12  Bruno Haible  <bruno@clisp.org>
2508
2509         wcsrtombs: Work around bug on native Windows.
2510         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
2511         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
2512         instead of len.
2513         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
2514
2515 2011-02-12  Bruno Haible  <bruno@clisp.org>
2516
2517         mbsrtowcs: Work around bug on native Windows.
2518         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
2519         against mingw bug.
2520         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
2521
2522 2011-02-12  Bruno Haible  <bruno@clisp.org>
2523
2524         Avoid setlocale bugs in tests.
2525         * modules/btowc (Dependencies): Add setlocale.
2526         * modules/c-strcase (Dependencies): Likewise.
2527         * modules/mbmemcasecmp (Dependencies): Likewise.
2528         * modules/mbmemcasecoll (Dependencies): Likewise.
2529         * modules/mbrtowc (Dependencies): Likewise.
2530         * modules/mbscasecmp (Dependencies): Likewise.
2531         * modules/mbscasestr (Dependencies): Likewise.
2532         * modules/mbschr (Dependencies): Likewise.
2533         * modules/mbscspn (Dependencies): Likewise.
2534         * modules/mbsinit (Dependencies): Likewise.
2535         * modules/mbsncasecmp (Dependencies): Likewise.
2536         * modules/mbsnrtowcs (Dependencies): Likewise.
2537         * modules/mbspbrk (Dependencies): Likewise.
2538         * modules/mbspcasecmp (Dependencies): Likewise.
2539         * modules/mbsrchr (Dependencies): Likewise.
2540         * modules/mbsrtowcs (Dependencies): Likewise.
2541         * modules/mbsspn (Dependencies): Likewise.
2542         * modules/mbsstr (Dependencies): Likewise.
2543         * modules/nl_langinfo (Dependencies): Likewise.
2544         * modules/quotearg (Dependencies): Likewise.
2545         * modules/unicase/locale-language (Dependencies): Likewise.
2546         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
2547         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
2548         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
2549         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
2550         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
2551         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
2552         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
2553         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
2554         * modules/vasnprintf-posix (Dependencies): Likewise.
2555         * modules/wcrtomb (Dependencies): Likewise.
2556         * modules/wcsnrtombs (Dependencies): Likewise.
2557         * modules/wcsrtombs (Dependencies): Likewise.
2558
2559 2011-02-12  Bruno Haible  <bruno@clisp.org>
2560
2561         setlocale: Workaround native Windows bug.
2562         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
2563         succeeds but sets LC_CTYPE to "C", report a failure.
2564         * tests/test-setlocale2.sh: New file.
2565         * tests/test-setlocale2.c: New file.
2566         * modules/setlocale-tests (Files): Add the new files.
2567         (Makefile.am): Enable test-setlocale2.sh test.
2568         * doc/posix-functions/setlocale.texi: Mention workaround.
2569
2570 2011-02-11  Bruno Haible  <bruno@clisp.org>
2571
2572         Tests for module 'setlocale'.
2573         * modules/setlocale-tests: New file.
2574         * tests/test-setlocale1.sh: New file.
2575         * tests/test-setlocale1.c: New file.
2576
2577         New module 'setlocale'.
2578         * lib/locale.in.h (setlocale): New declaration.
2579         * lib/setlocale.c: New file, based on
2580         gettext/gettext-runtime/intl/setlocale.c.
2581         * m4/setlocale.m4: New file.
2582         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
2583         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
2584         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
2585         REPLACE_SETLOCALE.
2586         * modules/setlocale: New file.
2587         * tests/test-locale-c++.cc: Test the declaration of setlocale.
2588         * doc/posix-functions/setlocale.texi: Mention the new module.
2589
2590 2011-02-11  Bruno Haible  <bruno@clisp.org>
2591
2592         Prepare for locale dependent tests on mingw.
2593         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
2594         because it has the wrong locale encoding.
2595         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
2596         French_France.1252 instead of "fr".
2597         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
2598         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
2599         because it has the wrong locale encoding.
2600         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
2601         native Windows, try Turkish_Turkey.65001.
2602         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
2603         Chinese_China.54936.
2604
2605         Prepare for locale dependent tests on mingw.
2606         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
2607         differently.
2608         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
2609         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
2610         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2611         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2612
2613 2011-02-11  Eric Blake  <eblake@redhat.com>
2614
2615         strptime: avoid compiler warnings
2616         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
2617         compiler warnings about dead code.
2618         Reported by Daniel P. Berrange.
2619
2620 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
2621
2622         doc: update users.txt
2623         * users.txt: Add rcs.
2624
2625 2011-02-10  John W. Eaton  <jwe@gnu.org>
2626
2627         doc: update users.txt
2628         * users.txt: Add octave.
2629
2630 2011-02-10  Jim Meyering  <meyering@redhat.com>
2631
2632         doc: update users.txt
2633         * users.txt: Add iwhd.
2634
2635 2011-02-09  Bruno Haible  <bruno@clisp.org>
2636
2637         gnulib-tool: Make copyright notice adjustment more robust.
2638         * gnulib-tool (func_import): In sed_transform_main_lib_file,
2639         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
2640         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
2641         License".
2642         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
2643
2644 2011-02-06  Bruno Haible  <bruno@clisp.org>
2645
2646         New module 'towctrans'.
2647         * modules/towctrans: New file.
2648         * lib/wctype.in.h (towctrans): New declaration.
2649         * lib/towctrans.c: New file.
2650         * lib/towctrans-impl.h: New file.
2651         * m4/towctrans.m4: New file.
2652         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
2653         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
2654         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
2655         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
2656         * doc/posix-functions/towctrans.texi: Mention the new module.
2657
2658 2011-02-06  Bruno Haible  <bruno@clisp.org>
2659
2660         New module 'wctrans'.
2661         * modules/wctrans: New file.
2662         * lib/wctype.in.h (wctrans): New declaration.
2663         * lib/wctrans.c: New file.
2664         * lib/wctrans-impl.h: New file.
2665         * m4/wctrans.m4: New file.
2666         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
2667         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
2668         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
2669         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
2670         * doc/posix-functions/wctrans.texi: Mention the new module.
2671
2672 2011-02-06  Bruno Haible  <bruno@clisp.org>
2673
2674         New module 'iswctype'.
2675         * modules/iswctype: New file.
2676         * lib/wctype.in.h (iswctype): New declaration.
2677         * lib/iswctype.c: New file.
2678         * lib/iswctype-impl.h: New file.
2679         * m4/iswctype.m4: New file.
2680         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
2681         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
2682         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
2683         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
2684         * doc/posix-functions/iswctype.texi: Mention the new module and the
2685         HP-UX 11.00 problem.
2686
2687 2011-02-06  Bruno Haible  <bruno@clisp.org>
2688
2689         New module 'wctype'.
2690         * modules/wctype: Change to represent the wctype() substitute.
2691         * lib/wctype.in.h (wctype): New declaration.
2692         * lib/wctype.c: New file.
2693         * lib/wctype-impl.h: New file.
2694         * m4/wctype.m4: New file.
2695         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
2696         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
2697         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
2698         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
2699         * doc/posix-functions/wctype.texi: Mention the new module and the
2700         HP-UX 11.00 problem.
2701
2702 2011-02-06  Bruno Haible  <bruno@clisp.org>
2703
2704         wctype-h: Ensure wctype_t and wctrans_t are defined.
2705         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
2706         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2707         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2708         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
2709         HAVE_WCTRANS_T.
2710         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
2711
2712 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2713
2714         flock: fix license typo
2715
2716         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
2717         omitted.
2718
2719 2011-02-08  Bruno Haible  <bruno@clisp.org>
2720
2721         Split large sed scripts, for HP-UX sed.
2722         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
2723         to avoid HP-UX limit of 99 commands, in the near future.
2724         * modules/stdlib (Makefile.am): Likewise.
2725         * modules/unistd (Makefile.am): Likewise.
2726         * modules/wchar (Makefile.am): Likewise.
2727         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2728         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
2729         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
2730
2731 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2732             Bruno Haible  <bruno@clisp.org>
2733
2734         stdlib: improve random_r modularization
2735         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
2736         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
2737         you also need the random_r module to get this material right.
2738         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
2739         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
2740         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
2741
2742 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2743
2744         stdlib: don't depend on stdint
2745         * lib/stdlib.in.h: Don't include <stdint.h> merely because
2746         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
2747         be independent of whether stdint.h is needed.
2748         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
2749         here, instead of ...
2750         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
2751         struct random_data should be using the random_r module, not just
2752         the stdlib module (which wouldn't make sense: what package needs
2753         just struct random_data without also needing random_r?).
2754         * modules/stdlib (Depends-on): Remove stdint.
2755
2756         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
2757         See the thread rooted at
2758         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
2759         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
2760         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
2761         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
2762         __VMS)); previously it was always included (via fcntl--.h).
2763         (getloadavg): Do not use c_strtod.  Instead, approximate it by
2764         hand; this is good enough for load averages.  Also, do not use
2765         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
2766         flags directly if available and don't bother otherwise.  (Packages
2767         that need the extra reliability should use the modules that define
2768         these flags on older platforms that lack them.)
2769         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
2770         fcntl-safer.
2771
2772 2011-02-08  Jim Meyering  <meyering@redhat.com>
2773
2774         di-set.h, ino-map.h: add multiple-inclusion guard
2775         Technically, the guard is required only for ino-map.h, due to its
2776         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
2777         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
2778         * lib/ino-map.h: Likewise.
2779
2780 2011-02-06  Bruno Haible  <bruno@clisp.org>
2781
2782         iswblank: Ensure declaration on glibc systems.
2783         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
2784         * modules/iswblank (Dependencies): Add 'extensions'.
2785         * doc/posix-functions/iswblank.texi: Document the glibc problem.
2786
2787 2011-02-06  Bruno Haible  <bruno@clisp.org>
2788
2789         New module 'iswblank'.
2790         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
2791         * modules/iswblank: New file.
2792         * modules/wctype-h (Files): Remove lib/iswblank.c.
2793         (Makefile.am): Substitute GNULIB_ISWBLANK.
2794         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
2795         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
2796         (gl_WCTYPE_H_DEFAULTS): New macro.
2797         (gl_WCTYPE_H): Require it. Remove iswblank related code.
2798         * modules/iswblank-tests: New file.
2799         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
2800         * tests/test-wctype-h.c (main): Remove iswblank tests.
2801         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
2802         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
2803         of 'wctype-h'.
2804         * NEWS: Mention the change.
2805         * modules/mbchar (Depends-on): Add iswblank.
2806
2807 2011-02-08  Bruno Haible  <bruno@clisp.org>
2808
2809         di-set tests: Refactor.
2810         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
2811         unnecessary includes.
2812         (ASSERT): Remove macro.
2813         (main): Make C90 compliant by avoiding variable declaration after
2814         statement.
2815         * modules/di-set-tests (Files): Add tests/macros.h.
2816
2817 2011-02-08  Bruno Haible  <bruno@clisp.org>
2818
2819         ino-map tests: Refactor.
2820         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
2821         unnecessary includes.
2822         (ASSERT): Remove macro.
2823         (main): Make C90 compliant by avoiding variable declaration after
2824         statement.
2825         * modules/ino-map-tests (Files): Add tests/macros.h.
2826
2827 2011-02-08  Jim Meyering  <meyering@redhat.com>
2828
2829         di-set: add "const" to a cast
2830         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
2831         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
2832
2833 2011-02-06  Bruno Haible  <bruno@clisp.org>
2834
2835         Rename module 'wctype' to 'wctype-h'.
2836         * modules/wctype-h: Renamed from modules/wctype.
2837         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
2838         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
2839         (Files, Depends-on, Makefile.am): Update.
2840         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
2841         (Files, Makefile.am): Update.
2842         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
2843         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
2844         * doc/posix-headers/wctype.texi: Update.
2845         * doc/posix-functions/iswalnum.texi: Update.
2846         * doc/posix-functions/iswalpha.texi: Update.
2847         * doc/posix-functions/iswblank.texi: Update.
2848         * doc/posix-functions/iswcntrl.texi: Update.
2849         * doc/posix-functions/iswdigit.texi: Update.
2850         * doc/posix-functions/iswgraph.texi: Update.
2851         * doc/posix-functions/iswlower.texi: Update.
2852         * doc/posix-functions/iswprint.texi: Update.
2853         * doc/posix-functions/iswpunct.texi: Update.
2854         * doc/posix-functions/iswspace.texi: Update.
2855         * doc/posix-functions/iswupper.texi: Update.
2856         * doc/posix-functions/iswxdigit.texi: Update.
2857         * doc/posix-functions/towlower.texi: Update.
2858         * doc/posix-functions/towupper.texi: Update.
2859         * NEWS: Mention the change.
2860         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
2861         * modules/mbchar (Dependencies): Likewise.
2862         * modules/mbswidth (Dependencies): Likewise.
2863         * modules/quotearg (Dependencies): Likewise.
2864         * modules/regex (Dependencies): Likewise.
2865         * modules/wcscasecmp (Dependencies): Likewise.
2866         * modules/wcsncasecmp (Dependencies): Likewise.
2867         * modules/wcwidth (Dependencies): Likewise.
2868
2869 2011-02-06  Bruno Haible  <bruno@clisp.org>
2870
2871         New module 'wcswidth'.
2872         * modules/wcswidth: New file.
2873         * lib/wchar.in.h (wcswidth): New declaration.
2874         * lib/wcswidth.c: New file.
2875         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
2876         * m4/wcswidth.m4: New file.
2877         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
2878         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
2879         REPLACE_WCSWIDTH.
2880         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
2881         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
2882         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
2883         * doc/posix-functions/wcswidth.texi: Mention the new module.
2884
2885 2011-02-06  Bruno Haible  <bruno@clisp.org>
2886
2887         New module 'wcstok'.
2888         * modules/wcstok: New file.
2889         * lib/wchar.in.h (wcstok): New declaration.
2890         * lib/wcstok.c: New file.
2891         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
2892         * m4/wcstok.m4: New file.
2893         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
2894         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
2895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
2896         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
2897         * doc/posix-functions/wcstok.texi: Mention the new module.
2898
2899 2011-02-06  Bruno Haible  <bruno@clisp.org>
2900
2901         New module 'wcsstr'.
2902         * modules/wcsstr: New file.
2903         * lib/wchar.in.h (wcsstr): New declaration.
2904         * lib/wcsstr.c: New file.
2905         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
2906         * m4/wcsstr.m4: New file.
2907         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
2908         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
2909         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
2910         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
2911         * doc/posix-functions/wcsstr.texi: Mention the new module.
2912
2913 2011-02-06  Bruno Haible  <bruno@clisp.org>
2914
2915         New module 'wcspbrk'.
2916         * modules/wcspbrk: New file.
2917         * lib/wchar.in.h (wcspbrk): New declaration.
2918         * lib/wcspbrk.c: New file.
2919         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
2920         * m4/wcspbrk.m4: New file.
2921         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
2922         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
2923         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
2924         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
2925         * doc/posix-functions/wcspbrk.texi: Mention the new module.
2926
2927 2011-02-06  Bruno Haible  <bruno@clisp.org>
2928
2929         New module 'wcsspn'.
2930         * modules/wcsspn: New file.
2931         * lib/wchar.in.h (wcsspn): New declaration.
2932         * lib/wcsspn.c: New file.
2933         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
2934         * m4/wcsspn.m4: New file.
2935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
2936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
2937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
2938         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
2939         * doc/posix-functions/wcsspn.texi: Mention the new module.
2940
2941 2011-02-06  Bruno Haible  <bruno@clisp.org>
2942
2943         New module 'wcscspn'.
2944         * modules/wcscspn: New file.
2945         * lib/wchar.in.h (wcscspn): New declaration.
2946         * lib/wcscspn.c: New file.
2947         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
2948         * m4/wcscspn.m4: New file.
2949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
2950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
2951         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
2952         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
2953         * doc/posix-functions/wcscspn.texi: Mention the new module.
2954
2955 2011-02-06  Bruno Haible  <bruno@clisp.org>
2956
2957         New module 'wcsrchr'.
2958         * modules/wcsrchr: New file.
2959         * lib/wchar.in.h (wcsrchr): New declaration.
2960         * lib/wcsrchr.c: New file.
2961         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
2962         * m4/wcsrchr.m4: New file.
2963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
2964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
2965         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
2966         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
2967         * doc/posix-functions/wcsrchr.texi: Mention the new module.
2968
2969 2011-02-06  Bruno Haible  <bruno@clisp.org>
2970
2971         New module 'wcschr'.
2972         * modules/wcschr: New file.
2973         * lib/wchar.in.h (wcschr): New declaration.
2974         * lib/wcschr.c: New file.
2975         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
2976         * m4/wcschr.m4: New file.
2977         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
2978         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
2979         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
2980         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
2981         * doc/posix-functions/wcschr.texi: Mention the new module.
2982
2983 2011-02-06  Bruno Haible  <bruno@clisp.org>
2984
2985         New module 'wcsdup'.
2986         * modules/wcsdup: New file.
2987         * lib/wchar.in.h (wcsdup): New declaration.
2988         * lib/wcsdup.c: New file.
2989         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
2990         * m4/wcsdup.m4: New file.
2991         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
2992         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
2993         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
2994         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
2995         * doc/posix-functions/wcsdup.texi: Mention the new module.
2996
2997 2011-02-06  Bruno Haible  <bruno@clisp.org>
2998
2999         New module 'wcsxfrm'.
3000         * modules/wcsxfrm: New file.
3001         * lib/wchar.in.h (wcsxfrm): New declaration.
3002         * lib/wcsxfrm.c: New file.
3003         * lib/wcsxfrm-impl.h: New file.
3004         * m4/wcsxfrm.m4: New file.
3005         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
3006         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
3007         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
3008         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
3009         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
3010
3011 2011-02-06  Bruno Haible  <bruno@clisp.org>
3012
3013         New module 'wcscoll'.
3014         * modules/wcscoll: New file.
3015         * lib/wchar.in.h (wcscoll): New declaration.
3016         * lib/wcscoll.c: New file.
3017         * lib/wcscoll-impl.h: New file.
3018         * m4/wcscoll.m4: New file.
3019         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
3020         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
3021         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
3022         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
3023         * doc/posix-functions/wcscoll.texi: Mention the new module.
3024
3025 2011-02-06  Bruno Haible  <bruno@clisp.org>
3026
3027         New module 'wcsncasecmp'.
3028         * modules/wcsncasecmp: New file.
3029         * lib/wchar.in.h (wcsncasecmp): New declaration.
3030         * lib/wcsncasecmp.c: New file.
3031         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
3032         * m4/wcsncasecmp.m4: New file.
3033         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
3034         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
3035         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
3036         HAVE_WCSNCASECMP.
3037         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
3038         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
3039
3040 2011-02-06  Bruno Haible  <bruno@clisp.org>
3041
3042         New module 'wcscasecmp'.
3043         * modules/wcscasecmp: New file.
3044         * lib/wchar.in.h (wcscasecmp): New declaration.
3045         * lib/wcscasecmp.c: New file.
3046         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
3047         * m4/wcscasecmp.m4: New file.
3048         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
3049         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
3050         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
3051         HAVE_WCSCASECMP.
3052         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
3053         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
3054
3055 2011-02-05  Bruno Haible  <bruno@clisp.org>
3056
3057         New module 'wcsncmp'.
3058         * modules/wcsncmp: New file.
3059         * lib/wchar.in.h (wcsncmp): New declaration.
3060         * lib/wcsncmp.c: New file.
3061         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
3062         * m4/wcsncmp.m4: New file.
3063         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
3064         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
3065         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
3066         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
3067         * doc/posix-functions/wcsncmp.texi: Mention the new module.
3068
3069 2011-02-05  Bruno Haible  <bruno@clisp.org>
3070
3071         New module 'wcscmp'.
3072         * modules/wcscmp: New file.
3073         * lib/wchar.in.h (wcscmp): New declaration.
3074         * lib/wcscmp.c: New file.
3075         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
3076         * m4/wcscmp.m4: New file.
3077         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
3078         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
3079         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
3080         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
3081         * doc/posix-functions/wcscmp.texi: Mention the new module.
3082
3083 2011-02-05  Bruno Haible  <bruno@clisp.org>
3084
3085         New module 'wcsncat'.
3086         * modules/wcsncat: New file.
3087         * lib/wchar.in.h (wcsncat): New declaration.
3088         * lib/wcsncat.c: New file.
3089         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
3090         * m4/wcsncat.m4: New file.
3091         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
3092         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
3093         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
3094         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
3095         * doc/posix-functions/wcsncat.texi: Mention the new module.
3096
3097 2011-02-05  Bruno Haible  <bruno@clisp.org>
3098
3099         New module 'wcscat'.
3100         * modules/wcscat: New file.
3101         * lib/wchar.in.h (wcscat): New declaration.
3102         * lib/wcscat.c: New file.
3103         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
3104         * m4/wcscat.m4: New file.
3105         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
3106         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
3107         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
3108         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
3109         * doc/posix-functions/wcscat.texi: Mention the new module.
3110
3111 2011-02-05  Bruno Haible  <bruno@clisp.org>
3112
3113         New module 'wcpncpy'.
3114         * modules/wcpncpy: New file.
3115         * lib/wchar.in.h (wcpncpy): New declaration.
3116         * lib/wcpncpy.c: New file.
3117         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
3118         * m4/wcpncpy.m4: New file.
3119         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
3120         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
3121         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
3122         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
3123         * doc/posix-functions/wcpncpy.texi: Mention the new module.
3124
3125 2011-02-05  Bruno Haible  <bruno@clisp.org>
3126
3127         New module 'wcsncpy'.
3128         * modules/wcsncpy: New file.
3129         * lib/wchar.in.h (wcsncpy): New declaration.
3130         * lib/wcsncpy.c: New file.
3131         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
3132         * m4/wcsncpy.m4: New file.
3133         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
3134         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
3135         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
3136         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
3137         * doc/posix-functions/wcsncpy.texi: Mention the new module.
3138
3139 2011-02-05  Bruno Haible  <bruno@clisp.org>
3140
3141         New module 'wcpcpy'.
3142         * modules/wcpcpy: New file.
3143         * lib/wchar.in.h (wcpcpy): New declaration.
3144         * lib/wcpcpy.c: New file.
3145         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
3146         * m4/wcpcpy.m4: New file.
3147         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
3148         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
3149         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
3150         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
3151         * doc/posix-functions/wcpcpy.texi: Mention the new module.
3152
3153 2011-02-05  Bruno Haible  <bruno@clisp.org>
3154
3155         New module 'wcscpy'.
3156         * modules/wcscpy: New file.
3157         * lib/wchar.in.h (wcscpy): New declaration.
3158         * lib/wcscpy.c: New file.
3159         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
3160         * m4/wcscpy.m4: New file.
3161         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
3162         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
3163         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
3164         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
3165         * doc/posix-functions/wcscpy.texi: Mention the new module.
3166
3167 2011-02-05  Bruno Haible  <bruno@clisp.org>
3168
3169         New module 'wcsnlen'.
3170         * modules/wcsnlen: New file.
3171         * lib/wchar.in.h (wcsnlen): New declaration.
3172         * lib/wcsnlen.c: New file.
3173         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
3174         * m4/wcsnlen.m4: New file.
3175         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
3176         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
3177         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
3178         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
3179         * doc/posix-functions/wcsnlen.texi: Mention the new module.
3180
3181 2011-02-05  Bruno Haible  <bruno@clisp.org>
3182
3183         New module 'wcslen'.
3184         * modules/wcslen: New file.
3185         * lib/wchar.in.h (wcslen): New declaration.
3186         * lib/wcslen.c: New file.
3187         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
3188         * m4/wcslen.m4: New file.
3189         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
3190         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
3191         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
3192         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
3193         * doc/posix-functions/wcslen.texi: Mention the new module.
3194
3195 2011-02-05  Bruno Haible  <bruno@clisp.org>
3196
3197         New module 'wmemset'.
3198         * modules/wmemset: New file.
3199         * lib/wchar.in.h (wmemset): New declaration.
3200         * lib/wmemset.c: New file.
3201         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
3202         * m4/wmemset.m4: New file.
3203         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
3204         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
3205         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
3206         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
3207         * doc/posix-functions/wmemset.texi: Mention the new module.
3208
3209 2011-02-05  Bruno Haible  <bruno@clisp.org>
3210
3211         New module 'wmemmove'.
3212         * modules/wmemmove: New file.
3213         * lib/wchar.in.h (wmemmove): New declaration.
3214         * lib/wmemmove.c: New file.
3215         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
3216         * m4/wmemmove.m4: New file.
3217         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
3218         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
3219         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
3220         HAVE_WMEMMOVE.
3221         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
3222         * doc/posix-functions/wmemmove.texi: Mention the new module.
3223
3224 2011-02-05  Bruno Haible  <bruno@clisp.org>
3225
3226         New module 'wmemcpy'.
3227         * modules/wmemcpy: New file.
3228         * lib/wchar.in.h (wmemcpy): New declaration.
3229         * lib/wmemcpy.c: New file.
3230         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
3231         * m4/wmemcpy.m4: New file.
3232         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
3233         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
3234         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
3235         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
3236         * doc/posix-functions/wmemcpy.texi: Mention the new module.
3237
3238 2011-02-05  Bruno Haible  <bruno@clisp.org>
3239
3240         New module 'wmemcmp'.
3241         * modules/wmemcmp: New file.
3242         * lib/wchar.in.h (wmemcmp): New declaration.
3243         * lib/wmemcmp.c: New file.
3244         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
3245         * m4/wmemcmp.m4: New file.
3246         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
3247         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
3248         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
3249         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
3250         * doc/posix-functions/wmemcmp.texi: Mention the new module.
3251
3252 2011-02-07  Jim Meyering  <meyering@redhat.com>
3253
3254         di-set, ino-map: new modules, from coreutils
3255         * lib/di-set.c: New file.
3256         * lib/di-set.h: Likewise.
3257         * lib/ino-map.c: Likewise.
3258         * lib/ino-map.h: Likewise.
3259         * modules/di-set: Likewise.
3260         * modules/di-set-tests: Likewise.
3261         * modules/ino-map: Likewise.
3262         * modules/ino-map-tests: Likewise.
3263         * tests/test-di-set.c: Likewise.
3264         * tests/test-ino-map.c: Likewise.
3265
3266 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
3267
3268         getloadavg: merge minor changes from Emacs
3269
3270         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
3271         (getloadavg): Use memset, not bzero.
3272
3273         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
3274         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3275         clash (bug#86).
3276
3277 2010-11-14  Bruno Haible  <bruno@clisp.org>
3278
3279         Allow multiple gnulib generated replacements to coexist.
3280         * lib/getopt.in.h (struct option): Avoid identical redefinition.
3281         * lib/inttypes.in.h (imaxdiv_t): Likewise.
3282         * lib/langinfo.in.h (nl_item): Likewise.
3283         * lib/math.in.h (_NaN, NAN): Likewise.
3284         * lib/netdb.in.h (struct addrinfo): Likewise.
3285         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
3286         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
3287         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
3288         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
3289         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
3290         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
3291         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
3292         pthread_mutexattr_init, pthread_mutexattr_settype,
3293         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
3294         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
3295         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
3296         pthread_spin_trylock, pthread_spin_unlock): Likewise.
3297         * lib/sched.in.h (struct sched_param): Likewise.
3298         * lib/se-selinux.in.h (security_class_t, security_context_t,
3299         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
3300         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
3301         lsetfilecon, fsetfilecon, security_check_context,
3302         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
3303         Likewise.
3304         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
3305         Likewise.
3306         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
3307         _gl_function_taking_int_returning_void_t, union sigval,
3308         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
3309         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
3310         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3311         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
3312         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
3313         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
3314         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
3315         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
3316         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
3317         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
3318         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
3319         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
3320         socklen_t, rpl_fd_isset): Likewise.
3321         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
3322         * lib/sys_time.in.h (struct timeval): Likewise.
3323         * lib/sys_times.in.h (struct tms): Likewise.
3324         * lib/sys_utsname.in.h (struct utsname):
3325         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
3326         * lib/unistd.in.h (getpagesize): Likewise.
3327         * lib/wchar.in.h (mbstate_t): Likewise.
3328         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3329         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
3330         towlower, towupper): Likewise.
3331         Reported by Sam Steingold <sds@gnu.org>.
3332
3333 2011-02-05  Eric Blake  <eblake@redhat.com>
3334
3335         unsetenv: work around Haiku issues
3336         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
3337         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
3338
3339 2010-12-30  Bruce Korb  <bkorb@gnu.org>
3340
3341         libposix: avoid calling error() within libposix
3342         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
3343         is defined.
3344
3345 2011-02-05  Eric Blake  <eblake@redhat.com>
3346
3347         strerror_r-posix: port to cygwin
3348         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
3349         implementation.
3350         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
3351         * tests/test-strerror_r.c (main): Fix test.
3352         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3353         issue.
3354
3355 2011-02-05  Bruno Haible  <bruno@clisp.org>
3356
3357         New module 'wmemchr'.
3358         * modules/wmemchr: New file.
3359         * lib/wchar.in.h (wmemchr): New declaration.
3360         * lib/wmemchr.c: New file.
3361         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
3362         * m4/wmemchr.m4: New file.
3363         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
3364         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
3365         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
3366         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
3367         * doc/posix-functions/wmemchr.texi: Mention the new module.
3368
3369 2011-02-04  Eric Blake  <eblake@redhat.com>
3370
3371         fdopendir: detect FreeBSD bug
3372         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
3373         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
3374
3375 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
3376
3377         stdbool: do not define HAVE_STDBOOL_H
3378         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
3379         AC_HEADER_STDBOOL.  All uses changed.  Do not define
3380         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
3381         imported from the latest Autoconf git.  It was motivated by Emacs,
3382         which uses gnulib but does not need HAVE_STDBOOL_H.
3383
3384 2011-02-04  Bruno Haible  <bruno@clisp.org>
3385
3386         wcsnrtombs: Prepare for new module wwcsnrtombs.
3387         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
3388         * lib/wcsnrtombs.c: Include it.
3389         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
3390
3391         wcsrtombs: Prepare for new module wwcsrtombs.
3392         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
3393         * lib/wcsrtombs.c: Include it.
3394         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
3395
3396         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
3397         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
3398         * lib/mbsnrtowcs.c: Include it.
3399         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
3400
3401         mbsrtowcs: Prepare for new module mbsrtowwcs.
3402         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
3403         * lib/mbsrtowcs.c: Include it.
3404         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
3405
3406 2011-02-04  Bruno Haible  <bruno@clisp.org>
3407
3408         vasnprintf: Reduce use of malloc for small format strings.
3409         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
3410         (arguments): Add room for the first 7 arguments.
3411         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
3412         (char_directives, u8_directives, u16_directives, u32_directives): Add
3413         room for the first 7 directives.
3414         * lib/printf-parse.c: Include <string.h>.
3415         (PRINTF_PARSE): Change memory handling code so that it uses the first
3416         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
3417         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
3418         Reported by Pádraig Brady <P@draigbrady.com>.
3419
3420 2011-01-31  Eric Blake  <eblake@redhat.com>
3421
3422         dup2: work around Haiku bug
3423         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
3424         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
3425         * doc/posix-functions/dup2.texi (dup2): Document the bug.
3426         * tests/test-dup2.c (main): Enhance test.
3427
3428 2011-01-31  Simon Josefsson  <simon@josefsson.org>
3429
3430         doc: off_t is not available in eglibc 2.11.2 stdio.h.
3431         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
3432         declared by eglibc 2.11.2.
3433         * lib/stdio.in.h: Likewise.
3434
3435 2011-01-31  Eric Blake  <eblake@redhat.com>
3436
3437         ignore-value: add missing test dependency
3438         * tests/test-ignore-value.c: Revert previous change; stdio.h
3439         provides off_t.
3440         * modules/ignore-value-tests (Depends-on): Add missing dependency.
3441
3442 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
3443
3444         mktime: clarify long_int width checking
3445         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
3446         the top level, to make it clearer that the assumption about
3447         long_int width is being checked.  See
3448         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
3449
3450 2011-01-30  Simon Josefsson  <simon@josefsson.org>
3451
3452         ignore-value: Fix self-test.
3453         * tests/test-ignore-value.c: Include sys/types.h for off_t.
3454
3455 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
3456
3457         TYPE_MAXIMUM: avoid theoretically undefined behavior
3458         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
3459         negative number, which the C Standard says has undefined behavior.
3460         In practice this is not a problem, but might as well do it by the book.
3461         Reported by Rich Felker and Eric Blake; see
3462         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
3463         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
3464         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3465         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3466         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
3467         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3468         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
3469
3470         mktime: #undef mktime before #defining it
3471         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
3472
3473         mktime: systematically normalize tm_isdst comparisons
3474         * lib/mktime.c (isdst_differ): New function.
3475         (__mktime_internal): Use it systematically for all isdst comparisons.
3476         This completes the fix for libc BZ #6723, and removes the need for
3477         normalizing tm_isdst.  See
3478         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
3479         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
3480
3481         mktime: fix some integer overflow issues and sidestep the rest
3482
3483         This was prompted by a bug report by Benjamin Lindner for MinGW
3484         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
3485         His bug is due to signed integer overflow (0 - INT_MIN), and I
3486         I scanned through mktime.c looking for other integer overflow
3487         problems, fixing all the bugs I found.
3488
3489         Although the C Standard says the resulting code is still not safe
3490         in the presence of integer overflow, in practice it should be good
3491         enough for all real-world two's-complement implementations, except
3492         for debugging environments that deliberately trap on integer
3493         overflow (e.g., gcc -ftrapv).
3494
3495         * lib/mktime.c (WRAPV): New macro.
3496         (SHR): Also check that long_int and time_t shift right in the
3497         usual way, before using the fast-but-unportable method.
3498         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
3499         used.  The code already assumed two's complement, so there's
3500         no need to test for alternatives.  All uses removed.
3501         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
3502         the C standard.  Problem reported by Rich Felker in
3503         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
3504         (twos_complement_arithmetic): Also check long_int and time_t.
3505         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
3506         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
3507         (__mktime_internal): Avoid integer overflow with unary subtraction
3508         in two instances where -1 - X is an adequate replacement for -X,
3509         since the calculations are approximate.
3510
3511 2011-01-29  Eric Blake  <eblake@redhat.com>
3512
3513         mktime: avoid infinite loop
3514         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
3515         type; behavior is still undefined but portable to all known targets.
3516         Reported by Rich Felker.
3517
3518 2011-01-29  Simon Josefsson  <simon@josefsson.org>
3519
3520         rename, unlink, same-inode: Relicense.
3521         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
3522         * modules/unlink (License): Likewise.
3523         * modules/same-inode (License): Likewise.
3524
3525 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3526
3527         mktime: avoid problems on NetBSD 5 / i386
3528         * lib/mktime.c (long_int): New type.  This works around a problem
3529         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
3530         but time_t is 64 bits, and where I expect the existing code is
3531         wrong in some cases.
3532         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
3533         (ydhms_diff): Bring back the compile-time check for wide-enough
3534         year and yday.
3535
3536         mktime: fix misspelling in comment
3537         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
3538         This merges all recent glibc changes of importance.
3539
3540 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3541
3542         move-if-change: cope with concurrent mv of identical file.
3543         * build-aux/move-if-change (CMPPROG): Accept environment
3544         variable as an override for `cmp'.
3545         (usage): Document CMPPROG.
3546         Adjust comparison to drop stdout.  Cope with failure of mv if
3547         the target file exists and is identical to the source, for
3548         parallel builds.
3549         Report from H.J. Lu against binutils in PR binutils/12283.
3550
3551 2011-01-28  Bruce Korb  <bkorb@gnu.org>
3552
3553         * users.txt: Mention sharutils.
3554
3555 2011-01-28  Simon Josefsson  <simon@josefsson.org>
3556
3557         * users.txt: Mention OATH Toolkit.
3558
3559 2011-01-27  Bruno Haible  <bruno@clisp.org>
3560
3561         Prepare for supporting FreeBSD 10.
3562         * build-aux/config.libpath: Remove handling of freebsd1*.
3563
3564 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
3565
3566         Prepare for supporting FreeBSD 10.
3567         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
3568         match FreeBSD 10.0.
3569
3570 2011-01-27  Bruno Haible  <bruno@clisp.org>
3571
3572         vma-iter, get-rusage-as: Add OpenBSD support.
3573         * modules/vma-iter (configure.ac): Test for mquery.
3574         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
3575         * lib/vma-iter.c: Include <sys/mman.h>.
3576         (vma_iterate): Add an implementation based on mquery().
3577         * lib/resource-ext.h (get_rusage_as): Update comments.
3578         * lib/get-rusage-as.c: Likewise.
3579         * lib/get-rusage-data.c: Likewise.
3580
3581 2011-01-26  Karl Berry  <karl@gnu.org>
3582
3583         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
3584         variables to make it easier to override the makeinfo program used.
3585
3586 2011-01-26  Eric Blake  <eblake@redhat.com>
3587
3588         fcntl: work around Haiku F_DUPFD bugs
3589         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
3590         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
3591         cloexec bit on duplication.
3592         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
3593
3594 2011-01-26  Bruno Haible  <bruno@clisp.org>
3595
3596         Enable memory leak tests on AIX.
3597         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
3598         * tests/test-fprintf-posix3.c (main): Likewise.
3599
3600 2011-01-26  Bruno Haible  <bruno@clisp.org>
3601
3602         Tests for module 'get-rusage-data'.
3603         * modules/get-rusage-data-tests: New file.
3604         * tests/test-get-rusage-data.c: New file.
3605
3606         New module 'get-rusage-data'.
3607         * lib/resource-ext.h (get_rusage_data): New declaration.
3608         * lib/get-rusage-data.c: New file.
3609         * modules/get-rusage-data: New file.
3610
3611 2011-01-25  Bruno Haible  <bruno@clisp.org>
3612
3613         get-rusage-as: Allow for easier testing.
3614         * lib/resource-ext.h (get_rusage_as): Add comment.
3615         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
3616         (main): New function for interactive testing.
3617
3618 2011-01-25  Bruno Haible  <bruno@clisp.org>
3619
3620         vma-iter: Treat Haiku like BeOS.
3621         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
3622         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
3623
3624 2011-01-25  Eric Blake  <eblake@redhat.com>
3625
3626         c-stack: fix regression on cygwin when libsigsegv is present
3627         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
3628
3629 2011-01-24  Bruno Haible  <bruno@clisp.org>
3630
3631         vma-iter: Avoid empty intervals.
3632         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
3633         on an empty interval.
3634
3635 2011-01-24  Jim Meyering  <meyering@redhat.com>
3636
3637         u64: remove unnecessary #include
3638         * lib/u64.h: Don't include <stddef.h>.  It was not used.
3639
3640 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3641
3642         Allow the user to avoid the HAVE_RAW_DECL_* macros.
3643         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
3644
3645 2011-01-23  Bruno Haible  <bruno@clisp.org>
3646
3647         New module 'vma-iter'.
3648         * lib/vma-iter.h: New file.
3649         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
3650         * modules/vma-iter: New file.
3651         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
3652         for get_rusage_as_via_iterator.
3653         (vma_iterate_callback): New function.
3654         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
3655         * modules/get-rusage-as (Depends-on): Add vma-iter.
3656
3657 2011-01-23  Bruno Haible  <bruno@clisp.org>
3658
3659         uninorm: Tweak includes.
3660         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
3661         Reported by Jim Meyering.
3662
3663 2011-01-23  Bruno Haible  <bruno@clisp.org>
3664
3665         get-rusage-as: Improve on NetBSD.
3666         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
3667         /proc, like on FreeBSD.
3668
3669 2011-01-23  Jim Meyering  <meyering@redhat.com>
3670
3671         xreadlink.h: remove unnecessary #include
3672         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
3673
3674         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
3675         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
3676
3677 2011-01-23  Bruno Haible  <bruno@clisp.org>
3678
3679         get-rusage-as: Fix bug.
3680         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
3681         original limit when aborting the first loop.
3682
3683 2011-01-23  Bruno Haible  <bruno@clisp.org>
3684
3685         wctype: Ensure valid C syntax.
3686         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
3687         unconditionally, instead of gl_NEXT_HEADERS conditionally.
3688
3689 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
3690
3691         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
3692         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
3693         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
3694         as they are needed only for configure's test case.
3695         This removes two unnecessary symbols from config.h.
3696
3697         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
3698         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
3699         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
3700         AC_CHECK_HEADERS_ONCE on a header that we also invoke
3701         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
3702         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
3703         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
3704         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3705         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3706         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3707         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3708         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3709         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3710         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3711         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3712         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3713         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3714         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3715
3716 2011-01-21  Eric Blake  <eblake@redhat.com>
3717
3718         maintainer-makefile: work with older git for submodule check
3719         * top/maint.mk (public-submodule-commit): Rewrite to avoid
3720         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
3721         Reported by Matthias Bolte.
3722
3723         bootstrap: minor portability fixes
3724         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
3725         (usage): Omit leading capital and trailing . on help phrases, per
3726         GNU Coding Standards.
3727         (check_versions, top level): Prefix messages with script name.
3728
3729 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
3730
3731         bootstrap: support --no-git option
3732         * build-aux/bootstrap: Add --no-git option, to be used when
3733         --gnulib-srcdir points to the exact desired checkout.
3734
3735 2011-01-21  Eric Blake  <eblake@redhat.com>
3736
3737         strerror_r-posix: work with glibc 2.13
3738         * lib/strerror_r.c (strerror_r): Fix return type.
3739
3740 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3741             Bruno Haible  <bruno@clisp.org>
3742
3743         uN_strstr: New unit tests.
3744         * modules/unistr/u8-strstr-tests: New file.
3745         * modules/unistr/u16-strstr-tests: New file.
3746         * modules/unistr/u32-strstr-tests: New file.
3747         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
3748         * tests/unistr/test-u8-strstr.c: New file.
3749         * tests/unistr/test-u16-strstr.c: New file.
3750         * tests/unistr/test-u32-strstr.c: New file.
3751
3752 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3753             Bruno Haible  <bruno@clisp.org>
3754
3755         Make uN_strstr functions O(n) worst-case.
3756         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
3757         16-bit and 32-bit unit cases, use the unibyte algorithm from
3758         lib/mbsstr.c.
3759         * lib/unistr/u8-strstr.c: Include <string.h>.
3760         (UNIT_IS_UINT8_T): New macro.
3761         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
3762         (U_STRLEN, U_STRNLEN): New macros.
3763         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
3764         (U_STRLEN, U_STRNLEN): New macros.
3765         * modules/unistr/u8-strstr (Depends-on): Add strstr.
3766         (configure.ac): Update required libunistring version.
3767         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
3768         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
3769         malloca.
3770         (configure.ac): Update required libunistring version.
3771         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
3772         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
3773         malloca.
3774         (configure.ac): Update required libunistring version.
3775
3776 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3777             Bruno Haible  <bruno@clisp.org>
3778
3779         Prepare for faster uN_strstr functions.
3780         * lib/str-kmp.h: Support definable UNITs.
3781         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
3782         needle_len argument.
3783         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
3784         * lib/mbscasestr.c (mbscasestr): Likewise.
3785
3786 2011-01-21  Pádraig Brady <P@draigBrady.com>
3787
3788         malloca-tests: make faster by unsetting MALLOC_PERTURB_
3789         * tests/test-malloca.c (main): Unset the environment variable
3790         to greatly speed up the test.
3791         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
3792         * modules/malloca-tests: Depend on unsetenv.
3793
3794 2011-01-21  Pádraig Brady <P@draigBrady.com>
3795
3796         ignore-value: remove stdint dependency
3797         * lib/ignore-value.h: Remove <stdint.h>
3798         * modules/ignore-value: Remove stdint dependency.
3799
3800 2011-01-21  Jim Meyering  <meyering@redhat.com>
3801
3802         maint.mk: adjust variable name to be consistent with other gl_ vars
3803         * top/maint.mk (gl_public_submodule_commit): Rename the variable
3804         to be lower case.
3805
3806 2011-01-20  Jim Meyering  <meyering@redhat.com>
3807
3808         maint.mk: make "check" depend on public-submodule-commit by default
3809         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
3810
3811 2011-01-20  Bruno Haible  <bruno@clisp.org>
3812
3813         mbfile, mbiter: Complete change from 2008-12-21.
3814         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
3815         * m4/mbiter.m4 (gl_MBITER): Likewise.
3816
3817 2011-01-20  Jim Meyering  <meyering@redhat.com>
3818
3819         init.sh: insert space between each function name and "()"
3820         * tests/init.sh: Make it a little easier to see that a function's
3821         name is "warn_", and not "warn" when looking at the first part of
3822         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
3823
3824 2011-01-20  Jim Meyering  <meyering@redhat.com>
3825
3826         mountlist: clean up code formatting
3827         * lib/mountlist.c (read_file_system_list): Split a long line,
3828         correct bracing style, use NULL in place of "(struct statfs *)0",
3829         don't parenthesize return value, add spaces around "=" and after
3830         ";-in-for-stmt".
3831
3832 2011-01-14  Markus Duft <mduft@gentoo.org>
3833
3834         mountlist: add support for Interix
3835         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
3836         Apply statvfs to all entries of /dev/fs.
3837         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
3838         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
3839
3840 2011-01-20  Jim Meyering  <meyering@redhat.com>
3841
3842         maint.mk: improve the public-submodule-commit rule
3843         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
3844         to suppress printing of its commands... unless V=1.
3845         Add git submodule's --quiet option to suppress printing of e.g.,
3846         "Entering gnulib" output.
3847         "cd" into $(srcdir) before running git submodule.
3848
3849 2011-01-20  Bruno Haible  <bruno@clisp.org>
3850
3851         include_next: Fix bug introduced on 2011-01-18.
3852         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
3853         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
3854         ac_cv_header_... variable if the second argument is not 'check'.
3855         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
3856         gl_NEXT_HEADERS_INTERNAL.
3857
3858 2011-01-20  Bruno Haible  <bruno@clisp.org>
3859
3860         Allow the user to avoid the GNULIB_TEST_* macros.
3861         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
3862         Suggested by Paul Eggert.
3863
3864 2011-01-14  Jim Meyering  <meyering@redhat.com>
3865
3866         bootstrap: avoid failure when there is no .gitmodules file
3867         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
3868         has been assigned to, even when its value is the empty string.
3869         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
3870         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
3871         Reported by John W. Eaton <jwe@gnu.org>.
3872
3873 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
3874
3875         assume <ctype.h>, ..., <time.h> exist
3876         For years gnulib has been assuming the existence of the headers
3877         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
3878         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
3879         them, since they don't appear to be needed.
3880         * README (Portability guidelines): Document this.
3881         * lib/flock.c: Assume <fcntl.h> exists.
3882         * lib/regex_internal.h: Assume <locale.h> exists.
3883         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
3884         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
3885         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
3886         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
3887         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
3888         * m4/regex.m4 (gl_REGEX): Likewise.
3889         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
3890         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
3891         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
3892         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
3893         * tests/test-argp.c: Likewise.
3894         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
3895
3896         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
3897         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
3898         AA_APPLE_UNIVERSAL_BUILD.  See
3899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
3900         * NEWS: Document this.
3901
3902 2011-01-19  Eric Blake  <eblake@redhat.com>
3903
3904         c-stack: assume stack overflow if SA_SIGINFO unsupported
3905         * lib/c-stack.c (SIGACTION_WORKS): Rename...
3906         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
3907         sigaction will work.
3908         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
3909         behavior match Linux.
3910         * tests/test-c-stack.c (main): Prefer NULL for pointers.
3911
3912         stdbool-tests: accomodate Haiku
3913         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
3914
3915         binary-io: fix O_TEXT on Haiku
3916         * modules/binary-io (Depends-on): Add fcntl-h.
3917         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
3918         than blindly undefining O_TEXT.
3919         Reported by Scott McCreary.
3920
3921 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3922
3923         include_next: do not check for standard headers like stddef.h
3924
3925         I found this problem when modifying Emacs to use gnulib.
3926         I noticed that it added HAVE_STDDEF_H to config.h, even though
3927         gnulib always assumes <stddef.h> exists as per README and this
3928         symbol is unnecessary.
3929         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
3930         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
3931         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
3932         faster for headers like stddef.h that are known to exist.
3933         (gl_CHECK_NEXT_HEADERS): Use it.
3934         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
3935         rather than gl_CHECK_NEXT_HEADERS.
3936         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
3937         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
3938
3939 2011-01-18  Eric Blake  <eblake@redhat.com>
3940
3941         ansi-c++-opt: skip C++ dependency style if C++ is unused
3942         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
3943         tests when we know C++ compilation is not desired.
3944         Reported by Scott McCreary.
3945
3946 2011-01-18  Bruno Haible  <bruno@clisp.org>
3947
3948         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
3949         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
3950         (main): Perform test also when getrlimit and setrlimit don't exist or
3951         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
3952         limiting the address space size using setrlimit, compare the address
3953         space size before and after the the test.
3954         * tests/test-dprintf-posix2.c: Likewise.
3955         * tests/test-fprintf-posix3.sh: Update skip messages.
3956         * tests/test-dprintf-posix2.sh: Likewise.
3957         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
3958         * modules/dprintf-posix-tests (Depends-on): Likewise.
3959         Reported by Bruce Korb <bkorb@gnu.org> and
3960         Gary V. Vaughan <gary@gnu.org>.
3961
3962 2011-01-18  Bruno Haible  <bruno@clisp.org>
3963
3964         get-rusage-as: Improvement for Cygwin.
3965         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
3966         areas that are merely reserved.
3967
3968 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3969
3970         strftime: remove dependencies on multibyte modules
3971
3972         strftime depended on mbrlen, mbsinit, and wchar, but these modules
3973         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
3974         only if __osf__ is defined, and I suspect OSF doesn't need these
3975         other modules.  If my guess is wrong, we'll need to come up with a
3976         variant of strftime that doesn't need the multibyte modules.
3977
3978         I discovered this problem when attempting modify Emacs to use the
3979         strftime module.  With the previous gnulib, this caused Emacs to
3980         need 31 new files, ranging from lib/config.charset to
3981         m4/wint_t.m4.  This was overkill and I expect would be offputting
3982         to the Emacs maintainers.  After this change, only 6 new files are
3983         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
3984         stdbool.m4, and tm_gmtoff.m4.
3985
3986         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
3987         Suggested by Bruno Haible in
3988         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
3989         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
3990         and do not check for wchar.h.
3991         * modules/strftime (Files): Remove m4/mbstate_t.m4.
3992         (Depends-on): Remove mbrlen, mbsinit, wchar.
3993
3994 2011-01-18  Bruno Haible  <bruno@clisp.org>
3995
3996         Tests for module 'get-rusage-as'.
3997         * modules/get-rusage-as-tests: New file.
3998         * tests/test-get-rusage-as.c: New file.
3999
4000         New module 'get-rusage-as'.
4001         * modules/get-rusage-as: New file.
4002         * lib/resource-ext.h: New file.
4003         * lib/get-rusage-as.c: New file.
4004
4005 2011-01-17  Eric Blake  <eblake@redhat.com>
4006
4007         sigaction: relax license from LGPLv3+ to LGPLv2+
4008         * modules/sigaction (License): Relax to LGPLv2+.
4009
4010 2011-01-14  Bruno Haible  <bruno@clisp.org>
4011
4012         filemode: Make function declarations usable in C++ mode.
4013         * lib/filemode.h: Enclose function declarations in extern "C" block.
4014         Reported by John W. Eaton <jwe@gnu.org>.
4015
4016 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
4017
4018         save-cwd: no longer include "xgetcwd.h"
4019         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
4020         This avoids a compilation failure in projects that use save-cwd
4021         without also using the xgetcwd module.
4022
4023 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4024
4025         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
4026         This is so that a program like Emacs, which needs only dtoastr,
4027         does not have to bother with distributing and compiling ftoastr
4028         and ldtoastr.
4029         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
4030         * modules/dtoastr, modules/ldtoastr: New files.
4031         * modules/ftoastr: Now works just for 'float'.
4032         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
4033         (Makefile.am): Remove ftoastr.h (not needed and no effect),
4034         dtoastr.c, ldtoastr.c.
4035
4036 2011-01-11  Jim Meyering  <meyering@redhat.com>
4037
4038         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
4039         There is no need to work around the lack of the fchdir function,
4040         since gnulib can now provide a replacement when required.
4041         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
4042         * modules/save-cwd (Depends-on): Add fchdir.
4043
4044 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4045
4046         openat, save-cwd: avoid xmalloc
4047
4048         This removes a direct (but undocumented) dependency of openat on
4049         xalloc, along with an indirect dependency via save-cwd.  It also
4050         removes a dependency of save-cwd on xgetcwd, and thereby
4051         indirectly on xalloc.  This change causes the openat substitute
4052         to fall back on save_cwd when memory is tight, and for save_cwd to
4053         fail instead of dying when memory is tight, but that's good enough.
4054         Problem and initial idea for fix reported by Bastien Roucaries in
4055         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
4056
4057         * lib/openat-proc.c: Include stdlib.h (for malloc), not
4058         xalloc.h (for xmalloc).
4059         (openat_proc_name): Use malloc, not xmalloc.
4060         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
4061         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
4062
4063         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
4064         This avoids heap allocation for file names whose lengths are in
4065         the range 512..1023, with the upper bound increasing to at most
4066         4031 depending on the platform's PATH_MAX.  (We do not want
4067         pathmax.h here as it might supply a non-constant PATH_MAX.)
4068         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
4069         Perhaps they should be moved to malloca.h?
4070         (OPENAT_BUFFER_SIZE): Use them.
4071
4072 2011-01-10  Bruno Haible  <bruno@clisp.org>
4073
4074         doc: Update users.txt.
4075         * users.txt: Add recutils.
4076
4077 2011-01-09  Karl Berry  <karl@gnu.org>
4078
4079         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
4080
4081         * doc/configmake.texi: New file.
4082         * doc/gnulib.texi: Include it.
4083         * modules/configmake: Move documentation from here.
4084
4085 2011-01-09  Bruno Haible  <bruno@clisp.org>
4086
4087         Update to Unicode 6.0.0.
4088         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
4089         (get_lbp): Update for Unicode 6.0.0.
4090         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
4091         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
4092         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
4093         U+11001, U+11038..U+11046. Remove U+06DE.
4094         (uc_width): Fix bounds of planes.
4095         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4096         lib/uniwidth/width.c.
4097         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
4098         trailing whitespace removed.
4099         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
4100         without comments, but with the original copyright notice.
4101         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
4102         * lib/unicase/ignorable.h: Likewise.
4103         * lib/unicase/tocasefold.h: Likewise.
4104         * lib/unicase/tolower.h: Likewise.
4105         * lib/unicase/totitle.h: Likewise.
4106         * lib/unicase/toupper.h: Likewise.
4107         * lib/unictype/bidi_of.h: Likewise.
4108         * lib/unictype/blocks.h: Likewise.
4109         * lib/unictype/categ_C.h: Likewise.
4110         * lib/unictype/categ_Cn.h: Likewise.
4111         * lib/unictype/categ_L.h: Likewise.
4112         * lib/unictype/categ_Ll.h: Likewise.
4113         * lib/unictype/categ_Lm.h: Likewise.
4114         * lib/unictype/categ_Lo.h: Likewise.
4115         * lib/unictype/categ_Lu.h: Likewise.
4116         * lib/unictype/categ_M.h: Likewise.
4117         * lib/unictype/categ_Mc.h: Likewise.
4118         * lib/unictype/categ_Me.h: Likewise.
4119         * lib/unictype/categ_Mn.h: Likewise.
4120         * lib/unictype/categ_N.h: Likewise.
4121         * lib/unictype/categ_Nd.h: Likewise.
4122         * lib/unictype/categ_No.h: Likewise.
4123         * lib/unictype/categ_P.h: Likewise.
4124         * lib/unictype/categ_Po.h: Likewise.
4125         * lib/unictype/categ_S.h: Likewise.
4126         * lib/unictype/categ_Sc.h: Likewise.
4127         * lib/unictype/categ_Sk.h: Likewise.
4128         * lib/unictype/categ_Sm.h: Likewise.
4129         * lib/unictype/categ_So.h: Likewise.
4130         * lib/unictype/categ_of.h: Likewise.
4131         * lib/unictype/combining.h: Likewise.
4132         * lib/unictype/ctype_alnum.h: Likewise.
4133         * lib/unictype/ctype_alpha.h: Likewise.
4134         * lib/unictype/ctype_graph.h: Likewise.
4135         * lib/unictype/ctype_lower.h: Likewise.
4136         * lib/unictype/ctype_print.h: Likewise.
4137         * lib/unictype/ctype_punct.h: Likewise.
4138         * lib/unictype/ctype_upper.h: Likewise.
4139         * lib/unictype/decdigit.h: Likewise.
4140         * lib/unictype/digit.h: Likewise.
4141         * lib/unictype/numeric.h: Likewise.
4142         * lib/unictype/pr_alphabetic.h: Likewise.
4143         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4144         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4145         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4146         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4147         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4148         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4149         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4150         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4151         * lib/unictype/pr_case_ignorable.h: Likewise.
4152         * lib/unictype/pr_cased.h: Likewise.
4153         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
4154         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
4155         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
4156         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
4157         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
4158         * lib/unictype/pr_combining.h: Likewise.
4159         * lib/unictype/pr_composite.h: Likewise.
4160         * lib/unictype/pr_currency_symbol.h: Likewise.
4161         * lib/unictype/pr_decimal_digit.h: Likewise.
4162         * lib/unictype/pr_deprecated.h: Likewise.
4163         * lib/unictype/pr_format_control.h: Likewise.
4164         * lib/unictype/pr_grapheme_base.h: Likewise.
4165         * lib/unictype/pr_grapheme_extend.h: Likewise.
4166         * lib/unictype/pr_grapheme_link.h: Likewise.
4167         * lib/unictype/pr_id_continue.h: Likewise.
4168         * lib/unictype/pr_id_start.h: Likewise.
4169         * lib/unictype/pr_ideographic.h: Likewise.
4170         * lib/unictype/pr_lowercase.h: Likewise.
4171         * lib/unictype/pr_math.h: Likewise.
4172         * lib/unictype/pr_numeric.h: Likewise.
4173         * lib/unictype/pr_other_alphabetic.h: Likewise.
4174         * lib/unictype/pr_other_id_continue.h: Likewise.
4175         * lib/unictype/pr_other_math.h: Likewise.
4176         * lib/unictype/pr_punctuation.h: Likewise.
4177         * lib/unictype/pr_sentence_terminal.h: Likewise.
4178         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4179         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4180         * lib/unictype/pr_unified_ideograph.h: Likewise.
4181         * lib/unictype/pr_uppercase.h: Likewise.
4182         * lib/unictype/pr_xid_continue.h: Likewise.
4183         * lib/unictype/pr_xid_start.h: Likewise.
4184         * lib/unictype/scripts.h: Likewise.
4185         * lib/unictype/scripts_byname.gperf: Likewise.
4186         * lib/unictype/sy_java_ident.h: Likewise.
4187         * lib/unigbrk/gbrkprop.h: Likewise.
4188         * lib/unilbrk/lbrkprop1.h: Likewise.
4189         * lib/unilbrk/lbrkprop2.h: Likewise.
4190         * lib/uninorm/decomposition-table2.h: Likewise.
4191         * lib/uniwbrk/wbrkprop.h: Likewise.
4192         * tests/unicase/test-cased.c: Likewise.
4193         * tests/unicase/test-ignorable.c: Likewise.
4194         * tests/unicase/test-uc_tolower.c: Likewise.
4195         * tests/unicase/test-uc_totitle.c: Likewise.
4196         * tests/unicase/test-uc_toupper.c: Likewise.
4197         * tests/unictype/test-categ_C.c: Likewise.
4198         * tests/unictype/test-categ_Cn.c: Likewise.
4199         * tests/unictype/test-categ_L.c: Likewise.
4200         * tests/unictype/test-categ_Ll.c: Likewise.
4201         * tests/unictype/test-categ_Lm.c: Likewise.
4202         * tests/unictype/test-categ_Lo.c: Likewise.
4203         * tests/unictype/test-categ_Lu.c: Likewise.
4204         * tests/unictype/test-categ_M.c: Likewise.
4205         * tests/unictype/test-categ_Mc.c: Likewise.
4206         * tests/unictype/test-categ_Me.c: Likewise.
4207         * tests/unictype/test-categ_Mn.c: Likewise.
4208         * tests/unictype/test-categ_N.c: Likewise.
4209         * tests/unictype/test-categ_Nd.c: Likewise.
4210         * tests/unictype/test-categ_No.c: Likewise.
4211         * tests/unictype/test-categ_P.c: Likewise.
4212         * tests/unictype/test-categ_Po.c: Likewise.
4213         * tests/unictype/test-categ_S.c: Likewise.
4214         * tests/unictype/test-categ_Sc.c: Likewise.
4215         * tests/unictype/test-categ_Sk.c: Likewise.
4216         * tests/unictype/test-categ_Sm.c: Likewise.
4217         * tests/unictype/test-categ_So.c: Likewise.
4218         * tests/unictype/test-ctype_alnum.c: Likewise.
4219         * tests/unictype/test-ctype_alpha.c: Likewise.
4220         * tests/unictype/test-ctype_graph.c: Likewise.
4221         * tests/unictype/test-ctype_lower.c: Likewise.
4222         * tests/unictype/test-ctype_print.c: Likewise.
4223         * tests/unictype/test-ctype_punct.c: Likewise.
4224         * tests/unictype/test-ctype_upper.c: Likewise.
4225         * tests/unictype/test-decdigit.h: Likewise.
4226         * tests/unictype/test-digit.h: Likewise.
4227         * tests/unictype/test-numeric.h: Likewise.
4228         * tests/unictype/test-pr_alphabetic.c: Likewise.
4229         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4230         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4231         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4232         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4233         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4234         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4235         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4236         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4237         * tests/unictype/test-pr_case_ignorable.c: Likewise.
4238         * tests/unictype/test-pr_cased.c: Likewise.
4239         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
4240         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
4241         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
4242         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
4243         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
4244         * tests/unictype/test-pr_combining.c: Likewise.
4245         * tests/unictype/test-pr_composite.c: Likewise.
4246         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4247         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4248         * tests/unictype/test-pr_deprecated.c: Likewise.
4249         * tests/unictype/test-pr_format_control.c: Likewise.
4250         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4251         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4252         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4253         * tests/unictype/test-pr_id_continue.c: Likewise.
4254         * tests/unictype/test-pr_id_start.c: Likewise.
4255         * tests/unictype/test-pr_ideographic.c: Likewise.
4256         * tests/unictype/test-pr_lowercase.c: Likewise.
4257         * tests/unictype/test-pr_math.c: Likewise.
4258         * tests/unictype/test-pr_numeric.c: Likewise.
4259         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4260         * tests/unictype/test-pr_other_id_continue.c: Likewise.
4261         * tests/unictype/test-pr_other_math.c: Likewise.
4262         * tests/unictype/test-pr_punctuation.c: Likewise.
4263         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4264         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4265         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4266         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4267         * tests/unictype/test-pr_uppercase.c: Likewise.
4268         * tests/unictype/test-pr_xid_continue.c: Likewise.
4269         * tests/unictype/test-pr_xid_start.c: Likewise.
4270         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4271         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4272         changes.
4273         * lib/unictype/categ_Cc.h: Likewise.
4274         * lib/unictype/categ_Cf.h: Likewise.
4275         * lib/unictype/categ_Co.h: Likewise.
4276         * lib/unictype/categ_Cs.h: Likewise.
4277         * lib/unictype/categ_Lt.h: Likewise.
4278         * lib/unictype/categ_Nl.h: Likewise.
4279         * lib/unictype/categ_Pc.h: Likewise.
4280         * lib/unictype/categ_Pd.h: Likewise.
4281         * lib/unictype/categ_Pe.h: Likewise.
4282         * lib/unictype/categ_Pf.h: Likewise.
4283         * lib/unictype/categ_Pi.h: Likewise.
4284         * lib/unictype/categ_Ps.h: Likewise.
4285         * lib/unictype/categ_Z.h: Likewise.
4286         * lib/unictype/categ_Zl.h: Likewise.
4287         * lib/unictype/categ_Zp.h: Likewise.
4288         * lib/unictype/categ_Zs.h: Likewise.
4289         * lib/unictype/ctype_blank.h: Likewise.
4290         * lib/unictype/ctype_cntrl.h: Likewise.
4291         * lib/unictype/ctype_digit.h: Likewise.
4292         * lib/unictype/ctype_space.h: Likewise.
4293         * lib/unictype/ctype_xdigit.h: Likewise.
4294         * lib/unictype/mirror.h: Likewise.
4295         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4296         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4297         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4298         * lib/unictype/pr_bidi_control.h: Likewise.
4299         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4300         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4301         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4302         * lib/unictype/pr_bidi_pdf.h: Likewise.
4303         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4304         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4305         * lib/unictype/pr_dash.h: Likewise.
4306         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4307         * lib/unictype/pr_diacritic.h: Likewise.
4308         * lib/unictype/pr_extender.h: Likewise.
4309         * lib/unictype/pr_hex_digit.h: Likewise.
4310         * lib/unictype/pr_hyphen.h: Likewise.
4311         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4312         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4313         * lib/unictype/pr_ignorable_control.h: Likewise.
4314         * lib/unictype/pr_iso_control.h: Likewise.
4315         * lib/unictype/pr_join_control.h: Likewise.
4316         * lib/unictype/pr_left_of_pair.h: Likewise.
4317         * lib/unictype/pr_line_separator.h: Likewise.
4318         * lib/unictype/pr_logical_order_exception.h: Likewise.
4319         * lib/unictype/pr_non_break.h: Likewise.
4320         * lib/unictype/pr_not_a_character.h: Likewise.
4321         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4322         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4323         * lib/unictype/pr_other_id_start.h: Likewise.
4324         * lib/unictype/pr_other_lowercase.h: Likewise.
4325         * lib/unictype/pr_other_uppercase.h: Likewise.
4326         * lib/unictype/pr_paired_punctuation.h: Likewise.
4327         * lib/unictype/pr_paragraph_separator.h: Likewise.
4328         * lib/unictype/pr_pattern_syntax.h: Likewise.
4329         * lib/unictype/pr_pattern_white_space.h: Likewise.
4330         * lib/unictype/pr_private_use.h: Likewise.
4331         * lib/unictype/pr_quotation_mark.h: Likewise.
4332         * lib/unictype/pr_radical.h: Likewise.
4333         * lib/unictype/pr_soft_dotted.h: Likewise.
4334         * lib/unictype/pr_space.h: Likewise.
4335         * lib/unictype/pr_titlecase.h: Likewise.
4336         * lib/unictype/pr_variation_selector.h: Likewise.
4337         * lib/unictype/pr_white_space.h: Likewise.
4338         * lib/unictype/pr_zero_width.h: Likewise.
4339         * lib/unictype/sy_c_ident.h: Likewise.
4340         * lib/unictype/sy_c_whitespace.h: Likewise.
4341         * lib/unictype/sy_java_whitespace.h: Likewise.
4342         * lib/uninorm/composition-table.gperf: Likewise.
4343         * lib/uninorm/decomposition-table1.h: Likewise.
4344         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
4345         LB8.
4346         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4347         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4348         * modules/unictype/*: Bump version number of expected libunistring
4349         version.
4350
4351 2011-01-09  Bruno Haible  <bruno@clisp.org>
4352
4353         Update to Unicode 5.2.0.
4354         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
4355         trailing whitespace removed.
4356
4357 2011-01-09  Bruno Haible  <bruno@clisp.org>
4358
4359         New Unicode character properties, from Unicode 5.2.0.
4360         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
4361         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
4362         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
4363         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
4364         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
4365         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
4366         uc_is_property_cased, uc_is_property_case_ignorable,
4367         uc_is_property_changes_when_lowercased,
4368         uc_is_property_changes_when_uppercased,
4369         uc_is_property_changes_when_titlecased,
4370         uc_is_property_changes_when_casefolded,
4371         uc_is_property_changes_when_casemapped): New declarations.
4372         * lib/unictype/pr_byname.gperf: Add the new properties.
4373         * modules/unictype/property-byname (Depends-on): Depend on the new
4374         properties modules.
4375         * modules/unictype/property-all (Depends-on): Likewise.
4376         * MODULES.html.sh (Unicode string functions): Add
4377         unictype/property-case-ignorable, unictype/property-cased,
4378         unictype/property-changes-when-casefolded,
4379         unictype/property-changes-when-casemapped,
4380         unictype/property-changes-when-lowercased,
4381         unictype/property-changes-when-titlecased,
4382         unictype/property-changes-when-uppercased.
4383
4384         New module 'unictype/property-changes-when-casemapped'.
4385         * modules/unictype/property-changes-when-casemapped: New file.
4386         * lib/unictype/pr_changes_when_casemapped.c: New file.
4387         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
4388         generated by gen-uni-tables.
4389         * modules/unictype/property-changes-when-casemapped-tests: New file.
4390         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
4391         automatically generated by gen-uni-tables.
4392
4393         New module 'unictype/property-changes-when-casefolded'.
4394         * modules/unictype/property-changes-when-casefolded: New file.
4395         * lib/unictype/pr_changes_when_casefolded.c: New file.
4396         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
4397         generated by gen-uni-tables.
4398         * modules/unictype/property-changes-when-casefolded-tests: New file.
4399         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
4400         automatically generated by gen-uni-tables.
4401
4402         New module 'unictype/property-changes-when-titlecased'.
4403         * modules/unictype/property-changes-when-titlecased: New file.
4404         * lib/unictype/pr_changes_when_titlecased.c: New file.
4405         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
4406         generated by gen-uni-tables.
4407         * modules/unictype/property-changes-when-titlecased-tests: New file.
4408         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
4409         automatically generated by gen-uni-tables.
4410
4411         New module 'unictype/property-changes-when-uppercased'.
4412         * modules/unictype/property-changes-when-uppercased: New file.
4413         * lib/unictype/pr_changes_when_uppercased.c: New file.
4414         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
4415         generated by gen-uni-tables.
4416         * modules/unictype/property-changes-when-uppercased-tests: New file.
4417         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
4418         automatically generated by gen-uni-tables.
4419
4420         New module 'unictype/property-changes-when-lowercased'.
4421         * modules/unictype/property-changes-when-lowercased: New file.
4422         * lib/unictype/pr_changes_when_lowercased.c: New file.
4423         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
4424         generated by gen-uni-tables.
4425         * modules/unictype/property-changes-when-lowercased-tests: New file.
4426         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
4427         automatically generated by gen-uni-tables.
4428
4429         New module 'unictype/property-case-ignorable'.
4430         * modules/unictype/property-case-ignorable: New file.
4431         * lib/unictype/pr_case_ignorable.c: New file.
4432         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
4433         by gen-uni-tables.
4434         * modules/unictype/property-case-ignorable-tests: New file.
4435         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
4436         generated by gen-uni-tables.
4437
4438         New module 'unictype/property-cased'.
4439         * modules/unictype/property-cased: New file.
4440         * lib/unictype/pr_cased.c: New file.
4441         * lib/unictype/pr_cased.h: New file, automatically generated by
4442         gen-uni-tables.
4443         * modules/unictype/property-cased-tests: New file.
4444         * tests/unictype/test-pr_cased.c: New file, automatically generated by
4445         gen-uni-tables.
4446
4447 2011-01-09  Bruno Haible  <bruno@clisp.org>
4448
4449         Update to Unicode 5.2.0.
4450         * lib/gen-uni-tables.c (output_predicate, output_category,
4451         output_combclass, output_bidi_category, output_decimal_digit_test,
4452         output_decimal_digit, output_digit_test, output_digit,
4453         output_numeric_test, output_numeric, output_mirror, output_scripts,
4454         output_scripts_byname, output_blocks, output_ident_category): Fix
4455         comment header.
4456         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
4457         get_wbp.
4458         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
4459         items.
4460         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
4461         Changes_When_Lowercased, Changes_When_Uppercased,
4462         Changes_When_Titlecased, Changes_When_Casefolded,
4463         Changes_When_Casemapped.
4464         (is_property_alphabetic, is_property_default_ignorable_code_point):
4465         Update for Unicode 5.2.0.
4466         (is_property_cased, is_property_case_ignorable,
4467         is_property_changes_when_lowercased,
4468         is_property_changes_when_uppercased,
4469         is_property_changes_when_titlecased,
4470         is_property_changes_when_casefolded,
4471         is_property_changes_when_casemapped): New functions.
4472         (output_properties): Output also the properties cased, case_ignorable,
4473         changes_when_lowercased, changes_when_uppercased,
4474         changes_when_titlecased, changes_when_casefolded,
4475         changes_when_casemapped.
4476         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
4477         Unicode TR#11 revision 17 -> 19.
4478         (LBP_CP): New enumeration value.
4479         (LBP_*): Adjust values accordingly.
4480         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4481         TR#14 revision 22 -> 24.
4482         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
4483         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
4484         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4485         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
4486         is_WBP_MIDLETTER.
4487         (output_composition_tables): Allow for 24 bits instead of 16 bits in
4488         the code1 and code2 of each composition rule.
4489         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
4490         * lib/unicase/ignorable.h: Likewise.
4491         * lib/unicase/tocasefold.h: Likewise.
4492         * lib/unicase/tolower.h: Likewise.
4493         * lib/unicase/totitle.h: Likewise.
4494         * lib/unicase/toupper.h: Likewise.
4495         * lib/unictype/bidi_of.h: Likewise.
4496         * lib/unictype/blocks.h: Likewise.
4497         * lib/unictype/categ_C.h: Likewise.
4498         * lib/unictype/categ_Cf.h: Likewise.
4499         * lib/unictype/categ_Cn.h: Likewise.
4500         * lib/unictype/categ_L.h: Likewise.
4501         * lib/unictype/categ_Ll.h: Likewise.
4502         * lib/unictype/categ_Lm.h: Likewise.
4503         * lib/unictype/categ_Lo.h: Likewise.
4504         * lib/unictype/categ_Lu.h: Likewise.
4505         * lib/unictype/categ_M.h: Likewise.
4506         * lib/unictype/categ_Mc.h: Likewise.
4507         * lib/unictype/categ_Mn.h: Likewise.
4508         * lib/unictype/categ_N.h: Likewise.
4509         * lib/unictype/categ_Nd.h: Likewise.
4510         * lib/unictype/categ_Nl.h: Likewise.
4511         * lib/unictype/categ_No.h: Likewise.
4512         * lib/unictype/categ_P.h: Likewise.
4513         * lib/unictype/categ_Pd.h: Likewise.
4514         * lib/unictype/categ_Po.h: Likewise.
4515         * lib/unictype/categ_S.h: Likewise.
4516         * lib/unictype/categ_Sc.h: Likewise.
4517         * lib/unictype/categ_So.h: Likewise.
4518         * lib/unictype/categ_of.h: Likewise.
4519         * lib/unictype/combining.h: Likewise.
4520         * lib/unictype/ctype_alnum.h: Likewise.
4521         * lib/unictype/ctype_alpha.h: Likewise.
4522         * lib/unictype/ctype_graph.h: Likewise.
4523         * lib/unictype/ctype_lower.h: Likewise.
4524         * lib/unictype/ctype_print.h: Likewise.
4525         * lib/unictype/ctype_punct.h: Likewise.
4526         * lib/unictype/ctype_upper.h: Likewise.
4527         * lib/unictype/decdigit.h: Likewise.
4528         * lib/unictype/digit.h: Likewise.
4529         * lib/unictype/numeric.h: Likewise.
4530         * lib/unictype/pr_alphabetic.h: Likewise.
4531         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4532         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4533         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4534         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4535         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4536         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4537         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4538         * lib/unictype/pr_combining.h: Likewise.
4539         * lib/unictype/pr_composite.h: Likewise.
4540         * lib/unictype/pr_currency_symbol.h: Likewise.
4541         * lib/unictype/pr_dash.h: Likewise.
4542         * lib/unictype/pr_decimal_digit.h: Likewise.
4543         * lib/unictype/pr_deprecated.h: Likewise.
4544         * lib/unictype/pr_diacritic.h: Likewise.
4545         * lib/unictype/pr_extender.h: Likewise.
4546         * lib/unictype/pr_grapheme_base.h: Likewise.
4547         * lib/unictype/pr_grapheme_extend.h: Likewise.
4548         * lib/unictype/pr_grapheme_link.h: Likewise.
4549         * lib/unictype/pr_id_continue.h: Likewise.
4550         * lib/unictype/pr_id_start.h: Likewise.
4551         * lib/unictype/pr_ideographic.h: Likewise.
4552         * lib/unictype/pr_ignorable_control.h: Likewise.
4553         * lib/unictype/pr_logical_order_exception.h: Likewise.
4554         * lib/unictype/pr_lowercase.h: Likewise.
4555         * lib/unictype/pr_numeric.h: Likewise.
4556         * lib/unictype/pr_other_alphabetic.h: Likewise.
4557         * lib/unictype/pr_punctuation.h: Likewise.
4558         * lib/unictype/pr_sentence_terminal.h: Likewise.
4559         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4560         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4561         * lib/unictype/pr_unified_ideograph.h: Likewise.
4562         * lib/unictype/pr_uppercase.h: Likewise.
4563         * lib/unictype/pr_xid_continue.h: Likewise.
4564         * lib/unictype/pr_xid_start.h: Likewise.
4565         * lib/unictype/pr_zero_width.h: Likewise.
4566         * lib/unictype/scripts.h: Likewise.
4567         * lib/unictype/scripts_byname.gperf: Likewise.
4568         * lib/unictype/sy_java_ident.h: Likewise.
4569         * lib/unigbrk/gbrkprop.h: Likewise.
4570         * lib/unilbrk/lbrkprop1.h: Likewise.
4571         * lib/unilbrk/lbrkprop2.h: Likewise.
4572         * lib/unilbrk/lbrktables.h: Likewise.
4573         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
4574         LBP_CP. Implement rule LB30.
4575         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
4576         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
4577         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
4578         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
4579         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
4580         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
4581         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
4582         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
4583         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
4584         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
4585         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
4586         bits instead of 16 bits in the code1 and code2 of each composition
4587         rule.
4588         (uc_composition): Update for Unicode 5.2.0.
4589         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
4590         * lib/uninorm/decomposition-table2.h: Likewise.
4591         * lib/uniwbrk/wbrkprop.h: Likewise.
4592         * tests/unicase/test-cased.c: Likewise.
4593         * tests/unicase/test-ignorable.c: Likewise.
4594         * tests/unicase/test-uc_tolower.c: Likewise.
4595         * tests/unicase/test-uc_totitle.c: Likewise.
4596         * tests/unicase/test-uc_toupper.c: Likewise.
4597         * tests/unictype/test-categ_C.c: Likewise.
4598         * tests/unictype/test-categ_Cf.c: Likewise.
4599         * tests/unictype/test-categ_Cn.c: Likewise.
4600         * tests/unictype/test-categ_L.c: Likewise.
4601         * tests/unictype/test-categ_Ll.c: Likewise.
4602         * tests/unictype/test-categ_Lm.c: Likewise.
4603         * tests/unictype/test-categ_Lo.c: Likewise.
4604         * tests/unictype/test-categ_Lu.c: Likewise.
4605         * tests/unictype/test-categ_M.c: Likewise.
4606         * tests/unictype/test-categ_Mc.c: Likewise.
4607         * tests/unictype/test-categ_Mn.c: Likewise.
4608         * tests/unictype/test-categ_N.c: Likewise.
4609         * tests/unictype/test-categ_Nd.c: Likewise.
4610         * tests/unictype/test-categ_Nl.c: Likewise.
4611         * tests/unictype/test-categ_No.c: Likewise.
4612         * tests/unictype/test-categ_P.c: Likewise.
4613         * tests/unictype/test-categ_Pd.c: Likewise.
4614         * tests/unictype/test-categ_Po.c: Likewise.
4615         * tests/unictype/test-categ_S.c: Likewise.
4616         * tests/unictype/test-categ_Sc.c: Likewise.
4617         * tests/unictype/test-categ_So.c: Likewise.
4618         * tests/unictype/test-ctype_alnum.c: Likewise.
4619         * tests/unictype/test-ctype_alpha.c: Likewise.
4620         * tests/unictype/test-ctype_graph.c: Likewise.
4621         * tests/unictype/test-ctype_lower.c: Likewise.
4622         * tests/unictype/test-ctype_print.c: Likewise.
4623         * tests/unictype/test-ctype_punct.c: Likewise.
4624         * tests/unictype/test-ctype_upper.c: Likewise.
4625         * tests/unictype/test-decdigit.h: Likewise.
4626         * tests/unictype/test-digit.h: Likewise.
4627         * tests/unictype/test-numeric.h: Likewise.
4628         * tests/unictype/test-pr_alphabetic.c: Likewise.
4629         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4630         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4631         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
4632         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4633         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4634         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4635         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4636         * tests/unictype/test-pr_combining.c: Likewise.
4637         * tests/unictype/test-pr_composite.c: Likewise.
4638         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4639         * tests/unictype/test-pr_dash.c: Likewise.
4640         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4641         * tests/unictype/test-pr_deprecated.c: Likewise.
4642         * tests/unictype/test-pr_diacritic.c: Likewise.
4643         * tests/unictype/test-pr_extender.c: Likewise.
4644         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4645         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4646         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4647         * tests/unictype/test-pr_id_continue.c: Likewise.
4648         * tests/unictype/test-pr_id_start.c: Likewise.
4649         * tests/unictype/test-pr_ideographic.c: Likewise.
4650         * tests/unictype/test-pr_ignorable_control.c: Likewise.
4651         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
4652         * tests/unictype/test-pr_lowercase.c: Likewise.
4653         * tests/unictype/test-pr_numeric.c: Likewise.
4654         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4655         * tests/unictype/test-pr_punctuation.c: Likewise.
4656         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4657         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4658         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4659         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4660         * tests/unictype/test-pr_uppercase.c: Likewise.
4661         * tests/unictype/test-pr_xid_continue.c: Likewise.
4662         * tests/unictype/test-pr_xid_start.c: Likewise.
4663         * tests/unictype/test-pr_zero_width.c: Likewise.
4664         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4665         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
4666         changed behaviour: line breaking is now disallowed between a letter
4667         or '=' and '('.
4668         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4669         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4670         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
4671         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
4672         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4673         lib/uniwidth/width.c.
4674         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
4675         without comments, but with the original copyright notice.
4676         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4677         changes.
4678         * lib/unictype/categ_Cc.h: Likewise.
4679         * lib/unictype/categ_Co.h: Likewise.
4680         * lib/unictype/categ_Cs.h: Likewise.
4681         * lib/unictype/categ_Lt.h: Likewise.
4682         * lib/unictype/categ_Me.h: Likewise.
4683         * lib/unictype/categ_Pc.h: Likewise.
4684         * lib/unictype/categ_Pe.h: Likewise.
4685         * lib/unictype/categ_Pf.h: Likewise.
4686         * lib/unictype/categ_Pi.h: Likewise.
4687         * lib/unictype/categ_Ps.h: Likewise.
4688         * lib/unictype/categ_Sk.h: Likewise.
4689         * lib/unictype/categ_Sm.h: Likewise.
4690         * lib/unictype/categ_Z.h: Likewise.
4691         * lib/unictype/categ_Zl.h: Likewise.
4692         * lib/unictype/categ_Zp.h: Likewise.
4693         * lib/unictype/categ_Zs.h: Likewise.
4694         * lib/unictype/ctype_blank.h: Likewise.
4695         * lib/unictype/ctype_cntrl.h: Likewise.
4696         * lib/unictype/ctype_digit.h: Likewise.
4697         * lib/unictype/ctype_space.h: Likewise.
4698         * lib/unictype/ctype_xdigit.h: Likewise.
4699         * lib/unictype/mirror.h: Likewise.
4700         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4701         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4702         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4703         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4704         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4705         * lib/unictype/pr_bidi_control.h: Likewise.
4706         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4707         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4708         * lib/unictype/pr_bidi_pdf.h: Likewise.
4709         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4710         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4711         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4712         * lib/unictype/pr_format_control.h: Likewise.
4713         * lib/unictype/pr_hex_digit.h: Likewise.
4714         * lib/unictype/pr_hyphen.h: Likewise.
4715         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4716         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4717         * lib/unictype/pr_iso_control.h: Likewise.
4718         * lib/unictype/pr_join_control.h: Likewise.
4719         * lib/unictype/pr_left_of_pair.h: Likewise.
4720         * lib/unictype/pr_line_separator.h: Likewise.
4721         * lib/unictype/pr_math.h: Likewise.
4722         * lib/unictype/pr_non_break.h: Likewise.
4723         * lib/unictype/pr_not_a_character.h: Likewise.
4724         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4725         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4726         * lib/unictype/pr_other_id_continue.h: Likewise.
4727         * lib/unictype/pr_other_id_start.h: Likewise.
4728         * lib/unictype/pr_other_lowercase.h: Likewise.
4729         * lib/unictype/pr_other_math.h: Likewise.
4730         * lib/unictype/pr_other_uppercase.h: Likewise.
4731         * lib/unictype/pr_paired_punctuation.h: Likewise.
4732         * lib/unictype/pr_paragraph_separator.h: Likewise.
4733         * lib/unictype/pr_pattern_syntax.h: Likewise.
4734         * lib/unictype/pr_pattern_white_space.h: Likewise.
4735         * lib/unictype/pr_private_use.h: Likewise.
4736         * lib/unictype/pr_quotation_mark.h: Likewise.
4737         * lib/unictype/pr_radical.h: Likewise.
4738         * lib/unictype/pr_soft_dotted.h: Likewise.
4739         * lib/unictype/pr_space.h: Likewise.
4740         * lib/unictype/pr_titlecase.h: Likewise.
4741         * lib/unictype/pr_variation_selector.h: Likewise.
4742         * lib/unictype/pr_white_space.h: Likewise.
4743         * lib/unictype/sy_c_ident.h: Likewise.
4744         * lib/unictype/sy_c_whitespace.h: Likewise.
4745         * lib/unictype/sy_java_whitespace.h: Likewise.
4746         * modules/uni*/*: Bump version number of expected libunistring version.
4747         Reported by Simon Josefsson.
4748
4749 2011-01-09  Karl Heuer  <kwzh@gnu.org>
4750
4751         useless-if-before-free: fix typo in --help and make the internal,
4752         automatic version date update process work once again.
4753         --help output contained a NUL character instead of the
4754         backslash-zero that was intended.  Also, the "must lie within
4755         the first 8 lines" line is on line 9, and hence not getting
4756         automatically updated.
4757         * build-aux/useless-if-before-free: Fix the former by adding a
4758         backslash, and the latter by condensing the three lines of what-it-does
4759         to a single line, leaving one line of slack for the future.
4760
4761 2011-01-09  Bruno Haible  <bruno@clisp.org>
4762
4763         uniwidth/width: Fix width of U+1D173..U+1D17A.
4764         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
4765         symbolic_width, output_width_property_test): New functions.
4766         (main): Invoke output_nonspacing_property, output_width_property_test.
4767         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
4768         U+1D173..U+1D17A.
4769         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
4770         1.
4771         * modules/uniwidth/*: Bump version number of expected libunistring
4772         version.
4773         * modules/unilbrk/*: Likewise.
4774
4775 2011-01-08  Bruno Haible  <bruno@clisp.org>
4776
4777         uninorm tests: Preserve copyright of Unicode data file.
4778         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
4779         Mention modifications.
4780
4781 2011-01-08  Bruno Haible  <bruno@clisp.org>
4782
4783         gen-uni-tables: Prepare for Unicode 5.2.0.
4784         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
4785         (debug_output_lbp, output_lbp): Update.
4786
4787 2011-01-08  Bruno Haible  <bruno@clisp.org>
4788
4789         unilbrk: Clarify gen-uni-tables.c code.
4790         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
4791         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
4792         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
4793
4794 2011-01-07  Bruno Haible  <bruno@clisp.org>
4795
4796         strtod: Restore errno when successfully parsing Infinity or NaN.
4797         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
4798         restore the original errno.
4799
4800 2011-01-07  Bruno Haible  <bruno@clisp.org>
4801
4802         remove test: Avoid failure on HP-UX 11.
4803         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
4804
4805 2011-01-07  Bruno Haible  <bruno@clisp.org>
4806
4807         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
4808         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
4809         error code.
4810
4811 2011-01-07  Pádraig Brady <P@draigBrady.com>
4812
4813         ignore-value: fixup comments, and add Eric Blake
4814         as an author since he rewrote the macros.
4815         * lib/ignore-value.h (ignore_value):  State that
4816         we now support aggregates.  Also specify exactly
4817         when the GCC warn_unused_result feature was added.
4818
4819 2011-01-06  Eric Blake  <eblake@redhat.com>
4820
4821         ignore-value: support aggregate types
4822         * lib/ignore-value.h (ignore_value): Provide separate gcc
4823         definition.
4824         * modules/ignore-value-tests: New test module.
4825         * tests/test-ignore-value.c: New test.
4826
4827         maint.mk: improve sc_prohibit_strcmp regex
4828         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
4829         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
4830         definition of STRNEQ.
4831
4832         signal: work around Haiku issue with SIGBUS
4833         * lib/siglist.h: Add comment.
4834         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
4835         strsignal's favoring of SIGSEGV.
4836         * tests/test-signal.c (main): Avoid test failure.
4837         * doc/posix-headers/signal.texi (signal.h): Document the issue.
4838         Reported by Scott McCreary.
4839
4840         maint.mk: add pre-release check to ensure submodule commits are public
4841         * top/maint.mk (public-submodule-commit): New rule.
4842         (submodule-checks): New variable.
4843         (alpha beta stable): Depend on the variable.
4844
4845 2011-01-05  Pádraig Brady <P@draigBrady.com>
4846         and Jim Meyering  <meyering@redhat.com>
4847
4848         ignore-value: make ignore_value more generic; deprecate ignore_ptr
4849         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
4850         (ATTRIBUTE_DEPRECATED): Define.
4851         (_ignore_case): New function.
4852         (ignore_value): New macro, to replace the old function.
4853         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
4854         * modules/ignore-value (Depends-on): Add stdint.
4855
4856 2011-01-04  Eric Blake  <eblake@redhat.com>
4857
4858         doc: regenerate INSTALL
4859         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
4860         @firstparagraphindent support, now that autoconf dropped it.
4861         (INSTALL_PRELUDE): Reinstate old macro.
4862         * doc/install.texi: Resync from autoconf.
4863         * doc/INSTALL: Reflect recent autoconf update.
4864         * doc/INSTALL.ISO: Likewise.
4865         * doc/INSTALL.UTF-8: Likewise.
4866         Reported by Karl Berry.
4867
4868 2011-01-04  Bruce Korb  <address@hidden>
4869
4870         git-version-gen: avoid a sub-shell
4871         * build-aux/git-version-gen: Redirect stderr in `...` via
4872         "exec 2>...", rather than via an added sub-shell.
4873
4874 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
4875
4876         git-version-gen: use (...) rather than sh -c '...'
4877         * build-aux/git-version-gen: Rather than hard-coding a shell's name
4878         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
4879
4880 2011-01-03  Jim Meyering  <meyering@redhat.com>
4881
4882         git-version-gen: convert leading TABs to spaces
4883         * build-aux/git-version-gen: Expand leading TABs.
4884
4885         git-version-gen: handle failed "git rev-list"
4886         * build-aux/git-version-gen: Rather than leaking a "fatal" error
4887         from git and proceeding as if it had succeeded but printed no SHA1
4888         checksums, suppress the diagnostic and handle the failure.
4889         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
4890
4891         git-version-gen: include command name in one more diagnostic
4892         * build-aux/git-version-gen: When the required .tarball-version file
4893         was missing or unreadable, you might see the diagnostic from "cat",
4894         but no trace of the name of the invoking script.  Now, you still see
4895         the diagnostic from cat, but also get one from "git-version-gen: ".
4896         Inspired by a patch from Bruce Korb.
4897
4898         update-copyright: adjust test to match changed code
4899         * tests/test-update-copyright.sh: Change test's expected output
4900         to match new actual output.
4901
4902 2011-01-02  Bruno Haible  <bruno@clisp.org>
4903
4904         getlogin_r: Avoid test failure on HP-UX 11.
4905         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
4906         ERANGE when the second argument is zero.
4907         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
4908         portability problem.
4909
4910 2011-01-02  Bruce Korb  <bkorb@gnu.org>
4911
4912         * build-aux/update-copyright: doc Simon's changes
4913
4914 2011-01-02  Simon Josefsson  <simon@josefsson.org>
4915
4916         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
4917         environment variable.
4918
4919 2011-01-02  Bruno Haible  <bruno@clisp.org>
4920
4921         unigbrk: Avoid gcc warnings.
4922         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
4923         unused variable.
4924         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
4925         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
4926         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
4927         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
4928         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
4929         Change type of first argument to 'const char *'.
4930         (main): Remove unused variable.
4931         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
4932         type of first argument to 'const char *'.
4933         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
4934         Likewise.
4935         (main): Change type of variable 's'.
4936         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
4937         to 'int'.
4938
4939 2011-01-02  Bruno Haible  <bruno@clisp.org>
4940
4941         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
4942         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
4943         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
4944         bug.
4945         * lib/pwrite.c: Undo 2010-12-31 patch.
4946         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
4947
4948 2011-01-02  Bruno Haible  <bruno@clisp.org>
4949
4950         pread: Fix test whether it works.
4951         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
4952
4953 2011-01-02  Bruno Haible  <bruno@clisp.org>
4954
4955         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
4956         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
4957         ends in "6". Don't require a specific month name. Try also the locale
4958         names found on HP-UX 11 and Solaris 7.
4959
4960 2011-01-02  Bruno Haible  <bruno@clisp.org>
4961
4962         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
4963         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
4964         C linkage.
4965         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
4966
4967 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4968
4969         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
4970         for consistency, since the "cluster" term is not used elsewhere.
4971         * lib/unigbrk.in.h: Update name.
4972         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
4973         * lib/unigbrk/u16-grapheme-next.c: Update name.
4974         * lib/unigbrk/u16-grapheme-prev.c: Update name.
4975         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
4976         * lib/unigbrk/u32-grapheme-next.c: Update name.
4977         * lib/unigbrk/u32-grapheme-prev.c: Update name.
4978         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
4979         * lib/unigbrk/u8-grapheme-next.c: Update name.
4980         * lib/unigbrk/u8-grapheme-prev.c: Update name.
4981         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
4982         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
4983         Suggested by Bruno Haible.
4984
4985 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4986
4987         Remove module 'u8-grapheme-len' as too redundant with
4988         'u8-grapheme-next'.
4989         * modules/unigbrk/u8-grapheme-len: Delete file.
4990         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
4991         * lib/unigbrk.in.h: Remove prototype for deleted function.
4992         * lib/unigbrk/u8-grapheme-len.c: Delete file.
4993         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
4994
4995         Remove module 'u16-grapheme-len' as too redundant with
4996         'u16-grapheme-next'.
4997         * modules/unigbrk/u16-grapheme-len: Delete file.
4998         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
4999         * lib/unigbrk.in.h: Remove prototype for deleted function.
5000         * lib/unigbrk/u16-grapheme-len.c: Delete file.
5001         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
5002
5003         Remove module 'u32-grapheme-len' as too redundant with
5004         'u32-grapheme-next'.
5005         * modules/unigbrk/u32-grapheme-len: Delete file.
5006         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
5007         * lib/unigbrk.in.h: Remove prototype for deleted function.
5008         * lib/unigbrk/u32-grapheme-len.c: Delete file.
5009         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
5010
5011         Suggested by Bruno Haible.
5012
5013 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5014
5015         * unigbrk.in.h: Fix typo: "ben" => "been".
5016         Reported by Bruno Haible.
5017
5018 2011-01-01  Jim Meyering  <meyering@redhat.com>
5019
5020         maint: update almost all copyright ranges to include 2011
5021         Run the new "make update-copyright" rule.
5022
5023 2011-01-01  Jim Meyering  <meyering@redhat.com>
5024
5025         maint: update-copyright: exempt doc/INSTALL*
5026         * Makefile (update-copyright): Also exclude doc/INSTALL*,
5027         since they are generated.  Suggested by Bruno Haible.
5028
5029 2011-01-01  Jim Meyering  <meyering@redhat.com>
5030
5031         maint: refine the update-copyright rule
5032         * Makefile (update-copyright): Also exclude any file that includes
5033         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
5034         code that merely generates the comment.
5035
5036 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5037
5038         New module 'u8-grapheme-len'.
5039         * modules/unigbrk/u8-grapheme-len: New file.
5040         * modules/unigbrk/u8-grapheme-len-tests: New file.
5041         * lib/unigbrk.in.h: Add prototype for new function.
5042         * lib/unigbrk/u8-grapheme-len.c: New file.
5043         * tests/unigbrk/test-u8-grapheme-len.c: New file.
5044
5045         New module 'u16-grapheme-len'.
5046         * modules/unigbrk/u16-grapheme-len: New file.
5047         * modules/unigbrk/u16-grapheme-len-tests: New file.
5048         * lib/unigbrk.in.h: Add prototype for new function.
5049         * lib/unigbrk/u16-grapheme-len.c: New file.
5050         * tests/unigbrk/test-u16-grapheme-len.c: New file.
5051
5052         New module 'u32-grapheme-len'.
5053         * modules/unigbrk/u32-grapheme-len: New file.
5054         * modules/unigbrk/u32-grapheme-len-tests: New file.
5055         * lib/unigbrk.in.h: Add prototype for new function.
5056         * lib/unigbrk/u32-grapheme-len.c: New file.
5057         * tests/unigbrk/test-u32-grapheme-len.c: New file.
5058
5059         New module 'u8-grapheme-next'.
5060         * modules/unigbrk/u8-grapheme-next: New file.
5061         * modules/unigbrk/u8-grapheme-next-tests: New file.
5062         * lib/unigbrk.in.h: Add prototype for new function.
5063         * lib/unigbrk/u8-grapheme-next.c: New file.
5064         * tests/unigbrk/test-u8-grapheme-next.c: New file.
5065
5066         New module 'u16-grapheme-next'.
5067         * modules/unigbrk/u16-grapheme-next: New file.
5068         * modules/unigbrk/u16-grapheme-next-tests: New file.
5069         * lib/unigbrk.in.h: Add prototype for new function.
5070         * lib/unigbrk/u16-grapheme-next.c: New file.
5071         * tests/unigbrk/test-u16-grapheme-next.c: New file.
5072
5073         New module 'u32-grapheme-next'.
5074         * modules/unigbrk/u32-grapheme-next: New file.
5075         * modules/unigbrk/u32-grapheme-next-tests: New file.
5076         * lib/unigbrk.in.h: Add prototype for new function.
5077         * lib/unigbrk/u32-grapheme-next.c: New file.
5078         * tests/unigbrk/test-u32-grapheme-next.c: New file.
5079
5080         New module 'u8-grapheme-prev'.
5081         * modules/unigbrk/u8-grapheme-prev: New file.
5082         * modules/unigbrk/u8-grapheme-prev-tests: New file.
5083         * lib/unigbrk.in.h: Add prototype for new function.
5084         * lib/unigbrk/u8-grapheme-prev.c: New file.
5085         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
5086
5087         New module 'u16-grapheme-prev'.
5088         * modules/unigbrk/u16-grapheme-prev: New file.
5089         * modules/unigbrk/u16-grapheme-prev-tests: New file.
5090         * lib/unigbrk.in.h: Add prototype for new function.
5091         * lib/unigbrk/u16-grapheme-prev.c: New file.
5092         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
5093
5094         New module 'u32-grapheme-prev'.
5095         * modules/unigbrk/u32-grapheme-prev: New file.
5096         * modules/unigbrk/u32-grapheme-prev-tests: New file.
5097         * lib/unigbrk.in.h: Add prototype for new function.
5098         * lib/unigbrk/u32-grapheme-prev.c: New file.
5099         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
5100
5101         New module 'u8-grapheme-breaks'.
5102         * modules/unigbrk/u8-grapheme-breaks: New file.
5103         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
5104         * lib/unigbrk.in.h: Add prototype for new function.
5105         * lib/unigbrk/u8-grapheme-breaks.c: New file.
5106         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
5107
5108         New module 'u16-grapheme-breaks'.
5109         * modules/unigbrk/u16-grapheme-breaks: New file.
5110         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
5111         * lib/unigbrk.in.h: Add prototype for new function.
5112         * lib/unigbrk/u16-grapheme-breaks.c: New file.
5113         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
5114
5115         New module 'u32-grapheme-breaks'.
5116         * modules/unigbrk/u32-grapheme-breaks: New file.
5117         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
5118         * lib/unigbrk.in.h: Add prototype for new function.
5119         * lib/unigbrk/u32-grapheme-breaks.c: New file.
5120         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
5121
5122         New module 'ulc-grapheme-breaks'.
5123         * modules/unigbrk/ulc-grapheme-breaks: New file.
5124         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
5125         * m4/locale-ar.m4: New file.
5126         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
5127         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
5128         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
5129
5130 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5131
5132         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
5133         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
5134         modified how this file was generated before I initially submitted
5135         the module, but failed to regenerate it.  This meant that several
5136         of the level2 entries were wrong.
5137         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
5138         Remove the division-by-2 that is folded into the table now that
5139         gbrkprop.h has been regenerated properly.  Now -1 entries are
5140         handled correctly.
5141
5142         New module 'unigbrk/uc-gbrk-prop-tests'.
5143         * modules/unigbrk/uc-gbrk-prop-tests: New file.
5144         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
5145         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
5146         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
5147
5148 2011-01-01  Bruno Haible  <bruno@clisp.org>
5149
5150         Avoid use of hexadecimal escapes.
5151         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
5152         instead of hexadecimal escapes.
5153
5154 2011-01-01  Jim Meyering  <meyering@redhat.com>
5155
5156         maint: new rule to update copyright year ranges
5157         * Makefile (update-copyright): New rule.
5158
5159         maint: indent with TABs in Makefile
5160         * Makefile: Expand leading sequences of spaces to TABs
5161
5162         version-etc: update the copyright year it reports
5163         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
5164
5165 2010-12-31  Bruno Haible  <bruno@clisp.org>
5166
5167         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
5168         * lib/isfinite.c (zerof, zerod, zerol): New variables.
5169         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
5170         zero.
5171
5172 2010-12-31  Bruno Haible  <bruno@clisp.org>
5173
5174         pwrite: Work around HP-UX 11.11 bug.
5175         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
5176         works and set REPLACE_PWRITE if not.
5177         * lib/pwrite.c (pwrite): Add an implementation that uses the system
5178         function.
5179         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
5180
5181 2010-12-31  Bruno Haible  <bruno@clisp.org>
5182
5183         pread: Work around HP-UX 11 bugs.
5184         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
5185         and set REPLACE_PREAD if not.
5186         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
5187
5188 2010-12-31  Eric Blake  <eblake@redhat.com>
5189
5190         nl_langinfo: fix YESEXPR on Irix 6.5
5191         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
5192         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
5193         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
5194         it.
5195
5196 2010-12-31  Bruno Haible  <bruno@clisp.org>
5197
5198         iconv: Document HP-UX 11 bug.
5199         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
5200
5201 2010-12-31  Bruno Haible  <bruno@clisp.org>
5202
5203         ldexpl: Fix link error on HP-UX 11.
5204         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
5205         LDEXPL_LIBM, using $ISNANL_LIBM.
5206
5207 2010-12-31  Eric Blake  <eblake@redhat.com>
5208
5209         ftello: avoid compilation failure with SunStudio c89
5210         * lib/ftello.c (ftello): Use lseek, not llseek.
5211
5212         tests: avoid failing coreutils tests on cygwin
5213         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
5214         (create_exe_shims_): Return 0 when skipping.
5215
5216 2010-12-31  Bruno Haible  <bruno@clisp.org>
5217
5218         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
5219         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
5220
5221 2010-12-31  Bruno Haible  <bruno@clisp.org>
5222
5223         waitpid: Fix link error in C++ mode.
5224         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
5225
5226 2010-12-31  Bruno Haible  <bruno@clisp.org>
5227
5228         isnan: Use GCC built-ins when possible.
5229         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
5230         __builtin_isnan.
5231         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
5232         (isnan): Define using GCC built-ins for GCC >= 4.0.
5233
5234 2010-12-31  Bruno Haible  <bruno@clisp.org>
5235
5236         isnand: Fix mistake.
5237         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
5238         __builtin_isnand.
5239
5240 2010-12-31  Bruno Haible  <bruno@clisp.org>
5241
5242         open: Avoid C++ error on HP-UX 11.
5243         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
5244
5245 2010-12-31  Bruno Haible  <bruno@clisp.org>
5246
5247         time_r: Add missing declarations on HP-UX 11.
5248         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
5249         instead of HAVE_LOCALTIME_R.
5250         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
5251         HAVE_LOCALTIME_R always.
5252         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
5253         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
5254         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
5255         HAVE_LOCALTIME_R.
5256         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
5257         * doc/posix-functions/localtime_r.texi: Likewise.
5258
5259 2010-12-29  Eric Blake  <eblake@redhat.com>
5260
5261         mountlist: tweak previous commit
5262         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
5263         Reported by Paul Eggert.
5264
5265         mountlist: fix local drive detection on cygwin
5266         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
5267         that works for cygwin.
5268
5269 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5270
5271         ftoastr, snprintf: ftoastr + snprintf module
5272         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
5273         since the snprintf module now should be good enough here.
5274         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
5275         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
5276         and gl_MODULE_INDICATOR([snprintf]), but the former enables
5277         GNULIB_SNPRINTF only for the test directory, and the latter
5278         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
5279         seems to suffice by itself.
5280
5281 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
5282
5283         alloca: one step towards thread-safety
5284         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
5285         need for a static variable.  All callers changed.  This does not
5286         make the alloca replacement thread-safe, but it's one step.
5287
5288         tests: minor indenting change
5289         * tests/init.sh: Sync from coreutils housekeeping patch
5290         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
5291         to keep lines within 80 columns.
5292
5293 2010-12-28  Jim Meyering  <meyering@redhat.com>
5294
5295         regex: don't infloop on persistent failing calloc
5296         * lib/regexec.c (build_trtable): Return failure indication upon
5297         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
5298         In glibc, this was fixed for version 2.13:
5299         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
5300
5301 2010-12-28  Bruno Haible  <bruno@clisp.org>
5302             Paul Eggert <eggert@cs.ucla.edu>
5303
5304         linkat: Make implementation robust against system behaviour variations.
5305         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
5306         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
5307         way, and to -2 if it needs a generic runtime test.
5308         * lib/linkat.c (solaris_optimized_link_immediate,
5309         solaris_optimized_link_follow): New functions.
5310         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
5311         (check_same_link): Use it.
5312
5313 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
5314
5315         New module 'unigbrk/base'.
5316         * modules/unigbrk/base: New file.
5317         * lib/unigbrk.in.h: New file.
5318
5319         New module 'unigbrk/uc-gbrk-prop'.
5320         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
5321         * modules/unigbrk/uc-gbrk-prop: New file.
5322         * lib/unigbrk/gbrkprop.h: New file.
5323         * lib/unigbrk/uc-gbrk-prop.c: New file.
5324
5325         New module 'unigbrk/uc-is-grapheme-break'.
5326         * modules/unigbrk/uc-is-grapheme-break: New file.
5327         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
5328         * lib/unigbrk/uc-is-grapheme-break.c: New file.
5329         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
5330         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
5331         * tests/unigbrk/GraphemeBreakTest.txt: New file.
5332
5333         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
5334
5335 2010-12-27  Bruno Haible  <bruno@clisp.org>
5336
5337         linkat test: Avoid failure on Solaris 11 2010-11.
5338         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
5339
5340 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5341
5342         utimens: work around glibc rounding bug on more platforms
5343         * lib/utimens.c (fdutimens): Work around rounding bug even if
5344         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
5345         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
5346
5347 2010-12-27  Bruno Haible  <bruno@clisp.org>
5348
5349         select tests: Improve comments.
5350         * tests/test-select.c (do_select): Add comments.
5351
5352 2010-12-27  Bruno Haible  <bruno@clisp.org>
5353
5354         select tests: Safer way of handling timeout.
5355         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
5356         at every invocation.
5357
5358 2010-12-27  Bruno Haible  <bruno@clisp.org>
5359
5360         select tests: Use 'bool' where appropriate.
5361         * tests/test-select.c (connect_to_socket): Change argument type to
5362         'bool'.
5363
5364 2010-12-27  Bruno Haible  <bruno@clisp.org>
5365
5366         select tests: Use existing modules.
5367         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
5368         (configure.ac): Don't test for unistd.h.
5369         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
5370         declared in <unistd.h>.
5371
5372 2010-12-27  Bruno Haible  <bruno@clisp.org>
5373
5374         mbrtowc: Work around a Solaris 7 bug.
5375         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
5376         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
5377         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
5378         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
5379         MBRTOWC_NULL_ARG1_BUG.
5380         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
5381         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
5382         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
5383         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
5384
5385 2010-12-27  Jim Meyering  <meyering@redhat.com>
5386
5387         read-file.c: tweak syntax
5388         * lib/read-file.c (fread_file): Remove space after "*" in function
5389         definitions.
5390
5391 2010-12-27  Bruno Haible  <bruno@clisp.org>
5392
5393         times test: Avoid gcc warnings on OSF/1.
5394         * tests/test-times.c (main): Cast printf arguments from clock_t to
5395         'long int'.
5396
5397 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5398
5399         utimens: work around glibc rounding bug on older Linux kernels
5400         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
5401         on Linux with a glibc whose utimes might not work, then work
5402         around a longstanding glibc bug involving rounding rather than
5403         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
5404         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5405
5406 2010-12-26  Bruno Haible  <bruno@clisp.org>
5407
5408         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
5409         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
5410         _GL_CXXALIAS_SYS.
5411         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5412
5413 2010-12-26  Bruno Haible  <bruno@clisp.org>
5414
5415         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
5416         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
5417         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5418         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
5419         looking for the declaration.
5420         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
5421         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
5422         problem.
5423         * doc/posix-functions/inet_pton.texi: Likewise.
5424
5425 2010-12-26  Bruno Haible  <bruno@clisp.org>
5426
5427         arpa_inet: Use the common idioms with C++ support.
5428         * lib/arpa_inet.in.h: Include c++defs.h.
5429         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
5430         support.
5431         * modules/arpa_inet (Depends-on): Add c++defs.
5432         (Makefile.am): Substitute the contents of c++defs.h.
5433         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
5434         * modules/arpa_inet-c++-tests: New file.
5435         * tests/test-arpa_inet-c++.cc: New file.
5436
5437 2010-12-25  Bruno Haible  <bruno@clisp.org>
5438
5439         Fix more C++ link errors on Solaris 8.
5440         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
5441         $(LIB_EACCESS).
5442         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
5443         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
5444         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
5445         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
5446         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
5447
5448 2010-12-25  Bruno Haible  <bruno@clisp.org>
5449
5450         printf-posix: Fix link error when a non-GCC compiler is used.
5451         * lib/stdio.in.h (printf): When not using GCC, override printf
5452         correctly.
5453         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5454
5455 2010-12-25  Bruno Haible  <bruno@clisp.org>
5456
5457         strerror_r-posix: Update doc.
5458         * doc/posix-functions/strerror_r.texi: Update doc about the return
5459         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
5460
5461 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5462
5463         utimens: simplify the logic of the previous change
5464         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
5465         This should not affect whether the test succeeds or fails.
5466
5467         utimens: configure better on hosts with NFS clock skew
5468         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
5469         uses the clock of the local host.  It might use the clock of the
5470         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
5471         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5472
5473 2010-12-25  Bruno Haible  <bruno@clisp.org>
5474
5475         ptsname test: Avoid failure on Solaris.
5476         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
5477         open a pseudo-terminal; don't use BSD-style ptys.
5478         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
5479
5480 2010-12-25  Bruno Haible  <bruno@clisp.org>
5481
5482         ptsname: Avoid ERANGE failure on some systems.
5483         * lib/ptsname.c (buffer): Increase size.
5484
5485 2010-12-25  Bruno Haible  <bruno@clisp.org>
5486
5487         rename, renameat: Avoid test failures at NFS mounted locations.
5488         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
5489         so that subsequent mkdir calls succeed.
5490
5491 2010-12-25  Bruno Haible  <bruno@clisp.org>
5492
5493         iswblank: Fix C++ link error on Solaris 8.
5494         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
5495         _GL_FUNCDECL_SYS.
5496
5497 2010-12-25  Bruno Haible  <bruno@clisp.org>
5498
5499         unistd: Fix C++ link error on Solaris 8.
5500         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
5501
5502 2010-12-25  Bruno Haible  <bruno@clisp.org>
5503
5504         readlink doc: Mention an old glibc bug.
5505         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
5506
5507 2010-12-25  Bruno Haible  <bruno@clisp.org>
5508
5509         fcntl-h: Fix for use of C++ on glibc systems.
5510         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
5511         also on glibc systems in C++ mode.
5512         Reported by Gary V. Vaughan <gary@gnu.org>.
5513
5514 2010-12-25  Bruno Haible  <bruno@clisp.org>
5515
5516         roundl-ieee: Make it work on OSF/1 5.1 with cc.
5517         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
5518
5519 2010-12-25  Bruno Haible  <bruno@clisp.org>
5520
5521         truncl-ieee: Make it work on OSF/1 5.1 with cc.
5522         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
5523         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
5524         test whether truncl works according to ISO C 99 with IEC 60559.
5525         * m4/truncl-ieee.m4: New file.
5526         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
5527         m4/signbit.m4.
5528         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
5529
5530 2010-12-25  Bruno Haible  <bruno@clisp.org>
5531
5532         ceill-ieee: Make it work on OSF/1 5.1 with cc.
5533         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
5534         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
5535         test whether ceill works according to ISO C 99 with IEC 60559.
5536         * m4/ceill-ieee.m4: New file.
5537         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
5538         m4/signbit.m4.
5539         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
5540
5541 2010-12-25  Bruno Haible  <bruno@clisp.org>
5542
5543         Ensure all prerequisites of <wchar.h> are included.
5544         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
5545         before <wchar.h>.
5546         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5547         gl_MBRLEN_NUL_RETVAL): Likewise.
5548         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5549         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
5550         AC_FUNC_MBRTOWC): Likewise.
5551         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5552         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
5553         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5554         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
5555         Likewise.
5556         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5557         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
5558         (gl_WCHAR_H): Improve comments.
5559         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5560
5561 2010-12-25  Bruno Haible  <bruno@clisp.org>
5562
5563         strtok_r: Fix C syntax error in autoconf macro.
5564         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
5565         characters in test program.
5566
5567 2010-12-24  Bruno Haible  <bruno@clisp.org>
5568
5569         ceil, trunc, round: Fix gcc warnings.
5570         * lib/ceil.c (MIN): Undefine before redefining.
5571         * lib/trunc.c (MIN): Likewise.
5572         * lib/round.c (MIN): Likewise.
5573         Include <math.h> first.
5574
5575 2010-12-24  Bruno Haible  <bruno@clisp.org>
5576
5577         select tests: Avoid failures on OSF/1 5.1.
5578         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
5579         failure of closing the last socket; it may fail with ECONNRESET.
5580
5581 2010-12-24  Eric Blake  <eblake@redhat.com>
5582
5583         stdint: avoid HP-UX 10.20 preprocessor bug
5584         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
5585         than #if.
5586         * tests/test-floor2.c (main): Likewise.
5587         Reported by Peter O'Gorman.
5588
5589         pipe: make obsoletion transition easier
5590         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
5591         * modules/pipe (Files): Include revived file.
5592         (Include): Drop reference, to mirror getdate's behavior.
5593
5594 2010-12-24  Bruno Haible  <bruno@clisp.org>
5595
5596         sys_socket: Hide mismatch of declarations on NonStop Kernel.
5597         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
5598         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
5599         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5600
5601 2010-12-24  Bruno Haible  <bruno@clisp.org>
5602
5603         gethostname: Ensure declaration on NonStop Kernel.
5604         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
5605         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5606
5607 2010-12-24  Bruno Haible  <bruno@clisp.org>
5608
5609         sys_select: Ensure all necessary types on NonStop Kernel.
5610         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
5611         include <sys/time.h>.
5612         * doc/posix-headers/sys_select.texi: Mention that it's missing on
5613         NonStop Kernel.
5614         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5615
5616 2010-12-24  Bruno Haible  <bruno@clisp.org>
5617
5618         sys_select: Remove unneeded include.
5619         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
5620         have <sys/select.h>.
5621
5622 2010-12-24  Bruno Haible  <bruno@clisp.org>
5623
5624         gethostname: Provide a fallback for HOST_NAME_MAX.
5625         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
5626         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
5627         instead.
5628         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5629
5630 2010-12-24  Bruno Haible  <bruno@clisp.org>
5631
5632         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
5633         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
5634         (SA_RESTART): Likewise.
5635         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5636
5637 2010-12-24  Bruno Haible  <bruno@clisp.org>
5638
5639         signal: Define NSIG.
5640         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
5641         * tests/test-signal.c (nsig): New variable.
5642         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5643
5644 2010-12-24  Bruno Haible  <bruno@clisp.org>
5645
5646         rename, renameat: Avoid test failures on OSF/1 5.1.
5647         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
5648         alternative error codes.
5649         * tests/test-renameat.c (main): Likewise.
5650
5651 2010-12-24  Bruno Haible  <bruno@clisp.org>
5652
5653         *printf: Detect large precisions bug on Solaris 10/SPARC.
5654         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
5655         by Paul Eggert.
5656         * tests/test-snprintf-posix.h (test_function): Add this test code here
5657         too.
5658         * tests/test-sprintf-posix.h (test_function): Likewise.
5659         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5660         * tests/test-vasprintf-posix.c (test_function): Likewise.
5661         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
5662         around by gnulib.
5663         * doc/posix-functions/printf.texi: Likewise.
5664         * doc/posix-functions/snprintf.texi: Likewise.
5665         * doc/posix-functions/sprintf.texi: Likewise.
5666         * doc/posix-functions/vfprintf.texi: Likewise.
5667         * doc/posix-functions/vprintf.texi: Likewise.
5668         * doc/posix-functions/vsnprintf.texi: Likewise.
5669         * doc/posix-functions/vsprintf.texi: Likewise.
5670         * doc/posix-functions/dprintf.texi: Undo last commit.
5671         * doc/posix-functions/vdprintf.texi: Likewise.
5672
5673 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5674
5675         tests: port test-fdutimensat.c to Solaris 8
5676         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
5677         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
5678         On Solaris 8, it fails with errno == ENOSYS, because there is no
5679         futimens (so it can't use the fd), and there is no lutimens (so it
5680         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
5681
5682         vsnprintf: make more consistent with snprintf; doc fixes
5683
5684         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
5685         the byte count return problem was promoted from the snprintf-posix
5686         to the snprintf module.
5687         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5688         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
5689         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
5690         * tests/test-snprintf.c (main): Check the byte count returned.
5691         * tests/test-vsnprintf.c (main): Likewise.
5692
5693 2010-12-23  Eric Blake  <eblake@redhat.com>
5694
5695         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
5696         * modules/sigpipe (License): Relax license.
5697
5698 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5699
5700         doc: document Solaris printf bug with large float precisions
5701         * doc/posix-functions/dprintf.texi (dprintf):
5702         * doc/posix-functions/fprintf.texi (fprintf):
5703         * doc/posix-functions/printf.texi (printf):
5704         * doc/posix-functions/snprintf.texi (snprintf):
5705         * doc/posix-functions/sprintf.texi (sprintf):
5706         * doc/posix-functions/vdprintf.texi (vdprintf):
5707         * doc/posix-functions/vfprintf.texi (vfprintf):
5708         * doc/posix-functions/vprintf.texi (vprintf):
5709         * doc/posix-functions/vsnprintf.texi (vsnprintf):
5710         * doc/posix-functions/vsprintf.texi (vsprintf):
5711         Mention that these functions mishandle large floating point
5712         precisions on Solaris 10.  The same bug is also present in Solaris
5713         8, and I assume earlier.  This causes "cd gnulib-tests; make
5714         check" to fail on Solaris 8 (and I assume, later) when building
5715         the latest coreutils, in test-vasprintf-posix's call to
5716         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
5717         the wide flavors (e.g., wprintf) so this patch just updates the
5718         documentation for the narrow ones.
5719
5720         test-posixtm.c: add two tests
5721         * tests/test-posixtm.c: Add two tests, to highlight the
5722         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
5723         around this bug; this is merely to document it.
5724
5725 2010-12-22  Bruno Haible  <bruno@clisp.org>
5726
5727         getlogin_r: Work around portability problem on OSF/1.
5728         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
5729         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
5730         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
5731         test for a truncated result.
5732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
5733         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
5734         * modules/getlogin_r (Depends-on): Add memchr.
5735         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
5736
5737 2010-12-22  Bruno Haible  <bruno@clisp.org>
5738
5739         ptsname: Avoid test failure on OSF/1 5.1.
5740         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
5741         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
5742         (same_slave): New function.
5743         (main): Use it to compare ptsname's result with the expected file name.
5744
5745 2010-12-22  Bruno Haible  <bruno@clisp.org>
5746
5747         Port extended stdio modules to HP NonStop Kernel.
5748         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
5749         macros.
5750         * lib/fbufmode.c: Update comments.
5751         * lib/fflush.c: Likewise.
5752         * lib/fpurge.c: Likewise.
5753         * lib/freadable.c: Likewise.
5754         * lib/freadahead.c: Likewise.
5755         * lib/freading.c: Likewise.
5756         * lib/freadptr.c: Likewise.
5757         * lib/freadseek.c: Likewise.
5758         * lib/fseeko.c: Likewise.
5759         * lib/fseterr.c: Likewise.
5760         * lib/fwritable.c: Likewise.
5761         * lib/fwriting.c: Likewise.
5762         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5763
5764 2010-12-22  Bruno Haible  <bruno@clisp.org>
5765
5766         ttyname_r: Work around bug on OSF/1 5.1.
5767         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
5768         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
5769         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
5770         present.
5771         * lib/ttyname_r.c (ttyname_r): Update comments.
5772
5773 2010-12-22  Bruno Haible  <bruno@clisp.org>
5774
5775         round: Implement result sign according to IEEE 754.
5776         * lib/round.c (MIN, MINUS_ZERO): New macros.
5777         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
5778         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
5779         * tests/test-round-ieee.c (main): Likewise.
5780         * tests/test-roundl-ieee.c (main): Likewise.
5781
5782         trunc: Implement result sign according to IEEE 754.
5783         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
5784         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
5785         * tests/test-trunc2.c: Include minus-zero.h.
5786         (MINUS_ZERO): New macro.
5787         (trunc_reference): Keep in sync with lib/trunc.c.
5788         * tests/test-truncf2.c: Include minus-zero.h.
5789         (MINUS_ZERO): New macro.
5790         (truncf_reference): Keep in sync with lib/trunc.c.
5791         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
5792         * tests/test-trunc-ieee.c (main): Likewise.
5793         * tests/test-truncl-ieee.c (main): Likewise.
5794
5795         ceil: Implement result sign according to IEEE 754.
5796         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
5797         (FUNC): Return -0.0 for -1 < x < 0.
5798         * tests/test-ceil2.c: Include minus-zero.h.
5799         (MINUS_ZERO): New macro.
5800         (ceil_reference): Keep in sync with lib/ceil.c.
5801         * tests/test-ceilf2.c: Include minus-zero.h.
5802         (MINUS_ZERO): New macro.
5803         (ceilf_reference): Keep in sync with lib/ceil.c.
5804         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
5805         * tests/test-ceil-ieee.c (main): Likewise.
5806         * tests/test-ceill-ieee.c (main): Likewise.
5807
5808         floor: Implement result sign according to IEEE 754.
5809         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
5810         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
5811         * tests/test-floorf2.c (floorf_reference): Likewise.
5812         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
5813         * tests/test-floor-ieee.c (main): Likewise.
5814         * tests/test-floorl-ieee.c (main): Likewise.
5815
5816 2010-12-22  Bruno Haible  <bruno@clisp.org>
5817
5818         getaddrinfo: Update doc.
5819         * doc/posix-functions/gai_strerror.texi: Return type is also different
5820         on AIX and HP-UX.
5821
5822 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5823
5824         getaddrinfo, inet_ntop: Update doc for Solaris.
5825         * doc/posix-functions/gai_strerror.texi: Return type is also an
5826         issue on Solaris 9 and earlier.
5827         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
5828         on Solaris 10 and earlier.
5829
5830 2010-12-21  Bruno Haible  <bruno@clisp.org>
5831
5832         New module 'roundl-ieee'.
5833         * modules/roundl-ieee: New file.
5834         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
5835         test whether roundl works according to ISO C 99 with IEC 60559.
5836         * m4/roundl-ieee.m4: New file.
5837         * modules/roundl-ieee-tests: New file.
5838         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
5839         * tests/test-roundl.c (main): Remove signbit tests.
5840         * modules/roundl-tests (Depends-on): Remove signbit.
5841         * doc/posix-functions/roundl.texi: Mention the new module.
5842
5843 2010-12-21  Bruno Haible  <bruno@clisp.org>
5844
5845         New module 'truncl-ieee'.
5846         * modules/truncl-ieee: New file.
5847         * modules/truncl-ieee-tests: New file.
5848         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
5849         * tests/test-truncl.c (main): Remove signbit tests.
5850         * modules/truncl-tests (Depends-on): Remove signbit.
5851         * doc/posix-functions/truncl.texi: Mention the new module.
5852
5853 2010-12-21  Bruno Haible  <bruno@clisp.org>
5854
5855         New module 'ceill-ieee'.
5856         * modules/ceill-ieee: New file.
5857         * modules/ceill-ieee-tests: New file.
5858         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
5859         * tests/test-ceill.c (main): Remove signbit tests.
5860         * modules/ceill-tests (Depends-on): Remove signbit.
5861         * doc/posix-functions/ceill.texi: Mention the new module.
5862
5863 2010-12-21  Bruno Haible  <bruno@clisp.org>
5864
5865         New module 'floorl-ieee'.
5866         * modules/floorl-ieee: New file.
5867         * modules/floorl-ieee-tests: New file.
5868         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
5869         * tests/test-floorl.c (main): Remove signbit tests.
5870         * modules/floorl-tests (Depends-on): Remove signbit.
5871         * doc/posix-functions/floorl.texi: Mention the new module.
5872
5873 2010-12-21  Bruno Haible  <bruno@clisp.org>
5874
5875         New module 'round-ieee'.
5876         * modules/round-ieee: New file.
5877         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
5878         whether round works according to ISO C 99 with IEC 60559.
5879         * m4/round-ieee.m4: New file.
5880         * modules/round-ieee-tests: New file.
5881         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
5882         * tests/test-round1.c (main): Remove signbit tests.
5883         * modules/round-tests (Depends-on): Remove 'signbit'.
5884         * doc/posix-functions/round.texi: Mention the new module.
5885
5886 2010-12-21  Bruno Haible  <bruno@clisp.org>
5887
5888         New module 'trunc-ieee'.
5889         * modules/trunc-ieee: New file.
5890         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
5891         whether trunc works according to ISO C 99 with IEC 60559.
5892         * m4/trunc-ieee.m4: New file.
5893         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
5894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
5895         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
5896         * modules/trunc-ieee-tests: New file.
5897         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
5898         * tests/test-trunc1.c (main): Remove signbit tests.
5899         * modules/trunc-tests (Depends-on): Remove 'signbit'.
5900         * doc/posix-functions/trunc.texi: Mention the new module.
5901
5902 2010-12-21  Bruno Haible  <bruno@clisp.org>
5903
5904         New module 'ceil-ieee'.
5905         * modules/ceil-ieee: New file.
5906         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
5907         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
5908         ISO C 99 with IEC 60559.
5909         * m4/ceil-ieee.m4: New file.
5910         * modules/ceil (Files): Add lib/ceil.c.
5911         (Depends-on): Add 'float'.
5912         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5913         * lib/math.in.h (ceil): New declaration.
5914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
5915         REPLACE_CEIL.
5916         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
5917         * modules/ceil-ieee-tests: New file.
5918         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
5919         * tests/test-math-c++.cc: Check the signature of 'ceil'.
5920         * doc/posix-functions/ceil.texi: Mention the new module.
5921
5922 2010-12-21  Bruno Haible  <bruno@clisp.org>
5923
5924         New module 'floor-ieee'.
5925         * modules/floor-ieee: New file.
5926         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
5927         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
5928         ISO C 99 with IEC 60559.
5929         * m4/floor-ieee.m4: New file.
5930         * modules/floor (Files): Add lib/floor.c.
5931         (Depends-on): Add 'float'.
5932         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5933         * lib/math.in.h (floor): New declaration.
5934         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
5935         REPLACE_FLOOR.
5936         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
5937         * modules/floor-ieee-tests: New file.
5938         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
5939         * tests/test-math-c++.cc: Check the signature of 'floor'.
5940         * doc/posix-functions/floor.texi: Mention the new module.
5941
5942 2010-12-21  Bruno Haible  <bruno@clisp.org>
5943
5944         New module 'roundf-ieee'.
5945         * modules/roundf-ieee: New file.
5946         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
5947         test whether roundf works according to ISO C 99 with IEC 60559.
5948         * m4/roundf-ieee.m4: New file.
5949         * modules/roundf-ieee-tests: New file.
5950         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
5951         * tests/test-roundf1.c (main): Remove signbit tests.
5952         * modules/roundf-tests (Depends-on): Remove 'signbit'.
5953         * doc/posix-functions/roundf.texi: Mention the new module.
5954
5955 2010-12-21  Bruno Haible  <bruno@clisp.org>
5956
5957         New module 'truncf-ieee'.
5958         * modules/truncf-ieee: New file.
5959         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
5960         test whether truncf works according to ISO C 99 with IEC 60559.
5961         * m4/truncf-ieee.m4: New file.
5962         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
5963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
5964         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
5965         * modules/truncf-ieee-tests: New file.
5966         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
5967         * tests/test-truncf1.c (main): Remove signbit tests.
5968         * modules/truncf-tests (Depends-on): Remove 'signbit'.
5969         * doc/posix-functions/truncf.texi: Mention the new module.
5970
5971 2010-12-21  Bruno Haible  <bruno@clisp.org>
5972
5973         New module 'ceilf-ieee'.
5974         * modules/ceilf-ieee: New file.
5975         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
5976         test whether ceilf works according to ISO C 99 with IEC 60559.
5977         * m4/ceilf-ieee.m4: New file.
5978         * modules/ceilf-ieee-tests: New file.
5979         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
5980         * tests/test-ceilf1.c (main): Remove signbit tests.
5981         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
5982         * doc/posix-functions/ceilf.texi: Mention the new module.
5983
5984 2010-12-21  Bruno Haible  <bruno@clisp.org>
5985
5986         New module 'floorf-ieee'.
5987         * modules/floorf-ieee: New file.
5988         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
5989         test whether floorf works according to ISO C 99 with IEC 60559.
5990         * m4/floorf-ieee.m4: New file.
5991         * modules/floorf-ieee-tests: New file.
5992         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
5993         * tests/test-floorf1.c (main): Remove signbit tests.
5994         * modules/floorf-tests (Depends-on): Remove 'signbit'.
5995         * doc/posix-functions/floorf.texi: Mention the new module.
5996
5997 2010-12-21  Bruno Haible  <bruno@clisp.org>
5998
5999         Support for minus zero in autoconf macros.
6000         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
6001         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
6002         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
6003         * tests/minus-zero.h: Update comments.
6004
6005 2010-12-21  Bruno Haible  <bruno@clisp.org>
6006
6007         Tests for module 'ceil'.
6008         * modules/ceil-tests: New file.
6009         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
6010         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
6011
6012 2010-12-21  Bruno Haible  <bruno@clisp.org>
6013
6014         Tests for module 'floor'.
6015         * modules/floor-tests: New file.
6016         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
6017         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
6018
6019 2010-12-21  Bruno Haible  <bruno@clisp.org>
6020
6021         math: Fix indentation.
6022         * lib/math.in.h (floorf): Fix indentation.
6023
6024 2010-12-21  Bruno Haible  <bruno@clisp.org>
6025
6026         Fix cross-compilation guesses on Solaris.
6027         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
6028         not match "solaris2.10".
6029         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6030         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
6031         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
6032
6033 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
6034
6035         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
6036         This fixes a problem observed with the latest coreutils snapshot
6037         that caused a test to fail on Solaris 8.  src/csplit.c's call
6038         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
6039         earlier, instead of returning the number of bytes that would have
6040         been generated; this causes csplit to incorrectly report memory
6041         exhaustion.
6042         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
6043         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
6044         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
6045         comments to match.
6046         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
6047         Fix typo in matching older versions of Solaris: "solaris2.10"
6048         is matched by the shell pattern "solaris2.[0-9]*".  This matters
6049         only for guessing while cross-compiling.
6050         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
6051
6052 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
6053
6054         ftoastr: fix comment again
6055         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6056         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
6057         Also, simplify example a bit by using flags = 0.
6058
6059 2010-12-20  Bruno Haible  <bruno@clisp.org>
6060
6061         round*, trunc*: Update documentation regarding glibc.
6062         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
6063         * doc/posix-functions/round.texi: Likewise.
6064         * doc/posix-functions/roundl.texi: Likewise.
6065         * doc/posix-functions/truncf.texi: Likewise.
6066         * doc/posix-functions/trunc.texi: Likewise.
6067         * doc/posix-functions/truncl.texi: Likewise.
6068
6069 2010-12-20  Bruno Haible  <bruno@clisp.org>
6070
6071         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
6072         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
6073         * doc/posix-functions/round.texi: Likewise.
6074         * doc/posix-functions/roundl.texi: Likewise.
6075
6076 2010-12-20  Bruno Haible  <bruno@clisp.org>
6077
6078         ttyname_r: Add missing declaration on HP-UX 11.
6079         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
6080         HAVE_TTYNAME_R.
6081         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
6082         declared. Set HAVE_TTYNAME_R always.
6083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6084         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
6085         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
6086         HAVE_TTYNAME_R.
6087         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
6088
6089 2010-12-20  Bruno Haible  <bruno@clisp.org>
6090
6091         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
6092         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
6093         * doc/posix-functions/getlogin_r.texi: Likewise.
6094         * tests/test-getlogin.c: Include <errno.h>.
6095         (main): Avoid test failure on HP-UX 11.11.
6096         * tests/test-getlogin_r.c (main): Likewise.
6097
6098 2010-12-20  Bruno Haible  <bruno@clisp.org>
6099
6100         getlogin_r: Add missing declaration on HP-UX 11.
6101         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
6102         declared also when it exists as a function.
6103         * doc/posix-functions/getlogin_r.texi: Document this workaround.
6104
6105 2010-12-20  Bruno Haible  <bruno@clisp.org>
6106
6107         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
6108         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
6109         through wcrtomb.
6110
6111 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6112
6113         ftoastr: fix comment
6114         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6115         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
6116
6117 2010-12-19  Bruno Haible  <bruno@clisp.org>
6118
6119         isnan: Ensure it is a macro.
6120         * lib/math.in.h (isnan): Define as a macro if not already a macro.
6121         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
6122         Solaris.
6123
6124 2010-12-19  Bruno Haible  <bruno@clisp.org>
6125
6126         ldexpl test: Fix link error on OSF/1 5.1.
6127         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
6128
6129 2010-12-19  Bruno Haible  <bruno@clisp.org>
6130
6131         wctype: Make it work in C++ mode on OSF/1 5.1.
6132         * lib/wctype.in.h (iswblank): Declare but not define here.
6133         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
6134         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
6135         * modules/wctype (Files): Add lib/iswblank.c.
6136
6137 2010-12-19  Bruno Haible  <bruno@clisp.org>
6138
6139         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
6140         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
6141         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
6142
6143 2010-12-19  Bruno Haible  <bruno@clisp.org>
6144
6145         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
6146         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
6147         _POSIX_PII_SOCKET.
6148         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
6149         * doc/posix-functions/recvfrom.texi: Likewise.
6150         * doc/posix-functions/send.texi: Likewise.
6151         * doc/posix-functions/sendto.texi: Likewise.
6152
6153 2010-12-19  Bruno Haible  <bruno@clisp.org>
6154
6155         tcgetsid: Add missing declaration on OSF/1 5.1.
6156         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
6157         HAVE_TCGETSID.
6158         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
6159         Don't set HAVE_TCGETSID.
6160         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
6161         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
6162         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
6163         HAVE_TCGETSID.
6164         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
6165
6166 2010-12-19  Bruno Haible  <bruno@clisp.org>
6167
6168         stdio: Fix problem with popen() declaration on OSF/1 5.1.
6169         * lib/stdio.in.h: During the include_next statement, let recursive
6170         includes of this file include only the system header file.
6171
6172 2010-12-19  Bruno Haible  <bruno@clisp.org>
6173
6174         iconv_open: Fix regression from 2010-12-04.
6175         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
6176         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
6177
6178 2010-12-19  Bruno Haible  <bruno@clisp.org>
6179
6180         stdbool test: Avoid a gcc warning.
6181         * tests/test-stdbool.c (main): Fail if e1 is false.
6182         Reported by Jim Meyering.
6183
6184 2010-12-19  Jim Meyering  <meyering@redhat.com>
6185
6186         setenv: restore to working order
6187         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
6188         mistakenly removed.
6189         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
6190         HAVE_SETENV.
6191         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
6192         HAVE_SETENV.
6193
6194 2010-12-19  Bruno Haible  <bruno@clisp.org>
6195
6196         Document some different function declarations on OSF/1 5.1.
6197         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
6198         * doc/posix-functions/inet_ntop.texi: Likewise.
6199         * doc/posix-functions/gethostname.texi: Likewise.
6200         * lib/unistd.in.h (gethostname): Update comment.
6201
6202 2010-12-19  Bruno Haible  <bruno@clisp.org>
6203
6204         doc: Mention vasprintf-posix module.
6205         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
6206         the 'vasprintf-posix' module.
6207         * doc/glibc-functions/vasprintf.texi: Likewise.
6208
6209 2010-12-19  Bruno Haible  <bruno@clisp.org>
6210
6211         unsetenv: Add missing declaration on OSF/1 5.1.
6212         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
6213         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
6214         Don't set HAVE_UNSETENV. In the test program, set _BSD.
6215         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
6216         not HAVE_UNSETENV.
6217         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
6218         HAVE_UNSETENV.
6219         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
6220
6221 2010-12-19  Bruno Haible  <bruno@clisp.org>
6222
6223         setenv: Add missing declaration on OSF/1 5.1.
6224         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
6225         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
6226         declared. Don't set HAVE_SETENV.
6227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
6228         not HAVE_SETENV.
6229         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
6230         HAVE_SETENV.
6231         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
6232
6233 2010-12-19  Bruno Haible  <bruno@clisp.org>
6234
6235         nl_langinfo tests: Avoid gcc warning.
6236         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
6237
6238 2010-12-19  Bruno Haible  <bruno@clisp.org>
6239
6240         mknod: Avoid error in C++ mode on OSF/1 with GCC.
6241         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
6242         _GL_CXXALIAS_SYS.
6243
6244 2010-12-19  Bruno Haible  <bruno@clisp.org>
6245
6246         stdbool: Relax test.
6247         * tests/test-stdbool.c (e): Don't require that casts from a variable's
6248         address to 'bool' work in static initializer, for compilers other than
6249         GCC.
6250
6251 2010-12-19  Bruno Haible  <bruno@clisp.org>
6252
6253         ftello: Add missing declaration on OSF/1 5.1.
6254         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
6255         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
6256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
6257         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
6258         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
6259
6260 2010-12-19  Bruno Haible  <bruno@clisp.org>
6261
6262         fseeko: Add missing declaration on OSF/1 5.1.
6263         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
6264         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
6265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
6266         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
6267         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
6268
6269 2010-12-19  Bruno Haible  <bruno@clisp.org>
6270
6271         fchdir: Add missing declaration on OSF/1 5.1.
6272         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
6273         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
6274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
6275         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
6276         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
6277
6278 2010-12-19  Bruno Haible  <bruno@clisp.org>
6279
6280         relocatable-prog-wrapper: Separate from relocatable-prog.
6281         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
6282         uninstall-relocwrapper rule here.
6283         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
6284         Reported by Ian Beckwith <ianb@erislabs.net>.
6285
6286 2010-12-19  Bruno Haible  <bruno@clisp.org>
6287
6288         unistr/u8-mbsnlen: Add missing dependency.
6289         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
6290         Reported by Ian Beckwith <ianb@erislabs.net>.
6291
6292 2010-12-19  Bruno Haible  <bruno@clisp.org>
6293
6294         iconv: Make it possible again to use this module without 'iconv-h'.
6295         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
6296         if it is not defined.
6297         Reported by Ian Beckwith <ianb@erislabs.net>.
6298
6299 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6300
6301         acl: port to Solaris 8 when copying from tmpfs to ufs
6302         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
6303         error number.  Problem observed on Solaris 8 with latest
6304         coreutils, with "mv A B", where A is on a tmpfs file system and B
6305         is on a ufs file system.  This caused coreutils' mv/part-symlink
6306         test to fail.
6307
6308         tests: set fail=0 at start
6309         * tests/init.sh (setup_): Move fail=0 initialization here ...
6310         (mktempd_): ... from here, so that tests can rely on fail being
6311         set to 0 initially.  This fixes a problem in coreutils; see:
6312         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
6313
6314 2010-12-18  Bruno Haible  <bruno@clisp.org>
6315
6316         memmem-simple: Stylistic changes.
6317         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
6318         Fix preprocessor directive indentation.
6319
6320 2010-12-15  Pádraig Brady <P@draigBrady.com>
6321
6322         memmem, memmem-simple: reorganize and expand empty needle check
6323         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
6324         functional checks to memmem-simple so that one has a fully functional
6325         memmem by using just this module.
6326         Restrict the performance only check to the memmem module.
6327         Also expand the empty needle check to ensure the correct
6328         pointer is returned, not just a non NULL pointer.
6329         * doc/glibc-functions/memmem.texi: Rearrange the portability
6330         documentation to correlate with the rearranged checks.
6331         Clarify exactly how the memmem and memmem-simple modules
6332         relate to each other.
6333
6334 2010-12-15  Pádraig Brady <P@draigBrady.com>
6335             Bruno Haible  <bruno@clisp.org>
6336
6337         Improve cross-compilation guesses for uClibc.
6338         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
6339         that uClibc does not have the glibc bug.
6340         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6341         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
6342
6343 2010-12-14  Eric Blake  <eblake@redhat.com>
6344
6345         configmake: provide fallbacks for oldest supported autotools
6346         * m4/configmake.m4: New file.
6347         * modules/configmake (Files): Ship it.
6348         (configure.ac): Use it to guarantee fallbacks.
6349
6350 2010-12-13  Pádraig Brady <P@draigBrady.com>
6351
6352         read-file: Improve handling of large files
6353         * lib/read-file.c (fread_file): Minimize realloc()s
6354         for regular files, and better manage sizes around SIZE_MAX.
6355
6356 2010-12-13  Eric Blake  <eblake@redhat.com>
6357
6358         cloexec, fcntl: relax license
6359         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
6360         consent from all contributors.
6361         * modules/fcntl (License): Likewise.
6362
6363 2010-12-10  Bruno Haible  <bruno@clisp.org>
6364
6365         Tests for module 'pipe-posix'.
6366         * modules/pipe-posix-tests: New file.
6367         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
6368
6369 2010-12-10  Bruno Haible  <bruno@clisp.org>
6370
6371         pipe-posix: Make it work in C++ mode.
6372         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
6373         (pipe): Use common idiom, not a macro definition.
6374         * lib/pipe.c: New file.
6375         * m4/pipe.m4: New file.
6376         * modules/pipe-posix (Description): Enhance.
6377         (Files): Add lib/pipe.c, m4/pipe.m4.
6378         (configure.ac): Invoke gl_FUNC_PIPE.
6379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
6380         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
6381         * tests/test-unistd-c++.cc: Check the signature of pipe.
6382
6383 2010-12-10  Bruno Haible  <bruno@clisp.org>
6384
6385         Rename module 'pipe' to 'spawn-pipe'.
6386         * modules/spawn-pipe: New file, renamed from modules/pipe.
6387         (Files, configure.ac, Makefile.am): Update.
6388         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
6389         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
6390         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
6391         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
6392         "spawn-pipe.h" instead of "pipe.h".
6393         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
6394         to gl_SPAWN_PIPE.
6395         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
6396         (Files, Makefile.am): Update.
6397         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
6398         Update.
6399         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
6400         Include "spawn-pipe.h" instead of "pipe.h".
6401         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
6402         * lib/javacomp.c: Likewise.
6403         * lib/javaversion.c: Likewise.
6404         * lib/pipe-filter-gi.c: Likewise.
6405         * lib/pipe-filter-ii.c: Likewise.
6406         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
6407         * modules/javacomp (Depends-on): Likewise.
6408         * modules/javaversion (Depends-on): Likewise.
6409         * modules/pipe-filter-gi (Depends-on): Likewise.
6410         * modules/pipe-filter-ii (Depends-on): Likewise.
6411         * MODULES.html.sh (Executing programs): Update.
6412         * NEWS: Mention the change.
6413
6414 2010-12-10  Eric Blake  <eblake@redhat.com>
6415
6416         pipe-posix: new module
6417         * modules/pipe-posix: New file.
6418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
6419         (gl_UNISTD_H): Check for declaration.
6420         * modules/unistd (Makefile.am): Substitute it.
6421         * lib/unistd.in.h (pipe): Provide it for mingw.
6422         * doc/posix-functions/pipe.texi (pipe): Update documentation.
6423         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
6424
6425 2010-12-07  Bruno Haible  <bruno@clisp.org>
6426
6427         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
6428         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
6429         u8_strcmp_gnu.
6430         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
6431
6432 2010-12-06  Bruno Haible  <bruno@clisp.org>
6433
6434         Update internal documentation.
6435         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
6436
6437 2010-12-04  Bruno Haible  <bruno@clisp.org>
6438
6439         Put more information about failed tests into the test return codes.
6440         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
6441         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
6442         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6443         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6444         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6445         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6446         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6447         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6448         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
6449         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6450         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
6451         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6452         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6453         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6454         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
6455         returns a bit mask.
6456         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6457         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
6458         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
6459         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6460         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6461         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6462         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6463         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6464         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6465         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
6466         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6467         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6468         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6469         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6470         * m4/link.m4 (gl_FUNC_LINK): Likewise.
6471         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6472         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
6473         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
6474         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6475         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
6476         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6477         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6478         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6479         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6480         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6481         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6482         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6483         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6484         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6485         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
6486         gl_PRINTF_PRECISION): Likewise.
6487         * m4/regex.m4 (gl_REGEX): Likewise.
6488         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6489         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6490         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
6491         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6492         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6493         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6494         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6495         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
6496         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6497         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6498         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6499         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6500         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
6501         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6502         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6503         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6504         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6505         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6506         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6507         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
6508         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
6509         enumerated value.
6510         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
6511
6512 2010-12-04  Bruno Haible  <bruno@clisp.org>
6513
6514         Update for Solaris 11 2010-11.
6515         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
6516         Express, released in November 2010.
6517
6518 2010-12-04  Bruno Haible  <bruno@clisp.org>
6519
6520         nproc: Relax license.
6521         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
6522         and Paul Eggert.
6523         Requested by Ludovic Courtès <ludo@gnu.org>.
6524
6525 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
6526
6527         utimecmp: fine-grained src to nearby coarse-grained dest
6528
6529         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
6530         and the source is on a file system with higher-resolution time
6531         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
6532         not work, and the time stamps are close together, the algorithm to
6533         determine the exact resolution from the read-back mtime was buggy:
6534         it had a "!=" where it should have had an "==".  This bug has been
6535         in the code ever since it was introduced to gnulib.
6536         Problem reported by Dan Jacobson in
6537         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
6538
6539 2010-11-30  Bruno Haible  <bruno@clisp.org>
6540
6541         strerror_r-posix: Fix autoconf test.
6542         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
6543
6544 2010-11-28  Bruno Haible  <bruno@clisp.org>
6545             Paul Eggert  <eggert@cs.ucla.edu>
6546
6547         Tests for module 'getdomainname'.
6548         * modules/getdomainname-tests: New file.
6549         * tests/test-getdomainname.c: New file, based on
6550         tests/test-gethostname.c.
6551
6552 2010-11-28  Bruno Haible  <bruno@clisp.org>
6553             Paul Eggert  <eggert@cs.ucla.edu>
6554
6555         getdomainname: Use the system function when possible.
6556         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
6557         (getdomainname): Replace if needed. Provide the declaration if it is
6558         missing. Don't use _GL_CXXALIAS_SYS_CAST.
6559         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
6560         (getdomainname): When the system has getdomainname, call the system
6561         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
6562         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
6563         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
6564         found in libnsl. Look for the declaration also in <netdb.h>. Replace
6565         the function if its second argument is of type 'int' or if it is found
6566         in libnsl.
6567         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
6568         <sys/systeminfo.h> and sysinfo().
6569         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
6570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6571         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
6572         HAVE_GETDOMAINNAME.
6573         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
6574         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
6575         * doc/glibc-functions/getdomainname.texi: Document the problems with
6576         the getdomainname declaration.
6577
6578 2010-11-28  Bruno Haible  <bruno@clisp.org>
6579
6580         sys_socket: Ensure ss_family field on AIX.
6581         * lib/sys_socket.in.h (ss_family): New macro definition.
6582         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
6583         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
6584         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
6585         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
6586         * modules/sys_socket (Makefile.am): Substitute
6587         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
6588         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
6589
6590 2010-11-27  Bruno Haible  <bruno@clisp.org>
6591
6592         readline: Improve configure output.
6593         * m4/readline.m4 (gl_FUNC_READLINE): Make the
6594         "checking for readline..." result understandable.
6595
6596 2010-11-27  Bruno Haible  <bruno@clisp.org>
6597
6598         *printf-posix: Detect a bug on Solaris 10/x86.
6599         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
6600         for floating-point output.
6601         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
6602         directive.
6603         * tests/test-snprintf-posix.h (test_function): Likewise.
6604         * tests/test-sprintf-posix.h (test_function): Likewise.
6605         * tests/test-vasprintf-posix.c (test_function): Likewise.
6606         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
6607         * doc/posix-functions/printf.texi: Likewise.
6608         * doc/posix-functions/snprintf.texi: Likewise.
6609         * doc/posix-functions/sprintf.texi: Likewise.
6610         * doc/posix-functions/vfprintf.texi: Likewise.
6611         * doc/posix-functions/vprintf.texi: Likewise.
6612         * doc/posix-functions/vsnprintf.texi: Likewise.
6613         * doc/posix-functions/vsprintf.texi: Likewise.
6614         * doc/glibc-functions/obstack_printf.texi: Likewise.
6615         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6616
6617 2010-11-27  Bruno Haible  <bruno@clisp.org>
6618
6619         Fix link error when module libunistring-optional is in use.
6620         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
6621         * modules/striconveha-tests (Makefile.am): Likewise.
6622
6623 2010-11-27  Bruno Haible  <bruno@clisp.org>
6624
6625         regex: Mention link dependencies.
6626         * modules/regex (Link): New section.
6627         * modules/rpmatch (Link): Likewise.
6628         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
6629
6630 2010-11-27  Bruno Haible  <bruno@clisp.org>
6631
6632         ftoastr: Fix compilation error on Solaris.
6633         * lib/ftoastr.c: Include <config.h>.
6634
6635 2010-11-27  Bruno Haible  <bruno@clisp.org>
6636
6637         getloadavg: Update documentation.
6638         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
6639
6640 2010-11-27  Bruno Haible  <bruno@clisp.org>
6641
6642         sys_socket: Fix test whether the functions are declared.
6643         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
6644         not <sys/select.h>.
6645
6646 2010-11-27  Bruno Haible  <bruno@clisp.org>
6647
6648         getpass: Make sure to get system declaration on some platforms.
6649         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
6650         gl_USE_SYSTEM_EXTENSIONS.
6651         * modules/getpass (Depends-on): Add extensions.
6652
6653 2010-11-26  Bruno Haible  <bruno@clisp.org>
6654
6655         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
6656         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
6657         'iconv' module is present.
6658         (ICONV_CONST): New macro.
6659         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
6660         ICONV_CONST.
6661         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
6662         set ICONV_CONST.
6663         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
6664         here.
6665         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
6666         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
6667         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
6668         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
6669         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
6670         present.
6671
6672 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
6673
6674         ftoastr: comment fix
6675         * lib/ftoastr.c: "little" -> "little or no" in comment
6676
6677 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
6678
6679         stdint: port to GCC 4.3 + OSX + Octave
6680         On this platform, stdint.h is buggy and defines int64_t to long
6681         long int.  The replacement defined it to long int, causing
6682         problems with C++ style name mangling.  Instead, trust the system
6683         definition if INT64_MAX is defined, and likewise for the unsigned
6684         variant.   Problem reported by Jarno Rajahalme in
6685         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
6686         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
6687         and don't mess with int64_t and INT64_MAX in this case.
6688         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
6689
6690 2010-11-24  Bruno Haible  <bruno@clisp.org>
6691
6692         doc: Corrections regarding MacOS X 10.4 and 10.5.
6693         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
6694         MacOS X.
6695         Reported by Simon Josefsson.
6696
6697 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
6698
6699         Uninstall ".bin" files installed by relocwrapper.
6700         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
6701         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
6702         unless it is already there.
6703
6704 2010-11-21  Bruno Haible  <bruno@clisp.org>
6705
6706         Update for NetBSD 5.0.
6707         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6708         NetBSD; the test fails on NetBSD 5.0.
6709         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6710         about NetBSD.
6711
6712 2010-11-21  Bruno Haible  <bruno@clisp.org>
6713
6714         Update for HP-UX 11.23 and HP-UX 11.31.
6715         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
6716         HP-UX.
6717
6718 2010-11-21  Bruno Haible  <bruno@clisp.org>
6719
6720         Update for MacOS X 10.5.
6721         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6722         MacOS X; the test fails on MacOS X 10.5.8.
6723         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6724         about MacOS X.
6725
6726 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
6727
6728         bootstrap: add bootstrap_sync option.
6729         See discussion at
6730         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
6731         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
6732         * build-aux/bootstrap: Accept --bootstrap-sync to update
6733         bootstrap if it is not identical to the local gnulib's
6734         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
6735         enable this by default.  Accept --no-bootstrap-sync to disable
6736         it.
6737
6738 2010-11-20  Bruno Haible  <bruno@clisp.org>
6739
6740         Ensure that <features.h> is included before __GLIBC__ is tested.
6741         * lib/printf-parse.h: Include <features.h>.
6742         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
6743         Reported by Mike Frysinger <vapier@gentoo.org>.
6744
6745         Ensure that <features.h> is included before __GLIBC__ is tested.
6746         * lib/wchar.in.h: Include <features.h>.
6747         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
6748         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
6749         Reported by Mike Frysinger <vapier@gentoo.org>.
6750
6751         Ensure that <features.h> is included before __GLIBC__ is tested.
6752         * lib/arpa_inet.in.h: Include <features.h>.
6753         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
6754         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
6755         Reported by Mike Frysinger <vapier@gentoo.org>.
6756
6757         Ensure that <features.h> is included before __GLIBC__ is tested.
6758         * build-aux/link-warning.h: Include <features.h>.
6759         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
6760         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
6761         Reported by Mike Frysinger <vapier@gentoo.org>.
6762
6763         Ensure that <features.h> is included before __GLIBC__ is tested.
6764         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
6765         Reported by Mike Frysinger <vapier@gentoo.org>.
6766
6767 2010-11-20  Bruno Haible  <bruno@clisp.org>
6768
6769         memmem: Fix autoconf test.
6770         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
6771
6772 2010-11-20  Bruno Haible  <bruno@clisp.org>
6773
6774         Port to uClibc.
6775         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
6776         * lib/fcntl.in.h: Likewise.
6777         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
6778         * lib/mbrtowc.c (mbrtowc): Likewise.
6779         * lib/relocatable.c (find_shared_library_fullname): Likewise.
6780         * lib/strerror_r.c: Likewise.
6781         * lib/unistr/u8-strnlen.c: Likewise.
6782         * lib/vasnprintf.c (decimal_point_char): Likewise.
6783         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6784         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
6785         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
6786         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
6787         * tests/test-sigaction.c (handler, main): Likewise.
6788         * lib/freading.h: Treat uClibc like a non-glibc platform.
6789         * lib/freading.c: Likewise.
6790         * lib/gettext.h: Likewise.
6791         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
6792         Likewise.
6793         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
6794         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6795         * lib/propername.c (proper_name_utf8): Likewise.
6796         * lib/spawn.in.h: Likewise.
6797         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
6798         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
6799         mem_cd_iconveh_internal): Likewise.
6800         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
6801         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6802         strstr, strcasestr): Likewise.
6803         * lib/unicodeio.c (unicode_to_mb): Likewise.
6804         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
6805         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
6806         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
6807         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
6808         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
6809         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
6810         * lib/unistr/u8-stpncpy.c: Likewise.
6811         * lib/vasnprintf.c (VASNPRINTF): Likewise.
6812         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
6813         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6814         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6815         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
6816         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
6817         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
6818         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
6819         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6820         Likewise.
6821         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6822         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6823         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6824         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6825         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6826         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6827         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6828         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6829         * tests/test-getopt.h (OPTIND_MIN): Likewise.
6830         * tests/test-striconveha.c (main): Likewise.
6831         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6832         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
6833         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
6834         * doc/posix-functions/getline.texi: Likewise.
6835         Reported by Mike Frysinger <vapier@gentoo.org>.
6836
6837 2010-11-20  Bruno Haible  <bruno@clisp.org>
6838
6839         nproc: Fix condition.
6840         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
6841         HAVE_PTHREAD_AFFINITY_NP.
6842
6843 2010-11-20  Bruno Haible  <bruno@clisp.org>
6844
6845         Fix a comment.
6846         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
6847
6848 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
6849
6850         ftoastr: don't assume snprintf
6851         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
6852         Implement a subset of snprintf here, by using sprintf safely.
6853         * modules/ftoastr (Depends-on): Remove snprintf.
6854
6855 2010-11-19  Jim Meyering  <meyering@redhat.com>
6856
6857         test-rename.h: fix compilation failure
6858         * tests/test-rename.h (test_rename): Add omitted "}".
6859
6860 2010-11-17  Jim Meyering  <meyering@redhat.com>
6861
6862         maint.mk: add a URL discussing the no-@acronym policy
6863         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
6864
6865 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6866
6867         ftoastr: depend on snprintf, improve comments
6868         * lib/ftoastr.c: Also mention Loitsch's draft.
6869         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
6870         needed in the current implementation, but it might simplify
6871         speeding up the code later.
6872         * modules/ftoastr: Depend on snprintf; this improves portability.
6873         Suggested by Bruno Haible in the same email.
6874
6875         ftoastr: port to hosts lacking strtof and strtold
6876         Problem reported by Bruno Haible in
6877         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
6878         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
6879         environment and strtold (and presumably strtof) are not available.
6880         * modules/ftoastr (Files): Add m4/c-strtod.m4.
6881         (configure.ac): Require gl_C99_STRTOLD.
6882
6883 2010-11-18  Bruno Haible  <bruno@clisp.org>
6884
6885         c-strtold: Avoid link error on AIX 7.
6886         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
6887         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
6888         (gl_C_STRTOLD): Test whether strtold_l exists.
6889         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6890
6891 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6892
6893         intprops: new macro INT_BITS_STRLEN_BOUND
6894         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
6895         ftoastr.h.  This exposes an internal of intprops.h that was formerly
6896         not exposed.  Also, it uses a slightly tighter bound than before;
6897         though this makes no practical difference, we might as well be as
6898         tight as we easily can.
6899
6900         ftoastr: new module, for lossless conversion of floats to short strings
6901         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
6902         * modules/ftoastr: New files.
6903
6904 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6905
6906         bootstrap: port to Solaris sed
6907         * build-aux/bootstrap (get_version): Port to Solaris sed.
6908         See Ralf Wildenhues's note in
6909         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
6910
6911 2010-11-14  Jim Meyering  <meyering@redhat.com>
6912
6913         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
6914         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
6915         and move definition closer to sole use.
6916
6917 2010-11-13  Jim Meyering  <meyering@redhat.com>
6918
6919         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
6920         Now we require at least autoconf-2.59, which means the work-around
6921         is no longer needed.
6922         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
6923         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6924         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
6925         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6926         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6927
6928 2010-11-13  Bruno Haible  <bruno@clisp.org>
6929
6930         rename, renameat: Avoid test failures at NFS mounted locations.
6931         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
6932         functions.
6933         (test_rename): Use assert_nonexistent.
6934         * tests/test-rename.c: Include <dirent.h>.
6935         * tests/test-renameat.c: Likewise.
6936         Reported by Gary V. Vaughan <gary@gnu.org>.
6937
6938         rename, renameat: Document Linux bug with NFS
6939         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
6940         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
6941         * doc/posix-functions/renameat.texi: Likewise.
6942         Suggested by Eric Blake.
6943
6944 2010-11-13  Bruno Haible  <bruno@clisp.org>
6945
6946         rename test: Add comments.
6947         * tests/test-rename.h (test_rename): Add structure and comments.
6948
6949 2010-11-13  Eric Blake  <eblake@redhat.com>
6950
6951         maintainer-makefile: cover a few more files
6952         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
6953         scripts generated within C files, for libvirt.
6954
6955 2010-11-13  Bruno Haible  <bruno@clisp.org>
6956
6957         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
6958         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
6959         character, return the number of bytes that belong together, not always
6960         1.
6961         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
6962         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
6963         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
6964         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
6965         number of bytes of an invalid character.
6966         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
6967         (main): Invoke it.
6968         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
6969         results.
6970         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
6971         malformed byte sequences.
6972         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
6973         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
6974         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
6975         Reported by Ben Pfaff and Paolo Bonzini.
6976
6977 2010-11-13  Bruno Haible  <bruno@clisp.org>
6978
6979         openat: Work around glibc bug with fchownat() and empty file names.
6980         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
6981         (gl_FUNC_FCHOWNAT): Invoke it.
6982         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
6983         * doc/posix-functions/fchownat.texi: Document the glibc bug.
6984         Reported by Gary V. Vaughan <gary@gnu.org>.
6985
6986 2010-11-13  Bruno Haible  <bruno@clisp.org>
6987
6988         openat: Ensure autoconf macro ordering.
6989         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
6990         gl_USE_SYSTEM_EXTENSIONS.
6991         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
6992
6993 2010-11-13  Bruno Haible  <bruno@clisp.org>
6994
6995         Update comments.
6996         * lib/unistr/u8-check.c: Update file name in comments.
6997         * lib/unistr/u8-mblen.c: Likewise.
6998         * lib/unistr/u8-prev.c: Likewise.
6999         * lib/unistr/u8-strmblen.c: Likewise.
7000         * lib/unistr/u8-strmbtouc.c: Likewise.
7001
7002 2010-11-13  Jim Meyering  <meyering@redhat.com>
7003
7004         tests: avoid test failure on Solaris 10 due to lack of PATH export
7005         * tests/test-update-copyright.sh: Don't forget to export PATH.
7006
7007         init.sh: ensure that IFS is defined, just in case...
7008         * tests/init.sh (setup_): Ensure that IFS is defined,
7009         so that saving and restoring it works as expected.  This
7010         appears to be useful at least for an old version of dash
7011         from a long time ago (RH 6).  See here for details:
7012         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
7013
7014         maint.mk: tighten "test a == b" check
7015         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
7016         test to files that contain something like #!/bin/sh.
7017         Without this, coreutils would get two false positives in
7018         the comments of C source files.
7019
7020 2010-11-12  Eric Blake  <eblake@redhat.com>
7021
7022         bootstrap: fix typo in previous attempt
7023         * build-aux/bootstrap (buildreq): Correct the grouping.
7024         Reported by Paul Eggert.
7025
7026         maintainer-makefile: prohibit test x == x
7027         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
7028         Based on a report by Matthias Bolte.
7029
7030         bootstrap: allow FreeBSD gzip
7031         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
7032         which has no '.' and goes to stderr.
7033         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
7034         Reported by Matthias Bolte.
7035
7036         maintainer-makefile: check for i18n setup
7037         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
7038         will likely work.
7039
7040 2010-11-12  Bruno Haible  <bruno@clisp.org>
7041
7042         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
7043         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
7044         * lib/nanosleep.c (nanosleep): Likewise.
7045
7046 2010-11-11  Bruno Haible  <bruno@clisp.org>
7047
7048         fcntl-h: Fix for use of C++ on glibc systems.
7049         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7050         also on glibc systems in C++ mode.
7051         Reported by Gary V. Vaughan <gary@gnu.org>.
7052
7053 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7054
7055         mknod: avoid false failure with dash
7056         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
7057
7058 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
7059
7060         unlink: Fix "is it should" typo in diagnostic.
7061         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
7062         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
7063
7064 2010-11-11  Bruno Haible  <bruno@clisp.org>
7065
7066         Tests for module 'strerror_r-posix'.
7067         * modules/strerror_r-posix-tests: New file.
7068         * tests/test-strerror_r.c: New file.
7069         * tests/test-string-c++.cc: Check the signature of strerror_r.
7070
7071         New module 'strerror_r-posix'.
7072         * lib/string.in.h (strerror_r): New declaration.
7073         * lib/strerror_r.c: New file.
7074         * m4/strerror_r.m4: New file.
7075         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
7076         of strerror_r.
7077         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
7078         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7079         * modules/strerror_r-posix: New file.
7080         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
7081         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7082         * doc/posix-functions/strerror_r.texi: Mention the new module and the
7083         portability problems.
7084
7085 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
7086
7087         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
7088         line is also considered for output. Quoted function name in shell
7089         command, so temporary files for functions like MyClass::operator()
7090         are removed correctly without errors.
7091
7092 2010-11-09  Bruno Haible  <bruno@clisp.org>
7093
7094         * doc/posix-functions/strerror.texi: List more failing platforms.
7095
7096         * doc/posix-functions/strerror.texi: Add a comment.
7097
7098 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
7099
7100         fdopendir: fix bug on MacOS X when low on file descriptors
7101
7102         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
7103         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
7104         All callers changed.
7105         (fdopendir): Invoke save_cwd at the top level, not after using
7106         multiple dup() calls to use up file descriptors.  Then retry
7107         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
7108         less than the maximum number of open file descriptors, because
7109         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
7110         on Mac OS X 10.6.4 for tar 1.24
7111         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
7112         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
7113         and for tar 1.25
7114         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
7115
7116 2010-11-07  Bruno Haible  <bruno@clisp.org>
7117
7118         vasnprintf: Support I flag on glibc systems.
7119         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
7120         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
7121         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
7122         snprintf function.
7123         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
7124         glibc systems.
7125         * tests/test-vasnprintf-posix3.c: New file.
7126         * modules/vasnprintf-posix-tests (Files): Add it.
7127         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
7128
7129 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7130
7131         [html] Fix copy/paste bug: Use unique name for compiler warnings.
7132         * MODULES.html.sh: For compiler warnings, use name
7133         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
7134
7135 2010-11-05  Eric Blake  <eblake@redhat.com>
7136
7137         ceil, floor: avoid spurious failure with icc
7138         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
7139         [denormals-as-zero] when optimizing without -mieee-fp option.
7140         * tests/test-floorf2.c (floorf_reference): Likewise.
7141         * tests/test-ceilf1.c (dummy): New function.
7142         (main): Use it to outsmart icc's optimization.
7143         * tests/test-floorf1.c (dummy, main): Likewise.
7144
7145         tests: require working signbit
7146         * modules/ceilf-tests (Depends-on): Add signbit.
7147         * modules/ceill-tests (Depends-on): Likewise.
7148         * modules/floorf-tests (Depends-on): Likewise.
7149         * modules/floorl-tests (Depends-on): Likewise.
7150         * modules/round-tests (Depends-on): Likewise.
7151         * modules/roundf-tests (Depends-on): Likewise.
7152         * modules/roundl-tests (Depends-on): Likewise.
7153         * modules/trunc-tests (Depends-on): Likewise.
7154         * modules/truncf-tests (Depends-on): Likewise.
7155         * modules/truncl-tests (Depends-on): Likewise.
7156
7157         strtod: work around icc bug
7158         * lib/strtod.c (minus_zero): Define to working value.
7159         (strtod): Use it to avoid icc bug.
7160
7161         copysign: enhance tests
7162         * modules/copysign-tests (Files): Add minus-zero.h.
7163         * tests/test-copysign.c (main): Also test zeros.
7164
7165 2010-11-04  Eric Blake  <eblake@redhat.com>
7166
7167         ceil, floor, round, trunc: enhance tests of -0
7168         * tests/test-ceilf1.c (main): Ensure correct sign of result.
7169         * tests/test-ceill.c (main): Likewise.
7170         * tests/test-floorf1.c (main): Likewise.
7171         * tests/test-floorl.c (main): Likewise.
7172         * tests/test-round1.c (main): Likewise.
7173         * tests/test-roundf1.c (main): Likewise.
7174         * tests/test-roundl.c (main): Likewise.
7175         * tests/test-trunc1.c (main): Likewise.
7176         * tests/test-truncf1.c (main): Likewise.
7177         * tests/test-truncl.c (main): Likewise.
7178
7179 2010-11-04  Eric Blake  <eblake@redhat.com>
7180
7181         frexp, tests: work around ICC bug with -zero
7182         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
7183         works with more compilers.
7184         * tests/minus-zero.h: New file.
7185         * modules/ceilf-tests (Files): Include it.
7186         * modules/ceill-tests (Files): Likewise.
7187         * modules/floorf-tests (Files): Likewise.
7188         * modules/floorl-tests (Files): Likewise.
7189         * modules/frexp-nolibm-tests (Files): Likewise.
7190         * modules/frexp-tests (Files): Likewise.
7191         * modules/frexpl-nolibm-tests (Files): Likewise.
7192         * modules/frexpl-tests (Files): Likewise.
7193         * modules/isnan-tests (Files): Likewise.
7194         * modules/isnand-nolibm-tests (Files): Likewise.
7195         * modules/isnand-tests (Files): Likewise.
7196         * modules/isnanf-nolibm-tests (Files): Likewise.
7197         * modules/isnanf-tests (Files): Likewise.
7198         * modules/isnanl-nolibm-tests (Files): Likewise.
7199         * modules/isnanl-tests (Files): Likewise.
7200         * modules/round-tests (Files): Likewise.
7201         * modules/roundf-tests (Files): Likewise.
7202         * modules/roundl-tests (Files): Likewise.
7203         * modules/ldexpl-tests (Files): Likewise.
7204         * modules/signbit-tests (Files): Likewise.
7205         * modules/snprintf-posix-tests (Files): Likewise.
7206         * modules/sprintf-posix-tests (Files): Likewise.
7207         * modules/strtod-tests (Files): Likewise.
7208         * modules/trunc-tests (Files): Likewise.
7209         * modules/truncf-tests (Files): Likewise.
7210         * modules/truncl-tests (Files): Likewise.
7211         * modules/vsnprintf-posix-tests (Files): Likewise.
7212         * modules/vsprintf-posix-tests (Files): Likewise.
7213         * modules/vasnprintf-posix-tests (Files): Likewise.
7214         * modules/vasprintf-posix-tests (Files): Likewise.
7215         * tests/test-ceilf1.c (main): Use it.
7216         * tests/test-ceill.c (main): Likewise.
7217         * tests/test-floorf1.c (main): Likewise.
7218         * tests/test-floorl.c (main): Likewise.
7219         * tests/test-frexp.c (main): Likewise.
7220         * tests/test-frexpl.c (main): Likewise.
7221         * tests/test-isnan.c (main): Likewise.
7222         * tests/test-isnand.h (main): Likewise.
7223         * tests/test-isnanf.h (main): Likewise.
7224         * tests/test-isnanl.h (main): Likewise.
7225         * tests/test-ldexpl.c (main): Likewise.
7226         * tests/test-round.c (main): Likewise.
7227         * tests/test-roundf.c (main): Likewise.
7228         * tests/test-roundl.c (main): Likewise.
7229         * tests/test-signbit.c (test_signbitf, test_signbitd)
7230         (test_signbitl): Likewise.
7231         * tests/test-snprintf-posix.h (test_function): Likewise.
7232         * tests/test-sprintf-posix.h (test_function): Likewise.
7233         * tests/test-strtod.c (main): Likewise.
7234         * tests/test-trunc1.c (main): Likewise.
7235         * tests/test-truncf1.c (main): Likewise.
7236         * tests/test-truncl.c (main): Likewise.
7237
7238         isnanl: work around icc bug
7239         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
7240
7241 2010-11-03  Eric Blake  <eblake@redhat.com>
7242
7243         tests: fix compiler warnings
7244         * tests/test-getopt.h (test_getopt): Fix condition.
7245         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7246         * tests/test-pipe2.c (main): Likewise.
7247         * tests/test-quotearg-simple.c (main): Avoid icc warning.
7248
7249         utimens: fix broken m4 test
7250         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
7251
7252 2010-10-28  Bruno Haible  <bruno@clisp.org>
7253
7254         posix_spawn*, getdtablesize: Relax license.
7255         * modules/posix_spawn (License): Change to LGPLv2+.
7256         * modules/posix_spawnp (License): Likewise.
7257         * modules/posix_spawn-internal (License): Likewise.
7258         * modules/posix_spawnattr_init (License): Likewise.
7259         * modules/posix_spawnattr_getflags (License): Likewise.
7260         * modules/posix_spawnattr_setflags (License): Likewise.
7261         * modules/posix_spawnattr_getpgroup (License): Likewise.
7262         * modules/posix_spawnattr_setpgroup (License): Likewise.
7263         * modules/posix_spawnattr_getschedparam (License): Likewise.
7264         * modules/posix_spawnattr_setschedparam (License): Likewise.
7265         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
7266         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
7267         * modules/posix_spawnattr_getsigdefault (License): Likewise.
7268         * modules/posix_spawnattr_setsigdefault (License): Likewise.
7269         * modules/posix_spawnattr_getsigmask (License): Likewise.
7270         * modules/posix_spawnattr_setsigmask (License): Likewise.
7271         * modules/posix_spawnattr_destroy (License): Likewise.
7272         * modules/posix_spawn_file_actions_init (License): Likewise.
7273         * modules/posix_spawn_file_actions_addclose (License): Likewise.
7274         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
7275         * modules/posix_spawn_file_actions_addopen (License): Likewise.
7276         * modules/posix_spawn_file_actions_destroy (License): Likewise.
7277         * modules/getdtablesize (License): Likewise.
7278         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
7279
7280 2010-10-26  Bruno Haible  <bruno@clisp.org>
7281
7282         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
7283         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
7284         Cygwin and mingw.
7285         Suggested by Eric Blake.
7286
7287 2010-10-26  Bruno Haible  <bruno@clisp.org>
7288
7289         stdio: Work around compilation error due to renameat() on Solaris 10.
7290         * lib/stdio.in.h: Include <unistd.h> on Solaris.
7291         * lib/renameat.c: Don't include <unistd.h> here.
7292         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
7293         Reported by Paul Eggert and Eric Blake.
7294
7295 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
7296
7297         renameat: port to Solaris 10, which declares renameat in unistd.h
7298
7299         * lib/renameat.c: Include unistd.h before stdio.h, because
7300         Solaris 10 declares renameat in unistd.h.  Problem encountered
7301         when building GNU tar 1.24 on Solaris 10.
7302
7303 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7304
7305         fdopendir: fix C89 compilation
7306         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
7307         compilers.
7308
7309 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7310
7311         inttostr: simplify by removing unnecessary redundancy
7312         * lib/anytostr.c: Don't include verify.h.
7313         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
7314         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
7315         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
7316         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
7317         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
7318         Likewise.
7319         * modules/inttostr (Depends-on): Remove 'verify'.
7320
7321 2010-10-23  Bruno Haible  <bruno@clisp.org>
7322
7323         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
7324         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
7325         Reported by Eric Blake.
7326
7327 2010-10-23  Bruno Haible  <bruno@clisp.org>
7328
7329         Tests: Fix LOCALE_JA on MirBSD 10.
7330         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
7331         to an UTF-8 locale.
7332         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
7333         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7334         Reported by Eric Blake.
7335
7336 2010-10-21  Bruno Haible  <bruno@clisp.org>
7337
7338         nl_langinfo test: Avoid test failure on NetBSD 5.
7339         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
7340         Reported by Eric Blake.
7341
7342 2010-10-21  Eric Blake  <eblake@redhat.com>
7343
7344         c-stack: work around libsigsegv 2.8 bug
7345         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
7346         overflow on at least PowerPC64.
7347
7348 2010-10-17  Bruno Haible  <bruno@clisp.org>
7349
7350         userspec: Drop redundant file.
7351         * modules/userspec (Files): Remove lib/inttostr.h.
7352
7353 2010-10-17  Bruno Haible  <bruno@clisp.org>
7354
7355         nl_langinfo tests: Silence some warnings.
7356         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
7357         Reported by Jim Meyering.
7358
7359 2010-10-17  Bruno Haible  <bruno@clisp.org>
7360
7361         Make use of GCC's attribute __alloc_size__.
7362         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
7363         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
7364         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
7365         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
7366         __alloc_size__.
7367         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
7368         Suggested by Jim Meyering.
7369
7370 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
7371
7372         bootstrap: anchor .gitignore entries.
7373         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
7374         with...
7375         (insert_vc_ignore): ... this new function, which prepends `/' to
7376         all .gitignore entries before passing them to
7377         insert_sorted_if_absent.
7378
7379 2010-10-16  Bruno Haible  <bruno@clisp.org>
7380
7381         nextafter: Fix configure check.
7382         * modules/nextafter (configure.ac): Correct expected prototype.
7383
7384 2010-10-16  Bruno Haible  <bruno@clisp.org>
7385
7386         termios: Update documentation.
7387         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
7388
7389 2010-10-16  Bruno Haible  <bruno@clisp.org>
7390
7391         tests: Make them compile with TinyCC.
7392         * tests/test-strstr.c (main): Remove parentheses around array
7393         initializer.
7394
7395 2010-10-15  Eric Blake  <eblake@redhat.com>
7396
7397         ignore-value: make header idempotent
7398         * lib/ignore-value.h: Add double-inclusion guards.
7399         Reported by Stefan Berger.
7400
7401 2010-10-15  Jim Meyering  <meyering@redhat.com>
7402
7403         GNUmakefile: handle "stable" target, not "major"
7404         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
7405         lists in maint.mk and announce-gen.  Without this, "make stable"
7406         would fail to ensure that $(VERSION) is up to date.
7407
7408 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
7409
7410         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
7411         & co.
7412
7413 2010-10-14  Bruno Haible  <bruno@clisp.org>
7414
7415         vasnprintf: Don't set errno to 0.
7416         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
7417         block that sets it to 0.
7418         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
7419
7420 2010-10-14  Bruno Haible  <bruno@clisp.org>
7421
7422         socketlib: Fix.
7423         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
7424         gl_PREREQ_SYS_H_WINSOCK2.
7425         Reported by Ian Beckwith <ianb@erislabs.net>.
7426
7427 2010-10-13  Jim Meyering  <meyering@redhat.com>
7428
7429         test-select-stdin.c: avoid warn_unused_result warnings
7430         * tests/test-select-stdin.c: Include "macros.h".
7431         ASSERT that read and fflush succeed.
7432
7433 2010-10-13  Jim Meyering  <meyering@redhat.com>
7434
7435         git-version-gen: do require git-VC'd files in cwd
7436         * build-aux/git-version-gen: Reject a git version string
7437         if there are no commits associated with the current directory.
7438         This avoids an unlikely false-positive (unrelated dir whose parent
7439         repository also contains a tag matching v*), as pointed out
7440         by Giuseppe Scrivano in
7441         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
7442
7443 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7444
7445         argv-iter: omit nonconforming declaration
7446         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
7447         enum arg_iter_err declaration, which doesn't conform to C99.
7448         Solaris 10 cc warns about this.
7449
7450 2010-10-13  Eric Blake  <eblake@redhat.com>
7451
7452         termios: fix compilation on mingw
7453         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
7454         (gl_TERMIOS_H): Adjust it on mingw.
7455         * modules/termios (Makefile.am): Substitute new key.
7456         * lib/termios.in.h (includes): Make include_next conditional.
7457         * doc/posix-headers/termios.texi (termios.h): Update
7458         documentation.
7459         Reported by Daniel P. Berrange.
7460
7461 2010-10-13  Jim Meyering  <meyering@redhat.com>
7462
7463         git-version-gen: don't require that .git/ be in the current dir
7464         * build-aux/git-version-gen: Adjust this script so that it works
7465         when run from any working directory beneath the top-level .git/-
7466         containing directory.  Inspired by a patch from Giuseppe Scrivano,
7467         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
7468
7469         test-select: avoid warn_unused_result warnings
7470         * tests/test-select.c: Include "macros.h".
7471         ASSERT that each call to read, write, and pipe succeeds.
7472         While not technically required, also check each "close".
7473         * modules/select-tests (Files): Add tests/macros.h.
7474
7475         test-symlinkat: remove declaration of unused local
7476         * tests/test-symlinkat.c (main): Remove unused local, "buf".
7477
7478         test-inttostr: avoid shadowing warnings
7479         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
7480         and use malloc rather than the stack for the same reason as
7481         mentioned in the comment justifying the other allocation.
7482
7483 2010-10-11  Bruno Haible  <bruno@clisp.org>
7484
7485         stdlib: Allow multiple gnulib generated replacements to coexist.
7486         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
7487         Reported by Sam Steingold <sds@gnu.org>.
7488
7489 2010-10-11  Jim Meyering  <meyering@redhat.com>
7490
7491         fix a documentation typo
7492         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
7493
7494 2010-10-11  Eric Blake  <eblake@redhat.com>
7495
7496         futimens: work around Solaris 11 bug
7497         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
7498         * tests/test-futimens.h (test_futimens): Enhance, rather than
7499         weaken test.
7500         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7501
7502 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7503
7504         Indentation.
7505         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
7506         higher-level operators more to the left.
7507
7508 2010-10-11  Jim Meyering  <meyering@redhat.com>
7509
7510         test-futimens: avoid unwarranted test failure on Solaris 5.11
7511         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
7512         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
7513         because it tries to dereference the NULL name argument.
7514
7515 2010-10-11  Bruno Haible  <bruno@clisp.org>
7516
7517         Indentation.
7518         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
7519         indentation.
7520
7521 2010-10-11  Jim Meyering  <meyering@redhat.com>
7522
7523         spawn.in.h: make indentation consistent with parentheses
7524         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
7525         Make indentation consistent with parentheses.
7526
7527 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
7528
7529         Fix mismatched parens in previous commit
7530         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
7531         parens.
7532
7533 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
7534
7535         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
7536
7537         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
7538         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
7539         * lib/malloca.c: Include "verify.h".
7540         (verify1): Remove, replacing with a verify call.
7541         * lib/relocwrapper.c (verify1): Likewise.
7542         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
7543         Likewise.
7544         * modules/malloca (Depends-on): Add 'verify'.
7545         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
7546         * modules/vasnprintf (Depends-on): Add 'verify'.
7547         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7548         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7549         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7550         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7551         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7552         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7553         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7554
7555         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
7556
7557         Formerly the style was sometimes 2*X - 1, because the C standard
7558         was wrongly thought to disallow ?: in integral constant expressions.
7559         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
7560         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
7561         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7562         * lib/stdint.in.h (_verify_intmax_size): Likewise.
7563         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
7564         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
7565         verify that time_t cannot be floating.
7566
7567 2010-10-08  Eric Blake  <eblake@redhat.com>
7568
7569         time: enforce recent POSIX ruling that time_t is integral
7570         * lib/time.in.h (__time_t_must_be_integral): Detect any
7571         problematic systems, allowing the rest of gnulib to assume POSIX.
7572
7573 2010-10-08  Jim Meyering  <meyering@redhat.com>
7574
7575         fdopendir: fix a bug on systems lacking openat and /proc support
7576         OpenBSD 4.7 is one such system.  The most noticeable effect was
7577         failure of any application making nontrivial use of fts: rm, du,
7578         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
7579           ./rm: traversal failed: `a': Bad file descriptor
7580         Debugging that, you see that even though FD 6 was closed just
7581         prior to the opendir call in fd_clone_opendir, its resulting
7582         dir->dd_fd was 8, rather than the expected value of 6:
7583
7584         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
7585         93                close (fd);
7586         (gdb) n
7587         94                dir = fd_clone_opendir (dupfd);
7588         (gdb) n
7589         95                saved_errno = errno;
7590         (gdb) p dir->dd_fd
7591         $11 = 8
7592
7593         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
7594         The problem is that on OpenBSD, fd_clone_opendir has to resort
7595         to using the old-style save/restore CWD mechanism, due to its
7596         lack of openat/proc support, and *that* would steal the FD (6)
7597         that opendir was supposed to use.
7598
7599         The fix is to squirrel away the desired FD so that save_cwd uses a
7600         different one, and then free the dest FD right before calling opendir.
7601         That guarantees opendir will use the required file descriptor.
7602
7603         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
7604
7605 2010-10-08  Bruno Haible  <bruno@clisp.org>
7606
7607         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
7608         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
7609
7610 2010-10-08  Bruno Haible  <bruno@clisp.org>
7611
7612         nanosleep: Make replacement POSIX compliant.
7613         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
7614         is out of range.
7615         Reported by Jim Meyering.
7616
7617 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7618
7619         bootstrap: add hook for altering gnulib.mk, for Bison
7620         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
7621         the Bison bootstrapping process can rewrite file names and variables
7622         in this file before later parts of 'bootstrap' use the file.
7623         Bison wants to include lib/gnulib.mk from the top-level makefile,
7624         so it needs the file names in this file to be relative to the top
7625         level, not relative to lib; plus it needs variable names to be
7626         rewritten.
7627         (slurp): Use the new function.
7628
7629         bootstrap: reformat for readability
7630         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
7631
7632 2010-10-08  Eric Blake  <eblake@redhat.com>
7633
7634         docs: update cygwin progress
7635         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
7636         1.7.7.
7637         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
7638         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
7639         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
7640         * doc/posix-functions/carg.texi (carg): Likewise.
7641         * doc/posix-functions/cargf.texi (cargf): Likewise.
7642         * doc/posix-functions/casin.texi (casin): Likewise.
7643         * doc/posix-functions/casinf.texi (casinf): Likewise.
7644         * doc/posix-functions/casinh.texi (casinh): Likewise.
7645         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
7646         * doc/posix-functions/catan.texi (catan): Likewise.
7647         * doc/posix-functions/catanf.texi (catanf): Likewise.
7648         * doc/posix-functions/catanh.texi (catanh): Likewise.
7649         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
7650         * doc/posix-functions/ccos.texi (ccos): Likewise.
7651         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
7652         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
7653         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
7654         * doc/posix-functions/cexp.texi (cexp): Likewise.
7655         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
7656         * doc/posix-functions/cimag.texi (cimag): Likewise.
7657         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
7658         * doc/posix-functions/clog.texi (clog): Likewise.
7659         * doc/posix-functions/clogf.texi (clogf): Likewise.
7660         * doc/posix-functions/conj.texi (conj): Likewise.
7661         * doc/posix-functions/conjf.texi (conjf): Likewise.
7662         * doc/posix-functions/cpow.texi (cpow): Likewise.
7663         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
7664         * doc/posix-functions/cproj.texi (cproj): Likewise.
7665         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
7666         * doc/posix-functions/creal.texi (creal): Likewise.
7667         * doc/posix-functions/crealf.texi (crealf): Likewise.
7668         * doc/posix-functions/csin.texi (csin): Likewise.
7669         * doc/posix-functions/csinf.texi (csinf): Likewise.
7670         * doc/posix-functions/csinh.texi (csinh): Likewise.
7671         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
7672         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
7673         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
7674         * doc/posix-functions/ctan.texi (ctan): Likewise.
7675         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
7676         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
7677         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
7678         * doc/posix-headers/complex.texi (complex.h): Likewise.
7679
7680 2010-10-07  Jim Meyering  <meyering@redhat.com>
7681
7682         parse-datetime: avoid compilation failure on OpenBSD 4.7
7683         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
7684         This works around a compilation failure on OpenBSD 4.7:
7685         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
7686
7687 2010-10-07  Eric Blake  <eblake@redhat.com>
7688
7689         docs: update cygwin progress
7690         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
7691         1.7.6.
7692         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7693         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
7694         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
7695         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
7696         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
7697         Likewise.
7698         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
7699         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
7700         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
7701         Likewise.
7702         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
7703         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
7704         Likewise.
7705         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
7706         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
7707         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
7708         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
7709         Likewise.
7710         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
7711         Likewise.
7712         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
7713
7714         docs: update parse-datetime history
7715         * doc/parse-datetime.texi (Authors of parse_datetime): Better
7716         documentation of this function's history and alternatives.
7717
7718         cygwin: use more robust version check
7719         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
7720         exclude an eventual cygwin 1.9.1.
7721         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7722         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7723         (gl_FUNC_STRCASESTR): Likewise.
7724         Reported by Bruno Haible.
7725
7726 2010-10-06  Bruno Haible  <bruno@clisp.org>
7727
7728         string, sys_select: Avoid #including large headers unless necessary.
7729         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
7730         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
7731         OSF/1, BeOS, Haiku.
7732         Reported by Jim Meyering.
7733
7734 2010-10-05  Eric Blake  <eblake@redhat.com>
7735
7736         memmem, strstr, strcasestr: fix bug with long periodic needle
7737         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
7738         periodic needle having false positive.
7739         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
7740         and cygwin 1.7.7.
7741         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
7742         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7743         (gl_FUNC_STRCASESTR): Likewise.
7744         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7745         * tests/test-memmem.c (main): Expose the bug.
7746         * tests/test-strcasestr.c (main): Likewise.
7747         * tests/test-strstr.c (main): Likewise.
7748         * tests/test-c-strcasestr.c (main): Likewise.
7749         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
7750         * doc/posix-functions/strstr.texi (strstr): Likewise.
7751         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
7752         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
7753
7754 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7755
7756         parse-datetime: do some more renaming
7757         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
7758         parse_datetime, not get_date.  Mention the renaming.
7759         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
7760         in comments.
7761         * m4/bison.m4: Likewise.
7762
7763 2010-10-05  Eric Blake  <eblake@redhat.com>
7764
7765         parse-datetime: better name than get_date
7766         * NEWS: Reword the deprecation notice.
7767         * modules/get_date: Rename to modules/parse-datetime.
7768         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
7769         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
7770         * lib/get_date.y: Rename to lib/parse-datetime.y.
7771         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
7772         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
7773         * doc/getdate.texi: Provide fallback wrapper.
7774         * lib/getdate.h: Move guts, and wrap...
7775         * lib/parse-datetime.h: ...new file.
7776         * lib/parse-datetime.y (get_date): Rename...
7777         (parse_datetime): ...to this.
7778         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
7779         (gl_PARSE_DATETIME): ...to this.
7780         * doc/posix-functions/getdate.texi (get_date): Provide fallback
7781         documentation.
7782         * modules/getdate (Files): Provide fallback docs and header.
7783         (Notice, Depends-on): Update references.
7784         * tests/test-parse-datetime.c: Likewise.
7785         * DEPENDENCIES: Likewise.
7786         * MODULES.html.sh (Date and time <time.h>): Likewise.
7787         * doc/parse-datetime.texi (Date input formats)
7788         (Authors of parse_datetime): Likewise.
7789         * modules/parse-datetime (Files, configure.ac, Makefile.am)
7790         (Include): Likewise.
7791         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
7792         * gnulib-tool: Likewise.
7793         * m4/bison.m4 (gl_BISON): Likewise.
7794         Suggested by Bruno Haible.
7795
7796 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7797
7798         more ports to Solaris tr, which needs [] around ranges
7799         * gnulib-tool: Solaris tr needs [] around ranges.
7800         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7801         * tests/test-pipe-filter-gi1.c (main): Likewise.
7802         * tests/test-pipe-filter-ii1.c (main): Likewise.
7803
7804 2010-10-05  Eric Blake  <eblake@redhat.com>
7805
7806         bootstrap: fix Solaris regression
7807         * build-aux/bootstrap (check_versions): Solaris tr still needs []
7808         around ranges.
7809         Reported by Pádraig Brady.
7810
7811         bootstrap: work with pkg-config
7812         * build-aux/bootstrap (check_versions): Also transliterate - in
7813         prerequisite name.
7814         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
7815         prerequisites that were already found, to avoid confusion.
7816         Reported by Justin Clift.
7817
7818         faccessat: remove unused wrappers
7819         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
7820         presence of these wrappers dragged in -lgen on Solaris.
7821         Reported by Clemens Brogi; fix suggested by Paul Eggert.
7822
7823 2010-10-05  Jim Meyering  <meyering@redhat.com>
7824
7825         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
7826         * Makefile (sc_pragma_columns): New syntax-check rule.
7827
7828 2010-10-04  Bruno Haible  <bruno@clisp.org>
7829
7830         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
7831         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
7832         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
7833         Reported by Bruce Korb and Eric Blake.
7834
7835 2010-10-04  Bruno Haible  <bruno@clisp.org>
7836
7837         threadlib: Make option --with-libpth-prefix work.
7838         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
7839         use $LIBPTH, not just -lpth.
7840
7841 2010-10-04  Bruno Haible  <bruno@clisp.org>
7842
7843         Avoid line length limitation from HP NonStop system header files.
7844         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
7845         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
7846         * lib/ctype.in.h: Likewise.
7847         * lib/dirent.in.h: Likewise.
7848         * lib/errno.in.h: Likewise.
7849         * lib/fcntl.in.h: Likewise.
7850         * lib/float.in.h: Likewise.
7851         * lib/getopt.in.h: Likewise.
7852         * lib/iconv.in.h: Likewise.
7853         * lib/inttypes.in.h: Likewise.
7854         * lib/langinfo.in.h: Likewise.
7855         * lib/locale.in.h: Likewise.
7856         * lib/math.in.h: Likewise.
7857         * lib/netdb.in.h: Likewise.
7858         * lib/netinet_in.in.h: Likewise.
7859         * lib/poll.in.h: Likewise.
7860         * lib/pthread.in.h: Likewise.
7861         * lib/pty.in.h: Likewise.
7862         * lib/sched.in.h: Likewise.
7863         * lib/se-selinux.in.h: Likewise.
7864         * lib/search.in.h: Likewise.
7865         * lib/signal.in.h: Likewise.
7866         * lib/spawn.in.h: Likewise.
7867         * lib/stdarg.in.h: Likewise.
7868         * lib/stddef.in.h: Likewise.
7869         * lib/stdint.in.h: Likewise.
7870         * lib/stdio.in.h: Likewise.
7871         * lib/stdlib.in.h: Likewise.
7872         * lib/string.in.h: Likewise.
7873         * lib/strings.in.h: Likewise.
7874         * lib/sys_file.in.h: Likewise.
7875         * lib/sys_ioctl.in.h: Likewise.
7876         * lib/sys_select.in.h: Likewise.
7877         * lib/sys_socket.in.h: Likewise.
7878         * lib/sys_stat.in.h: Likewise.
7879         * lib/sys_time.in.h: Likewise.
7880         * lib/sys_times.in.h: Likewise.
7881         * lib/sys_utsname.in.h: Likewise.
7882         * lib/sys_wait.in.h: Likewise.
7883         * lib/sysexits.in.h: Likewise.
7884         * lib/termios.in.h: Likewise.
7885         * lib/time.in.h: Likewise.
7886         * lib/unistd.in.h: Likewise.
7887         * lib/wchar.in.h: Likewise.
7888         * lib/wctype.in.h: Likewise.
7889         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
7890         * modules/ctype (Makefile.am): Likewise.
7891         * modules/dirent (Makefile.am): Likewise.
7892         * modules/errno (Makefile.am): Likewise.
7893         * modules/fcntl-h (Makefile.am): Likewise.
7894         * modules/float (Makefile.am): Likewise.
7895         * modules/getopt-posix (Makefile.am): Likewise.
7896         * modules/iconv-h (Makefile.am): Likewise.
7897         * modules/inttypes (Makefile.am): Likewise.
7898         * modules/langinfo (Makefile.am): Likewise.
7899         * modules/locale (Makefile.am): Likewise.
7900         * modules/math (Makefile.am): Likewise.
7901         * modules/netdb (Makefile.am): Likewise.
7902         * modules/netinet_in (Makefile.am): Likewise.
7903         * modules/poll-h (Makefile.am): Likewise.
7904         * modules/pthread (Makefile.am): Likewise.
7905         * modules/pty (Makefile.am): Likewise.
7906         * modules/sched (Makefile.am): Likewise.
7907         * modules/search (Makefile.am): Likewise.
7908         * modules/selinux-h (Makefile.am): Likewise.
7909         * modules/signal (Makefile.am): Likewise.
7910         * modules/spawn (Makefile.am): Likewise.
7911         * modules/stdarg (Makefile.am): Likewise.
7912         * modules/stddef (Makefile.am): Likewise.
7913         * modules/stdint (Makefile.am): Likewise.
7914         * modules/stdio (Makefile.am): Likewise.
7915         * modules/stdlib (Makefile.am): Likewise.
7916         * modules/string (Makefile.am): Likewise.
7917         * modules/strings (Makefile.am): Likewise.
7918         * modules/sys_file (Makefile.am): Likewise.
7919         * modules/sys_ioctl (Makefile.am): Likewise.
7920         * modules/sys_select (Makefile.am): Likewise.
7921         * modules/sys_socket (Makefile.am): Likewise.
7922         * modules/sys_stat (Makefile.am): Likewise.
7923         * modules/sys_time (Makefile.am): Likewise.
7924         * modules/sys_times (Makefile.am): Likewise.
7925         * modules/sys_utsname (Makefile.am): Likewise.
7926         * modules/sys_wait (Makefile.am): Likewise.
7927         * modules/sysexits (Makefile.am): Likewise.
7928         * modules/termios (Makefile.am): Likewise.
7929         * modules/time (Makefile.am): Likewise.
7930         * modules/unistd (Makefile.am): Likewise.
7931         * modules/wchar (Makefile.am): Likewise.
7932         * modules/wctype (Makefile.am): Likewise.
7933
7934 2010-10-04  Bruno Haible  <bruno@clisp.org>
7935
7936         read-file tests: Avoid a test failure on NonStop Kernel.
7937         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
7938         a regular file.
7939         Reported by Joachim Schmitz <schmitz@hp.com>.
7940
7941 2010-10-03  Bruno Haible  <bruno@clisp.org>
7942
7943         gnulib-tool: Fixes for --create-testdir with --libtool.
7944         * gnulib-tool (func_get_automake_snippet): Don't augment
7945         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
7946         an executable.
7947         (func_create_testdir): Handle module 'alloca' like func_import.
7948         Reported by Bruce Korb <bruce.korb@gmail.com>.
7949
7950 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
7951
7952         Avoid some lines longer than 80 characters.
7953         * lib/stdint.in.h: Break long comment lines.
7954         * lib/math.in.h: Likewise.
7955         (_GL_NUM_UINT_WORDS): New macro, for readability.
7956         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
7957         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
7958         * lib/stdlib.in.h: Likewise.
7959         * lib/spawn.in.h: Likewise.
7960         * lib/sys_socket.in.h: Update an URL.
7961         * lib/sys_stat.in.h: Break long line.
7962
7963 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
7964
7965         Improve pmccabe2html.
7966         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
7967         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
7968         when the sources change. Remove the line in the HTML about "Used
7969         ranges" (which implied that there might be other unused ranges),
7970         rename "Resume" to "Summary" (easier to understand for more users).
7971         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
7972         styles, and some unnecessary blank lines.
7973
7974 2010-10-03  Bruno Haible  <bruno@clisp.org>
7975             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
7976
7977         acl: Add support for ACLs on NonStop Kernel.
7978         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
7979         Check whether the function aclsort() exists.
7980         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
7981         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
7982         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7983         (acl_nontrivial [HAVE_ACLSORT]: New function.
7984         (file_has_acl): Implement for NonStop Kernel.
7985         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7986         (qset_acl): Implement for NonStop Kernel.
7987         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
7988         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7989         (main): Implement for NonStop Kernel.
7990         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
7991         Kernel. Handle this flavor.
7992         * tests/test-set-mode-acl.sh: Likewise.
7993         * tests/test-copy-acl.sh: Likewise.
7994         * tests/test-copy-file.sh: Likewise.
7995
7996 2010-10-03  Bruno Haible  <bruno@clisp.org>
7997
7998         Info about ACLs on NonStop Kernel.
7999         * doc/acl-resources.txt: Add info about NonStop Kernel.
8000         References by Joachim Schmitz <schmitz@hp.com>.
8001
8002 2010-10-02  Bruno Haible  <bruno@clisp.org>
8003
8004         Define missing EDQUOT on NonStop Kernel.
8005         * lib/errno.in.h (EDQUOT): Assign a value if missing.
8006         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
8007         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
8008         missing.
8009         * doc/posix-headers/errno.texi: Mention the NSK bug.
8010         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
8011         Reported by Joachim Schmitz <schmitz@hp.com>.
8012
8013 2010-10-02  Bruno Haible  <bruno@clisp.org>
8014
8015         Update doc for POSIX:2008.
8016         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
8017         Update URL of POSIX specification.
8018
8019 2010-10-02  Bruno Haible  <bruno@clisp.org>
8020
8021         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
8022         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
8023         from gnulib, not from Automake.
8024
8025 2010-10-02  Bruno Haible  <bruno@clisp.org>
8026
8027         New module 'system-posix'.
8028         * modules/system-posix: New file.
8029         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
8030         module is present.
8031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8032         GNULIB_SYSTEM_POSIX.
8033         * modules/stdlib (Depends-on): Remove sys_wait.
8034         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
8035         * doc/posix-functions/system.texi: Mention the new module.
8036         * doc/posix-headers/stdlib.texi: Likewise.
8037         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
8038         define test_sys_wait_macros to a no-op.
8039         Reported by Sam Steingold <sds@gnu.org>.
8040
8041 2010-09-30  Bruno Haible  <bruno@clisp.org>
8042
8043         More renaming from 'getdate' to 'get_date'.
8044         * doc/get_date.texi: Renamed from doc/getdate.texi.
8045         * modules/get_date (Files): Update.
8046         * MODULES.html.sh (Date and time <time.h>): Update.
8047         * DEPENDENCIES: Update.
8048         * gnulib-tool: Update comment.
8049         * m4/bison.m4 (gl_BISON): Likewise.
8050         * m4/get_date.m4 (gl_GET_DATE): Likewise.
8051
8052 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
8053
8054         bootstrap: support ACLOCAL_FLAGS during aclocal
8055         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
8056         can add additional -I dir for third-party .m4 files.
8057
8058 2010-09-30  Eric Blake  <eblake@redhat.com>
8059
8060         bootstrap: use glibtoolize on MacOS
8061         * build-aux/bootstrap (check_versions): Convert libtool into
8062         libtoolize.
8063         (tool search): Move libtool check earlier, and look for
8064         glibtoolize for MacOS.
8065         (gnulib_tool_options): Auto-add --libtool when appropriate.
8066         Reported by Justin Clift.
8067
8068         poll: fix typo that broke test on MacOS
8069         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
8070         Reported by Justin Clift.
8071
8072         getdate: rename to get_date
8073         Note: getdate.h is not renamed, to minimize client impact.
8074         * modules/getdate: Mark obsolete.  Move old contents...
8075         * modules/get_date: ...to new module name.
8076         * modules/getdate-tests: Move...
8077         * modules/get_date-tests: ...here.
8078         * m4/getdate.m4: Move...
8079         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
8080         * lib/getdate.y: Move...
8081         * lib/get_date.y: ...here.
8082         * tests/test-getdate.c: Move...
8083         * tests/test-get_date.c: ...here.
8084         * doc/posix-functions/getdate.texi (getdate): Update name.
8085         * NEWS: Mention the change.
8086
8087 2010-09-29  Bruno Haible  <bruno@clisp.org>
8088
8089         Separate the module 'waitpid' from the module 'sys_wait'.
8090         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
8091         present.
8092         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
8093         gl_MODULE_INDICATOR_FOR_TESTS.
8094         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
8095         * modules/sys_wait (Depends-on): Remove waitpid.
8096         (Makefile.am): Substitute GNULIB_WAITPID.
8097         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
8098         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
8099         signature only if the 'waitpid' module is present.
8100         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
8101         * NEWS: Mention the change.
8102         * modules/grantpt (Depends-on): Add waitpid.
8103         * modules/wait-process (Depends-on): Likewise.
8104
8105 2010-09-29  Bruno Haible  <bruno@clisp.org>
8106
8107         More tests for module 'sys_wait'.
8108         * modules/sys_wait-c++-tests: New file.
8109         * tests/test-sys_wait-c++.cc: New file.
8110         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
8111         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8112
8113 2010-09-29  Bruno Haible  <bruno@clisp.org>
8114
8115         New module 'waitpid'.
8116         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
8117         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
8118         Don't include <process.h>.
8119         (waitpid): Declare only, using modern idiom.
8120         * m4/waitpid.m4: New file.
8121         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
8122         * modules/waitpid: New file.
8123         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
8124         (Makefile.am): Update.
8125         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8126
8127 2010-09-28  Bruno Haible  <bruno@clisp.org>
8128
8129         poll: Assume ANSI C.
8130         * lib/poll.c (poll): Use an ANSI C declaration.
8131
8132 2010-09-28  Bruno Haible  <bruno@clisp.org>
8133
8134         poll-h: Create poll.h on all platforms.
8135         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
8136         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
8137         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
8138         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
8139         (gl_REPLACE_POLL_H): Don't set POLL_H.
8140         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
8141         * modules/poll-h (Depends-on): Add include_next.
8142         (Makefile.am): Create poll.h unconditionally. Substitute also
8143         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
8144
8145 2010-09-28  Bruno Haible  <bruno@clisp.org>
8146
8147         Tests for module 'poll-h'.
8148         * modules/poll-h-c++-tests: New file.
8149         * tests/test-poll-h-c++.cc: New file.
8150
8151         Tests for module 'poll-h'.
8152         * modules/poll-h-tests: New file.
8153         * tests/test-poll-h.c: New file.
8154
8155 2010-09-28  Bruno Haible  <bruno@clisp.org>
8156
8157         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
8158         * modules/poll-h (Depends-on): Add 'extensions'.
8159
8160 2010-09-28  Bruno Haible  <bruno@clisp.org>
8161
8162         New module 'poll-h'.
8163         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
8164         (poll): Use modern idiom.
8165         * modules/poll-h: New file.
8166         * modules/poll (Files): Remove lib/poll.in.h.
8167         (Depends-on): Add poll-h.
8168         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
8169         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
8170         * m4/poll_h.m4: New file.
8171         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
8172         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
8173         and invoke gl_REPLACE_POLL_H.
8174         * lib/poll.c: Use common idiom.
8175         * tests/test-poll.c: Likewise.
8176         * doc/posix-headers/poll.texi: Mention the poll-h module.
8177         Suggested by Eric Blake.
8178
8179 2010-09-26  Bruno Haible  <bruno@clisp.org>
8180
8181         sys_wait: Implement WSTOPSIG.
8182         * lib/sys_wait.in.h (WSTOPSIG): New macro.
8183         Reported by Simon Josefsson.
8184
8185 2010-09-26  Simon Josefsson  <simon@josefsson.org>
8186
8187         stdlib, sys_wait: Avoid compilation error on mingw.
8188         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
8189
8190 2010-09-26  Bruno Haible  <bruno@clisp.org>
8191
8192         stdlib tests: Avoid code duplication.
8193         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
8194         * modules/sys_wait-tests (Files): Likewise.
8195         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
8196         * tests/test-stdlib.c: Include test-sys_wait.h.
8197         (main): Invoke test_sys_wait_macros.
8198         * tests/test-sys_wait.c: Include test-sys_wait.h.
8199         (main): Invoke test_sys_wait_macros.
8200
8201 2010-09-25  Simon Josefsson  <simon@josefsson.org>
8202
8203         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
8204         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
8205         sure Windows sockets are working before calling getaddrinfo.
8206         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
8207         * doc/gnulib.texi (Windows sockets): Fix typo.
8208
8209 2010-09-25  Bruno Haible  <bruno@clisp.org>
8210
8211         Tests for module 'regex-quote'.
8212         * modules/regex-quote-tests: New file.
8213         * tests/test-regex-quote.c: New file.
8214
8215         New module 'regex-quote'.
8216         * lib/regex-quote.h: New file.
8217         * lib/regex-quote.c: New file.
8218         * modules/regex-quote: New file.
8219         Suggested by Reuben Thomas <rrt@sc3d.org>.
8220
8221 2010-09-24  Bruno Haible  <bruno@clisp.org>
8222
8223         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
8224         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
8225
8226 2010-09-23  Bruno Haible  <bruno@clisp.org>
8227
8228         setenv: Relax license.
8229         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
8230         Blake.
8231         Requested by Eric Blake.
8232
8233 2010-09-22  Bruno Haible  <bruno@clisp.org>
8234
8235         termios: Relax license.
8236         * modules/termios (License): Change to LGPLv2+.
8237         Requested by Eric Blake.
8238
8239 2010-09-22  Bruno Haible  <bruno@clisp.org>
8240
8241         threadlib: Allow the package to change the default to 'no'.
8242         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
8243         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
8244         Reported by Paul Eggert.
8245
8246 2010-09-22  Pádraig Brady  <P@draigbrady.com>
8247             Bruno Haible  <bruno@clisp.org>
8248
8249         Fix endless loop in mbmemcasecoll.
8250         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
8251         byte.
8252         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
8253
8254 2010-09-22  Bruno Haible  <bruno@clisp.org>
8255
8256         Tests for module 'memcoll'.
8257         * modules/memcoll-tests: New file.
8258         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
8259
8260         memcoll, xmemcoll: Clarify size vs. length.
8261         * modules/memcoll.c (memcoll0): Clarify specification.
8262         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
8263         passed to collate_error.
8264
8265 2010-09-22  Bruno Haible  <bruno@clisp.org>
8266
8267         Tests for module 'memcasecmp'.
8268         * modules/memcasecmp-tests: New file.
8269         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
8270
8271 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8272
8273         * lib/pthread.in.h: Add split double-inclusion guard, and include
8274         system <pthread.h> if there is one.  Use @@-style as in other
8275         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
8276         pthread.h doesn't.
8277         (pthread_mutexattr_destroy, pthread_mutexattr_init):
8278         (pthread_mutexattr_settype, pthread_mutex_trylock):
8279         New static inline functions, if there's no system <pthread.h>.
8280         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
8281         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
8282         Approximate with mutexes if the system lacks spinlocks, as in
8283         MacOS.
8284         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
8285         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
8286         @@-style.  Check for spinlocks separately.
8287         (gl_PTHREAD_DEFAULTS): New macro.
8288         * modules/pthread: Redo to use a more typical style for in.h files.
8289
8290 2010-09-21  Eric Blake  <eblake@redhat.com>
8291
8292         net_if: enhance tests
8293         * tests/test-net_if.c (main): Move signature checks earlier.
8294         Print failures to stderr.
8295         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
8296         Document the bug that we do not yet fix.
8297
8298 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8299
8300         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
8301         about gnulib, not GSS.
8302
8303 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8304
8305         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
8306         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
8307         for Emacs.
8308         * build-aux/pmccabe2html: Make Makefile.am example code more
8309         cut-and-paste friendly.
8310
8311 2010-09-21  Simon Josefsson  <simon@josefsson.org>
8312
8313         * tests/test-net_if.c: New file.
8314         * modules/net_if-tests: New file.
8315
8316 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
8317
8318         pthread: add pthread_spin_destroy
8319         * lib/pthread.in.h (pthread_spin_destroy): New function.
8320
8321 2010-09-19  Bruno Haible  <bruno@clisp.org>
8322
8323         gnulib-tool: Fix --help output.
8324         * gnulib-tool (func_usage): Fix help message.
8325         Reported by Reuben Thomas <rrt@sc3d.org>.
8326
8327 2010-09-18  Jim Meyering  <meyering@redhat.com>
8328
8329         maint.mk: avoid unexpanded \n in two diagnostics
8330         * top/maint.mk (sc_prohibit_always_true_header_tests):
8331         Don't use a literal \n in a halt=... assignment.  It would not be
8332         expanded, and the two \n bytes would appear in the diagnostic output
8333         rather than the desired newline.  Use halt=$$(printf ... instead.
8334         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8335
8336 2010-09-18  Bruno Haible  <bruno@clisp.org>
8337
8338         netinet_in: Doc tweak.
8339         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
8340         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8341
8342 2010-09-18  Jim Meyering  <meyering@redhat.com>
8343
8344         init.sh: correct an outdated comment
8345         * tests/init.sh (create_exe_shims_):  s/function/alias/
8346
8347         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
8348         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
8349         a file named "*.exe" is removed between the glob expansion and the
8350         processing of that oddly named file.
8351
8352 2010-09-17  Eric Blake  <eblake@redhat.com>
8353
8354         mirbsd: add some more support
8355         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
8356         in BSD family.
8357         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
8358         devices as OpenBSD.
8359         * m4/host-os.m4 (mirbsd): Add MirBSD.
8360
8361         tests: fix unportable assumption on sys/wait.h
8362         * tests/test-sys_wait.c (main): Relax test.
8363         * tests/test-stdlib.c (main): Likewise.
8364
8365         init.sh: accomodate directory with no .exes
8366         * tests/init.sh: Accomodate directory containing only scripts.
8367
8368         tests: avoid compiler warning
8369         * tests/test-stdlib.c (main): Use the variable.
8370
8371         fdutimens, fdutimensat: update signature, again
8372         * lib/utimens.h (gl_futimens): Delete, and move signature...
8373         (fdutimens): ...here.
8374         (fdutimensat): Rearrange signature.
8375         (lutimensat): Rename variable for clarity.
8376         * lib/fdutimensat.c (fdutimensat): Update signature.
8377         * lib/utimens.c (fdutimens): Likewise.
8378         (gl_futimens): Delete.
8379         (utimens, lutimens): Update callers.
8380         * lib/futimens.c (futimens): Likewise.
8381         * tests/test-fdutimensat.c: Likewise.
8382         * tests/test-utimens.c: Likewise.
8383         * tests/test-futimens.h: Update comment.
8384         * NEWS: Mention this.
8385         Suggested by Paul Eggert.
8386
8387 2010-09-17  Bruno Haible  <bruno@clisp.org>
8388
8389         Take over the maintenance of some older macros from Autoconf.
8390         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
8391         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
8392         GNU Autoconf.
8393         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
8394         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
8395
8396 2010-09-17  Eric Blake  <eblake@redhat.com>
8397
8398         fdutimensat: drop atflag validation
8399         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
8400         with valid fd, to close a race scenario where futimens is
8401         unsupported and FILE was replaced by a symlink.
8402         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
8403         accordingly.
8404         Suggested by Paul Eggert.
8405
8406 2010-09-16  Bruno Haible  <bruno@clisp.org>
8407
8408         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
8409         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
8410
8411 2010-09-16  Bruno Haible  <bruno@clisp.org>
8412
8413         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
8414         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
8415         login_tty exists.
8416         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8417
8418 2010-09-16  Bruno Haible  <bruno@clisp.org>
8419
8420         login_tty: Make the replacement code work on BSD systems.
8421         * lib/login_tty.c: Include <sys/ioctl.h>.
8422         (login_tty): Use ioctl TIOCSCTTY when available.
8423         * modules/login_tty (Depends-on): Add sys_ioctl.
8424         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8425
8426 2010-09-16  Bruno Haible  <bruno@clisp.org>
8427
8428         login_tty: Stricter unit test.
8429         * modules/login_tty-tests (Depends-on): Add tcgetsid.
8430         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
8431         and tcgetsid() after login_tty.
8432         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8433
8434 2010-09-16  Bruno Haible  <bruno@clisp.org>
8435
8436         New module 'tcgetsid'.
8437         * lib/tcgetsid.c: New file.
8438         * m4/tcgetsid.m4: New file.
8439         * modules/tcgetsid: New file.
8440         * modules/termios (Depends-on): Add c++defs, warn-on-use.
8441         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
8442         GNULIB_TCGETSID, HAVE_TCGETSID.
8443         * lib/termios.in.h: Include <sys/types.h>.
8444         (tcgetsid): New declaration.
8445         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
8446         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
8447         * doc/posix-functions/tcgetsid.texi: Mention the new module.
8448         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
8449
8450 2010-09-16  Bruno Haible  <bruno@clisp.org>
8451
8452         Tests for module 'termios'.
8453         * modules/termios-c++-tests: New file.
8454         * modules/termios-tests: New file.
8455         * tests/test-termios-c++.cc: New file.
8456         * tests/test-termios.c: New file.
8457
8458         New module 'termios'.
8459         * modules/termios: New file.
8460         * lib/termios.in.h: New file.
8461         * m4/termios_h.m4: New file.
8462         * doc/posix-headers/termios.texi: Mention the new module.
8463
8464 2010-09-16  Eric Blake  <eblake@redhat.com>
8465
8466         fdutimensat: add an atflag parameter
8467         * lib/fdutimensat.c (fdutimensat): Add new parameter.
8468         * lib/utimens.h (fdutimensat): Update prototype.
8469         * tests/test-fdutimensat.c: Adjust test to match.
8470         * NEWS: Document the change.
8471         Suggested by Paul Eggert.
8472
8473 2010-09-16  Bruno Haible  <bruno@clisp.org>
8474
8475         Fix typos in comments.
8476         * lib/striconveh.h: Fix typo in comment.
8477         * lib/login_tty.c (login_tty): Likewise.
8478
8479 2010-09-15  Bruno Haible  <bruno@clisp.org>
8480
8481         stdlib: clarify MirBSD WEXITSTATUS bug
8482         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
8483         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8484
8485 2010-09-15  Eric Blake  <eblake@redhat.com>
8486
8487         stdlib: work around MirBSD WEXITSTATUS bug
8488         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
8489         * modules/stdlib (Depends-on): Add sys_wait.
8490         * tests/test-sys_wait.c (main): Enhance test.
8491         * tests/test-stdlib.c (main): Likewise.
8492         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
8493
8494         docs: mention MacOS issue with WEXITSTATUS(constant)
8495         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
8496         issue.
8497         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8498
8499         strnlen: add tests
8500         * modules/strnlen-tests: New file.
8501         * tests/test-strnlen.c: Likewise.
8502
8503 2010-09-14  Bruno Haible  <bruno@clisp.org>
8504
8505         unistr/base: Avoid link errors when module 'libunistring' is also used.
8506         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
8507         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
8508         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
8509         Declare also when HAVE_LIBUNISTRING is set.
8510         Reported by Pádraig Brady <P@draigbrady.com>.
8511
8512 2010-09-14  Eric Blake  <eblake@redhat.com>
8513
8514         test-rawmemchr: make more robust
8515         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
8516         (Depends-on, configure.ac): Add needed prerequisites to use it.
8517         * modules/memchr-tests (Files, Depends-on, configure.ac):
8518         Likewise, to avoid implicit reliance on memchr module prereqs.
8519         * tests/test-memchr.c (main): Ensure proper masking.
8520         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
8521         reads.
8522
8523         memchr: detect glibc Alpha bug
8524         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
8525         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
8526         Alpha.
8527         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
8528         * tests/test-memchr.c (main): Enhance test.
8529         Reported by Nelson H. F. Beebe.
8530
8531 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8532
8533         fts, getcwd, glob: audit for dirfd returning -1
8534         * lib/fts.c (opendir): Remove #define; no longer used.
8535         (opendirat): New arg PDIR_FD.  All callers changed.
8536         (fts_build, _opendir2): Use new opendirat to avoid the need for
8537         dirfd, or for checking whether dirfd returns a negative value.
8538         Don't use opendir; always use openat followed by fdopendir.
8539         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
8540         it.
8541         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
8542         returns -1 here.
8543         * modules/fts (Depends-on): Remove dirfd.
8544         * modules/getcwd (Depends-on): Likewise.
8545
8546 2010-09-13  Eric Blake  <eblake@redhat.com>
8547
8548         float: fix broken MirBSD header
8549         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
8550         * doc/posix-headers/float.texi (float.h): Document it.
8551
8552 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8553
8554         fts: use O_NOFOLLOW to avoid race condition when opening a directory
8555         * lib/fts.c (opendirat): New arg extra_flags.
8556         (__opendir2): Use it to avoid following symlinks when opening
8557         a directory, if symlinks are not supposed to be followed.  See
8558         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
8559
8560         fdopendir: preserve argument fd before returning
8561         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
8562         (fdopendir_with_dup, fd_clone_opendir): New static functions.
8563         (fdopendir): Use them, arranging for FD to be open to the same
8564         directory that it was when it started.  (It might be temporarily
8565         closed while fdopendir is running, so this not thread- or
8566         signal-safe.)  Be careful to do the right thing even when file
8567         descriptors are scarce and dup fails with errno == EMFILE.  See
8568         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
8569
8570 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
8571
8572         regex: Pass the system regex if its only problem is 32-bit regoff_t.
8573         * NEWS: Document change.
8574         * m4/regex.m4: Disable test for regoff_t size.
8575
8576 2010-09-13  Jim Meyering  <meyering@redhat.com>
8577
8578         fts: don't operate on an invalid file descriptor after failed dup
8579         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
8580         negative file descriptor.
8581
8582 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
8583
8584         savedir: add streamsavedir, deprecate fdsavedir
8585         * NEWS: Mention deprecation of fdsavedir.
8586         * lib/savedir.c (streamsavedir): New extern function, whose name
8587         ends in "savedir" to be consistent with the others.  This differs
8588         from savedirstream in that it doesn't close its argument.  The
8589         next version of GNU tar will use this instead of fdsavedir, to
8590         avoid some race conditions and conserve file descriptors.
8591         (savedirstream): Reimplement as a wrapper around streamsavedir.
8592         (fdsavedir): Add a comment deprecating this function.  As far as
8593         I know, only GNU tar used it, and GNU tar doesn't need it any more.
8594         * lib/savedir.h (streamsavedir): New decl.
8595         (fdsavedir): Add a comment deprecating this.
8596
8597 2010-09-10  Bruno Haible  <bruno@clisp.org>
8598
8599         langinfo: Fix last commit.
8600         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
8601         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
8602         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8603
8604 2010-09-10  Bruno Haible  <bruno@clisp.org>
8605
8606         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
8607         * lib/progreloc.c (O_EXEC): Define fallback.
8608
8609 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
8610
8611         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
8612         * NEWS: Document recent changes to fcntl-h.
8613         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
8614         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
8615         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
8616         Similarly for O_SEARCH; this last was already true, but not documented.
8617         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
8618         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
8619         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
8620         Likewise.
8621         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
8622         is zero, not whether it is defined.
8623         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
8624         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
8625         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
8626
8627 2010-09-10  Bruno Haible  <bruno@clisp.org>
8628
8629         langinfo, nl_langinfo: Fix for IRIX 5.3.
8630         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
8631         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
8632         HAVE_LANGINFO_YESEXPR.
8633         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
8634         HAVE_LANGINFO_YESEXPR.
8635         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
8636         HAVE_LANGINFO_T_FMT_AMPM is 0.
8637         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
8638         HAVE_LANGINFO_YESEXPR is 0.
8639         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
8640         NOEXPR.
8641         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
8642         * doc/posix-functions/nl_langinfo.texi: Likewise.
8643         Reported by Eric Blake.
8644
8645 2010-09-10  Bruno Haible  <bruno@clisp.org>
8646
8647         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
8648         * doc/glibc-functions/login_tty.texi: Mention the include file problem
8649         on FreeBSD 8.0 and OpenBSD 4.6.
8650         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
8651         * m4/pty_h.m4 (gl_PTY_H): Likewise.
8652         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
8653         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
8654         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
8655         ac_includes_default.
8656         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8657
8658 2010-09-09  Eric Blake  <eblake@redhat.com>
8659
8660         strsignal: work around NetBSD bug
8661         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
8662         * lib/string.in.h (includes): Likewise.
8663         * doc/posix-functions/strsignal.texi (strsignal): Document the
8664         bug.
8665         Reported by Nelson H. F. Beebe.
8666
8667         gnulib-tool: work with NetBSD /bin/sh
8668         * gnulib-tool (func_cache_var, func_cache_lookup_module)
8669         (func_get_description, func_get_comment, func_get_status)
8670         (func_get_notice, func_get_applicability, func_get_filelist)
8671         (func_get_dependencies, func_get_autoconf_early_snippet)
8672         (func_get_autoconf_snippet, func_get_automake_snippet)
8673         (func_get_include_directive, func_get_link_directive)
8674         (func_get_license, func_get_maintainer, func_import): Avoid
8675         shell syntax errors from parsing syntax extensions.
8676
8677 2010-09-09  Bruno Haible  <bruno@clisp.org>
8678
8679         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8680         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
8681         a reliable way to determine whether the 'alias' command works.
8682
8683 2010-09-08  Jim Meyering  <meyering@redhat.com>
8684
8685         init.sh: penalize a set-x-impaired shell; don't disqualify it
8686         * tests/init.sh: Too many shells corrupt application stderr when
8687         you set -x, so we can't afford to disqualify them, since at least
8688         on Irix-6.5, that would disqualify all bourne shells.
8689         Instead, use a two-pass approach.
8690         On the first pass, try to find a shell that meets the stricter
8691         condition that set -x does not corrupt stderr.
8692         If no shell meets the stricter condition, retest each candidate
8693         shell, but without that extra condition.  Finally, when
8694         VERBOSE=yes is requested and set -x might cause trouble, simply
8695         issue a warning and refrain from enabling debug output.
8696
8697 2010-09-08  Eric Blake  <eblake@redhat.com>
8698
8699         unsetenv: fix OpenBSD bug
8700         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
8701         * doc/posix-functions/unsetenv.texi (unsetenv): Update
8702         documentation.
8703         Reported by Jim Meyering.
8704
8705         strtod: work around IRIX 6.5 bug
8706         * lib/strtod.c (strtod): Reparse number on shorter string if
8707         exponent parse was invalid.
8708         * tests/test-strtod.c (main): Add check for "0x1p 2".
8709         Reported by Tom G. Christensen.
8710
8711         getopt: optimize previous patch
8712         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
8713         empty variable.  Speed up awk script.
8714         Reported by Paolo Bonzini.
8715
8716 2010-09-08  Jim Meyering  <meyering@redhat.com>
8717
8718         test.sh: disqualify shells for which set -x corrupts stderr
8719         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
8720         and OpenBSD 4.7.  They make it so with "set -x", environment settings
8721         appear in stderr output.  For example, this command:
8722             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
8723         prints "P=1" on those two systems:
8724
8725 2010-09-08  Bruno Haible  <bruno@clisp.org>
8726
8727         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8728         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
8729         commands, because some shells ignore redirections when there is an
8730         error in the command lookup.
8731         Reported by Eric Blake.
8732
8733 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
8734
8735         * lib/regex.h: Fix a mention of `regex_compile' (should be
8736         `re_compile_pattern').
8737         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
8738         (re_set_registers): Correct name of parameter in comment.
8739
8740         * doc/regex.texi: Add documentation for missing syntax flags.
8741         Remove commented-out documentation of defunct syntax option
8742         RE_NO_EMPTY_ALTS.
8743         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
8744         Add documentation of re_set_registers.
8745         Document trick to re-use a pattern buffer by setting fastmap manually.
8746         Update documentation of struct re_pattern_buffer per public members.
8747         Uncomment documentation of equivalence class operators and
8748         collating symbol operators, since they are now implemented,
8749         Explain leftmost-longest matching in relation to alternatives.
8750         Tidy documentation of substring matching.
8751         Remove POSIX documentation, which is done better in
8752         glibc, and refer the reader there. Keep BSD API documentation, as
8753         that is not readily available elsewhere.
8754
8755 2010-09-07  Eric Blake  <eblake@redhat.com>
8756
8757         getopt: handle POSIXLY_CORRECT set but not exported
8758         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
8759         export state of POSIXLY_CORRECT, due to bash set -o posix.
8760         Reported by Dustin J. Mitchell.
8761
8762 2010-09-05  Bruno Haible  <bruno@clisp.org>
8763
8764         gnulib-tool: Highlight the changed options.
8765         * gnulib-tool (func_usage): Display the --import, --add-import,
8766         --remove-import explanations in bold font.
8767
8768 2010-09-06  Karl Berry  <karl@gnu.org>
8769
8770         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
8771
8772 2010-09-05  Bruno Haible  <bruno@clisp.org>
8773
8774         uniwidth/width: Update comment.
8775         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
8776         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
8777
8778 2010-09-05  Bruno Haible  <bruno@clisp.org>
8779
8780         isinf, isnan: Relax license.
8781         * modules/isinf (License): Change from GPL to LGPL, with consent from
8782         Ben Pfaff.
8783         * modules/isnan (License): Likewise.
8784         Requested by Ludovic Courtès.
8785
8786 2010-09-04  Bruno Haible  <bruno@clisp.org>
8787
8788         gnulib-tool: Help migration from --import to --add-import or --update.
8789         * gnulib-tool: Emit a verbose error message when --import is used
8790         without any module name.
8791
8792 2010-09-04  Bruno Haible  <bruno@clisp.org>
8793
8794         Update doc about gnulib-tool.
8795         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
8796         'gnulib-tool --update' in more detail.
8797         Reported by Eric Blake.
8798
8799 2010-09-04  Bruno Haible  <bruno@clisp.org>
8800
8801         gnulib-tool: Change --import. New options --add/remove-import.
8802         * gnulib-tool: New options --add-import, --remove-import.
8803         (func_usage): Document them.
8804         (have_associative): Define always.
8805         (func_import): In import mode, don't merge the specified settings with
8806         the cached settings. Implement remove-import mode.
8807         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
8808         Explain when to use them versus --import.
8809         (Simple update): Use --add-import instead of --import.
8810         * NEWS: Mention the change.
8811
8812 2010-09-04  Bruno Haible  <bruno@clisp.org>
8813
8814         * doc/gnulib-tool.texi (Initial import): Update paragraph about
8815         separate gnulib.mk.
8816
8817 2010-09-04  Bruno Haible  <bruno@clisp.org>
8818
8819         gnulib-tool: Don't talk about CVS any more.
8820         * gnulib-tool (func_usage, func_import): Write "version control"
8821         instead of CVS.
8822
8823 2010-09-04  Jim Meyering  <meyering@redhat.com>
8824
8825         maint.mk: avoid obscure sc_copyright_check failure in coreutils
8826         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
8827         false positives (whose names may be ill-chosen) when searching
8828         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
8829         would cause a false-positive.
8830
8831         avoid coreutils "make distcheck" failure
8832         Coreutils tests with an absolute build directory name that contains
8833         a space.  Not quoting this directory name caused a failure.
8834         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
8835         * tests/test-vc-list-files-cvs.sh: Likewise.
8836
8837 2010-09-04  Bruno Haible  <bruno@clisp.org>
8838
8839         gnulib-tool: Avoid error when run in a package without Makefile.am.
8840         * gnulib-tool: When collecting the m4dirs in a package that does not
8841         have a Makefile.am, eliminate those directories that contain no
8842         gnulib-cache.m4. Fix expression that counts these directories.
8843
8844 2010-09-04  Bruno Haible  <bruno@clisp.org>
8845
8846         update-copyright test: Improve output when perl is missing or too old.
8847         * tests/test-update-copyright.sh: Move test of Perl version down after
8848         the test whether Perl exists. Provide an explanation relating Perl's
8849         error message to Automake's SKIP: message.
8850
8851 2010-09-04  Bruno Haible  <bruno@clisp.org>
8852
8853         Don't augment PATH in TESTS_ENVIRONMENT.
8854         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
8855         set abs_aux_dir instead of augmenting PATH.
8856         * modules/vc-list-files-tests (Makefile.am): Likewise.
8857         * tests/test-update-copyright.sh: Augment PATH here.
8858         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
8859         path_prepend_.
8860         * tests/test-vc-list-files-git.sh: Likewise.
8861
8862 2010-09-04  Jim Meyering  <meyering@redhat.com>
8863
8864         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
8865         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
8866
8867 2010-09-04  Bruno Haible  <bruno@clisp.org>
8868
8869         strdup: Fix compilation error in C++ mode.
8870         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
8871         the macro.
8872
8873 2010-09-04  Bruno Haible  <bruno@clisp.org>
8874
8875         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
8876         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
8877         macro into a function.
8878         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8879
8880 2010-09-04  Bruno Haible  <bruno@clisp.org>
8881
8882         Set PATH_SEPARATOR the same way autoconf does.
8883         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
8884         the value of PATH_SEPARATOR the same way autoconf-generated configure
8885         scripts do.
8886         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
8887         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
8888
8889 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8890
8891         Set PATH_SEPARATOR the same way autoconf does.
8892         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
8893         the same way autoconf-generated configure scripts do.
8894         * posix-modules: Likewise.
8895
8896 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
8897
8898         hash: fix safe_hasher const typo
8899         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
8900         const; otherwise, there is a type error later.
8901
8902 2010-09-02  Jim Meyering  <meyering@redhat.com>
8903
8904         test-update-copyright.sh: require perl 5.8.0
8905         * tests/test-update-copyright.sh: Require 5.8.0,
8906         which Tom G. Christensen has confirmed is adequate,
8907         while 5.6.1 is not.
8908
8909 2010-09-02  Eric Blake  <eblake@redhat.com>
8910
8911         tests: init.sh improvements for re-exec'ing with zsh
8912         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
8913         -vx through shell re-exec.
8914         Reported by Tom G. Christensen.
8915
8916         wctype: fix typo in previous commit
8917         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
8918         Reported by Ludovic Courtès.
8919
8920 2010-09-02  Jim Meyering  <meyering@redhat.com>
8921
8922         test-update-copyright.sh: skip test if Perl is too old
8923         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
8924         Reported by Tom G. Christensen.
8925
8926 2010-09-02  Bruno Haible  <bruno@clisp.org>
8927
8928         wctype: Avoid compilation error on IRIX 6.5.30.
8929         * lib/wctype.in.h (iswblank): Declare with a replacement if
8930         REPLACE_ISWBLANK is set.
8931         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
8932         declared. Set REPLACE_ISWBLANK.
8933         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
8934         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
8935         * doc/posix-headers/wctype.texi: Likewise.
8936         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8937
8938 2010-09-01  Bruno Haible  <bruno@clisp.org>
8939
8940         New module 'socketlib'.
8941         * modules/socketlib: New file.
8942         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
8943         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
8944         * modules/sockets (Depends-on): Add socketlib.
8945         Suggested by Sam Steingold <sds@gnu.org>.
8946
8947 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8948
8949         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
8950
8951         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
8952         when one needs search access to a directory but not read access.
8953         On systems where it is available, it works in some cases where
8954         O_RDONLY does not, namely on directories that are searchable but
8955         not readable, and which need only to be searchable.  If O_SEARCH
8956         is not available, fall back to the traditional method of using
8957         O_RDONLY.
8958
8959         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
8960         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
8961         when opening a directory that needs only to be searchable.
8962         * lib/chdir-safer.c (chdir_no_follow): Likewise.
8963         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
8964         * lib/openat-proc.c (openat_proc_name): Likewise.
8965         * lib/openat.c (openat_needs_fchdir): Likewise.
8966         * lib/save-cwd.c (save_cwd): Likewise.
8967         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
8968
8969 2010-08-28  Bruno Haible  <bruno@clisp.org>
8970
8971         New module 'host-cpu-c-abi'.
8972         * modules/host-cpu-c-abi: New file.
8973         * m4/host-cpu-c-abi.m4: New file, based on part of
8974         clisp/src/m4/general.m4.
8975         Requested by Sam Steingold <sds@gnu.org>.
8976
8977 2010-08-31  Eric Blake  <eblake@redhat.com>
8978         and Jim Meyering  <meyering@redhat.com>
8979
8980         hash: factor, and guard against misbehaving hasher function
8981         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
8982         of table->hasher's return value.  Also protect against a hash value
8983         so large that adding it to table->bucket results in a NULL pointer.
8984         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
8985         Use it in place of open-coded check-and-abort.
8986
8987 2010-08-30  Bruno Haible  <bruno@clisp.org>
8988
8989         hash: silence spurious clang warning
8990         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
8991         Reported by Eric Blake.
8992
8993 2010-08-30  Eric Blake  <eblake@redhat.com>
8994
8995         strstr, memmem, strcasestr: avoid leaked shell message
8996         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
8997         FreeBSD.
8998         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8999         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9000
9001         tests: silence clang warning
9002         * tests/test-malloca.c (do_allocation): Avoid dead store.
9003
9004 2010-08-29  Bruno Haible  <bruno@clisp.org>
9005
9006         gettext: Fix recent mistake.
9007         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
9008
9009 2010-08-29  Bruno Haible  <bruno@clisp.org>
9010
9011         selinux-h: Offer a --without-selinux option.
9012         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
9013         --without-selinux was specified, skip all tests and define
9014         HAVE_SELINUX_SELINUX_H to 0.
9015         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
9016         set LIB_SELINUX to empty.
9017         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
9018         gl_LIBSELINUX. If --without-selinux was specified, replace
9019         selinux/context.h.
9020         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
9021
9022 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9023             Bruno Haible  <bruno@clisp.org>
9024
9025         Make the module 'realloc-gnu' work again on AIX and OSF/1.
9026         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
9027         of HAVE_REALLOC.
9028         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
9029         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
9030         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
9031         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9032
9033 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9034             Bruno Haible  <bruno@clisp.org>
9035
9036         Make the module 'calloc-gnu' work again on AIX and OSF/1.
9037         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
9038         HAVE_CALLOC.
9039         * lib/xmalloc.c: Update accordingly.
9040         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
9041         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
9042         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
9043
9044 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9045             Bruno Haible  <bruno@clisp.org>
9046
9047         Make the module 'malloc-gnu' work again on AIX and OSF/1.
9048         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
9049         HAVE_MALLOC.
9050         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
9051         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
9052         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9053
9054 2010-08-29  Bruno Haible  <bruno@clisp.org>
9055
9056         Update modules list.
9057         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
9058         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
9059         (String handling <string.h>): Add astrxfrm.
9060         (File system functions): Add readlinkat.
9061
9062 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9063
9064         Tests for module 'realloc-gnu'.
9065         * modules/realloc-gnu-tests: New file.
9066         * tests/test-realloc-gnu.c: New file.
9067
9068         Tests for module 'calloc-gnu'.
9069         * modules/calloc-gnu-tests: New file.
9070         * tests/test-calloc-gnu.c: New file.
9071
9072         Tests for module 'malloc-gnu'.
9073         * modules/malloc-gnu-tests: New file.
9074         * tests/test-malloc-gnu.c: New file.
9075
9076 2010-08-28  Bruno Haible  <bruno@clisp.org>
9077
9078         Rename module 'realloc' -> 'realloc-gnu'.
9079         * modules/realloc-gnu: New file, copied from modules/realloc.
9080         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
9081         obsolete.
9082         * modules/mgetgroups (Depends-on): Update.
9083         * doc/posix-functions/realloc.texi: Update.
9084         * NEWS: Mention the change.
9085
9086         Rename module 'calloc' -> 'calloc-gnu'.
9087         * modules/calloc-gnu: New file, copied from modules/calloc.
9088         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
9089         obsolete.
9090         * doc/posix-functions/calloc.texi: Update.
9091         * NEWS: Mention the change.
9092
9093         Rename module 'malloc' -> 'malloc-gnu'.
9094         * modules/malloc-gnu: New file, copied from modules/malloc.
9095         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
9096         obsolete.
9097         * modules/argp (Depends-on): Update.
9098         * modules/regex (Depends-on): Update.
9099         * doc/posix-functions/malloc.texi: Update.
9100         * NEWS: Mention the change.
9101
9102 2010-08-28  Eric Blake  <eblake@redhat.com>
9103
9104         pread, pwrite: add missing dependency
9105         * modules/pread (Depends-on): Add extensions.
9106         * modules/pwrite (Depends-on): Likewise.
9107
9108 2010-08-28  Bruno Haible  <bruno@clisp.org>
9109
9110         unistr/u*-strchr: Fix tests dependencies.
9111         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
9112         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
9113         Reported by Ian Beckwith <ianb@erislabs.net>.
9114
9115 2010-08-28  Bruno Haible  <bruno@clisp.org>
9116
9117         read-file: Don't occupy too much unused memory.
9118         * lib/read-file.c (fread_file): Shrink the buffer at the end.
9119
9120 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
9121             Eric Blake  <eblake@redhat.com>
9122             Bruno Haible  <bruno@clisp.org>
9123
9124         read-file: Avoid memory reallocations with regular files.
9125         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
9126         (fread_file): With regular files, use the remaining length as the
9127         initial buffer size.  Check against overflow.
9128         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
9129         sys_stat.
9130
9131 2010-08-28  Bruno Haible  <bruno@clisp.org>
9132
9133         ftello: Relax license.
9134         * modules/ftello (License): Relax to LGPLv2+.
9135         Reported by Eric Blake.
9136
9137 2010-08-28  Bruno Haible  <bruno@clisp.org>
9138
9139         Avoid relocwrapper link errors due to gnulib replacement functions.
9140         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
9141         function.
9142         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9143
9144 2010-08-28  Bruno Haible  <bruno@clisp.org>
9145
9146         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
9147         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
9148         defined.
9149         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
9150         Suggested by Eric Blake.
9151
9152 2010-08-28  Bruno Haible  <bruno@clisp.org>
9153
9154         sys_socket, netdb: Ensure socklen_t gets defined.
9155         * modules/sys_socket (Depends-on): Add socklen.
9156         * modules/netdb (Depends-on): Likewise.
9157         * modules/getaddrinfo (Depends-on): Remove socklen.
9158         * modules/getsockopt (Depends-on): Likewise.
9159         * modules/setsockopt (Depends-on): Likewise.
9160         * tests/test-sys_socket.c: Check that socklen_t is defined.
9161         * tests/test-netdb.c: Likewise.
9162         * m4/socklen.m4: Update comments.
9163         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9164
9165 2010-08-27  Eric Blake  <eblake@redhat.com>
9166
9167         login_tty: add missing dependency
9168         * modules/login_tty (Depends-on): Add pty.
9169
9170 2010-08-26  Eric Blake  <eblake@redhat.com>
9171
9172         lib-symbol-versions: fix m4 quoting
9173         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
9174         format for AC_LINK_IFELSE.
9175
9176         glob: fix compile test
9177         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
9178
9179         btowc: fix missing file
9180         * modules/btowc (Files): Also ship locale-fr.m4.
9181
9182         lseek: fix link test
9183         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
9184         AC_LINK_IFELSE.
9185
9186         include_next: silence autoconf 2.68 warning
9187         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
9188         AC_COMPILE_IFELSE as special.
9189         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
9190         autoconf < 2.68.
9191
9192         acl: fix compilation test
9193         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
9194         AC_COMPILE_IFELSE.
9195
9196 2010-08-26  Bruno Haible  <bruno@clisp.org>
9197
9198         Modernize AC_TRY_RUN invocations.
9199         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
9200         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9201         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
9202         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
9203         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
9204         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9205         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9206         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9207         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9208         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9209         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9210         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9211         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9212         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9213         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9214         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9215         gl_MBRLEN_NUL_RETVAL): Likewise.
9216         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9217         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
9218         Likewise.
9219         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9220         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9221         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9222         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9223         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
9224         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
9225         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
9226         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9227         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
9228         Likewise.
9229         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
9230         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
9231         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9232         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9233         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9234         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9235         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9236         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
9237         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9238         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9239
9240 2010-08-26  Bruno Haible  <bruno@clisp.org>
9241
9242         Modernize AC_TRY_LINK invocations.
9243         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
9244         AC_TRY_LINK.
9245         * m4/argp.m4 (gl_ARGP): Likewise.
9246         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9247         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9248         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9249         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9250         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9251         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
9252         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9253         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9254         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9255         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9256         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9257         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
9258         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
9259         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9260         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
9261         * m4/hostent.m4 (gl_HOSTENT): Likewise.
9262         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9263         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
9264         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
9265         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
9266         Likewise.
9267         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
9268         Likewise.
9269         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
9270         Likewise.
9271         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
9272         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
9273         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
9274         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9275         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9276         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9277         * m4/servent.m4 (gl_SERVENT): Likewise.
9278         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9279         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9280         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9281         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9282         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9283         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9284         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9285         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9286         * modules/tsearch-tests (configure.ac): Likewise.
9287
9288 2010-08-26  Bruno Haible  <bruno@clisp.org>
9289
9290         Modernize AC_TRY_COMPILE invocations.
9291         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
9292         AC_TRY_COMPILE.
9293         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
9294         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
9295         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
9296         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
9297         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
9298         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9299         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9300         * m4/lock.m4 (gl_LOCK): Likewise.
9301         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
9302         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9303         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
9304         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9305         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
9306         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
9307         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9308         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
9309         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
9310         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
9311         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
9312         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
9313         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
9314         extraneous semicolon.
9315
9316 2010-08-26  Jim Meyering  <meyering@redhat.com>
9317
9318         stat-time: relax license LGPL
9319         * modules/stat-time (License): Change from GPL to LGPL,
9320         with consent from all contributors, for use in libguile.
9321         Requested by Ludovic Courtès.
9322
9323 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
9324
9325         poll: return immediately on POLLHUP.
9326         * lib/poll.c (poll): Always set timeout before wait_timeout is
9327         computed.
9328
9329 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9330
9331         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
9332         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
9333         rmdir ("dir/.//"), unlinkat.
9334
9335 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9336
9337         stdbool: avoid spurious failure with modern xlc
9338         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9339
9340 2010-08-24  Bruno Haible  <bruno@clisp.org>
9341
9342         getloadavg: simplify code
9343         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
9344         gl_have_func. Update comments.
9345
9346 2010-08-24  Eric Blake  <eblake@redhat.com>
9347
9348         getloadavg: don't define SVR4 on cygwin
9349         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
9350         only define SVR4 when -lkvm is required.
9351         Reported by Yaakov Selkowitz.
9352
9353 2010-08-24  Bruno Haible  <bruno@clisp.org>
9354
9355         priv-set: fix comment
9356         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
9357
9358 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9359
9360         priv-set: fix comments
9361         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
9362         to match code, as suggested by David Bartley in:
9363         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
9364
9365 2010-08-23  Eric Blake  <eblake@redhat.com>
9366
9367         stdbool: avoid rejecting clang
9368         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9369         * tests/test-stdbool.c: Enable more tests if using the system
9370         <stdbool.h> instead of the gnulib replacement.
9371         (main): Move xlc bug test to a runtime test for all compilers.
9372         Reported by Anders Kaseorg.
9373
9374         argz: fix shell quoting issue
9375         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
9376         Reported by Charles Wilson.
9377
9378 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
9379             Erik Faye-Lund <kusmabite@gmail.com>
9380
9381         poll, select: handle ERROR_BROKEN_PIPE.
9382         * lib/poll.c (win32_compute_revents): Return POLLHUP when
9383         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9384         * lib/select.c (win32_compute_revents): Do not mark a pipe
9385         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9386
9387 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
9388
9389         fts: allow compilation with C++
9390         * lib/fts_.h: Specify extern "C" linkage with C++.
9391
9392 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9393
9394         Fix gnulib-tool sed script de-commentation for AIX sed.
9395         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
9396         sed.
9397
9398 2010-08-17  Eric Blake  <eblake@redhat.com>
9399
9400         test-stddef: test for (some) offsetof bugs
9401         * tests/test-stddef.c: Enhance test to ensure correct type of
9402         offsetof.
9403         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
9404         that we are not fixing at this time.
9405
9406 2010-08-15  Bruno Haible  <bruno@clisp.org>
9407
9408         stpncpy: Allow stpncpy to be defined as a macro.
9409         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
9410         if it's already correctly declared.
9411         * lib/string.in.h (stpncpy): Undefine before redefining.
9412         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
9413
9414 2010-08-14  Bruno Haible  <bruno@clisp.org>
9415
9416         Rename module 'memxfrm' to 'amemxfrm'.
9417         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
9418         (amemxfrm): Renamed from memxfrm.
9419         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
9420         (amemxfrm): Renamed from memxfrm.
9421         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
9422         * NEWS: Mention the change.
9423         * MODULES.html.sh (String handling <string.h>): Update.
9424         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
9425         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
9426         * lib/unicase/u16-casexfrm.c: Likewise.
9427         * lib/unicase/u32-casexfrm.c: Likewise.
9428         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
9429         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
9430         * lib/uninorm/u16-normxfrm.c: Likewise.
9431         * lib/uninorm/u32-normxfrm.c: Likewise.
9432         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
9433         memxfrm.
9434         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
9435         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
9436         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
9437         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
9438         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
9439         Suggested by Paul Eggert.
9440
9441 2010-08-14  Bruno Haible  <bruno@clisp.org>
9442
9443         Tests for module 'astrxfrm'.
9444         * modules/astrxfrm-tests: New file.
9445         * tests/test-astrxfrm.c: New file.
9446
9447         New module 'astrxfrm'.
9448         * lib/astrxfrm.h: New file.
9449         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
9450         * modules/astrxfrm: New file.
9451
9452 2010-08-14  Reuben Thomas <rrt@sc3d.org>
9453
9454         regex: Tweak doc.
9455         * doc/regex.texi (Overview): Don't mention regex.c.
9456         (GNU Regular Expression Compiling): Likewise.
9457         (Match-end-of-line Operator): Mention 'not_eol'.
9458
9459 2010-08-14  Brian Gough  <bjg@gnu.org>
9460             Bruno Haible  <bruno@clisp.org>
9461
9462         git-merge-changelog: add doc relating to use with bzr and hg.
9463         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
9464
9465 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
9466
9467         pthread: fix pthread.h creation for srcdir != builddir
9468         * modules/pthread (Makefile.am): Fix the rule to work also in a
9469         non-srcdir build.
9470
9471 2010-08-13  Karl Berry  <karl@gnu.org>
9472
9473         * doc/regex.texi (Predefined Syntaxes): @smallexample.
9474         * doc/posix-*/*: force line break before @url of POSIX
9475         specifications.
9476         Suggested by Werner Lemberg.
9477
9478 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9479
9480         strtod: fix const diagnostic
9481         * lib/strtod.c (strtod): Don't assign const char * to char *,
9482         as this elicits a warning from GCC when warnings are enabled.
9483
9484 2010-08-10  Pádraig Brady <P@draigbrady.com>
9485         and Eric Blake  <eblake@redhat.com>
9486
9487         copy-acl: ignore ENOTSUP on HP-UX
9488         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
9489         so that it is available for HP-UX.
9490         * lib/copy-acl.c (qcopy_acl): Use it.
9491         Reported by Patrick M. Callahan.
9492
9493 2010-08-10  Eric Blake  <eblake@redhat.com>
9494
9495         open, chown: relax license
9496         * modules/open (License): Change to LGPLv2+, with consent by all
9497         authors, for use in augeas.
9498         * modules/chown (License): Likewise.
9499         * modules/lchown (Likewise): Likewise.
9500         Requested by Adam Stokes.
9501
9502 2010-08-09  Karl Berry  <karl@gnu.org>
9503
9504         * build-aux/ar-lib: new file, import from Automake.
9505         * config/srclist.txt: autocheck for updates.
9506
9507 2010-08-09  Eric Blake  <eblake@redhat.com>
9508
9509         readlinkat: adjust client modules
9510         * modules/areadlinkat (Depends-on): Use readlinkat, not
9511         symlinkat.
9512         * modules/areadlinkat-with-size (Depends-on): Likewise.
9513
9514         mknod: be more vocal about danger of running tests as root
9515         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
9516         root, since that is just asking for problems.
9517         Suggested by Bruno Haible, based on a report by Rainer Tammer.
9518
9519         readlinkat: split into its own module
9520         * modules/symlinkat: Split readlinkat...
9521         * modules/readlinkat: ...into separate module.
9522         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
9523         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
9524         * lib/symlinkat.c (readlinkat): Move...
9525         * lib/readlinkat.c: ...into new file.
9526         * modules/symlinkat-tests: Split readlinkat test...
9527         * modules/readlinkat-tests: ...into separate module.
9528         * tests/test-symlinkat.c: Split...
9529         * tests/test-readlinkat.c: ...into new file.
9530         * NEWS: Document the split.
9531         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9532         * lib/unistd.in.h (readlinkat): Likewise.
9533         Suggested by Bruno Haible.
9534
9535 2010-08-08  Bruno Haible  <bruno@clisp.org>
9536
9537         memxfrm: Speed up.
9538         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
9539         that usually only one call to strxfrm is necessary for each string
9540         part.
9541         Reported by Paul Eggert <eggert@cs.ucla.edu>.
9542
9543 2010-08-07  Karl Berry  <karl@gnu.org>
9544
9545         * doc/posix-headers/limits.texi,
9546         * doc/posix-functions/malloc.texi,
9547         * doc/posix-functions/strsignal.texi: missing @item.
9548         * doc/ld-version-script.texi: spurious leading i.
9549         * doc/regex.texi (Interval Operators): no commas inside @var.
9550
9551 2010-08-01  Bruno Haible  <bruno@clisp.org>
9552
9553         Integrate the regex documentation.
9554         * doc/gnulib.texi: Define 'cn' index.
9555         (Regular expressions): New a chapter that includes regex.texi and
9556         regexprops-generic.texi.
9557         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
9558         syntax.
9559
9560         Whitespace cleanup.
9561         * doc/regex.texi: Remove trailing spaces.
9562
9563         Add regex documentation.
9564         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
9565         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
9566         Written by Kathy A. Hargreaves and Karl Berry.
9567
9568 2010-08-01  Bruno Haible  <bruno@clisp.org>
9569
9570         link: Update documentation.
9571         * doc/posix-functions/link.texi: Update regarding Solaris.
9572
9573 2010-07-31  Bruno Haible  <bruno@clisp.org>
9574
9575         Update modules list.
9576         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
9577         (String handling <string.h>): Add memcmp2, memxfrm.
9578         (Container data structures): Add xlist, xsublist, xoset.
9579         (Core language properties): Add alignof, unused-parameter.
9580         (Process control, Numeric conversion functions <stdlib.h>): Renamed
9581         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
9582         (Unibyte characters <ctype.h>): New section.
9583         (String handling <string.h>): New section.
9584         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
9585         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
9586         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
9587         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
9588         tan, tanh, tanl, y0, y1, yn.
9589         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
9590         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
9591         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
9592         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
9593         unlockpt, vdprintf, vdprintf-posix.
9594         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
9595         (File system functions): Add concat-filename, sys_file, sys_ioctl,
9596         xconcat-filename.
9597         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
9598         getdtablesize, pipe2, pipe2-safer.
9599         (Security): New section.
9600         (Networking functions): Add accept4.
9601         (Signal handling): Add sigpipe.
9602         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
9603         mbmemcasecoll.
9604         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
9605         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
9606         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
9607         pipe-filter-ii.
9608         (Misc): Add argp-version-etc, login_tty, parse-duration.
9609
9610 2010-07-31  Bruno Haible  <bruno@clisp.org>
9611
9612         Improve doc in MODULES.html.
9613         * modules/linkat (Description): Add the word "function".
9614         * modules/mkfifo (Description): Likewise.
9615         * modules/mknod (Description): Likewise.
9616         * modules/remove (Description): Likewise.
9617         * modules/renameat (Description): Likewise.
9618         * modules/stat (Description): Likewise.
9619         * modules/symlink (Description): Likewise.
9620         * modules/unlink (Description): Likewise.
9621
9622 2010-07-31  Bruno Haible  <bruno@clisp.org>
9623
9624         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
9625         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
9626         option --enable/disable-c++ instead of --enable/disable-cxx.
9627         * NEWS: Mention the change.
9628
9629 2010-07-31  Bruno Haible  <bruno@clisp.org>
9630
9631         readlink, areadlink: Relax test a bit.
9632         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
9633         alternative to ENOTDIR.
9634         * tests/test-areadlink.h (test_areadlink): Likewise.
9635         Reported by Rainer Tammer.
9636
9637 2010-07-31  Bruno Haible  <bruno@clisp.org>
9638
9639         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
9640         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
9641         character, perform the search using U_STRCHR.
9642         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
9643         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
9644         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
9645         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
9646         Suggested by Paolo Bonzini.
9647
9648 2010-07-31  Bruno Haible  <bruno@clisp.org>
9649
9650         unistr/u*-strstr: Fix dependencies.
9651         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
9652         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
9653         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
9654
9655 2010-07-31  Bruno Haible  <bruno@clisp.org>
9656
9657         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
9658         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
9659         the beginning of the loop.
9660         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
9661         cases in 'switch' statement.
9662
9663         unistr/u8-strchr: Fix several bugs.
9664         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
9665         the string. When not found, return NULL, not a pointer near the end.
9666
9667         More tests for unistr/u8-strchr.
9668         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
9669         that the function does not read past the first occurrence of the byte
9670         being searched.
9671         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
9672         * tests/unistr/test-u16-strchr.c (main): New function.
9673         * tests/unistr/test-u32-strchr.c (main): New function.
9674
9675 2010-07-31  Bruno Haible  <bruno@clisp.org>
9676
9677         posix-modules: Ignore backup files of documentation files.
9678         * posix-modules: grep only through files named *.texi.
9679
9680 2010-07-31  Bruno Haible  <bruno@clisp.org>
9681
9682         symlinkat: Fix documentation.
9683         * doc/posix-functions/readlinkat.texi: Fix module name.
9684
9685 2010-07-31  Bruno Haible  <bruno@clisp.org>
9686
9687         fchownat: Replace also when chown has the trailing slash bug.
9688         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
9689         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
9690         introduced on 2010-04-10.
9691         Reported by Rainer Tammer.
9692
9693 2010-07-31  Bruno Haible  <bruno@clisp.org>
9694
9695         linkat: Work around AIX 7.1 bug.
9696         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
9697         whether linkat handles trailing slash correctly. If not, replace linkat
9698         and define LINKAT_TRAILING_SLASH_BUG.
9699         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
9700         check whether (fd1,file1) points to a directory if file1 or file2 ends
9701         in a slash. Code taken from lib/link.c.
9702         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
9703         Reported by Rainer Tammer.
9704
9705 2010-07-31  Bruno Haible  <bruno@clisp.org>
9706
9707         Correctly determine whether pow is available in libc on AIX 7 with xlc.
9708         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
9709         This disables an xlc optimization that was causing wrong test results.
9710         Reported by Rainer Tammer.
9711
9712 2010-07-31  Bruno Haible  <bruno@clisp.org>
9713
9714         iconv: Work around AIX 6.1..7.1 bug.
9715         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
9716         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
9717         cross-compiling, guess no on all versions of AIX.
9718         Reported by Rainer Tammer.
9719
9720 2010-07-31  Bruno Haible  <bruno@clisp.org>
9721
9722         readlink: Relax test a bit.
9723         * tests/test-readlink.h (test_readlink): Allow different errno value
9724         when readlink is called with a file name that ends in / and refers to
9725         a file.
9726         Suggested by Eric Blake.
9727         Reported by Rainer Tammer.
9728
9729 2010-07-31  Bruno Haible  <bruno@clisp.org>
9730
9731         copysign: Does not require -lm on glibc systems.
9732         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
9733         gl_COMMON_DOUBLE_MATHFUNC.
9734         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
9735
9736 2010-07-31  Bruno Haible  <bruno@clisp.org>
9737
9738         duplocale: Work around AIX 7.1 bug.
9739         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
9740         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
9741         * lib/duplocale.c (rpl_duplocale): Update comment.
9742         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
9743         Reported by Rainer Tammer.
9744
9745 2010-07-30  Bruno Haible  <bruno@clisp.org>
9746
9747         dirfd: Avoid link error on AIX 7.1.
9748         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
9749         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
9750         exist, set REPLACE_DIRFD.
9751         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
9752         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
9753         * doc/posix-functions/dirfd.texi: Update.
9754         Reported by Rainer Tammer.
9755
9756 2010-07-30  Eric Blake  <eblake@redhat.com>
9757
9758         strtod: next round of AIX fixes
9759         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
9760         exponent.
9761         * tests/test-strtod.c (main): Enhance tests.
9762         * doc/posix-functions/strtod.texi (strtod): Document next bug.
9763         Reported by Rainer Tammer.
9764
9765         futimens: fix configure check
9766         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
9767         Reported by Bruno Haible.
9768
9769 2010-07-30  Bruno Haible  <bruno@clisp.org>
9770
9771         getline: Update regarding AIX.
9772         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
9773         Reported by Rainer Tammer.
9774
9775 2010-07-30  Bruno Haible  <bruno@clisp.org>
9776
9777         wcwidth: Drop replacement on AIX 7.
9778         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
9779         AIX 7.
9780         Reported by Rainer Tammer.
9781
9782 2010-07-30  Bruno Haible  <bruno@clisp.org>
9783
9784         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
9785         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
9786         a 'char *'.
9787         Reported by Rainer Tammer.
9788
9789 2010-07-30  Bruno Haible  <bruno@clisp.org>
9790
9791         unlink: Update regarding AIX.
9792         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
9793         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
9794         Reported by Rainer Tammer.
9795
9796 2010-07-30  Bruno Haible  <bruno@clisp.org>
9797
9798         symlink: Update regarding AIX.
9799         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
9800         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
9801         Reported by Rainer Tammer.
9802
9803 2010-07-30  Bruno Haible  <bruno@clisp.org>
9804
9805         strndup: Update regarding AIX.
9806         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
9807         AIX 7.
9808         Reported by Rainer Tammer.
9809
9810 2010-07-30  Bruno Haible  <bruno@clisp.org>
9811
9812         stat: Update regarding AIX.
9813         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
9814         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
9815         Reported by Rainer Tammer.
9816
9817 2010-07-30  Bruno Haible  <bruno@clisp.org>
9818
9819         truncl: Fix autoconf test.
9820         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
9821         whether truncl works.
9822         Reported by Rainer Tammer.
9823
9824 2010-07-30  Bruno Haible  <bruno@clisp.org>
9825
9826         round: Update regarding AIX.
9827         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
9828         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
9829         Reported by Rainer Tammer.
9830
9831 2010-07-30  Bruno Haible  <bruno@clisp.org>
9832
9833         rename: Update regarding AIX.
9834         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
9835         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
9836         Reported by Rainer Tammer.
9837
9838 2010-07-30  Bruno Haible  <bruno@clisp.org>
9839
9840         printf.m4: Update regarding AIX.
9841         * m4/printf.m4: Update comments regarding AIX.
9842         Reported by Rainer Tammer.
9843
9844 2010-07-30  Bruno Haible  <bruno@clisp.org>
9845
9846         iconv: Update regarding AIX.
9847         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
9848         AIX 7.
9849         Reported by Rainer Tammer.
9850
9851 2010-07-30  Bruno Haible  <bruno@clisp.org>
9852
9853         getopt: Update regarding AIX.
9854         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
9855         no on AIX.
9856         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
9857         Reported by Rainer Tammer.
9858
9859 2010-07-30  Bruno Haible  <bruno@clisp.org>
9860
9861         ldexpl; Update regarding AIX.
9862         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
9863         on AIX 7.
9864         Reported by Rainer Tammer.
9865
9866 2010-07-30  Bruno Haible  <bruno@clisp.org>
9867
9868         frexpl: Update regarding AIX.
9869         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
9870         on AIX 7.
9871         Reported by Rainer Tammer.
9872
9873 2010-07-30  Bruno Haible  <bruno@clisp.org>
9874
9875         open, fopen: Update regarding AIX.
9876         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
9877         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9878         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
9879         * doc/posix-functions/fopen.texi: Likewise.
9880         Reported by Rainer Tammer.
9881
9882 2010-07-30  Bruno Haible  <bruno@clisp.org>
9883
9884         chown: Update doc regarding AIX.
9885         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
9886         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
9887         Reported by Rainer Tammer.
9888
9889 2010-07-30  Eric Blake  <eblake@redhat.com>
9890
9891         strtod: fix bug in replacement function on AIX
9892         * lib/strtod.c (strtod): Special case broken "0x" parse in
9893         underlying strtod.
9894         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
9895         * doc/posix-functions/strtod.texi (strtod): Likewise.
9896         Reported by Rainer Tammer.
9897
9898 2010-07-30  Bruno Haible  <bruno@clisp.org>
9899
9900         mbrlen: Fix cross-compilation guess for AIX.
9901         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
9902         guess. Leftover from 2008-12-22.
9903
9904 2010-07-30  Bruno Haible  <bruno@clisp.org>
9905
9906         mbrtowc: Fix cross-compilation guess for AIX.
9907         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
9908         guess. Leftover from 2008-12-21.
9909
9910 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
9911
9912         init.sh: work around trap limitation of some shells
9913         * tests/init.sh (setup_): Move exit trap outside of shell function.
9914
9915 2010-07-29  Eric Blake  <eblake@redhat.com>
9916
9917         strtod: aid debugging
9918         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
9919         understanding why strtod is rejected.
9920
9921 2010-07-28  Bruno Haible  <bruno@clisp.org>
9922
9923         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
9924         * lib/unistr/u8-chr.c: Include <string.h>.
9925         * tests/unistr/test-u8-chr.c: Likewise.
9926         * tests/unistr/test-u16-chr.c: Likewise.
9927         * tests/unistr/test-u32-chr.c: Likewise.
9928         * tests/unistr/test-u8-strchr.c: Likewise.
9929         * tests/unistr/test-u16-strchr.c: Likewise.
9930         * tests/unistr/test-u32-strchr.c: Likewise.
9931         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
9932         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
9933         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
9934         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
9935
9936 2010-07-28  Bruno Haible  <bruno@clisp.org>
9937
9938         Use spaces for indentation, not tabs.
9939         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
9940
9941 2010-07-27  Bruno Haible  <bruno@clisp.org>
9942
9943         mbspcasecmp: Fix function specification.
9944         * lib/string.in.h (mbspcasecmp): Fix specification comment.
9945         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
9946         Reported by Eric Blake <eblake@redhat.com>.
9947
9948 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
9949
9950         timespec: use cast and not conditional, as truncation isn't possible
9951         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
9952         instead of a conditional.  Comment about the situation in more detail.
9953         This undoes most of the 2009-10-29 patch.
9954
9955 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
9956
9957         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
9958         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
9959         * lib/unistr/u8-strchr.c: Likewise.
9960         * modules/unistr/u8-chr: Depend on memchr.
9961
9962         unistr/u*-strchr: add tests
9963         * modules/unistr/u8-strchr-tests: New file.
9964         * modules/unistr/u16-strchr-tests: New file.
9965         * modules/unistr/u32-strchr-tests: New file.
9966         * tests/unistr/test-strchr.h: New file.
9967         * tests/unistr/test-u8-strchr.c: New file.
9968         * tests/unistr/test-u16-strchr.c: New file.
9969         * tests/unistr/test-u32-strchr.c: New file.
9970
9971         unistr/u*-chr: test multibyte sequences more
9972         * tests/unistr/test-chr.h: Do complete testing of the characters in the
9973         test vector.
9974         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
9975         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
9976         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
9977
9978         unistr/u*-chr: test multibyte sequences
9979         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
9980
9981         unistr/u*-chr: prepare for multibyte tests
9982         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
9983         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
9984         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
9985         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
9986         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
9987         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
9988
9989 2010-07-18  Bruno Haible  <bruno@clisp.org>
9990
9991         unistr/u8-strchr: Optimize non-ASCII argument case.
9992         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
9993         because the first byte often matches anyway.
9994         Reported by Pádraig Brady <P@draigbrady.com>.
9995
9996 2010-07-15  Karl Berry  <karl@gnu.org>
9997
9998         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
9999
10000 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
10001
10002         getcwd: on Solaris, work better if ancestors are inaccessible
10003         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
10004         buffer and size, try again with a large buffer.  This works better
10005         on Solaris, since its getcwd succeeds even if the path to the root
10006         is inaccessible, and this is helpful in common cases such as .zfs
10007         hidden directories.  Problem reported by J Chapman Flack in
10008         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
10009         Use system getcwd if it's declared, not merely if it's partly
10010         working; use the partly-working test only to avoid needless effort
10011         if the system getcwd fails.
10012         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
10013         comment that was already obsolete and is now even more obsolete.
10014         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
10015         now might call strdup.
10016
10017 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
10018
10019         pthread: Add enough so that coreutils/src/sort.c compiles.
10020         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
10021         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
10022         gnulib. Include <sched.h> and <time.h>, as per POSIX.
10023         Include <sys/types.h>, in case it defines pthread_t.
10024         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
10025         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
10026         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
10027         (pthread_rwlockattr_t, pthread_spinlock_t):
10028         New typedefs, if HAVE_PTHREAD_T is not defined.
10029         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
10030         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
10031         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
10032         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
10033         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
10034         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
10035         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
10036         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
10037         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
10038         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
10039         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
10040         New macros.
10041         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
10042         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
10043         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
10044         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
10045         (pthread_spin_unlock): New dummy functions.
10046         (pthread_create): Return EAGAIN; don't set errno.
10047         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
10048         require AC_C_INLINE.
10049         * modules/pthread (Depends-on): Add sched, time.
10050         (pthread.h): Use AM_V_GEN.
10051
10052 2010-07-13  Bruno Haible  <bruno@clisp.org>
10053
10054         striconveh: Don't malloc memory if the result buffer is sufficient.
10055         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
10056         buffer if its size is sufficient.
10057         Reported by Ludovic Courtès <ludo@gnu.org>.
10058
10059 2010-07-13  Bruno Haible  <bruno@clisp.org>
10060
10061         strtod: Add safety check.
10062         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
10063
10064 2010-07-12  Bruno Haible  <bruno@clisp.org>
10065
10066         Unify tests that set gl_cv_func_ldexpl_no_libm.
10067         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
10068         gl_FUNC_LDEXPL.
10069         (gl_FUNC_LDEXPL): Invoke it.
10070         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10071
10072 2010-07-12  Bruno Haible  <bruno@clisp.org>
10073
10074         Unify tests that set gl_cv_func_ldexp_no_libm.
10075         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
10076         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
10077         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
10078         (configure.ac): Simply invoke gl_FUNC_LDEXP.
10079         * modules/strtod (Files): Add m4/ldexp.m4.
10080
10081 2010-07-12  Bruno Haible  <bruno@clisp.org>
10082
10083         Unify tests that set gl_cv_func_frexpl_no_libm.
10084         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
10085         gl_FUNC_FREXPL_NO_LIBM.
10086         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
10087         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10088
10089 2010-07-12  Bruno Haible  <bruno@clisp.org>
10090
10091         Unify tests that set gl_cv_func_frexp_no_libm.
10092         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
10093         gl_FUNC_FREXP_NO_LIBM.
10094         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
10095         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10096
10097 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10098
10099         memcoll: clarify sizes versus lengths, document better, and tweak perf
10100         * lib/memcoll.c (strcoll_loop, memcoll0):
10101         Improve quality of descriptive comments.  Name variables
10102         consistently as to whether they are lengths (which do not include
10103         terminating null) versus sizes (which do).
10104         * lib/xmemcoll.c (xmemcoll0): Likewise.
10105         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
10106         returned when s1size == 0; this is easier to compile and saves
10107         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
10108
10109 2010-07-12  Bruno Haible  <bruno@clisp.org>
10110
10111         Tests for module '_Exit'.
10112         * modules/_Exit-tests: New file.
10113         * tests/test-_Exit.sh: New file.
10114         * tests/test-_Exit.c: New file.
10115
10116         New module '_Exit'.
10117         * lib/stdlib.in.h (__attribute__): New macro.
10118         (_Exit): New declaration.
10119         * lib/_Exit.c: New file.
10120         * m4/_Exit.m4: New file.
10121         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
10122         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
10123         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
10124         * modules/_Exit: New file.
10125         * tests/test-stdlib-c++.cc (_Exit): Check signature.
10126         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
10127
10128 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10129
10130         strtod: make it more-accurate typically, and don't require libm
10131         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
10132         Include limits.h.  Don't include string.h.
10133         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
10134         (locale_isspace): New function, so that no casts are needed to
10135         check whether *s is a space.
10136         (ldexp): Provide an unused dummy if not available.
10137         (scale_radix_exp, parse_number, underlying_strtod): New functions.
10138         (strtod): Use them.  This implementation prefers to use the
10139         underlying strtod if available, falling back on our own code
10140         only to fix known bugs.  This is more likely to produce an
10141         accurate result.  Also, it avoids the use of libm functions.
10142         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
10143         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
10144         was absent, but it caused a test failure with coreutils.
10145         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
10146         with libm.
10147         * modules/strtod (Makefile.am, Link): libm is no longer needed.
10148         * modules/strtod-tests (Makefile.am): Likewise.
10149
10150 2010-07-11  Pádraig Brady  <P@draigBrady.com>
10151             Bruno Haible  <bruno@clisp.org>
10152
10153         unistr/u8-strchr: Optimize ASCII argument case.
10154         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
10155
10156 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10157
10158         (x)memcoll: minor tweaks
10159         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
10160         is after the type that it qualifies.
10161         (memcoll0): Likewise.
10162         * lib/memcoll.h (memcoll0): Likewise.
10163         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
10164         * lib/xmemcoll.h (xmemcoll0): Likewise.
10165         * lib/memcoll.c (memcoll0): Correct the comment.  This function
10166         differs from memcoll in that the NUL byte is part of the argument.
10167         Omit the abort-checks, as performance is a real issue here.  Plus,
10168         the checks were wrong anyway (an off-by-one error).  Omit local
10169         variable 'diff', as it's a bit clearer that way.
10170         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
10171         no longer needed.
10172
10173 2010-07-08  Chen Guo <chenguo4@yahoo.com>
10174
10175         (x)memcoll: speedup when input is known to be NUL delimited
10176         * lib/memcoll.c: Include stdlib.
10177         (memcoll0) New function.
10178         (strcoll_loop) New function, refactored for use in both memcoll
10179         and memcoll0.
10180         * lib/memcoll.h: Add prototype for memcoll0.
10181         * lib/xmemcoll.c: (xmemcoll0) New function.
10182         (collate_error) New function, refactored for use in both xmemcoll
10183         and xmemcoll0.
10184         * lib/xmemcoll.h: Add prototype for xmemcoll0.
10185         * m4/memcoll.m4: add inline invocation.
10186
10187 2010-07-06  Pádraig Brady  <P@draigBrady.com>
10188
10189         * build-aux/bootstrap: Remove any local translations
10190         from the translation project synchronization directory,
10191         so that local only translations are not distributed.
10192
10193 2010-07-04  Bruno Haible  <bruno@clisp.org>
10194
10195         fsusage: Clarify which code applies to which platforms.
10196         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
10197         platform.
10198         * lib/fsusage.c (get_fs_usage): Likewise.
10199
10200 2010-07-04  Bruno Haible  <bruno@clisp.org>
10201
10202         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
10203         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
10204         Reported by Martin Lambers <marlam@marlam.de>.
10205
10206 2010-07-04  Jim Meyering  <meyering@redhat.com>
10207
10208         hash: once again explicitly disallow insertion of NULL
10209         * lib/hash.c (hash_insert0): Reinstate just-removed test:
10210         inserting a NULL pointer cannot work with these functions.
10211         Add a comment with details.
10212         This reverts part of the 2010-07-01 commit, 5bef1a35
10213         "hash: extend module to deal with non-pointer keys".
10214
10215 2010-07-01  Bruno Haible  <bruno@clisp.org>
10216
10217         stdbool: Update doc.
10218         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
10219         Info from Christian Weisgerber <naddy@mips.inka.de>.
10220
10221 2010-07-01  Jim Meyering  <meyering@redhat.com>
10222
10223         hash: extend module to deal with non-pointer keys
10224         * lib/hash.c (hash_insert0): New interface, much like hash_insert
10225         but that allows insertion of non-pointer entries.
10226         Do not disallow an ENTRY value of NULL.
10227         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
10228         * lib/hash.h (hash_insert0): Declare.
10229
10230 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10231
10232         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
10233         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
10234         not present (i.e. with autoconf 2.59 and when using gettextize, not
10235         gnulib), require AC_GNU_SOURCE instead.
10236
10237 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
10238
10239         idpriv-drop: Fix tests.
10240         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
10241         not to the test-idpriv-droptemp program.
10242
10243 2010-06-29  Bruno Haible  <bruno@clisp.org>
10244
10245         string: Fix syntax error with g++ 2.96.
10246         * lib/string.in.h (__pure__): Remove definition.
10247         (_GL_ATTRIBUTE_PURE): New macro.
10248         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
10249         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
10250         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10251
10252 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
10253
10254         unitypes: Fix bug introduced on 2010-05-18.
10255         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
10256
10257 2010-06-22  Eric Blake  <eblake@redhat.com>
10258
10259         memmem: slight optimization
10260         * lib/str-two-way.h (critical_factorization): Update comments.
10261         Reduce work during factorization phase.
10262         Reported by Carlos Bueno <carlos@bueno.org>.
10263
10264 2010-06-21  Bruno Haible  <bruno@clisp.org>
10265
10266         Fix HAVE_CALLOC_POSIX misnomer.
10267         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
10268         !HAVE_CALLOC_POSIX.
10269         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
10270         HAVE_CALLOC_POSIX.
10271         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
10272         instead of HAVE_CALLOC_POSIX.
10273         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
10274         HAVE_CALLOC_POSIX.
10275
10276         Use modern idiom for calloc() replacement.
10277         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
10278         AC_FUNC_CALLOC.
10279         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
10280         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
10281         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10282         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
10283         (gl_REPLACE_CALLOC): New macro.
10284
10285 2010-06-21  Bruno Haible  <bruno@clisp.org>
10286
10287         Fix HAVE_REALLOC_POSIX misnomer.
10288         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
10289         !HAVE_REALLOC_POSIX.
10290         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
10291         HAVE_REALLOC_POSIX.
10292         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
10293         instead of HAVE_REALLOC_POSIX.
10294         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
10295         HAVE_REALLOC_POSIX.
10296
10297         Use modern idiom for realloc() replacement.
10298         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
10299         AC_FUNC_REALLOC.
10300         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
10301         Autoconf's AC_FUNC_REALLOC.
10302         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10303         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
10304         (gl_REPLACE_REALLOC): New macro.
10305         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10306
10307 2010-06-21  Bruno Haible  <bruno@clisp.org>
10308
10309         Fix HAVE_MALLOC_POSIX misnomer.
10310         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
10311         !HAVE_MALLOC_POSIX.
10312         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
10313         HAVE_MALLOC_POSIX.
10314         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
10315         instead of HAVE_MALLOC_POSIX.
10316         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
10317         HAVE_MALLOC_POSIX.
10318
10319         Use modern idiom for malloc() replacement.
10320         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
10321         AC_FUNC_MALLOC.
10322         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
10323         Autoconf's AC_FUNC_MALLOC.
10324         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10325         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
10326         (gl_REPLACE_MALLOC): New macro.
10327         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10328
10329 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
10330
10331         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
10332         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
10333         This macro takes 3 arguments, not 4.
10334
10335 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
10336
10337         ipv6: fix detection under mingw
10338         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
10339         in6_addr.
10340
10341 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
10342
10343         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
10344         that strtod() works when cross-compiling to a glibc version known
10345         to work.
10346
10347 2010-06-15  Bruno Haible  <bruno@clisp.org>
10348
10349         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
10350
10351 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
10352
10353         select: Correct timeout.
10354         * lib/select.c (rpl_select): Compute wait_timeout correctly.
10355
10356 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10357
10358         git-version-gen: init shell var to avoid env var influence
10359         * build-aux/git-version-gen (v): Init shell var to empty.
10360
10361 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
10362
10363         priv-set: Don't assume that priv.h exists merely because getppriv does.
10364         See Jan Andersen's bug report about AIX 5L in
10365         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
10366         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
10367         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
10368         * lib/priv-set.h: Likewise.
10369         * tests/test-priv-set.c: Likewise.
10370
10371 2010-06-13  Bruno Haible  <bruno@clisp.org>
10372
10373         relocatable: Make it easier to test whether to install wrappers.
10374         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
10375         RELOCATABLE_VIA_WRAPPER.
10376
10377 2010-06-13  Bruno Haible  <bruno@clisp.org>
10378
10379         gnulib-tool: Display specified modules and dependencies differently.
10380         * gnulib-tool (func_show_module_list): New function.
10381         (func_import, func_create_testdir): Invoke it.
10382         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
10383
10384 2010-06-13  Bruno Haible  <bruno@clisp.org>
10385
10386         gnulib-tool: Align code of func_import and func_create_testdir.
10387         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
10388         specified_modules.
10389
10390 2010-06-12  Jim Meyering  <meyering@redhat.com>
10391
10392         test-inttostr: avoid spurious failure on Solaris 9
10393         * tests/test-inttostr.c (main): Skip the test when snprintf fails
10394         to accept "%ju".  Reported by Bruno Haible.
10395
10396 2010-06-11  Jim Meyering  <meyering@redhat.com>
10397
10398         test-sys_socket: mark variables as used more readably
10399         * tests/test-sys_socket.c (main): Mark otherwise unused variables
10400         as "used" explicitly via (void) statement casts.  This is more
10401         readable than using them in an artificial return expression.
10402         Suggestion from Bruno Haible.
10403
10404 2010-06-11  Bruno Haible  <bruno@clisp.org>
10405
10406         Avoid some more warnings from "gcc -Wwrite-strings".
10407         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
10408         to 'const char *'.
10409         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
10410         * tests/test-c-strcasestr.c (main): Likewise.
10411         * tests/test-mbscasestr1.c (main): Likewise.
10412         * tests/test-mbscasestr2.c (main): Likewise.
10413         * tests/test-memmem.c (main): Likewise.
10414         * tests/test-strstr.c (main): Likewise.
10415         * tests/test-strcasestr.c (main): Likewise.
10416
10417 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10418
10419         init.sh: change framework_failure_ to fail with status 99, not 1
10420         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
10421         automake's parallel-tests rule that this is an unexpected failure,
10422         even if the test is listed in XFAIL_TESTS.
10423
10424 2010-06-11  Jim Meyering  <meyering@redhat.com>
10425
10426         test-inttostr: avoid warnings about 4-6KB literal strings
10427         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
10428         Include "macros.h", for its definition of ASSERT.
10429         (CK): s/assert/ASSERT/
10430         * modules/inttostr-tests (Files): Add macros.h.
10431
10432         init.sh: don't use $ME_ or skip_ before they are defined
10433         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
10434         their first uses.  Also hoist their companions: warn_, fail_,
10435         framework_failure_, $stderr_fileno.  Prompted by a patch from
10436         Stefano Lattarini.
10437
10438         test-sys_socket: avoid set-but-not-used warnings from gcc
10439         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
10440         avoid warning about set-but-not-used variables.
10441
10442         test-xvasprintf: avoid 'const' discard warnings
10443         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
10444         "const" when assigning from literal strings.
10445         (test_xasprintf): Add "void" in function argument list to placate
10446         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
10447
10448         tests: avoid compilation warnings in argmatch and exclude tests...
10449         in packages that define ARGMATCH_DIE_DECL, like coreutils.
10450         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
10451         Since it always exits, declare with the "noreturn" attribute.
10452         * tests/test-argmatch.c: Likewise.
10453
10454         tests: avoid 'const' discard warnings in mbsstr tests
10455         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
10456         * tests/test-mbsstr2.c (main): Likewise.
10457
10458         test-verify: avoid warning from gcc's -Wmissing-declarations
10459         * tests/test-verify.c (function): Declare to be static.
10460
10461         test-inttostr.c: include <string.h> for use of strcmp
10462         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
10463
10464         test-linkat: avoid failed assertion on "other" architectures
10465         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
10466         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
10467         sparc: https://bugs.launchpad.net/bugs/591968
10468
10469 2010-06-11  Jim Meyering  <meyering@redhat.com>
10470
10471         printf.m4: avoid autoconf's "Expanded Before Required" warning
10472         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
10473         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
10474         autoconf warning.
10475
10476 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
10477
10478         Replacement header templates are now named with ".in", not "_".
10479         * doc/gnulib-intro.texi: Correct.
10480
10481 2010-06-10  Jim Meyering  <meyering@redhat.com>
10482
10483         inttostr-tests: depend on snprintf, not snprintf-posix
10484         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
10485         snprintf-posix, to avoid this aclocal failure:
10486           missing file gnulib-tests/vasnprintf.c
10487           configure.ac:45: error: expected source file, required through \
10488           AC_LIBSOURCES, not found
10489
10490 2010-06-10  Jim Meyering  <meyering@redhat.com>
10491
10492         inttostr: add a new function, inttostr, and tests
10493         The namesake function was not available.  The existence of the
10494         template file, inttostr.c makes its addition nontrivial.
10495         * lib/anytostr.c: Rename from inttostr.c.
10496         (anytostr): Rename from inttostr.
10497         * lib/inttostr.c: New file.
10498         * modules/inttostr (Files): Add anytostr.c.
10499         (Makefile.am): Set lib_SOURCES instead of ...
10500         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
10501         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
10502         * lib/offtostr.c: Likewise.
10503         * lib/uinttostr.c: Likewise.
10504         * lib/umaxtostr.c: Likewise.
10505         * modules/inttostr-tests: New file.
10506         * tests/test-inttostr.c: New file.  Test these functions.
10507
10508 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
10509             Bruno Haible  <bruno@clisp.org>
10510
10511         Add "Extending Gnulib" chapter to manual.
10512         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
10513         chapter.
10514         (Extending Gnulib): New chapter.
10515         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
10516         chapter.
10517
10518 2010-06-09  Bruno Haible  <bruno@clisp.org>
10519
10520         Avoid relocwrapper link errors due to gnulib replacement functions.
10521         * lib/areadlink.c: Use the system's malloc, realloc functions.
10522         (areadlink): Set errno to ENOMEM explicitly.
10523         * modules/areadlink (Depends-on): Remove malloc-posix.
10524         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10525
10526 2010-06-09  Bruno Haible  <bruno@clisp.org>
10527
10528         Avoid relocwrapper link errors due to gnulib replacement functions.
10529         * lib/canonicalize-lgpl.c: Use the system's malloc function.
10530         * lib/malloca.c: Likewise.
10531         * lib/relocatable.c: Likewise.
10532         * lib/progreloc.c: Use the system's malloc, sprintf functions.
10533         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
10534         * lib/setenv.c: Use the system's malloc, realloc functions.
10535         * lib/strerror.c: Use the system's sprintf function.
10536         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10537
10538 2010-06-04  Bruno Haible  <bruno@clisp.org>
10539
10540         Prefer documented low-level autoconf macro names.
10541         * m4/lib-link.m4: Use m4_translit instead of translit.
10542         * m4/environ.m4: Likewise.
10543         * m4/mathfunc.m4: Likewise.
10544         * m4/onceonly.m4: Likewise.
10545         * m4/stdint.m4: Likewise.
10546         Suggested by Eric Blake.
10547
10548 2010-06-04  Martin Lambers  <marlam@marlam.de>
10549             Bruno Haible  <bruno@clisp.org>
10550
10551         havelib: Allow library names with '+' characters.
10552         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
10553         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
10554
10555 2010-06-09  Bruno Haible  <bruno@clisp.org>
10556
10557         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
10558         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
10559         realloc failed.
10560
10561 2010-06-08  Peter Simons  <simons@cryp.to>
10562
10563         maint.mk: make the news-check rule more configurable
10564         * top/maint.mk (news-check-lines-spec) New variable.
10565         (news-check): Use "sed -n 1,10p" in place of "head".
10566
10567 2010-06-07  Jim Meyering  <meyering@redhat.com>
10568
10569         do-release-commit-and-tag: fix typo in --help
10570         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
10571
10572         regex: avoid new dead-code warning with gcc-4.6.0
10573         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
10574         if-block containing a while-loop.  It's been unused for at least
10575         5 years.
10576
10577 2010-06-05  Bruno Haible  <bruno@clisp.org>
10578
10579         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
10580         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
10581
10582 2010-06-04  Bruno Haible  <bruno@clisp.org>
10583
10584         Update to GNU gettext 0.18.1.
10585         * modules/gettext (configure.ac): Require gettext infrastructure from
10586         version 0.18.1.
10587
10588 2010-06-03  Bruno Haible  <bruno@clisp.org>
10589
10590         Don't use AC_LIBOBJ with file names in subdirectories.
10591         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
10592         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
10593         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
10594         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
10595         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
10596         gl_LIBUNISTRING_LIBSOURCE.
10597         (Makefile.am): Augment lib_SOURCES here, conditionally.
10598         * NEWS: Drop requirement for Automake option 'subdir-objects'.
10599
10600 2010-06-03  Bruno Haible  <bruno@clisp.org>
10601
10602         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
10603         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
10604         expansion does not end with a newline.
10605         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
10606         unnecessary newline.
10607
10608 2010-06-03  Bruno Haible  <bruno@clisp.org>
10609
10610         Reduce dependencies.
10611         * tests/test-quotearg.h: New file, extracted from
10612         tests/test-quotearg.c.
10613         * tests/test-quotearg-simple.c: New file, extracted from
10614         tests/test-quotearg.c.
10615         * tests/test-quotearg.c: Don't include <ctype.h>.
10616         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
10617         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
10618         use_quote_double_quotes, use_quotearg_colon): Moved to
10619         tests/test-quotearg.h.
10620         (results_g, flag_results, custom_quotes, custom_results): Moved
10621         to tests/test-quotearg-simple.c.
10622         (main): Moved the part that does not depend on gettext to
10623         tests/test-quotearg-simple.c. Return 77 if the test cannot be
10624         performed.
10625         * modules/quotearg-simple: New file.
10626         * modules/quotearg-simple-tests: New file.
10627         * modules/quotearg (Depends-on): Add quotearg-simple.
10628         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
10629         (Files): Add tests/test-quotearg.h.
10630         Reported by Paolo Bonzini.
10631
10632 2010-06-03  Bruno Haible  <bruno@clisp.org>
10633
10634         Reduce dependencies.
10635         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
10636
10637 2010-06-03  Bruno Haible  <bruno@clisp.org>
10638
10639         time: Undefine more broken macros.
10640         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
10641         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
10642         Reported by Eric Blake.
10643
10644 2010-06-03  Bruno Haible  <bruno@clisp.org>
10645
10646         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
10647         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
10648         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
10649         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
10650         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
10651         Reported by Ludovic Courtès <ludo@gnu.org>.
10652
10653 2010-06-02  Eric Blake  <eblake@redhat.com>
10654
10655         time: work with mingw + pthreads-win32 library
10656         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
10657         if timespec is defined only in pthread.h.
10658         * modules/time (Makefile.am): Substitute it.
10659         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
10660         <pthread.h>, when needed.
10661         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
10662         from the library.
10663
10664 2010-05-31  Bruno Haible  <bruno@clisp.org>
10665
10666         Avoid expanding two macros in the wrong order.
10667         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
10668         gl_LIBUNISTRING if it is defined.
10669         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
10670         autoconf >= 2.64.
10671         Reported by Ludovic Courtès <ludo@gnu.org>.
10672
10673 2010-05-27  Jim Meyering  <meyering@redhat.com>
10674
10675         maint.mk: also prohibit "#undef" of always-defined symbols
10676         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
10677         Allow more than one space before the symbol name.
10678         (sc_prohibit_always-defined_macros): Use grep's -E, now that
10679         the regexp uses alternation.
10680
10681 2010-05-26  Eric Blake  <eblake@redhat.com>
10682
10683         maint.mk: avoid echo -e
10684         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
10685         Convert all uses of echo -* to printf.
10686         Reported by Matthias Bolte.
10687
10688 2010-05-25  Bruno Haible  <bruno@clisp.org>
10689
10690         Update to GNU gettext 0.18, part 2.
10691         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
10692         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
10693
10694 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10695
10696         Add missing include in test-pwrite.c.
10697         * tests/test-pwrite.c: Include string.h, for strcmp.
10698
10699 2010-05-24  Bruno Haible  <bruno@clisp.org>
10700
10701         * NEWS: Mention requirement for Automake option 'subdir-objects'.
10702
10703 2010-05-24  Bruno Haible  <bruno@clisp.org>
10704
10705         Don't use conversion with transliteration in u{8,16,32}_strcoll.
10706         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
10707         iconveh_error argument.
10708         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
10709         U_STRCONV_TO_LOCALE.
10710         * lib/unistr/u16-strcoll.c: Likewise.
10711         * lib/unistr/u32-strcoll.c: Likewise.
10712         * modules/unistr/u8-strcoll (Depends-on): Add
10713         uniconv/u8-strconv-to-enc, localcharset. Remove
10714         uniconv/u8-strconv-to-locale.
10715         (configure.ac): Bump version number.
10716         * modules/unistr/u16-strcoll (Depends-on): Add
10717         uniconv/u16-strconv-to-enc, localcharset. Remove
10718         uniconv/u16-strconv-to-locale.
10719         (configure.ac): Bump version number.
10720         * modules/unistr/u32-strcoll (Depends-on): Add
10721         uniconv/u32-strconv-to-enc, localcharset. Remove
10722         uniconv/u32-strconv-to-locale.
10723         (configure.ac): Bump version number.
10724
10725 2010-05-24  Bruno Haible  <bruno@clisp.org>
10726
10727         Avoid a test failure on NetBSD 5.0.
10728         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
10729         an iconv() bug.
10730
10731 2010-05-24  Bruno Haible  <bruno@clisp.org>
10732
10733         Adjust #include directive style.
10734         * modules/regex (Includes): Recommend to write <regex.h>.
10735
10736 2010-05-24  Bruno Haible  <bruno@clisp.org>
10737
10738         regex: Don't require alloca.
10739         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
10740         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
10741         only inside if (0).
10742
10743 2010-05-23  Jim Meyering  <meyering@redhat.com>
10744
10745         test-renameat.c: include <sys/stat.h>
10746         * tests/test-renameat.c: Include <sys/stat.h>; required for
10747         definition of S_IS* macros.
10748
10749 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
10750
10751         Update maintainer documentation for 'relocatable-prog' module.
10752         * doc/relocatable-maint.texi: Update.
10753         Comments by Bruno Haible.
10754
10755 2010-05-23  Bruno Haible  <bruno@clisp.org>
10756
10757         git-merge-changelog: Enable --split-merged-entry by default.
10758         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
10759         (usage): Don't mention this option any more.
10760         Reported by Ralf Wildenhues.
10761
10762 2010-05-23  Jim Meyering  <meyering@redhat.com>
10763
10764         test-pwrite: do not leave behind a test file named "out"
10765         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
10766         The trivial-looking use of init.sh is really necessary.
10767         It ensures that the temporary file, "out", is created in
10768         a temporary directory, and removed upon termination.
10769         * tests/test-pwrite.sh: Re-add file.
10770         * modules/pwrite-tests: Reference it.
10771
10772 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10773
10774         Fix output redirection buglet in init.sh.
10775         * tests/init.sh: Fix redirection of stderr.
10776
10777 2010-05-20  Simon Josefsson  <simon@josefsson.org>
10778
10779         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
10780
10781 2010-05-17  Simon Josefsson  <simon@josefsson.org>
10782
10783         * modules/valgrind-tests: New file.
10784         * m4/valgrind-tests.m4: New file.
10785         * doc/valgrind-tests.texi: New file.
10786         * doc/gnulib.texi (Running self-tests under valgrind): New
10787         section.
10788
10789 2010-05-19  Bruno Haible  <bruno@clisp.org>
10790
10791         Clean up dead code in recent commit.
10792         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
10793         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
10794         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
10795         Suggested by Paolo Bonzini.
10796
10797 2010-05-19  Bruno Haible  <bruno@clisp.org>
10798
10799         Avoid valgrind error reports from libunistring.
10800         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
10801         * modules/libunistring (Files): Add it.
10802         * modules/libunistring-optional (Files): Likewise.
10803
10804 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
10805             Bruno Haible  <bruno@clisp.org>
10806
10807         New module 'libunistring-optional'.
10808         * modules/libunistring-optional: New file.
10809         * m4/libunistring-base.m4: New file.
10810         * m4/libunistring-optional.m4: New file.
10811         * lib/unicase.in.h: Renamed from lib/unicase.h.
10812         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
10813         * lib/unictype.in.h: Renamed from lib/unictype.h.
10814         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
10815         * lib/uniname.in.h: Renamed from lib/uniname.h.
10816         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
10817         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
10818         * lib/unistr.in.h: Renamed from lib/unistr.h.
10819         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
10820         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
10821         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
10822         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
10823         gl_LIBUNISTRING. If the library was found, determine the installed
10824         version and set LIBUNISTRING_VERSION.
10825         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
10826         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
10827         handle a configuration option --with-included-libunistring.
10828         * modules/libunistring (Files): Add m4/absolute-header.m4.
10829         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
10830         Add m4/libunistring-base.m4.
10831         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10832         (Makefile.am): Build unicase.h from unicase.in.h.
10833         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
10834         Add m4/libunistring-base.m4.
10835         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10836         (Makefile.am): Build uniconv.h from uniconv.in.h.
10837         * modules/unictype/base (Files): Use unictype.in.h instead of
10838         unictype.h. Add m4/libunistring-base.m4.
10839         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10840         (Makefile.am): Build unictype.h from unictype.in.h.
10841         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
10842         Add m4/libunistring-base.m4.
10843         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10844         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
10845         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
10846         Add m4/libunistring-base.m4.
10847         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10848         (Makefile.am): Build uniname.h from uniname.in.h.
10849         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
10850         Add m4/libunistring-base.m4.
10851         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10852         (Makefile.am): Build uninorm.h from uninorm.in.h.
10853         * modules/unistdio/base (Files): Use unistdio.in.h instead of
10854         unistdio.h. Add m4/libunistring-base.m4.
10855         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10856         (Makefile.am): Build unistdio.h from unistdio.in.h.
10857         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
10858         Add m4/libunistring-base.m4.
10859         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10860         (Makefile.am): Build unistr.h from unistr.in.h.
10861         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
10862         Add m4/libunistring-base.m4.
10863         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10864         (Makefile.am): Build unitypes.h from unitypes.in.h.
10865         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
10866         Add m4/libunistring-base.m4.
10867         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10868         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
10869         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
10870         uniwidth.h. Add m4/libunistring-base.m4.
10871         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10872         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
10873         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
10874         instead of augmenting lib_SOURCES.
10875         * modules/unicase/empty-suffix-context: Likewise.
10876         * modules/unicase/locale-language: Likewise.
10877         * modules/unicase/tolower: Likewise.
10878         * modules/unicase/totitle: Likewise.
10879         * modules/unicase/toupper: Likewise.
10880         * modules/unicase/u8-casecmp: Likewise.
10881         * modules/unicase/u8-casecoll: Likewise.
10882         * modules/unicase/u8-casefold: Likewise.
10883         * modules/unicase/u8-casexfrm: Likewise.
10884         * modules/unicase/u8-ct-casefold: Likewise.
10885         * modules/unicase/u8-ct-tolower: Likewise.
10886         * modules/unicase/u8-ct-totitle: Likewise.
10887         * modules/unicase/u8-ct-toupper: Likewise.
10888         * modules/unicase/u8-is-cased: Likewise.
10889         * modules/unicase/u8-is-casefolded: Likewise.
10890         * modules/unicase/u8-is-lowercase: Likewise.
10891         * modules/unicase/u8-is-titlecase: Likewise.
10892         * modules/unicase/u8-is-uppercase: Likewise.
10893         * modules/unicase/u8-prefix-context: Likewise.
10894         * modules/unicase/u8-suffix-context: Likewise.
10895         * modules/unicase/u8-tolower: Likewise.
10896         * modules/unicase/u8-totitle: Likewise.
10897         * modules/unicase/u8-toupper: Likewise.
10898         * modules/unicase/u16-casecmp: Likewise.
10899         * modules/unicase/u16-casecoll: Likewise.
10900         * modules/unicase/u16-casefold: Likewise.
10901         * modules/unicase/u16-casexfrm: Likewise.
10902         * modules/unicase/u16-ct-casefold: Likewise.
10903         * modules/unicase/u16-ct-tolower: Likewise.
10904         * modules/unicase/u16-ct-totitle: Likewise.
10905         * modules/unicase/u16-ct-toupper: Likewise.
10906         * modules/unicase/u16-is-cased: Likewise.
10907         * modules/unicase/u16-is-casefolded: Likewise.
10908         * modules/unicase/u16-is-lowercase: Likewise.
10909         * modules/unicase/u16-is-titlecase: Likewise.
10910         * modules/unicase/u16-is-uppercase: Likewise.
10911         * modules/unicase/u16-prefix-context: Likewise.
10912         * modules/unicase/u16-suffix-context: Likewise.
10913         * modules/unicase/u16-tolower: Likewise.
10914         * modules/unicase/u16-totitle: Likewise.
10915         * modules/unicase/u16-toupper: Likewise.
10916         * modules/unicase/u32-casecmp: Likewise.
10917         * modules/unicase/u32-casecoll: Likewise.
10918         * modules/unicase/u32-casefold: Likewise.
10919         * modules/unicase/u32-casexfrm: Likewise.
10920         * modules/unicase/u32-ct-casefold: Likewise.
10921         * modules/unicase/u32-ct-tolower: Likewise.
10922         * modules/unicase/u32-ct-totitle: Likewise.
10923         * modules/unicase/u32-ct-toupper: Likewise.
10924         * modules/unicase/u32-is-cased: Likewise.
10925         * modules/unicase/u32-is-casefolded: Likewise.
10926         * modules/unicase/u32-is-lowercase: Likewise.
10927         * modules/unicase/u32-is-titlecase: Likewise.
10928         * modules/unicase/u32-is-uppercase: Likewise.
10929         * modules/unicase/u32-prefix-context: Likewise.
10930         * modules/unicase/u32-suffix-context: Likewise.
10931         * modules/unicase/u32-tolower: Likewise.
10932         * modules/unicase/u32-totitle: Likewise.
10933         * modules/unicase/u32-toupper: Likewise.
10934         * modules/unicase/ulc-casecmp: Likewise.
10935         * modules/unicase/ulc-casecoll: Likewise.
10936         * modules/unicase/ulc-casexfrm: Likewise.
10937         * modules/uniconv/u8-conv-from-enc: Likewise.
10938         * modules/uniconv/u8-conv-to-enc: Likewise.
10939         * modules/uniconv/u8-strconv-from-enc: Likewise.
10940         * modules/uniconv/u8-strconv-from-locale: Likewise.
10941         * modules/uniconv/u8-strconv-to-enc: Likewise.
10942         * modules/uniconv/u8-strconv-to-locale: Likewise.
10943         * modules/uniconv/u16-conv-from-enc: Likewise.
10944         * modules/uniconv/u16-conv-to-enc: Likewise.
10945         * modules/uniconv/u16-strconv-from-enc: Likewise.
10946         * modules/uniconv/u16-strconv-from-locale: Likewise.
10947         * modules/uniconv/u16-strconv-to-enc: Likewise.
10948         * modules/uniconv/u16-strconv-to-locale: Likewise.
10949         * modules/uniconv/u32-conv-from-enc: Likewise.
10950         * modules/uniconv/u32-conv-to-enc: Likewise.
10951         * modules/uniconv/u32-strconv-from-enc: Likewise.
10952         * modules/uniconv/u32-strconv-from-locale: Likewise.
10953         * modules/uniconv/u32-strconv-to-enc: Likewise.
10954         * modules/uniconv/u32-strconv-to-locale: Likewise.
10955         * modules/unictype/bidicategory-byname: Likewise.
10956         * modules/unictype/bidicategory-name: Likewise.
10957         * modules/unictype/bidicategory-of: Likewise.
10958         * modules/unictype/bidicategory-test: Likewise.
10959         * modules/unictype/block-list: Likewise.
10960         * modules/unictype/block-test: Likewise.
10961         * modules/unictype/category-C: Likewise.
10962         * modules/unictype/category-Cc: Likewise.
10963         * modules/unictype/category-Cf: Likewise.
10964         * modules/unictype/category-Cn: Likewise.
10965         * modules/unictype/category-Co: Likewise.
10966         * modules/unictype/category-Cs: Likewise.
10967         * modules/unictype/category-L: Likewise.
10968         * modules/unictype/category-Ll: Likewise.
10969         * modules/unictype/category-Lm: Likewise.
10970         * modules/unictype/category-Lo: Likewise.
10971         * modules/unictype/category-Lt: Likewise.
10972         * modules/unictype/category-Lu: Likewise.
10973         * modules/unictype/category-M: Likewise.
10974         * modules/unictype/category-Mc: Likewise.
10975         * modules/unictype/category-Me: Likewise.
10976         * modules/unictype/category-Mn: Likewise.
10977         * modules/unictype/category-N: Likewise.
10978         * modules/unictype/category-Nd: Likewise.
10979         * modules/unictype/category-Nl: Likewise.
10980         * modules/unictype/category-No: Likewise.
10981         * modules/unictype/category-P: Likewise.
10982         * modules/unictype/category-Pc: Likewise.
10983         * modules/unictype/category-Pd: Likewise.
10984         * modules/unictype/category-Pe: Likewise.
10985         * modules/unictype/category-Pf: Likewise.
10986         * modules/unictype/category-Pi: Likewise.
10987         * modules/unictype/category-Po: Likewise.
10988         * modules/unictype/category-Ps: Likewise.
10989         * modules/unictype/category-S: Likewise.
10990         * modules/unictype/category-Sc: Likewise.
10991         * modules/unictype/category-Sk: Likewise.
10992         * modules/unictype/category-Sm: Likewise.
10993         * modules/unictype/category-So: Likewise.
10994         * modules/unictype/category-Z: Likewise.
10995         * modules/unictype/category-Zl: Likewise.
10996         * modules/unictype/category-Zp: Likewise.
10997         * modules/unictype/category-Zs: Likewise.
10998         * modules/unictype/category-and: Likewise.
10999         * modules/unictype/category-and-not: Likewise.
11000         * modules/unictype/category-byname: Likewise.
11001         * modules/unictype/category-name: Likewise.
11002         * modules/unictype/category-none: Likewise.
11003         * modules/unictype/category-of: Likewise.
11004         * modules/unictype/category-or: Likewise.
11005         * modules/unictype/category-test: Likewise.
11006         * modules/unictype/combining-class: Likewise.
11007         * modules/unictype/ctype-alnum: Likewise.
11008         * modules/unictype/ctype-alpha: Likewise.
11009         * modules/unictype/ctype-blank: Likewise.
11010         * modules/unictype/ctype-cntrl: Likewise.
11011         * modules/unictype/ctype-digit: Likewise.
11012         * modules/unictype/ctype-graph: Likewise.
11013         * modules/unictype/ctype-lower: Likewise.
11014         * modules/unictype/ctype-print: Likewise.
11015         * modules/unictype/ctype-punct: Likewise.
11016         * modules/unictype/ctype-space: Likewise.
11017         * modules/unictype/ctype-upper: Likewise.
11018         * modules/unictype/ctype-xdigit: Likewise.
11019         * modules/unictype/decimal-digit: Likewise.
11020         * modules/unictype/digit: Likewise.
11021         * modules/unictype/mirror: Likewise.
11022         * modules/unictype/numeric: Likewise.
11023         * modules/unictype/property-alphabetic: Likewise.
11024         * modules/unictype/property-ascii-hex-digit: Likewise.
11025         * modules/unictype/property-bidi-arabic-digit: Likewise.
11026         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
11027         * modules/unictype/property-bidi-block-separator: Likewise.
11028         * modules/unictype/property-bidi-boundary-neutral: Likewise.
11029         * modules/unictype/property-bidi-common-separator: Likewise.
11030         * modules/unictype/property-bidi-control: Likewise.
11031         * modules/unictype/property-bidi-embedding-or-override: Likewise.
11032         * modules/unictype/property-bidi-eur-num-separator: Likewise.
11033         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
11034         * modules/unictype/property-bidi-european-digit: Likewise.
11035         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
11036         * modules/unictype/property-bidi-left-to-right: Likewise.
11037         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
11038         * modules/unictype/property-bidi-other-neutral: Likewise.
11039         * modules/unictype/property-bidi-pdf: Likewise.
11040         * modules/unictype/property-bidi-segment-separator: Likewise.
11041         * modules/unictype/property-bidi-whitespace: Likewise.
11042         * modules/unictype/property-byname: Likewise.
11043         * modules/unictype/property-combining: Likewise.
11044         * modules/unictype/property-composite: Likewise.
11045         * modules/unictype/property-currency-symbol: Likewise.
11046         * modules/unictype/property-dash: Likewise.
11047         * modules/unictype/property-decimal-digit: Likewise.
11048         * modules/unictype/property-default-ignorable-code-point: Likewise.
11049         * modules/unictype/property-deprecated: Likewise.
11050         * modules/unictype/property-diacritic: Likewise.
11051         * modules/unictype/property-extender: Likewise.
11052         * modules/unictype/property-format-control: Likewise.
11053         * modules/unictype/property-grapheme-base: Likewise.
11054         * modules/unictype/property-grapheme-extend: Likewise.
11055         * modules/unictype/property-grapheme-link: Likewise.
11056         * modules/unictype/property-hex-digit: Likewise.
11057         * modules/unictype/property-hyphen: Likewise.
11058         * modules/unictype/property-id-continue: Likewise.
11059         * modules/unictype/property-id-start: Likewise.
11060         * modules/unictype/property-ideographic: Likewise.
11061         * modules/unictype/property-ids-binary-operator: Likewise.
11062         * modules/unictype/property-ids-trinary-operator: Likewise.
11063         * modules/unictype/property-ignorable-control: Likewise.
11064         * modules/unictype/property-iso-control: Likewise.
11065         * modules/unictype/property-join-control: Likewise.
11066         * modules/unictype/property-left-of-pair: Likewise.
11067         * modules/unictype/property-line-separator: Likewise.
11068         * modules/unictype/property-logical-order-exception: Likewise.
11069         * modules/unictype/property-lowercase: Likewise.
11070         * modules/unictype/property-math: Likewise.
11071         * modules/unictype/property-non-break: Likewise.
11072         * modules/unictype/property-not-a-character: Likewise.
11073         * modules/unictype/property-numeric: Likewise.
11074         * modules/unictype/property-other-alphabetic: Likewise.
11075         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
11076         * modules/unictype/property-other-grapheme-extend: Likewise.
11077         * modules/unictype/property-other-id-continue: Likewise.
11078         * modules/unictype/property-other-id-start: Likewise.
11079         * modules/unictype/property-other-lowercase: Likewise.
11080         * modules/unictype/property-other-math: Likewise.
11081         * modules/unictype/property-other-uppercase: Likewise.
11082         * modules/unictype/property-paired-punctuation: Likewise.
11083         * modules/unictype/property-paragraph-separator: Likewise.
11084         * modules/unictype/property-pattern-syntax: Likewise.
11085         * modules/unictype/property-pattern-white-space: Likewise.
11086         * modules/unictype/property-private-use: Likewise.
11087         * modules/unictype/property-punctuation: Likewise.
11088         * modules/unictype/property-quotation-mark: Likewise.
11089         * modules/unictype/property-radical: Likewise.
11090         * modules/unictype/property-sentence-terminal: Likewise.
11091         * modules/unictype/property-soft-dotted: Likewise.
11092         * modules/unictype/property-space: Likewise.
11093         * modules/unictype/property-terminal-punctuation: Likewise.
11094         * modules/unictype/property-test: Likewise.
11095         * modules/unictype/property-titlecase: Likewise.
11096         * modules/unictype/property-unassigned-code-value: Likewise.
11097         * modules/unictype/property-unified-ideograph: Likewise.
11098         * modules/unictype/property-uppercase: Likewise.
11099         * modules/unictype/property-variation-selector: Likewise.
11100         * modules/unictype/property-white-space: Likewise.
11101         * modules/unictype/property-xid-continue: Likewise.
11102         * modules/unictype/property-xid-start: Likewise.
11103         * modules/unictype/property-zero-width: Likewise.
11104         * modules/unictype/scripts: Likewise.
11105         * modules/unictype/syntax-c-ident: Likewise.
11106         * modules/unictype/syntax-c-whitespace: Likewise.
11107         * modules/unictype/syntax-java-ident: Likewise.
11108         * modules/unictype/syntax-java-whitespace: Likewise.
11109         * modules/unilbrk/u8-possible-linebreaks: Likewise.
11110         * modules/unilbrk/u8-width-linebreaks: Likewise.
11111         * modules/unilbrk/u16-possible-linebreaks: Likewise.
11112         * modules/unilbrk/u16-width-linebreaks: Likewise.
11113         * modules/unilbrk/u32-possible-linebreaks: Likewise.
11114         * modules/unilbrk/u32-width-linebreaks: Likewise.
11115         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
11116         * modules/unilbrk/ulc-width-linebreaks: Likewise.
11117         * modules/uniname/uniname: Likewise.
11118         * modules/uninorm/canonical-decomposition: Likewise.
11119         * modules/uninorm/composition: Likewise.
11120         * modules/uninorm/decomposing-form: Likewise.
11121         * modules/uninorm/decomposition: Likewise.
11122         * modules/uninorm/filter: Likewise.
11123         * modules/uninorm/nfc: Likewise.
11124         * modules/uninorm/nfd: Likewise.
11125         * modules/uninorm/nfkc: Likewise.
11126         * modules/uninorm/nfkd: Likewise.
11127         * modules/uninorm/u8-normalize: Likewise.
11128         * modules/uninorm/u8-normcmp: Likewise.
11129         * modules/uninorm/u8-normcoll: Likewise.
11130         * modules/uninorm/u8-normxfrm: Likewise.
11131         * modules/uninorm/u16-normalize: Likewise.
11132         * modules/uninorm/u16-normcmp: Likewise.
11133         * modules/uninorm/u16-normcoll: Likewise.
11134         * modules/uninorm/u16-normxfrm: Likewise.
11135         * modules/uninorm/u32-normalize: Likewise.
11136         * modules/uninorm/u32-normcmp: Likewise.
11137         * modules/uninorm/u32-normcoll: Likewise.
11138         * modules/uninorm/u32-normxfrm: Likewise.
11139         * modules/unistdio/u8-asnprintf: Likewise.
11140         * modules/unistdio/u8-asprintf: Likewise.
11141         * modules/unistdio/u8-snprintf: Likewise.
11142         * modules/unistdio/u8-sprintf: Likewise.
11143         * modules/unistdio/u8-u8-asnprintf: Likewise.
11144         * modules/unistdio/u8-u8-asprintf: Likewise.
11145         * modules/unistdio/u8-u8-snprintf: Likewise.
11146         * modules/unistdio/u8-u8-sprintf: Likewise.
11147         * modules/unistdio/u8-u8-vasnprintf: Likewise.
11148         * modules/unistdio/u8-u8-vasprintf: Likewise.
11149         * modules/unistdio/u8-u8-vsnprintf: Likewise.
11150         * modules/unistdio/u8-u8-vsprintf: Likewise.
11151         * modules/unistdio/u8-vasnprintf: Likewise.
11152         * modules/unistdio/u8-vasprintf: Likewise.
11153         * modules/unistdio/u8-vsnprintf: Likewise.
11154         * modules/unistdio/u8-vsprintf: Likewise.
11155         * modules/unistdio/u16-asnprintf: Likewise.
11156         * modules/unistdio/u16-asprintf: Likewise.
11157         * modules/unistdio/u16-snprintf: Likewise.
11158         * modules/unistdio/u16-sprintf: Likewise.
11159         * modules/unistdio/u16-u16-asnprintf: Likewise.
11160         * modules/unistdio/u16-u16-asprintf: Likewise.
11161         * modules/unistdio/u16-u16-snprintf: Likewise.
11162         * modules/unistdio/u16-u16-sprintf: Likewise.
11163         * modules/unistdio/u16-u16-vasnprintf: Likewise.
11164         * modules/unistdio/u16-u16-vasprintf: Likewise.
11165         * modules/unistdio/u16-u16-vsnprintf: Likewise.
11166         * modules/unistdio/u16-u16-vsprintf: Likewise.
11167         * modules/unistdio/u16-vasnprintf: Likewise.
11168         * modules/unistdio/u16-vasprintf: Likewise.
11169         * modules/unistdio/u16-vsnprintf: Likewise.
11170         * modules/unistdio/u16-vsprintf: Likewise.
11171         * modules/unistdio/u32-asnprintf: Likewise.
11172         * modules/unistdio/u32-asprintf: Likewise.
11173         * modules/unistdio/u32-snprintf: Likewise.
11174         * modules/unistdio/u32-sprintf: Likewise.
11175         * modules/unistdio/u32-u32-asnprintf: Likewise.
11176         * modules/unistdio/u32-u32-asprintf: Likewise.
11177         * modules/unistdio/u32-u32-snprintf: Likewise.
11178         * modules/unistdio/u32-u32-sprintf: Likewise.
11179         * modules/unistdio/u32-u32-vasnprintf: Likewise.
11180         * modules/unistdio/u32-u32-vasprintf: Likewise.
11181         * modules/unistdio/u32-u32-vsnprintf: Likewise.
11182         * modules/unistdio/u32-u32-vsprintf: Likewise.
11183         * modules/unistdio/u32-vasnprintf: Likewise.
11184         * modules/unistdio/u32-vasprintf: Likewise.
11185         * modules/unistdio/u32-vsnprintf: Likewise.
11186         * modules/unistdio/u32-vsprintf: Likewise.
11187         * modules/unistdio/ulc-asnprintf: Likewise.
11188         * modules/unistdio/ulc-asprintf: Likewise.
11189         * modules/unistdio/ulc-fprintf: Likewise.
11190         * modules/unistdio/ulc-snprintf: Likewise.
11191         * modules/unistdio/ulc-sprintf: Likewise.
11192         * modules/unistdio/ulc-vasnprintf: Likewise.
11193         * modules/unistdio/ulc-vasprintf: Likewise.
11194         * modules/unistdio/ulc-vfprintf: Likewise.
11195         * modules/unistdio/ulc-vsnprintf: Likewise.
11196         * modules/unistdio/ulc-vsprintf: Likewise.
11197         * modules/unistr/u8-check: Likewise.
11198         * modules/unistr/u8-chr: Likewise.
11199         * modules/unistr/u8-cmp: Likewise.
11200         * modules/unistr/u8-cmp2: Likewise.
11201         * modules/unistr/u8-cpy: Likewise.
11202         * modules/unistr/u8-cpy-alloc: Likewise.
11203         * modules/unistr/u8-endswith: Likewise.
11204         * modules/unistr/u8-mblen: Likewise.
11205         * modules/unistr/u8-mbsnlen: Likewise.
11206         * modules/unistr/u8-mbtouc: Likewise.
11207         * modules/unistr/u8-mbtouc-unsafe: Likewise.
11208         * modules/unistr/u8-mbtoucr: Likewise.
11209         * modules/unistr/u8-move: Likewise.
11210         * modules/unistr/u8-next: Likewise.
11211         * modules/unistr/u8-prev: Likewise.
11212         * modules/unistr/u8-set: Likewise.
11213         * modules/unistr/u8-startswith: Likewise.
11214         * modules/unistr/u8-stpcpy: Likewise.
11215         * modules/unistr/u8-stpncpy: Likewise.
11216         * modules/unistr/u8-strcat: Likewise.
11217         * modules/unistr/u8-strchr: Likewise.
11218         * modules/unistr/u8-strcmp: Likewise.
11219         * modules/unistr/u8-strcoll: Likewise.
11220         * modules/unistr/u8-strcpy: Likewise.
11221         * modules/unistr/u8-strcspn: Likewise.
11222         * modules/unistr/u8-strdup: Likewise.
11223         * modules/unistr/u8-strlen: Likewise.
11224         * modules/unistr/u8-strmblen: Likewise.
11225         * modules/unistr/u8-strmbtouc: Likewise.
11226         * modules/unistr/u8-strncat: Likewise.
11227         * modules/unistr/u8-strncmp: Likewise.
11228         * modules/unistr/u8-strncpy: Likewise.
11229         * modules/unistr/u8-strnlen: Likewise.
11230         * modules/unistr/u8-strpbrk: Likewise.
11231         * modules/unistr/u8-strrchr: Likewise.
11232         * modules/unistr/u8-strspn: Likewise.
11233         * modules/unistr/u8-strstr: Likewise.
11234         * modules/unistr/u8-strtok: Likewise.
11235         * modules/unistr/u8-to-u16: Likewise.
11236         * modules/unistr/u8-to-u32: Likewise.
11237         * modules/unistr/u8-uctomb: Likewise.
11238         * modules/unistr/u16-check: Likewise.
11239         * modules/unistr/u16-chr: Likewise.
11240         * modules/unistr/u16-cmp: Likewise.
11241         * modules/unistr/u16-cmp2: Likewise.
11242         * modules/unistr/u16-cpy: Likewise.
11243         * modules/unistr/u16-cpy-alloc: Likewise.
11244         * modules/unistr/u16-endswith: Likewise.
11245         * modules/unistr/u16-mblen: Likewise.
11246         * modules/unistr/u16-mbsnlen: Likewise.
11247         * modules/unistr/u16-mbtouc: Likewise.
11248         * modules/unistr/u16-mbtouc-unsafe: Likewise.
11249         * modules/unistr/u16-mbtoucr: Likewise.
11250         * modules/unistr/u16-move: Likewise.
11251         * modules/unistr/u16-next: Likewise.
11252         * modules/unistr/u16-prev: Likewise.
11253         * modules/unistr/u16-set: Likewise.
11254         * modules/unistr/u16-startswith: Likewise.
11255         * modules/unistr/u16-stpcpy: Likewise.
11256         * modules/unistr/u16-stpncpy: Likewise.
11257         * modules/unistr/u16-strcat: Likewise.
11258         * modules/unistr/u16-strchr: Likewise.
11259         * modules/unistr/u16-strcmp: Likewise.
11260         * modules/unistr/u16-strcoll: Likewise.
11261         * modules/unistr/u16-strcpy: Likewise.
11262         * modules/unistr/u16-strcspn: Likewise.
11263         * modules/unistr/u16-strdup: Likewise.
11264         * modules/unistr/u16-strlen: Likewise.
11265         * modules/unistr/u16-strmblen: Likewise.
11266         * modules/unistr/u16-strmbtouc: Likewise.
11267         * modules/unistr/u16-strncat: Likewise.
11268         * modules/unistr/u16-strncmp: Likewise.
11269         * modules/unistr/u16-strncpy: Likewise.
11270         * modules/unistr/u16-strnlen: Likewise.
11271         * modules/unistr/u16-strpbrk: Likewise.
11272         * modules/unistr/u16-strrchr: Likewise.
11273         * modules/unistr/u16-strspn: Likewise.
11274         * modules/unistr/u16-strstr: Likewise.
11275         * modules/unistr/u16-strtok: Likewise.
11276         * modules/unistr/u16-to-u32: Likewise.
11277         * modules/unistr/u16-to-u8: Likewise.
11278         * modules/unistr/u16-uctomb: Likewise.
11279         * modules/unistr/u32-check: Likewise.
11280         * modules/unistr/u32-chr: Likewise.
11281         * modules/unistr/u32-cmp: Likewise.
11282         * modules/unistr/u32-cmp2: Likewise.
11283         * modules/unistr/u32-cpy: Likewise.
11284         * modules/unistr/u32-cpy-alloc: Likewise.
11285         * modules/unistr/u32-endswith: Likewise.
11286         * modules/unistr/u32-mblen: Likewise.
11287         * modules/unistr/u32-mbsnlen: Likewise.
11288         * modules/unistr/u32-mbtouc: Likewise.
11289         * modules/unistr/u32-mbtouc-unsafe: Likewise.
11290         * modules/unistr/u32-mbtoucr: Likewise.
11291         * modules/unistr/u32-move: Likewise.
11292         * modules/unistr/u32-next: Likewise.
11293         * modules/unistr/u32-prev: Likewise.
11294         * modules/unistr/u32-set: Likewise.
11295         * modules/unistr/u32-startswith: Likewise.
11296         * modules/unistr/u32-stpcpy: Likewise.
11297         * modules/unistr/u32-stpncpy: Likewise.
11298         * modules/unistr/u32-strcat: Likewise.
11299         * modules/unistr/u32-strchr: Likewise.
11300         * modules/unistr/u32-strcmp: Likewise.
11301         * modules/unistr/u32-strcoll: Likewise.
11302         * modules/unistr/u32-strcpy: Likewise.
11303         * modules/unistr/u32-strcspn: Likewise.
11304         * modules/unistr/u32-strdup: Likewise.
11305         * modules/unistr/u32-strlen: Likewise.
11306         * modules/unistr/u32-strmblen: Likewise.
11307         * modules/unistr/u32-strmbtouc: Likewise.
11308         * modules/unistr/u32-strncat: Likewise.
11309         * modules/unistr/u32-strncmp: Likewise.
11310         * modules/unistr/u32-strncpy: Likewise.
11311         * modules/unistr/u32-strnlen: Likewise.
11312         * modules/unistr/u32-strpbrk: Likewise.
11313         * modules/unistr/u32-strrchr: Likewise.
11314         * modules/unistr/u32-strspn: Likewise.
11315         * modules/unistr/u32-strstr: Likewise.
11316         * modules/unistr/u32-strtok: Likewise.
11317         * modules/unistr/u32-to-u16: Likewise.
11318         * modules/unistr/u32-to-u8: Likewise.
11319         * modules/unistr/u32-uctomb: Likewise.
11320         * modules/uniwbrk/u8-wordbreaks: Likewise.
11321         * modules/uniwbrk/u16-wordbreaks: Likewise.
11322         * modules/uniwbrk/u32-wordbreaks: Likewise.
11323         * modules/uniwbrk/ulc-wordbreaks: Likewise.
11324         * modules/uniwbrk/wordbreak-property: Likewise.
11325         * modules/uniwidth/u8-strwidth: Likewise.
11326         * modules/uniwidth/u8-width: Likewise.
11327         * modules/uniwidth/u16-strwidth: Likewise.
11328         * modules/uniwidth/u16-width: Likewise.
11329         * modules/uniwidth/u32-strwidth: Likewise.
11330         * modules/uniwidth/u32-width: Likewise.
11331         * modules/uniwidth/width: Likewise.
11332         * modules/unicase/cased-tests (Makefile.am): Link all test programs
11333         with $(LIBUNISTRING).
11334         * modules/unicase/ignorable-tests: Likewise.
11335         * modules/unicase/locale-language-tests: Likewise.
11336         * modules/unicase/tolower-tests: Likewise.
11337         * modules/unicase/totitle-tests: Likewise.
11338         * modules/unicase/toupper-tests: Likewise.
11339         * modules/unicase/u8-casecmp-tests: Likewise.
11340         * modules/unicase/u8-casecoll-tests: Likewise.
11341         * modules/unicase/u8-casefold-tests: Likewise.
11342         * modules/unicase/u8-is-cased-tests: Likewise.
11343         * modules/unicase/u8-is-casefolded-tests: Likewise.
11344         * modules/unicase/u8-is-lowercase-tests: Likewise.
11345         * modules/unicase/u8-is-titlecase-tests: Likewise.
11346         * modules/unicase/u8-is-uppercase-tests: Likewise.
11347         * modules/unicase/u8-tolower-tests: Likewise.
11348         * modules/unicase/u8-totitle-tests: Likewise.
11349         * modules/unicase/u8-toupper-tests: Likewise.
11350         * modules/unicase/u16-casecmp-tests: Likewise.
11351         * modules/unicase/u16-casecoll-tests: Likewise.
11352         * modules/unicase/u16-casefold-tests: Likewise.
11353         * modules/unicase/u16-is-cased-tests: Likewise.
11354         * modules/unicase/u16-is-casefolded-tests: Likewise.
11355         * modules/unicase/u16-is-lowercase-tests: Likewise.
11356         * modules/unicase/u16-is-titlecase-tests: Likewise.
11357         * modules/unicase/u16-is-uppercase-tests: Likewise.
11358         * modules/unicase/u16-tolower-tests: Likewise.
11359         * modules/unicase/u16-totitle-tests: Likewise.
11360         * modules/unicase/u16-toupper-tests: Likewise.
11361         * modules/unicase/u32-casecmp-tests: Likewise.
11362         * modules/unicase/u32-casecoll-tests: Likewise.
11363         * modules/unicase/u32-casefold-tests: Likewise.
11364         * modules/unicase/u32-is-cased-tests: Likewise.
11365         * modules/unicase/u32-is-casefolded-tests: Likewise.
11366         * modules/unicase/u32-is-lowercase-tests: Likewise.
11367         * modules/unicase/u32-is-titlecase-tests: Likewise.
11368         * modules/unicase/u32-is-uppercase-tests: Likewise.
11369         * modules/unicase/u32-tolower-tests: Likewise.
11370         * modules/unicase/u32-totitle-tests: Likewise.
11371         * modules/unicase/u32-toupper-tests: Likewise.
11372         * modules/unicase/ulc-casecmp-tests: Likewise.
11373         * modules/unicase/ulc-casecoll-tests: Likewise.
11374         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
11375         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
11376         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
11377         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
11378         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
11379         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
11380         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
11381         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
11382         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
11383         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
11384         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
11385         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
11386         * modules/unictype/bidicategory-byname-tests: Likewise.
11387         * modules/unictype/bidicategory-name-tests: Likewise.
11388         * modules/unictype/bidicategory-of-tests: Likewise.
11389         * modules/unictype/bidicategory-test-tests: Likewise.
11390         * modules/unictype/block-list-tests: Likewise.
11391         * modules/unictype/block-of-tests: Likewise.
11392         * modules/unictype/block-test-tests: Likewise.
11393         * modules/unictype/category-C-tests: Likewise.
11394         * modules/unictype/category-Cc-tests: Likewise.
11395         * modules/unictype/category-Cf-tests: Likewise.
11396         * modules/unictype/category-Cn-tests: Likewise.
11397         * modules/unictype/category-Co-tests: Likewise.
11398         * modules/unictype/category-Cs-tests: Likewise.
11399         * modules/unictype/category-L-tests: Likewise.
11400         * modules/unictype/category-Ll-tests: Likewise.
11401         * modules/unictype/category-Lm-tests: Likewise.
11402         * modules/unictype/category-Lo-tests: Likewise.
11403         * modules/unictype/category-Lt-tests: Likewise.
11404         * modules/unictype/category-Lu-tests: Likewise.
11405         * modules/unictype/category-M-tests: Likewise.
11406         * modules/unictype/category-Mc-tests: Likewise.
11407         * modules/unictype/category-Me-tests: Likewise.
11408         * modules/unictype/category-Mn-tests: Likewise.
11409         * modules/unictype/category-N-tests: Likewise.
11410         * modules/unictype/category-Nd-tests: Likewise.
11411         * modules/unictype/category-Nl-tests: Likewise.
11412         * modules/unictype/category-No-tests: Likewise.
11413         * modules/unictype/category-P-tests: Likewise.
11414         * modules/unictype/category-Pc-tests: Likewise.
11415         * modules/unictype/category-Pd-tests: Likewise.
11416         * modules/unictype/category-Pe-tests: Likewise.
11417         * modules/unictype/category-Pf-tests: Likewise.
11418         * modules/unictype/category-Pi-tests: Likewise.
11419         * modules/unictype/category-Po-tests: Likewise.
11420         * modules/unictype/category-Ps-tests: Likewise.
11421         * modules/unictype/category-S-tests: Likewise.
11422         * modules/unictype/category-Sc-tests: Likewise.
11423         * modules/unictype/category-Sk-tests: Likewise.
11424         * modules/unictype/category-Sm-tests: Likewise.
11425         * modules/unictype/category-So-tests: Likewise.
11426         * modules/unictype/category-Z-tests: Likewise.
11427         * modules/unictype/category-Zl-tests: Likewise.
11428         * modules/unictype/category-Zp-tests: Likewise.
11429         * modules/unictype/category-Zs-tests: Likewise.
11430         * modules/unictype/category-and-not-tests: Likewise.
11431         * modules/unictype/category-and-tests: Likewise.
11432         * modules/unictype/category-byname-tests: Likewise.
11433         * modules/unictype/category-name-tests: Likewise.
11434         * modules/unictype/category-none-tests: Likewise.
11435         * modules/unictype/category-of-tests: Likewise.
11436         * modules/unictype/category-or-tests: Likewise.
11437         * modules/unictype/category-test-withtable-tests: Likewise.
11438         * modules/unictype/combining-class-tests: Likewise.
11439         * modules/unictype/ctype-alnum-tests: Likewise.
11440         * modules/unictype/ctype-alpha-tests: Likewise.
11441         * modules/unictype/ctype-blank-tests: Likewise.
11442         * modules/unictype/ctype-cntrl-tests: Likewise.
11443         * modules/unictype/ctype-digit-tests: Likewise.
11444         * modules/unictype/ctype-graph-tests: Likewise.
11445         * modules/unictype/ctype-lower-tests: Likewise.
11446         * modules/unictype/ctype-print-tests: Likewise.
11447         * modules/unictype/ctype-punct-tests: Likewise.
11448         * modules/unictype/ctype-space-tests: Likewise.
11449         * modules/unictype/ctype-upper-tests: Likewise.
11450         * modules/unictype/ctype-xdigit-tests: Likewise.
11451         * modules/unictype/decimal-digit-tests: Likewise.
11452         * modules/unictype/digit-tests: Likewise.
11453         * modules/unictype/mirror-tests: Likewise.
11454         * modules/unictype/numeric-tests: Likewise.
11455         * modules/unictype/property-alphabetic-tests: Likewise.
11456         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
11457         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
11458         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
11459         * modules/unictype/property-bidi-block-separator-tests: Likewise.
11460         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
11461         * modules/unictype/property-bidi-common-separator-tests: Likewise.
11462         * modules/unictype/property-bidi-control-tests: Likewise.
11463         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
11464         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
11465         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
11466         * modules/unictype/property-bidi-european-digit-tests: Likewise.
11467         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
11468         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
11469         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
11470         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
11471         * modules/unictype/property-bidi-pdf-tests: Likewise.
11472         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
11473         * modules/unictype/property-bidi-whitespace-tests: Likewise.
11474         * modules/unictype/property-byname-tests: Likewise.
11475         * modules/unictype/property-combining-tests: Likewise.
11476         * modules/unictype/property-composite-tests: Likewise.
11477         * modules/unictype/property-currency-symbol-tests: Likewise.
11478         * modules/unictype/property-dash-tests: Likewise.
11479         * modules/unictype/property-decimal-digit-tests: Likewise.
11480         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
11481         * modules/unictype/property-deprecated-tests: Likewise.
11482         * modules/unictype/property-diacritic-tests: Likewise.
11483         * modules/unictype/property-extender-tests: Likewise.
11484         * modules/unictype/property-format-control-tests: Likewise.
11485         * modules/unictype/property-grapheme-base-tests: Likewise.
11486         * modules/unictype/property-grapheme-extend-tests: Likewise.
11487         * modules/unictype/property-grapheme-link-tests: Likewise.
11488         * modules/unictype/property-hex-digit-tests: Likewise.
11489         * modules/unictype/property-hyphen-tests: Likewise.
11490         * modules/unictype/property-id-continue-tests: Likewise.
11491         * modules/unictype/property-id-start-tests: Likewise.
11492         * modules/unictype/property-ideographic-tests: Likewise.
11493         * modules/unictype/property-ids-binary-operator-tests: Likewise.
11494         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
11495         * modules/unictype/property-ignorable-control-tests: Likewise.
11496         * modules/unictype/property-iso-control-tests: Likewise.
11497         * modules/unictype/property-join-control-tests: Likewise.
11498         * modules/unictype/property-left-of-pair-tests: Likewise.
11499         * modules/unictype/property-line-separator-tests: Likewise.
11500         * modules/unictype/property-logical-order-exception-tests: Likewise.
11501         * modules/unictype/property-lowercase-tests: Likewise.
11502         * modules/unictype/property-math-tests: Likewise.
11503         * modules/unictype/property-non-break-tests: Likewise.
11504         * modules/unictype/property-not-a-character-tests: Likewise.
11505         * modules/unictype/property-numeric-tests: Likewise.
11506         * modules/unictype/property-other-alphabetic-tests: Likewise.
11507         * modules/unictype/property-other-default-ignorable-code-point-tests:
11508         Likewise.
11509         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
11510         * modules/unictype/property-other-id-continue-tests: Likewise.
11511         * modules/unictype/property-other-id-start-tests: Likewise.
11512         * modules/unictype/property-other-lowercase-tests: Likewise.
11513         * modules/unictype/property-other-math-tests: Likewise.
11514         * modules/unictype/property-other-uppercase-tests: Likewise.
11515         * modules/unictype/property-paired-punctuation-tests: Likewise.
11516         * modules/unictype/property-paragraph-separator-tests: Likewise.
11517         * modules/unictype/property-pattern-syntax-tests: Likewise.
11518         * modules/unictype/property-pattern-white-space-tests: Likewise.
11519         * modules/unictype/property-private-use-tests: Likewise.
11520         * modules/unictype/property-punctuation-tests: Likewise.
11521         * modules/unictype/property-quotation-mark-tests: Likewise.
11522         * modules/unictype/property-radical-tests: Likewise.
11523         * modules/unictype/property-sentence-terminal-tests: Likewise.
11524         * modules/unictype/property-soft-dotted-tests: Likewise.
11525         * modules/unictype/property-space-tests: Likewise.
11526         * modules/unictype/property-terminal-punctuation-tests: Likewise.
11527         * modules/unictype/property-test-tests: Likewise.
11528         * modules/unictype/property-titlecase-tests: Likewise.
11529         * modules/unictype/property-unassigned-code-value-tests: Likewise.
11530         * modules/unictype/property-unified-ideograph-tests: Likewise.
11531         * modules/unictype/property-uppercase-tests: Likewise.
11532         * modules/unictype/property-variation-selector-tests: Likewise.
11533         * modules/unictype/property-white-space-tests: Likewise.
11534         * modules/unictype/property-xid-continue-tests: Likewise.
11535         * modules/unictype/property-xid-start-tests: Likewise.
11536         * modules/unictype/property-zero-width-tests: Likewise.
11537         * modules/unictype/scripts-tests: Likewise.
11538         * modules/unictype/syntax-c-ident-tests: Likewise.
11539         * modules/unictype/syntax-c-whitespace-tests: Likewise.
11540         * modules/unictype/syntax-java-ident-tests: Likewise.
11541         * modules/unictype/syntax-java-whitespace-tests: Likewise.
11542         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
11543         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
11544         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
11545         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
11546         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
11547         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
11548         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
11549         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
11550         * modules/uniname/uniname-tests: Likewise.
11551         * modules/uninorm/canonical-decomposition-tests: Likewise.
11552         * modules/uninorm/compat-decomposition-tests: Likewise.
11553         * modules/uninorm/composition-tests: Likewise.
11554         * modules/uninorm/decomposing-form-tests: Likewise.
11555         * modules/uninorm/decomposition-tests: Likewise.
11556         * modules/uninorm/filter-tests: Likewise.
11557         * modules/uninorm/nfc-tests: Likewise.
11558         * modules/uninorm/nfd-tests: Likewise.
11559         * modules/uninorm/nfkc-tests: Likewise.
11560         * modules/uninorm/nfkd-tests: Likewise.
11561         * modules/uninorm/u8-normcmp-tests: Likewise.
11562         * modules/uninorm/u8-normcoll-tests: Likewise.
11563         * modules/uninorm/u16-normcmp-tests: Likewise.
11564         * modules/uninorm/u16-normcoll-tests: Likewise.
11565         * modules/uninorm/u32-normcmp-tests: Likewise.
11566         * modules/uninorm/u32-normcoll-tests: Likewise.
11567         * modules/unistdio/u8-asnprintf-tests: Likewise.
11568         * modules/unistdio/u8-vasnprintf-tests: Likewise.
11569         * modules/unistdio/u8-vasprintf-tests: Likewise.
11570         * modules/unistdio/u8-vsnprintf-tests: Likewise.
11571         * modules/unistdio/u8-vsprintf-tests: Likewise.
11572         * modules/unistdio/u16-asnprintf-tests: Likewise.
11573         * modules/unistdio/u16-vasnprintf-tests: Likewise.
11574         * modules/unistdio/u16-vasprintf-tests: Likewise.
11575         * modules/unistdio/u16-vsnprintf-tests: Likewise.
11576         * modules/unistdio/u16-vsprintf-tests: Likewise.
11577         * modules/unistdio/u32-asnprintf-tests: Likewise.
11578         * modules/unistdio/u32-vasnprintf-tests: Likewise.
11579         * modules/unistdio/u32-vasprintf-tests: Likewise.
11580         * modules/unistdio/u32-vsnprintf-tests: Likewise.
11581         * modules/unistdio/u32-vsprintf-tests: Likewise.
11582         * modules/unistdio/ulc-asnprintf-tests: Likewise.
11583         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
11584         * modules/unistdio/ulc-vasprintf-tests: Likewise.
11585         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
11586         * modules/unistdio/ulc-vsprintf-tests: Likewise.
11587         * modules/unistr/u8-check-tests: Likewise.
11588         * modules/unistr/u8-chr-tests: Likewise.
11589         * modules/unistr/u8-cmp-tests: Likewise.
11590         * modules/unistr/u8-cmp2-tests: Likewise.
11591         * modules/unistr/u8-cpy-alloc-tests: Likewise.
11592         * modules/unistr/u8-cpy-tests: Likewise.
11593         * modules/unistr/u8-mblen-tests: Likewise.
11594         * modules/unistr/u8-mbsnlen-tests: Likewise.
11595         * modules/unistr/u8-mbtouc-tests: Likewise.
11596         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
11597         * modules/unistr/u8-mbtoucr-tests: Likewise.
11598         * modules/unistr/u8-move-tests: Likewise.
11599         * modules/unistr/u8-next-tests: Likewise.
11600         * modules/unistr/u8-prev-tests: Likewise.
11601         * modules/unistr/u8-set-tests: Likewise.
11602         * modules/unistr/u8-stpcpy-tests: Likewise.
11603         * modules/unistr/u8-stpncpy-tests: Likewise.
11604         * modules/unistr/u8-strcat-tests: Likewise.
11605         * modules/unistr/u8-strcmp-tests: Likewise.
11606         * modules/unistr/u8-strcoll-tests: Likewise.
11607         * modules/unistr/u8-strcpy-tests: Likewise.
11608         * modules/unistr/u8-strdup-tests: Likewise.
11609         * modules/unistr/u8-strlen-tests: Likewise.
11610         * modules/unistr/u8-strmblen-tests: Likewise.
11611         * modules/unistr/u8-strmbtouc-tests: Likewise.
11612         * modules/unistr/u8-strncat-tests: Likewise.
11613         * modules/unistr/u8-strncmp-tests: Likewise.
11614         * modules/unistr/u8-strncpy-tests: Likewise.
11615         * modules/unistr/u8-strnlen-tests: Likewise.
11616         * modules/unistr/u8-to-u16-tests: Likewise.
11617         * modules/unistr/u8-to-u32-tests: Likewise.
11618         * modules/unistr/u8-uctomb-tests: Likewise.
11619         * modules/unistr/u16-check-tests: Likewise.
11620         * modules/unistr/u16-chr-tests: Likewise.
11621         * modules/unistr/u16-cmp-tests: Likewise.
11622         * modules/unistr/u16-cmp2-tests: Likewise.
11623         * modules/unistr/u16-cpy-alloc-tests: Likewise.
11624         * modules/unistr/u16-cpy-tests: Likewise.
11625         * modules/unistr/u16-mblen-tests: Likewise.
11626         * modules/unistr/u16-mbsnlen-tests: Likewise.
11627         * modules/unistr/u16-mbtouc-tests: Likewise.
11628         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
11629         * modules/unistr/u16-mbtoucr-tests: Likewise.
11630         * modules/unistr/u16-move-tests: Likewise.
11631         * modules/unistr/u16-next-tests: Likewise.
11632         * modules/unistr/u16-prev-tests: Likewise.
11633         * modules/unistr/u16-set-tests: Likewise.
11634         * modules/unistr/u16-stpcpy-tests: Likewise.
11635         * modules/unistr/u16-stpncpy-tests: Likewise.
11636         * modules/unistr/u16-strcat-tests: Likewise.
11637         * modules/unistr/u16-strcmp-tests: Likewise.
11638         * modules/unistr/u16-strcoll-tests: Likewise.
11639         * modules/unistr/u16-strcpy-tests: Likewise.
11640         * modules/unistr/u16-strdup-tests: Likewise.
11641         * modules/unistr/u16-strlen-tests: Likewise.
11642         * modules/unistr/u16-strmblen-tests: Likewise.
11643         * modules/unistr/u16-strmbtouc-tests: Likewise.
11644         * modules/unistr/u16-strncat-tests: Likewise.
11645         * modules/unistr/u16-strncmp-tests: Likewise.
11646         * modules/unistr/u16-strncpy-tests: Likewise.
11647         * modules/unistr/u16-strnlen-tests: Likewise.
11648         * modules/unistr/u16-to-u32-tests: Likewise.
11649         * modules/unistr/u16-to-u8-tests: Likewise.
11650         * modules/unistr/u16-uctomb-tests: Likewise.
11651         * modules/unistr/u32-check-tests: Likewise.
11652         * modules/unistr/u32-chr-tests: Likewise.
11653         * modules/unistr/u32-cmp-tests: Likewise.
11654         * modules/unistr/u32-cmp2-tests: Likewise.
11655         * modules/unistr/u32-cpy-alloc-tests: Likewise.
11656         * modules/unistr/u32-cpy-tests: Likewise.
11657         * modules/unistr/u32-mblen-tests: Likewise.
11658         * modules/unistr/u32-mbsnlen-tests: Likewise.
11659         * modules/unistr/u32-mbtouc-tests: Likewise.
11660         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
11661         * modules/unistr/u32-mbtoucr-tests: Likewise.
11662         * modules/unistr/u32-move-tests: Likewise.
11663         * modules/unistr/u32-next-tests: Likewise.
11664         * modules/unistr/u32-prev-tests: Likewise.
11665         * modules/unistr/u32-set-tests: Likewise.
11666         * modules/unistr/u32-stpcpy-tests: Likewise.
11667         * modules/unistr/u32-stpncpy-tests: Likewise.
11668         * modules/unistr/u32-strcat-tests: Likewise.
11669         * modules/unistr/u32-strcmp-tests: Likewise.
11670         * modules/unistr/u32-strcoll-tests: Likewise.
11671         * modules/unistr/u32-strcpy-tests: Likewise.
11672         * modules/unistr/u32-strdup-tests: Likewise.
11673         * modules/unistr/u32-strlen-tests: Likewise.
11674         * modules/unistr/u32-strmblen-tests: Likewise.
11675         * modules/unistr/u32-strmbtouc-tests: Likewise.
11676         * modules/unistr/u32-strncat-tests: Likewise.
11677         * modules/unistr/u32-strncmp-tests: Likewise.
11678         * modules/unistr/u32-strncpy-tests: Likewise.
11679         * modules/unistr/u32-strnlen-tests: Likewise.
11680         * modules/unistr/u32-to-u16-tests: Likewise.
11681         * modules/unistr/u32-to-u8-tests: Likewise.
11682         * modules/unistr/u32-uctomb-tests: Likewise.
11683         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
11684         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
11685         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
11686         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
11687         * modules/uniwidth/u8-strwidth-tests: Likewise.
11688         * modules/uniwidth/u8-width-tests: Likewise.
11689         * modules/uniwidth/u16-strwidth-tests: Likewise.
11690         * modules/uniwidth/u16-width-tests: Likewise.
11691         * modules/uniwidth/u32-strwidth-tests: Likewise.
11692         * modules/uniwidth/u32-width-tests: Likewise.
11693         * modules/uniwidth/width-tests: Likewise.
11694
11695 2010-05-18  Richard Jones  <rjones@redhat.com>
11696
11697         doc: users.txt: list hivex
11698         * users.txt: Add hivex.
11699
11700 2010-05-18  Richard Jones  <rjones@redhat.com>
11701
11702         doc: users.txt: list febootstrap
11703         * users.txt: Add febootstrap.
11704
11705 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
11706
11707         bootstrap: fix an error when gnulib is not used as a git submodule
11708         * build-aux/bootstrap (gnulib_path): If its length is zero then
11709         assign "gnulib" to it.
11710         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
11711
11712 2010-05-16  Bruno Haible  <bruno@clisp.org>
11713
11714         Avoid autoconf warnings about AM_ICONV.
11715         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
11716         2.64.
11717
11718 2010-05-16  Bruno Haible  <bruno@clisp.org>
11719
11720         absolute-header: Make the macro usable in more situations.
11721         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
11722         from gl_ABSOLUTE_HEADER.
11723         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
11724
11725 2010-05-16  James Youngman  <jay@gnu.org>
11726
11727         doc: update users.txt
11728         * users.txt: Add CSSC.
11729
11730 2010-05-16  Jim Meyering  <meyering@redhat.com>
11731
11732         init.sh: fix an error in the previous change; add more comments
11733         * tests/init.sh: Compare exit code in loop against 9, not 2.
11734         Patch by Bruno Haible.
11735         Make the two tests more similar by adding an empty "then" clause.
11736         Add comments.
11737
11738         init.sh: avoid unnecessary shell re-exec
11739         * tests/init.sh: Improve the re-exec-required check to first test the
11740         current shell.  If it passes the test, do not search for a shell that
11741         does pass, and do not re-exec.  This test is particularly contorted to
11742         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
11743         of $(...) evokes a syntax error and causes immediate shell exit with
11744         status 2.  Bruno Haible reported that the re-exec made it impossible
11745         to single-step through any init.sh-using script.
11746
11747 2010-05-16  Bruno Haible  <bruno@clisp.org>
11748
11749         Fix collision between gnulib's and libintl's printf replacements.
11750         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
11751         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
11752         (printf): When using GNU C, map the __printf__ function to rpl_printf
11753         via __asm__. When not using GNU C, define rpl_printf instead of
11754         __printf__.
11755         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
11756         commit.
11757         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
11758         commit.
11759         * m4/asm-underscore.m4: New file.
11760         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
11761         * modules/stdio (Files): Add m4/asm-underscore.m4.
11762         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
11763         Reported by Ben Pfaff.
11764
11765 2010-05-16  Bruno Haible  <bruno@clisp.org>
11766
11767         verify: Avoid skipping the test on openSUSE 11.0.
11768         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
11769
11770 2010-05-13  Bruno Haible  <bruno@clisp.org>
11771
11772         Avoid useless warnings from G++.
11773         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
11774         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
11775         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11776
11777 2010-05-11  Jim Meyering  <meyering@redhat.com>
11778
11779         maint.mk: tweak preceding change
11780         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
11781         regexps tighter by anchoring at EOL, and make the new group "shy"
11782         for slightly decreased overhead.
11783
11784 2010-05-11  Eric Blake  <eblake@redhat.com>
11785
11786         maint.mk: gnulib doesn't guarantee NSIG
11787         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
11788
11789 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11790
11791         test-pwrite.c: Remove unused variable declaration.
11792         * tests/test-pwrite.c (main): Remove read_buf declaration.
11793
11794         Remove useless test-pwrite.sh file.
11795         * tests/test-pwrite.sh: Delete file.
11796         * modules/pwrite-tests: Remove references.
11797         Reported by Bruno Haible.
11798
11799 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11800
11801         init.sh: fix a typo
11802         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
11803
11804 2010-05-10  Jim Meyering  <meyering@redhat.com>
11805
11806         maint.mk: avoid using a temporary file in the always-defined-macros check
11807         * top/maint.mk (.re-defmac): Remove rule.
11808         (gl_trap_): Remove definition.
11809         (sc_prohibit_always-defined_macros): Rewrite not to create and
11810         depend on a temporary file.  Instead, depend on GNU grep's ability
11811         to read a list of regular expressions from stdin when given "-f -".
11812
11813 2010-05-09  Bruno Haible  <bruno@clisp.org>
11814
11815         Update to GNU gettext 0.18, part 1.
11816         * m4/gettext.m4: Update to GNU gettext 0.18.
11817         * m4/intl.m4: Likewise.
11818         * m4/po.m4: Likewise.
11819         * modules/gettext (Files): Add m4/fcntl-o.m4.
11820         (configure.ac): Require gettext infrastructure from version 0.18.
11821
11822 2010-05-09  Jim Meyering  <meyering@redhat.com>
11823
11824         init.sh: enable MALLOC_PERTURB_
11825         * tests/init.sh: Enable glibc's malloc-perturbing option.
11826
11827         maint.mk: improve sc_cross_check_PATH_usage_in_tests
11828         With my recent change in init.sh from the two-line form:
11829             -#   : ${srcdir=.}
11830             -#   . "$srcdir/init.sh"; path_prepend_ .
11831             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
11832         I noticed that using the one-line form would cause this test
11833         to fail with a false-positive, or to stop working altogether,
11834         depending on whether help-version changed or all the tests did.
11835         * top/maint.mk (_hv_regex): Remove this definition.
11836         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
11837         (_hv_regex_strong): Use a stronger regex to check for conformance.
11838         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
11839         Give a separate diagnostic for lack of conforming use.
11840
11841         maint.mk: prohibit definition of symbols defined by gnulib
11842         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
11843         definition of symbols defined by gnulib.
11844
11845 2010-05-09  Bruno Haible  <bruno@clisp.org>
11846
11847         acl: Avoid test failure on Cygwin-hosted mingw.
11848         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
11849
11850 2010-05-09  Bruno Haible  <bruno@clisp.org>
11851
11852         error: Use system's fcntl function.
11853         * lib/error.c (fcntl): Undefine.
11854
11855 2010-05-09  Jim Meyering  <meyering@redhat.com>
11856
11857         verify: adjust formatting to be more consistent
11858         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
11859         argument-list '('s, and after one comma.
11860
11861 2010-05-09  Bruno Haible  <bruno@clisp.org>
11862
11863         error: More reliable output on mingw.
11864         * lib/error.c: Include <windows.h>.
11865         (is_open): New function.
11866         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
11867         defined.
11868
11869 2010-05-09  Bruno Haible  <bruno@clisp.org>
11870
11871         vasnprintf: Fix syntax errors in libintl build on mingw.
11872         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
11873         pad_ourselves and prec_ourselves after use.
11874
11875 2010-05-08  Bruno Haible  <bruno@clisp.org>
11876
11877         * lib/config.charset: Update comments for Cygwin 1.7.
11878         * lib/localcharset.c: Likewise.
11879
11880 2010-05-07  Jim Meyering  <meyering@redhat.com>
11881
11882         init.sh: improve comments
11883         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
11884         . "${srcdir=.}/init.sh"; path_prepend_ .
11885         Add a note about path_prepend_ and the alternative of using
11886         TESTS_ENVIRONMENT.
11887
11888 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11889
11890         exclude: Unescape hashed patterns in wildcard mode.
11891         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
11892         to the hash list.
11893         * tests/test-exclude8.sh: New test case.
11894         * modules/exclude-tests: Add new test.
11895
11896 2010-05-05  Eric Blake  <eblake@redhat.com>
11897
11898         verify: automate tests
11899         * modules/verify-tests: New module.
11900         * tests/test-verify.sh: New file.
11901         * tests/test-verify.c: Guard each negative test with a unique id.
11902         Also avoid warning about unused left hand of comma expressions.
11903
11904 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11905
11906         Further improvements to verify.h, suggested by Eric Blake.
11907         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
11908         the GL_* versions, to avoid collision with OpenGL.
11909         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
11910         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
11911         than testing merely whether it's defined.
11912
11913         Modify verify.h to pacify gcc -Wredundant_decls.
11914         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
11915         These use the prefix "GL_" since they're likely to be useful elsewhere.
11916         We may need to break them out into a different .h file.
11917         (__COUNTER__): Define to 0 if the compiler doesn't support it.
11918         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
11919         of verify_function__.
11920
11921 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11922
11923         Tests for module pwrite.
11924         * modules/pwrite-tests: New file.
11925         * tests/test-pwrite.sh: New file.
11926         * tests/test-pwrite.c: New file.
11927
11928         New module pwrite.
11929         * lib/unistd.in.h (pwrite): New declaration.
11930         * lib/pwrite.c: New file, from glibc with modifications.
11931         * m4/pwrite.m4: New file.
11932         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
11933         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
11934         REPLACE_PWRITE.
11935         * modules/pwrite: New file.
11936         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
11937         REPLACE_PWRITE.
11938         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
11939         * doc/posix-functions/pwrite.texi: Mention the new module.
11940
11941 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11942
11943         pread: Update documentation.
11944         * doc/posix-functions/pread.texi: Mention the 'pread' module.
11945
11946 2010-05-04  Eric Blake  <eblake@redhat.com>
11947
11948         docs: update cygwin progress
11949         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
11950         this bug.
11951         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
11952         Added in cygwin 1.7.2.
11953         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
11954         Likewise.
11955         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
11956         Likewise.
11957         * doc/glibc-functions/dup3.texi (dup3): Likewise.
11958         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11959         * doc/glibc-functions/accept4.texi (accept4): Likewise.
11960         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
11961         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
11962         Mention nproc module.
11963         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
11964         bug in cygwin 1.7.5 addition.
11965         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
11966         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
11967         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
11968         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
11969         1.7.5.
11970         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
11971         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
11972         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
11973         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
11974         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
11975         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
11976         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
11977         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
11978         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
11979         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
11980         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
11981         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
11982         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
11983         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
11984         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
11985         Likewise.
11986         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
11987         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
11988         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
11989         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
11990         Likewise.
11991         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
11992         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
11993         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
11994         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
11995         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
11996         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
11997         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
11998         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
11999         Likewise.
12000         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
12001         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
12002         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
12003         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
12004         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
12005         Likewise.
12006         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
12007         Likewise.
12008         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
12009         Likewise.
12010         * doc/glibc-functions/xdrrec_endofrecord.texi
12011         (xdrrec_endofrecord): Likewise.
12012         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
12013         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
12014         Likewise.
12015         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
12016         Likewise.
12017
12018 2010-05-04  Jim Meyering  <meyering@redhat.com>
12019
12020         gendocs.sh: make its "-s FILE" option more useful
12021         * build-aux/gendocs.sh: When honoring the -s FILE option, update
12022         $PACKAGE to reflect the probably-different basename of "FILE".
12023
12024 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12025
12026         bootstrap: don't ignore download_po_files failure
12027         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
12028         failure.
12029
12030 2010-05-03  Jim Meyering  <meyering@redhat.com>
12031
12032         maint.mk: allow to pass options to gendocs.sh
12033         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
12034         (gendocs_options_): New overridable variable.
12035
12036         gnu-web-doc-update: don't ignore configure or build failure
12037         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
12038
12039         announce-gen: backslash-escape '@'s in --help output
12040         * build-aux/announce-gen: Fix syntax errors.
12041
12042         maint.mk, announce-gen: allow project-specific announcement mail headers
12043         * top/maint.mk (translation_project_): Define default.
12044         (announcement_Cc_, announcement_mail_headers_): Likewise.
12045         (announcement): Invoke announce-gen with new --mail-headers option.
12046         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
12047
12048         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
12049         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
12050         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
12051         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
12052         line in the "err2" output file when running "make check" in verbose
12053         mode (i.e., with set -x enabled).
12054
12055 2010-05-03  Bruno Haible  <bruno@clisp.org>
12056
12057         wctob: Fix for weird platforms.
12058         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
12059         argument value.
12060
12061 2010-05-03  Jim Meyering  <meyering@redhat.com>
12062
12063         maint.mk: prohibit unwarranted use of <strings.h>
12064         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
12065         strings.h in a file that does not also use strcasecmp, strncasecmp,
12066         ffs or ffsll.
12067
12068         maint.mk: remove obsolete comments
12069         * top/maint.mk: Remove stale, commented-out rules.
12070
12071 2010-05-02  Bruno Haible  <bruno@clisp.org>
12072
12073         wcwidth: Declare also when it's aliased.
12074         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
12075         macro.
12076
12077 2010-05-02  Bruno Haible  <bruno@clisp.org>
12078
12079         Fix regression from 2010-04-25.
12080         * gnulib-tool (func_modules_transitive_closure): Check the status of
12081         all modules, not only of the tests that are of the form foo-tests where
12082         foo is a module.
12083
12084 2010-05-02  Bruno Haible  <bruno@clisp.org>
12085
12086         wctob: Work around nasty Cygwin 1.7.2 bug.
12087         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
12088         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
12089
12090 2010-05-01  Bruno Haible  <bruno@clisp.org>
12091
12092         fpurge: Sharper test.
12093         * tests/test-fpurge.c (main): Add one more ftell check.
12094         * modules/fpurge-tests (Depends-on): Add ftell.
12095         Suggested by Eric Blake.
12096
12097 2010-05-01  Bruno Haible  <bruno@clisp.org>
12098
12099         ftello: Another test.
12100         * tests/test-ftello3.c: New file.
12101         * modules/ftello-tests (Files): Add it.
12102         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12103         MOSTLYCLEANFILES.
12104
12105         ftell: Another test.
12106         * tests/test-ftell3.c: New file.
12107         * modules/ftell-tests (Files): Add it.
12108         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12109         MOSTLYCLEANFILES.
12110
12111 2010-05-01  Bruno Haible  <bruno@clisp.org>
12112
12113         ftell, ftello: Work around Solaris bug.
12114         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
12115         * lib/ftello.c: Include stdio-impl.h.
12116         (ftello): On Solaris, when _IOWRT is set, compute the result without
12117         looking at _IOREAD.
12118         * modules/ftello (Files): Add lib/stdio-impl.h.
12119         * doc/posix-functions/ftell.texi: Mention Solaris bug.
12120         * doc/posix-functions/ftello.texi: Likewise.
12121         Reported by Eric Blake.
12122
12123 2010-05-01  Bruno Haible  <bruno@clisp.org>
12124
12125         freading: Adapt to special meaning of _IOREAD flag on Solaris.
12126         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
12127         the _IOWRT flag is also set.
12128
12129 2010-05-01  Bruno Haible  <bruno@clisp.org>
12130
12131         Fix doc about a HP-UX stdio bug.
12132         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
12133         * doc/posix-functions/ftello.texi: Likewise.
12134
12135 2010-05-01  Bruno Haible  <bruno@clisp.org>
12136
12137         lseek test: Fix failure on Solaris.
12138         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
12139         output.
12140
12141 2010-04-30  Jim Meyering  <meyering@redhat.com>
12142
12143         bootstrap: don't ignore failure to generate po*/Makevars
12144         * build-aux/bootstrap (with_gettext): Don't ignore failure
12145         to create po/Makevars or runtime-po/Makevars.
12146
12147 2010-04-29  Eric Blake  <eblake@redhat.com>
12148
12149         headers: relax license to LGPLv2+
12150         * modules/fcntl-h (License): Relax license.
12151         * modules/getopt-posix (License): Likewise.
12152         * modules/locale (License): Likewise.
12153         * modules/math (License): Likewise.
12154         * modules/pty (License): Likewise.
12155         * modules/sched (License): Likewise.
12156         * modules/search (License): Likewise.
12157         * modules/spawn (License): Likewise.
12158         * modules/stdarg (License): Likewise.
12159         * modules/sysexits (License): Likewise.
12160
12161 2010-04-29  Jim Meyering  <meyering@redhat.com>
12162
12163         inttypes: relax license to LGPLv2+
12164         * modules/inttypes (License): Relax license.
12165
12166 2010-04-29  Simon Josefsson  <simon@josefsson.org>
12167
12168         * top/maint.mk (indent): Run twice to produce idempotent results.
12169
12170 2010-04-28  Bruno Haible  <bruno@clisp.org>
12171
12172         getdate: Generate getdate.c in the source directory.
12173         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
12174         MOSTLYCLEANFILES.
12175         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
12176
12177 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
12178
12179         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
12180         is not declared as a const *; avoid warnings in that case.
12181
12182 2010-04-28  Eric Blake  <eblake@redhat.com>
12183
12184         canonicalize-lgpl: avoid compiler warning
12185         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
12186         declaration' / 'extraneous semicolon' warning with some compilers.
12187         Reported by Andreas Gruenbacher.
12188
12189 2010-04-28  Jim Meyering  <meyering@redhat.com>
12190
12191         init.sh: ensure a more reliable exit status when exiting via trap
12192         * tests/init.sh (setup_): Don't rely on $? in signal handler.
12193         Inspired by patches from Dmitry V. Levin.
12194         Also trap on signal 3 (SIGQUIT).
12195
12196 2010-04-27  Bruno Haible  <bruno@clisp.org>
12197
12198         Update doc about utimes().
12199         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
12200         'utimens' module.
12201         Reported by Andreas Gruenbacher <agruen@suse.de>.
12202
12203 2010-04-27  Eric Blake  <eblake@redhat.com>
12204
12205         full-read, full-write: relax license
12206         * modules/full-read (License): Drop to LGPLv2+.
12207         * modules/full-write (License): Likewise.
12208         * modules/safe-read (License): Likewise.
12209         * modules/safe-write (License): Likewise.
12210
12211         pthread: mention library for linking
12212         * modules/pthread (Link): Mention $(LIB_PTHREAD).
12213
12214 2010-04-27  Jim Meyering  <meyering@redhat.com>
12215
12216         maint.mk: fix a bug introduced in last change
12217         * top/maint.mk (gl_assured_headers_): Now that all names are on
12218         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
12219         is not anchored to end of word, it should be adequate.
12220
12221         maint.mk: avoid side-effect in latest syntax-check
12222         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
12223         to run commands via $(shell...), and hence to incur cost only when
12224         the new rule is actually run.
12225
12226         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
12227         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
12228         and use that to create a regexp used to detect all #if HAVE_..._H uses.
12229         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
12230         (gl_assured_headers_, az_, AZ_): Define.
12231         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
12232
12233 2010-04-26  Jim Meyering  <jim@meyering.net>
12234             Bruno Haible  <bruno@clisp.org>
12235
12236         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
12237         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
12238         Prompted by an exchange with Gilles Espinasse.
12239
12240 2010-04-26  Jim Meyering  <meyering@redhat.com>
12241
12242         git-version-gen: aesthetic tweak
12243         * build-aux/git-version-gen: Use "$nl" rather than a literal,
12244         so that the command remains on a single line.
12245
12246 2010-04-26  Eric Blake  <eblake@redhat.com>
12247
12248         git-version-gen: allow use on EBCDIC hosts
12249         * build-aux/git-version-gen (dirty): Use literal rather than tying
12250         ourselves to ascii.
12251         Reported by Steve Goetze.
12252
12253 2010-04-25  Bruno Haible  <bruno@clisp.org>
12254
12255         netdb: Add support for GNULIB_POSIXCHECK.
12256         * lib/netdb.in.h: Include warn-on-use.h.
12257         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
12258         functions are used when GNULIB_POSIXCHECK is defined and the
12259         getaddrinfo module is not in use.
12260         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
12261         freeaddrinfo, gai_strerror, getnameinfo are declared.
12262         * modules/netdb (Depends-on): Add warn-on-use.
12263         (Makefile.am): Include warn-on-use.h in netdb.h.
12264
12265 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
12266
12267         build: avoid "make check" failure without .git/ directory
12268         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
12269         there is no .git/ directory.
12270
12271 2010-04-25  Bruno Haible  <bruno@clisp.org>
12272
12273         ptsname: Fix misuse of ttyname_r.
12274         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
12275         of errno.
12276
12277 2010-04-25  Bruno Haible  <bruno@clisp.org>
12278
12279         ttyname_r: Make it work on Solaris 10.
12280         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
12281         if the system function has the POSIX declaration. Test whether the
12282         function fails if the buffer is less than 128 bytes large.
12283         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
12284         system's ttyname_r function. Provide a reasonably large buffer.
12285         * modules/ttyname_r (Depends-on): Add extensions.
12286         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
12287
12288 2010-04-25  Bruno Haible  <bruno@clisp.org>
12289
12290         Use the 'extensions' module for some more functions on Solaris.
12291         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
12292         module.
12293         * doc/posix-functions/ctime_r.texi: Likewise.
12294         * doc/posix-functions/getgrgid_r.texi: Likewise.
12295         * doc/posix-functions/getgrnam_r.texi: Likewise.
12296         * doc/posix-functions/getpwnam_r.texi: Likewise.
12297         * doc/posix-functions/getpwuid_r.texi: Likewise.
12298         * doc/posix-functions/readdir_r.texi: Likewise.
12299         * doc/posix-functions/sigwait.texi: Likewise.
12300         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
12301         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
12302
12303 2010-04-25  Bruno Haible  <bruno@clisp.org>
12304
12305         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
12306         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
12307         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
12308         * lib/ttyname_r.c: Include <limits.h>.
12309         (ttyname_r): Define using the system's ttyname_r function, if it exists
12310         and not on Solaris.
12311         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
12312         set.
12313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
12314         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
12315         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
12316         Reported by Simon Josefsson.
12317
12318 2010-04-25  Bruno Haible  <bruno@clisp.org>
12319
12320         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
12321         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
12322         * doc/posix-functions/ctime_r.texi: Likewise.
12323         * doc/posix-functions/getgrgid_r.texi: Likewise.
12324         * doc/posix-functions/getgrnam_r.texi: Likewise.
12325         * doc/posix-functions/getlogin_r.texi: Likewise.
12326         * doc/posix-functions/getpwnam_r.texi: Likewise.
12327         * doc/posix-functions/getpwuid_r.texi: Likewise.
12328         * doc/posix-functions/readdir_r.texi: Likewise.
12329         * doc/posix-functions/sigwait.texi: Likewise.
12330         * doc/posix-functions/ttyname_r.texi: Likewise.
12331         Reported by Simon Josefsson.
12332
12333 2010-04-25  Bruno Haible  <bruno@clisp.org>
12334
12335         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
12336         * gnulib-tool (func_usage): Document that --with-*-tests options apply
12337         also to --create-testdir.
12338         (func_acceptable): Don't consider the status of *-tests modules here.
12339         (func_modules_transitive_closure): Consider it here, before including a
12340         test module.
12341         (func_import, func_create_testdir): Set inc_all_direct_tests,
12342         inc_all_indirect_tests.
12343         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
12344         --create-testdir and --create-megatestdir.
12345
12346 2010-04-25  Bruno Haible  <bruno@clisp.org>
12347
12348         gnulib-tool: Add --without-*-tests options.
12349         * gnulib-tool (func_usage): Document the --without-*-tests options.
12350         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
12351         excl_unportable_tests): New variables.
12352         Fail if they are specified with --import or --update.
12353         (func_acceptable): Respect the excl_*_tests variables.
12354         (func_import): Set the excl_*_tests variables to empty.
12355
12356 2010-04-25  Simon Josefsson  <simon@josefsson.org>
12357             Bruno Haible  <bruno@clisp.org>
12358
12359         Work around a MacOS X 10.4 bug with openpty.
12360         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
12361         * tests/test-openpty.c (main): Close the master side explicitly.
12362
12363 2010-04-25  Bruno Haible  <bruno@clisp.org>
12364
12365         strnlen: Fix a C++ test error on MacOS X and Solaris.
12366         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
12367         the function is not declared.
12368         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
12369         Simon Josefsson.
12370
12371 2010-04-24  Bruno Haible  <bruno@clisp.org>
12372
12373         Avoid a gcc warning.
12374         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
12375         of correct type for %08lx directive.
12376         Reported by Eric Blake.
12377
12378 2010-04-24  Bruno Haible  <bruno@clisp.org>
12379
12380         vasnprintf: Correct errno value in case of out-of-memory.
12381         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
12382         or sprintf. Use the errno value from SNPRINTF or sprintf.
12383         Reported by Ian Beckwith <ianb@erislabs.net>.
12384
12385 2010-04-24  Bruno Haible  <bruno@clisp.org>
12386
12387         ansi-c++-opt: Find correct compiler when cross-compiling.
12388         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
12389         AC_CHECK_PROGS.
12390         Reported by Simon Josefsson.
12391
12392 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
12393
12394         vc-list-files: Add support for subversion
12395         * build-aux/vc-list-files: Use "svn list" to generate the list of
12396         files controlled by subversion.
12397
12398 2010-04-23  Jim Meyering  <meyering@redhat.com>
12399
12400         vc-list-files tests: convert to use init.sh
12401         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
12402         path_prepend_.
12403         Use Exit, not exit.
12404         Use skip_ rather than open coding it.
12405         Remove trap set-up and compare definitions.
12406         * tests/test-vc-list-files-git.sh: Likewise.
12407         * modules/vc-list-files-tests (Files): Add tests/init.sh.
12408
12409 2010-04-22  Simon Josefsson  <simon@josefsson.org>
12410
12411         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
12412         backup files.
12413
12414 2010-04-21  Simon Josefsson  <simon@josefsson.org>
12415
12416         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
12417
12418 2010-04-20  Eric Blake  <eblake@redhat.com>
12419
12420         tests: be robust to ignored SIGPIPE
12421         * tests/test-select-in.sh: Consume all output.
12422         * tests/test-lseek.sh: Check correct exit status, while avoiding
12423         EPIPE.
12424
12425 2010-04-20  Simon Josefsson  <simon@josefsson.org>
12426             Bruno Haible  <bruno@clisp.org>
12427
12428         visibility: Don't use -fvisibility if it leads to a warning.
12429         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
12430         yes, don't pretend that visibility works if it leads to a warning.
12431         Reported by Mike Gran <spk121@yahoo.com>.
12432
12433 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
12434
12435         * build-aux/bootstrap: Use "git -h" for testing for supported options
12436         instead of "git --help".  The short-form option only shows a summary,
12437         and doesn't layout the full man page.  Grep for the full option name
12438         in the summary, too.
12439
12440 2010-04-19  Bruno Haible  <bruno@clisp.org>
12441
12442         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
12443         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
12444         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
12445         mention of RELOCATABLE_STRIP.
12446         Reported by Sylvain Beucler <beuc@beuc.net>.
12447
12448 2010-04-19  Bruno Haible  <bruno@clisp.org>
12449
12450         * lib/diffseq.h: Fix typo in comment.
12451         Reported by Eric Blake.
12452
12453 2010-04-19  Bruno Haible  <bruno@clisp.org>
12454
12455         ioctl: Move autoconf macro to a .m4 file.
12456         * m4/ioctl.m4: New file, extracted from modules/ioctl.
12457         * modules/ioctl (Files): Add it.
12458         (configure.ac): Simply invoke gl_FUNC_IOCTL.
12459         Reported by Ian Beckwith <ianb@erislabs.net>.
12460
12461 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
12462             Bruno Haible  <bruno@clisp.org>
12463
12464         diffseq: Accommodate use-case with abstract arrays.
12465         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
12466         is not defined.
12467         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
12468         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
12469
12470 2010-04-18  Bruno Haible  <bruno@clisp.org>
12471
12472         * doc/posix-headers/stdbool.texi: More precise wording.
12473
12474 2010-04-17  Jim Meyering  <meyering@redhat.com>
12475
12476         maint.mk: use gnu-style indentation in an embedded perl script
12477         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
12478         Rename variable: s/two/last_two_bytes/
12479
12480 2010-04-16  Eric Blake  <eblake@redhat.com>
12481
12482         test-stdbool: skip test that fails with Solaris CC
12483         * tests/test-stdbool.c (f): Skip test that causes compilation
12484         error under buggy C++ compiler.
12485         * lib/stdbool.in.h: Document the limitation.
12486         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
12487
12488         setenv: allow compilation with C++
12489         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
12490         register keyword.
12491
12492         stdint: allow test to pass with C++
12493         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
12494
12495         getopt: allow compilation with C++
12496         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
12497         struct.
12498         * lib/getopt.c (_getopt_internal_r): Use correct type.
12499         Reported by Dagobert Michelson, via Joel E. Denny.
12500
12501 2010-04-16  Bruno Haible  <bruno@clisp.org>
12502
12503         Override netdb.h always.
12504         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
12505         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
12506         Reported by Ludovic Courtès <ludo@gnu.org>.
12507
12508 2010-04-15  Bruno Haible  <bruno@clisp.org>
12509
12510         openpty: Fix mistake from 2010-03-21.
12511         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
12512         Reported by Simon Josefsson.
12513
12514 2010-04-15  Eric Blake  <eblake@redhat.com>
12515
12516         test-forkpty: fix expected signature
12517         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
12518         Reported by Simon Josefsson.
12519
12520 2010-04-15  Jim Meyering  <meyering@redhat.com>
12521
12522         maint.mk: texinfo_suffix_re_: correct the default regexp
12523         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
12524
12525         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
12526         make it configurable via texinfo_suffix_re_.
12527
12528 2010-04-14  Eric Blake  <eblake@redhat.com>
12529
12530         strtok_r: relax license to LGPLv2+
12531         * modules/strtok_r (License): Relax license.
12532         Reported by Matthias Bolte.
12533
12534 2010-04-14  Simon Josefsson  <simon@josefsson.org>
12535
12536         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
12537         version 1.4.4 by default instead of requiring the libgcrypt
12538         version used during build.  This makes it possible to use the
12539         application with older but still binary compatible libgcrypt
12540         versions.
12541
12542 2010-04-13  Eric Blake  <eblake@redhat.com>
12543
12544         getopt-gnu: match recent glibc fixes and posix ruling
12545         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
12546         '+' handling, when requesting extensions.
12547         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
12548         'W;' handling.
12549         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
12550         * doc/posix-functions/getopt.texi (getopt): Document this.
12551         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12552         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12553         Likewise.
12554
12555         getopt: merge bug fixes from glibc
12556         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
12557         diagnostics.  Honor '+:' correctly.  Reject ';'.
12558
12559         getopt-posix: detect MacOS bug
12560         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
12561         optind when missing a required argument.
12562         * doc/posix-functions/getopt.texi (getopt): Document the bug.
12563         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12564         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12565         Likewise.
12566
12567         getopt-posix: avoid spurious failure on Solaris
12568         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
12569         an indicator that setting optind=1 is sufficient for reset.
12570
12571         getopt-posix: avoid spurious failure on FreeBSD
12572         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
12573         in POSIX mode, since the m4 test uses it.
12574
12575         gnulib-tool: silence warning on BSD sh
12576         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
12577
12578 2010-04-13  Jim Meyering  <meyering@redhat.com>
12579
12580         doc: users.txt: GNU patch now uses gnulib
12581         * users.txt: Add patch.
12582
12583 2010-04-12  Jim Meyering  <meyering@redhat.com>
12584
12585         maint.mk: generate more concise timing data for syntax-check rules
12586         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
12587         " done" from each line that reports a syntax-check test duration.
12588
12589 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
12590
12591         git-version-gen: use "git update-index..." rather than "git status"
12592         * build-aux/git-version-gen: Use git update-index --refresh, not
12593         "git status".  With some versions of git, "git status" would fail
12594         to update the index and result in an unwarranted "-dirty" suffix.
12595
12596 2010-04-11  Jim Meyering  <meyering@redhat.com>
12597
12598         openat: correct formatting (no semantic change)
12599         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
12600         Suggested by Bruno Haible.
12601
12602 2010-04-11  Bruno Haible  <bruno@clisp.org>
12603
12604         Stricter declaration checking in testdirs.
12605         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12606         If for_tests is true, augment AM_CPPFLAGS to define
12607         GNULIB_STRICT_CHECKING.
12608         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
12609         GNULIB_STRICT_CHECKING is defined, verify that the function is
12610         declared.
12611
12612 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
12613             Bruno Haible  <bruno@clisp.org>
12614
12615         libunistring: Improve configure output.
12616         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
12617         Don't say "consider installing GNU libunistring" when checking again
12618         with libiconv.
12619
12620 2010-04-11  Bruno Haible  <bruno@clisp.org>
12621
12622         libunistring: Correct value of $LTLIBUNISTRING.
12623         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
12624         correct the value of $LTLIBUNISTRING.
12625
12626 2010-04-11  Bruno Haible  <bruno@clisp.org>
12627
12628         havelib: Add static libraries to LIBS in the right order.
12629         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
12630         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
12631
12632 2010-04-11  Bruno Haible  <bruno@clisp.org>
12633
12634         libunistring: Detect libunistring also when it depends on libiconv.
12635         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
12636         the second AC_LIB_HAVE_LINKFLAGS invocation.
12637
12638 2010-04-11  James Youngman  <jay@gnu.org>
12639
12640         close-stream: declare local scalars to be "const"
12641         * lib/close-stream.c (close_stream): Make boolean variables const
12642         to document the fact that we set but do not change them.
12643
12644 2010-04-11  Bruno Haible  <bruno@clisp.org>
12645
12646         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
12647
12648 2010-04-11  Jim Meyering  <meyering@redhat.com>
12649
12650         maint.mk: don't include dist-check.mk
12651         * top/maint.mk: Remove bogus include directive.
12652
12653         maint.mk: improve empty-line-at-EOF check
12654         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
12655         solution, rather than tail+Perl-based one.  The latter would read
12656         a few kilobytes from the end of each file, and did not handle empty
12657         files properly.
12658
12659         maint.mk: print the elapsed time for each syntax-check rule
12660         * top/maint.mk (sc_m_rules_): Save start time in a file.
12661         (sc_z_rules_): New rules: remove temp file and print elapsed time.
12662         (local-check): Interpose the .z rules
12663
12664 2010-04-11  Jim Meyering  <meyering@redhat.com>
12665
12666         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
12667         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
12668         empty file with one that ends in an empty line.
12669
12670 2010-04-10  Bruno Haible  <bruno@clisp.org>
12671
12672         mkdir: Make it work on mingw64.
12673         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
12674         * lib/mkdir.c: Update comment.
12675         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
12676
12677 2010-04-10  Bruno Haible  <bruno@clisp.org>
12678
12679         Don't override improved macro from newer autoconf.
12680         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
12681         autoconf >= 2.62.
12682         Reported by Joel E. Denny <jdenny@clemson.edu>.
12683
12684 2010-04-10  Jim Meyering  <meyering@redhat.com>
12685
12686         maint.mk: new syntax-check rule: prohibit empty lines at end of file
12687         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
12688
12689         maint.mk: correct a diagnostic
12690         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
12691         in diagnostic; now use $prohibit.
12692
12693 2010-04-10  Bruno Haible  <address@hidden>
12694
12695         fchownat: Fix a C++ test error on Solaris 8.
12696         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
12697         the function does not exist.
12698
12699 2010-04-10  Bruno Haible  <bruno@clisp.org>
12700
12701         vasnprintf: Add more tests.
12702         * tests/test-vasnprintf-posix.c: Include <errno.h>.
12703         (test_function): Test converting an invalid wide string.
12704
12705         vasnprintf: Correct handling of unconvertible wide string arguments.
12706         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
12707         VASNPRINTF.
12708         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
12709         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
12710         smaller than the expected maximum need for the directive. Set errno to
12711         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
12712         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
12713         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
12714         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
12715         * modules/vasnprintf (Files): Add m4/printf.m4.
12716         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12717
12718 2010-04-10  Bruno Haible  <bruno@clisp.org>
12719
12720         vasnprintf: Fix crash in %ls directive.
12721         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
12722         string is passed as argument to %ls, with no precision and no width.
12723         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12724
12725 2010-04-10  Bruno Haible  <bruno@clisp.org>
12726
12727         vasnprintf: Fix multiple test failures on mingw.
12728         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
12729         _snprintf, or snwprintf, not _snwprintf.
12730
12731 2010-04-10  Bruno Haible  <bruno@clisp.org>
12732
12733         write: Fix a C++ test error on mingw.
12734         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
12735
12736 2010-04-10  Bruno Haible  <bruno@clisp.org>
12737
12738         vasnprintf test: Reduce code duplication.
12739         * tests/test-vasnprintf.c (test_function): New function, extracted from
12740         test_vasnprintf.
12741         (test_vasnprintf, test_asnprintf): Invoke it.
12742
12743 2010-04-10  Bruno Haible  <bruno@clisp.org>
12744
12745         strnlen: Fix warning in C++ mode on MacOS X.
12746         * lib/string.in.h (strnlen): Use the modern idiom.
12747         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
12748         defining strnlen as a macro already in <config.h>.
12749         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12750         REPLACE_STRNLEN.
12751         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
12752         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12753
12754 2010-04-08  James Youngman  <jay@gnu.org>
12755
12756         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
12757         the example.
12758
12759 2010-04-09  Jim Meyering  <meyering@redhat.com>
12760
12761         maint.mk: print better diagnostic when there is no $(_hv_file)
12762         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
12763         announce that when $(_hv_file) (aka help-version) does not exist.
12764
12765         init.sh: run tr in the "C" locale to avoid multibyte interpretation
12766         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
12767         not try to interpret its random input bytes.  Jarno Rajahalme reported
12768         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
12769         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
12770         (mktempd_): Likewise, just in case.
12771
12772         ftruncate: add two years to projected module removal date: 2012
12773         * m4/ftruncate.m4: Adjust comments.
12774
12775         ftruncate: mark module as obsolete; even MinGW provides it, now
12776         * modules/ftruncate (Status): Obsolete.
12777         (Notice): Say that.
12778         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
12779         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
12780
12781 2010-04-08  Bruno Haible  <bruno@clisp.org>
12782
12783         Fix side effects from tests-related modules.
12784         * modules/dprintf-posix (Comment): New section.
12785         * modules/fprintf-posix (Comment): Likewise.
12786         * modules/obstack-printf-posix (Comment): Likewise.
12787         * modules/printf-posix (Comment): Likewise.
12788         * modules/snprintf-posix (Comment): Likewise.
12789         * modules/sprintf-posix (Comment): Likewise.
12790         * modules/vasnprintf-posix (Comment): Likewise.
12791         * modules/vasprintf-posix (Comment): Likewise.
12792         * modules/vdprintf-posix (Comment): Likewise.
12793         * modules/vfprintf-posix (Comment): Likewise.
12794         * modules/vprintf-posix (Comment): Likewise.
12795         * modules/vsnprintf-posix (Comment): Likewise.
12796         * modules/vsprintf-posix (Comment): Likewise.
12797         * modules/xprintf-posix (Comment): Likewise.
12798         * modules/xvasprintf-posix (Comment): Likewise.
12799         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
12800         * modules/floorf-tests (Depends-on): Likewise.
12801         * modules/round-tests (Depends-on): Likewise.
12802         * modules/roundf-tests (Depends-on): Likewise.
12803         * modules/trunc-tests (Depends-on): Likewise.
12804         * modules/truncf-tests (Depends-on): Likewise.
12805         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
12806         'fprintf-posix' module is not present.
12807         * tests/test-floorf2.c (check): Likewise.
12808         * tests/test-trunc2.c (check): Likewise.
12809         * tests/test-truncf2.c (check): Likewise.
12810         * tests/test-round2.c (equal): Likewise.
12811         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12812
12813 2010-04-07  Karl Berry  <karl@gnu.org>
12814
12815         * config/srclist.txt,
12816         * config/srclistvars.sh,
12817         * config/srclist-update: doc fixes.
12818
12819 2010-04-07  Jim Meyering  <meyering@redhat.com>
12820
12821         maint.mk: add a PATH crosschecking syntax-check rule
12822         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
12823         Useful if you use a test like the one in help-version (coreutils,
12824         diffutils, grep, gzip) that ensures $(VERSION) matches what is
12825         printed by prog --version.
12826
12827 2010-04-06  Bruno Haible  <bruno@clisp.org>
12828
12829         Fix link error on mingw.
12830         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
12831         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
12832
12833 2010-04-06  Bruno Haible  <bruno@clisp.org>
12834
12835         Assume rmdir exists.
12836         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
12837
12838 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
12839
12840         doc: update users.txt
12841         * users.txt: Add gcal.
12842
12843 2010-04-06  Jim Meyering  <meyering@redhat.com>
12844
12845         init.sh: simply unset TMPDIR rather than risking env -i
12846         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
12847         although it probably works fine on all Unix-based systems, some
12848         systems (Cygwin?) cannot tolerate a totally cleared environment.
12849         Suggestion from Eric Blake.
12850
12851 2010-04-06  Jim Meyering  <meyering@redhat.com>
12852
12853         init.sh: portability fix: use env's POSIX-specified -i option not -u
12854         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
12855         than unportable env -u.  Solaris 5.11's env lacks support for -u.
12856
12857 2010-04-05  Bruno Haible  <bruno@clisp.org>
12858
12859         btowc: Work around Cygwin 1.7.2 bug.
12860         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
12861         does not map NUL to 0.
12862         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
12863
12864 2010-04-05  Bruno Haible  <bruno@clisp.org>
12865
12866         Make the multithread modules work on Cygwin 1.7.2.
12867         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
12868         imported symbols can be declared weak, so that it returns "no" on
12869         Cygwin 1.7.2.
12870
12871 2010-04-05  Bruno Haible  <bruno@clisp.org>
12872
12873         Use the module 'strncat'.
12874         * modules/unistr/u8-strncat (Depends-on): Add strncat.
12875
12876         Tests for module 'strncat'.
12877         * modules/strncat-tests: New file.
12878         * tests/test-strncat.c: New file.
12879
12880         New module 'strncat'.
12881         * lib/string.in.h (strncat): New declaration.
12882         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
12883         * m4/strncat.m4: New file, based on m4/memchr.m4.
12884         * modules/strncat: New file.
12885         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
12886         is declared.
12887         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
12888         REPLACE_STRNCAT.
12889         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
12890         REPLACE_STRNCAT.
12891         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
12892         module.
12893         * tests/test-string-c++.cc: Check signature of strncat.
12894
12895 2010-04-05  Jim Meyering  <meyering@redhat.com>
12896
12897         xstrtoumax-tests: convert to use init.sh
12898         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
12899         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12900         Use Exit, not exit.
12901         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12902
12903         xstrtoimax-tests: convert to use init.sh
12904         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
12905         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12906         Use Exit, not exit.
12907         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12908
12909 2010-04-05  Bruno Haible  <bruno@clisp.org>
12910
12911         sys_socket: Avoid #define replacements in C++ mode.
12912         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
12913         warning to the function if possible, rather than #defining the symbol
12914         to a dysfunctional alias.
12915
12916 2010-04-05  Bruno Haible  <bruno@clisp.org>
12917
12918         fseeko: Fix C++ test error on mingw.
12919         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
12920         gl_FUNC_FSEEKO.
12921         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
12922         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
12923         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
12924         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
12925
12926 2010-04-05  Bruno Haible  <bruno@clisp.org>
12927
12928         duplocale: Improve test output.
12929         * tests/test-duplocale.c (main): Print reason for skipped test.
12930
12931 2010-04-05  Bruno Haible  <bruno@clisp.org>
12932
12933         Assume rmdir exists.
12934         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
12935         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
12936
12937 2010-04-05  Bruno Haible  <bruno@clisp.org>
12938
12939         Fix link error on Solaris 8 with cc.
12940         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
12941
12942 2010-04-05  Bruno Haible  <bruno@clisp.org>
12943
12944         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12945         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
12946
12947 2010-04-05  Bruno Haible  <bruno@clisp.org>
12948
12949         vasprintf: Update documentation.
12950         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
12951
12952 2010-04-05  Bruno Haible  <bruno@clisp.org>
12953
12954         ptsname: Improve test.
12955         * tests/test-ptsname.c (main): Also try the various master names of BSD
12956         systems.
12957
12958 2010-04-05  Bruno Haible  <bruno@clisp.org>
12959
12960         memchr: Avoid a possible C++ test error.
12961         * lib/string.in.h (memchr): Provide declaration if function is missing.
12962         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
12963         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
12964         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
12965         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
12966
12967 2010-04-05  Bruno Haible  <bruno@clisp.org>
12968
12969         strtok_r: Improve idiom.
12970         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
12971         AC_LIBOBJ is used.
12972
12973 2010-04-05  Bruno Haible  <bruno@clisp.org>
12974
12975         strdup: Improve idiom.
12976         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
12977         AC_LIBOBJ is used.
12978         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
12979         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
12980         when AC_LIBOBJ is used.
12981
12982 2010-04-05  Bruno Haible  <bruno@clisp.org>
12983
12984         mbsinit, mbrtowc, wcrtomb: Improve idioms.
12985         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
12986         don't set REPLACE_MBSINIT to 1.
12987         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
12988         don't set REPLACE_MBRTOWC to 1.
12989         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
12990         exist, don't set REPLACE_MBSRTOWCS to 1.
12991         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
12992         exist, don't set REPLACE_MBSNRTOWCS to 1.
12993         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
12994         don't set REPLACE_WCRTOMB to 1.
12995         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
12996         exist, don't set REPLACE_WCSRTOMBS to 1.
12997         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
12998         exist, don't set REPLACE_WCSNRTOMBS to 1.
12999
13000 2010-04-05  Bruno Haible  <bruno@clisp.org>
13001
13002         ldexpl: Improve idiom.
13003         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
13004         make sure to set HAVE_DECL_LDEXPL to 0.
13005
13006 2010-04-05  Jim Meyering  <meyering@redhat.com>
13007
13008         xstrtol-tests: convert to use init.sh
13009         * modules/xstrtol-tests (Files): Add tests/init.sh.
13010         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13011         Use Exit, not exit.
13012         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13013
13014         atexit-tests: convert to use init.sh
13015         * modules/atexit-tests (Files): Add tests/init.sh.
13016         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13017         Use Exit, not exit.
13018         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13019
13020         init.sh: fix typo
13021         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
13022
13023         init.sh: make it easier for a test script to write to the tty, ...
13024         when using automake's parallel-tests mode.
13025         * tests/init.sh (stderr_fileno_): Define overridable variable.
13026         (warn_): New function, to use it.
13027         (fail_, skip_, framework_failure_): Use warn_.
13028
13029 2010-04-04  Bruno Haible  <bruno@clisp.org>
13030
13031         btowc: Avoid warning.
13032         * lib/btowc.c: Include <stdlib.h>.
13033         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
13034
13035 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13036             Bruno Haible  <bruno@clisp.org>
13037
13038         wchar: Port to NetBSD 1.5.
13039         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
13040         * lib/wctype.in.h (WEOF): Likewise.
13041
13042 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13043             Bruno Haible  <bruno@clisp.org>
13044
13045         Port extended stdio to NetBSD 1.5.
13046         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
13047         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
13048         older.
13049
13050 2010-04-04  Bruno Haible  <bruno@clisp.org>
13051
13052         string: Remove unused substitution.
13053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
13054         HAVE_DECL_STRERROR.
13055         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
13056
13057 2010-04-04  Bruno Haible  <bruno@clisp.org>
13058
13059         strtod: Avoid a possible C++ test error.
13060         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
13061         set REPLACE_STRTOD.
13062
13063 2010-04-04  Bruno Haible  <bruno@clisp.org>
13064
13065         strerror: Update documentation.
13066         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
13067
13068 2010-04-04  Bruno Haible  <bruno@clisp.org>
13069
13070         stdio: Fix some C++ test errors on Solaris 8 with GCC.
13071         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
13072         _GL_CXXALIAS_SYS_CAST.
13073
13074 2010-04-04  Bruno Haible  <bruno@clisp.org>
13075
13076         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13077         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
13078         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
13079         REPLACE_FREXPL to 1.
13080         * doc/posix-functions/frexpl.texi: Update documentation.
13081
13082 2010-04-04  Bruno Haible  <bruno@clisp.org>
13083
13084         math: Fix some C++ test errors on Solaris 8 and Cygwin.
13085         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
13086
13087 2010-04-04  Bruno Haible  <bruno@clisp.org>
13088
13089         Implement nanosleep for native Windows.
13090         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
13091
13092 2010-04-04  Bruno Haible  <bruno@clisp.org>
13093
13094         math: Fix some C++ test errors on Solaris 8.
13095         * lib/math.in.h (truncf, trunc): Use simpler idiom.
13096
13097 2010-04-04  Bruno Haible  <bruno@clisp.org>
13098
13099         math: Fix some C++ test errors on Cygwin.
13100         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
13101         truncl): Provide declaration if the system does not have it.
13102         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
13103         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
13104         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
13105         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
13106         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
13107         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
13108         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
13109         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
13110         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
13111         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
13112         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
13113         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
13114         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
13115         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
13116         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
13117         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
13118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
13119         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13120         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13121         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
13122         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13123         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13124
13125 2010-04-04  Bruno Haible  <bruno@clisp.org>
13126
13127         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
13128         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13129         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13130         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13131         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13132         * m4/isinf.m4 (gl_ISINF): Likewise.
13133         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13134
13135 2010-04-04  Bruno Haible  <bruno@clisp.org>
13136
13137         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
13138         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13139
13140 2010-04-04  Bruno Haible  <bruno@clisp.org>
13141
13142         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
13143         * modules/tmpfile (configure.ac): Update.
13144
13145         tmpfile: Fix C++ test error on mingw.
13146         * lib/stdio.in.h (tmpfile): New declaration.
13147         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
13148         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
13149         * modules/tmpfile (Depends-on): Add stdio.
13150         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13151         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
13152         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
13153         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
13154         REPLACE_TMPFILE.
13155         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
13156
13157 2010-04-04  Bruno Haible  <bruno@clisp.org>
13158
13159         ioctl: Fix C++ test error on mingw.
13160         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
13161         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
13162         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
13163
13164 2010-04-03  Bruno Haible  <bruno@clisp.org>
13165
13166         wcwidth: Fix C++ test error on mingw.
13167         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
13168         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
13169         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
13170
13171 2010-04-03  Bruno Haible  <bruno@clisp.org>
13172
13173         nanosleep: Fix C++ test error on mingw.
13174         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
13175         * lib/time.in.h (nanosleep): Use modern idiom.
13176         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
13177         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
13178         REPLACE_NANOSLEEP to 1.
13179         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
13180         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
13181
13182 2010-04-03  Bruno Haible  <bruno@clisp.org>
13183
13184         strptime: Fix C++ test error on mingw.
13185         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
13186         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
13187         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
13188         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
13189         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
13190         not REPLACE_STRPTIME.
13191         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
13192         REPLACE_STRPTIME.
13193
13194 2010-04-03  Bruno Haible  <bruno@clisp.org>
13195
13196         timegm: Fix C++ test error on mingw.
13197         * lib/time.in.h (timegm): Use modern idiom.
13198         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
13199         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
13200         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
13201         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
13202
13203 2010-04-03  Bruno Haible  <bruno@clisp.org>
13204
13205         timegm: Assume declaration if function exists.
13206         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
13207         if it exists. Don't clobber ac_cv_func_timegm.
13208
13209 2010-04-03  Bruno Haible  <bruno@clisp.org>
13210
13211         time_r: Fix C++ test error on mingw.
13212         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
13213         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
13214         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
13215         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
13216         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
13217
13218 2010-04-03  Bruno Haible  <bruno@clisp.org>
13219
13220         time_r: Minor updates.
13221         * modules/time_r (Description): Mention the provided functions.
13222         * lib/time_r.c: Don't include <string.h>.
13223         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
13224         * doc/posix-functions/localtime_r.texi: Likewise.
13225
13226 2010-04-03  Bruno Haible  <bruno@clisp.org>
13227
13228         time: Fix regression introduced on 2010-03-08.
13229         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
13230         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
13231
13232 2010-04-03  Jim Meyering  <meyering@redhat.com>
13233
13234         maint.mk: don't silently disable project-specific syntax-check rules
13235         * top/maint.mk (_prohibit_regexp): Define, to help people realize
13236         that they need to convert their project-specific syntax-check rules
13237         to use the new _sc_search_regexp.
13238
13239 2010-04-03  Bruno Haible  <bruno@clisp.org>
13240
13241         fchdir: Fix regression introduced on 2010-03-08.
13242         * lib/unistd.in.h (fchdir): Fix declaration.
13243         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
13244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
13245         REPLACE_FCHDIR.
13246         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
13247         REPLACE_FCHDIR.
13248
13249 2010-04-03  Bruno Haible  <bruno@clisp.org>
13250
13251         getpagesize: Fix C++ test error on mingw.
13252         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
13253         system does not declare the function.
13254         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
13255         declared.
13256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13257         HAVE_DECL_GETPAGESIZE.
13258         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
13259
13260 2010-04-03  Bruno Haible  <bruno@clisp.org>
13261
13262         stdio: Make C++ tests work on mingw.
13263         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
13264         does not declare the function.
13265
13266 2010-04-03  Bruno Haible  <bruno@clisp.org>
13267
13268         ftello: Fix C++ test error on mingw.
13269         * lib/stdio.in.h (ftello): Use modern idiom.
13270         * lib/ftello.c (ftello): Renamed from rpl_ftello.
13271         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
13272         is missing and that it needs to be replaced.
13273         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
13274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
13275         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
13276
13277 2010-04-03  Bruno Haible  <bruno@clisp.org>
13278
13279         fseeko: Fix C++ test error on mingw.
13280         * lib/stdio.in.h (fseeko): Use modern idiom.
13281         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
13282         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
13283         is missing and that it needs to be replaced.
13284         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
13285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
13286         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
13287
13288 2010-04-03  Bruno Haible  <bruno@clisp.org>
13289
13290         mkstemp: Fix C++ test error on mingw.
13291         * lib/stdlib.in.h (mkstemp): Use modern idiom.
13292         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
13293         function is missing and that it needs to be replaced.
13294         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
13295         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
13296
13297 2010-04-03  Bruno Haible  <bruno@clisp.org>
13298
13299         stpncpy: Fix C++ test error on mingw.
13300         * lib/string.in.h (stpncpy): Use modern idiom.
13301         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
13302         function is missing and that it needs to be replaced.
13303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13304         REPLACE_STPNCPY.
13305         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
13306
13307 2010-04-03  Bruno Haible  <bruno@clisp.org>
13308
13309         sys_stat: Fix C++ test error on mingw.
13310         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
13311         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
13312
13313 2010-04-03  Bruno Haible  <bruno@clisp.org>
13314
13315         pty: Update doc.
13316         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
13317
13318 2010-04-03  Bruno Haible  <bruno@clisp.org>
13319
13320         unistd: Fix C++ test error on mingw.
13321         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
13322
13323 2010-04-03  Bruno Haible  <bruno@clisp.org>
13324
13325         Update doc regarding mingw.
13326         * doc/glibc-functions/openpty.texi: Update regarding mingw.
13327         * doc/glibc-functions/login_tty.texi: Likewise.
13328         * doc/glibc-functions/forkpty.texi: Likewise.
13329
13330 2010-04-03  Bruno Haible  <bruno@clisp.org>
13331
13332         stdlib: Avoid compilation failure of c-strtold on mingw.
13333         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
13334
13335 2010-04-03  Bruno Haible  <bruno@clisp.org>
13336
13337         locale: Make C++ tests work on Cygwin and mingw.
13338         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
13339         cannot provide the function.
13340         Reported by Simon Josefsson.
13341
13342 2010-04-03  Bruno Haible  <bruno@clisp.org>
13343
13344         localename: Port to MacOS X 10.6.
13345         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
13346         memory layout of the locales in MacOS X 10.6 as well.
13347         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
13348
13349 2010-04-02  Bruno Haible  <bruno@clisp.org>
13350
13351         gnulib-tool: Ensure that long-running tests are executed last.
13352         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
13353         running tests after the one for the other tests.
13354
13355 2010-04-02  Bruno Haible  <bruno@clisp.org>
13356
13357         gnulib-tool: Ensure the tests in the main directory are executed first.
13358         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
13359         start with the current directory.
13360
13361 2010-04-02  Bruno Haible  <bruno@clisp.org>
13362
13363         Tests for module 'havelib', moved here from GNU gettext.
13364         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
13365         modifications.
13366         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
13367         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
13368         with modifications.
13369         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
13370         modifications.
13371         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
13372         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
13373         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
13374         with modifications.
13375         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
13376         with modifications.
13377         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
13378         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
13379         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
13380         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
13381         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
13382         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
13383         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
13384         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
13385         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
13386         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
13387         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
13388         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
13389         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
13390         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
13391         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
13392         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
13393         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
13394         with modifications.
13395         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
13396         with modifications.
13397         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
13398         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
13399         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
13400         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
13401         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
13402         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
13403         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
13404         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
13405         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
13406         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
13407         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
13408         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
13409         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
13410         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
13411         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
13412         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
13413         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
13414         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
13415         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
13416         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
13417         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
13418         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
13419         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
13420         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
13421         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
13422         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
13423         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
13424         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
13425         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
13426         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
13427         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
13428         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
13429         * tests/havelib/rpathx/rpathx.c: New file, from
13430         gettext/autoconf-lib-link.
13431         * tests/havelib/rpathx/Makefile.am: New file, from
13432         gettext/autoconf-lib-link.
13433         * tests/havelib/rpathx/configure.ac: New file, from
13434         gettext/autoconf-lib-link with modifications.
13435         * tests/havelib/rpathy/rpathy.c: New file, from
13436         gettext/autoconf-lib-link.
13437         * tests/havelib/rpathy/Makefile.am: New file, from
13438         gettext/autoconf-lib-link.
13439         * tests/havelib/rpathy/configure.ac: New file, from
13440         gettext/autoconf-lib-link with modifications.
13441         * tests/havelib/rpathz/rpathz.c: New file, from
13442         gettext/autoconf-lib-link.
13443         * tests/havelib/rpathz/Makefile.am: New file, from
13444         gettext/autoconf-lib-link.
13445         * tests/havelib/rpathz/configure.ac: New file, from
13446         gettext/autoconf-lib-link with modifications.
13447         * tests/havelib/rpathlx/usex.c: New file, from
13448         gettext/autoconf-lib-link.
13449         * tests/havelib/rpathlx/Makefile.am: New file, from
13450         gettext/autoconf-lib-link.
13451         * tests/havelib/rpathlx/configure.ac: New file, from
13452         gettext/autoconf-lib-link with modifications.
13453         * tests/havelib/rpathly/usey.c: New file, from
13454         gettext/autoconf-lib-link.
13455         * tests/havelib/rpathly/Makefile.am: New file, from
13456         gettext/autoconf-lib-link.
13457         * tests/havelib/rpathly/configure.ac: New file, from
13458         gettext/autoconf-lib-link with modifications.
13459         * tests/havelib/rpathlz/usez.c: New file, from
13460         gettext/autoconf-lib-link.
13461         * tests/havelib/rpathlz/Makefile.am: New file, from
13462         gettext/autoconf-lib-link.
13463         * tests/havelib/rpathlz/configure.ac: New file, from
13464         gettext/autoconf-lib-link with modifications.
13465         * tests/havelib/rpathlyx/usey.c: New file, from
13466         gettext/autoconf-lib-link.
13467         * tests/havelib/rpathlyx/Makefile.am: New file, from
13468         gettext/autoconf-lib-link.
13469         * tests/havelib/rpathlyx/configure.ac: New file, from
13470         gettext/autoconf-lib-link with modifications.
13471         * tests/havelib/rpathlzyx/usez.c: New file, from
13472         gettext/autoconf-lib-link.
13473         * tests/havelib/rpathlzyx/Makefile.am: New file, from
13474         gettext/autoconf-lib-link.
13475         * tests/havelib/rpathlzyx/configure.ac: New file, from
13476         gettext/autoconf-lib-link with modifications.
13477         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
13478         with modifications.
13479
13480 2010-04-02  Bruno Haible  <bruno@clisp.org>
13481
13482         gnulib-tool: Create distributed built sources also for the tests.
13483         * gnulib-tool (func_create_testdir): Also generate distributed built
13484         sources in the tests directory.
13485
13486 2010-04-02  Bruno Haible  <bruno@clisp.org>
13487
13488         gnulib-tool: Obey user's environment variables.
13489         * gnulib-tool (func_create_testdir): When creating built sources,
13490         respect the environment variables for autoconf, automake, etc. given by
13491         the user.
13492
13493 2010-04-02  Bruno Haible  <bruno@clisp.org>
13494
13495         gnulib-tool: Provide the value of --m4-base to modules.
13496         * gnulib-tool (func_import, func_create_testdir): Emit a definition
13497         of gl_m4_base.
13498
13499 2010-04-02  Eric Blake  <eblake@redhat.com>
13500
13501         maint.mk: fix some fallout
13502         * NEWS: Document the incompatible change, and its effect on cfg.mk.
13503         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
13504
13505 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
13506
13507         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
13508         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
13509         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
13510         (sc_cast_of_x_alloc_return_value): Likewise.
13511         (sc_cast_of_alloca_return_value): Likewise.
13512         (sc_space_tab): Likewise.
13513         (sc_prohibit_atoi_atof): Likewise.
13514         (sc_prohibit_magic_number_exit): Likewise.
13515         (sc_error_exit_success): Likewise.
13516         (sc_file_system): Likewise.
13517         (sc_prohibit_have_config_h): Likewise.
13518         (sc_require_config_h): Likewise.
13519         (sc_prohibit_HAVE_MBRTOWC): Likewise.
13520         (sc_obsolete_symbols): Likewise.
13521         (sc_changelog): Likewise.
13522         (sc_program_name): Likewise.
13523         (sc_the_the): Likewise.
13524         (sc_trailing_blank): Likewise.
13525         (sc_two_space_separator_in_usage): Likewise.
13526         (sc_useless_cpp_parens): Likewise.
13527         (sc_GPL_version): Likewise.
13528         (sc_GFDL_version): Likewise.
13529         (sc_texinfo_acronym): Likewise.
13530         (sc_prohibit_cvs_keyword): Likewise.
13531         (sc_prohibit_stat_st_blocks): Likewise.
13532         (sc_prohibit_S_IS_definition): Likewise.
13533         (sc_redundant_const): Likewise.
13534         (sc_makefile_TAB_only_indentation): Likewise.
13535         (sc_m4_quote_check): Likewise.
13536         (sc_makefile_path_separator_check): Likewise.
13537         (sc_copyright_check): Likewise.
13538         (sc_Wundef_boolean): Likewise.
13539         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
13540
13541         maint.mk: match 0 or more whitespace-before-function-call '('
13542         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
13543         that have zero or two-and-more spaces between the function name
13544         and the open parenthesis.
13545         (sc_error_message_warn_fatal): Likewise.
13546         (sc_error_message_uppercase): Likewise.
13547         (sc_error_message_period): Likewise.
13548
13549 2010-03-31  Eric Blake  <eblake@redhat.com>
13550
13551         maint.mk: check for [ as well as test
13552         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
13553         Based on a libvirt report by Matthias Bolte.
13554
13555         gnumakefile: don't squelch _version output
13556         * top/GNUmakefile (_version): Create one-shot dependency rather
13557         than using $(shell) when version must be regenerated.
13558         (_autoreconf): Run verbosely, by default.
13559
13560         sys_time: avoid compiler warnings
13561         * lib/sys_time.in.h (includes): Ensure gcc pragma is
13562         unconditional, fixing regression from 2010-03-29.
13563         Reported by Simon Josefsson.
13564
13565 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
13566
13567         maint.mk: s/_header_without_use/_sc_header_without_use/
13568         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
13569         (sc_prohibit_assert_without_use): Use the new name.
13570         (sc_prohibit_close_stream_without_use): Likewise.
13571         (sc_prohibit_getopt_without_use): Likewise.
13572         (sc_prohibit_quotearg_without_use): Likewise.
13573         (sc_prohibit_quote_without_use): Likewise.
13574         (sc_prohibit_long_options_without_use): Likewise.
13575         (sc_prohibit_inttostr_without_use): Likewise.
13576         (sc_prohibit_ignore_value_without_use): Likewise.
13577         (sc_prohibit_error_without_use): Likewise.
13578         (sc_prohibit_xalloc_without_use): Likewise.
13579         (sc_prohibit_hash_without_use): Likewise.
13580         (sc_prohibit_hash_pjw_without_use): Likewise.
13581         (sc_prohibit_safe_read_without_use): Likewise.
13582         (sc_prohibit_argmatch_without_use): Likewise.
13583         (sc_prohibit_canonicalize_without_use): Likewise.
13584         (sc_prohibit_root_dev_ino_without_use): Likewise.
13585         (sc_prohibit_openat_without_use): Likewise.
13586         (sc_prohibit_c_ctype_without_use): Likewise.
13587         (sc_prohibit_signal_without_use): Likewise.
13588         (sc_prohibit_intprops_without_use): Likewise.
13589
13590 2010-03-30  Eric Blake  <eblake@redhat.com>
13591
13592         maint: improve module indicators
13593         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
13594         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
13595         columns, and avoid extra macro expansion.
13596
13597         fdopendir: work around FreeBSD bug
13598         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
13599         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
13600         * modules/dirent (Makefile.am): Substitute it.
13601         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
13602         declaration.
13603         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
13604         fix.
13605         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13606
13607 2010-03-29  Bruno Haible  <bruno@clisp.org>
13608
13609         Emit #pragma system_header after the inclusion guard, not before.
13610         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
13611         guard that spans the entire file, not before. This enables an
13612         optimization in GCC's preprocessor.
13613         * lib/ctype.in.h: Likewise.
13614         * lib/dirent.in.h: Likewise.
13615         * lib/errno.in.h: Likewise.
13616         * lib/float.in.h: Likewise.
13617         * lib/getopt.in.h: Likewise.
13618         * lib/iconv.in.h: Likewise.
13619         * lib/langinfo.in.h: Likewise.
13620         * lib/locale.in.h: Likewise.
13621         * lib/math.in.h: Likewise.
13622         * lib/netdb.in.h: Likewise.
13623         * lib/netinet_in.in.h: Likewise.
13624         * lib/pty.in.h: Likewise.
13625         * lib/sched.in.h: Likewise.
13626         * lib/se-selinux.in.h: Likewise.
13627         * lib/search.in.h: Likewise.
13628         * lib/spawn.in.h: Likewise.
13629         * lib/stdarg.in.h: Likewise.
13630         * lib/stdint.in.h: Likewise.
13631         * lib/string.in.h: Likewise.
13632         * lib/strings.in.h: Likewise.
13633         * lib/sys_file.in.h: Likewise.
13634         * lib/sys_ioctl.in.h: Likewise.
13635         * lib/sys_time.in.h: Likewise.
13636         * lib/sys_times.in.h: Likewise.
13637         * lib/sys_utsname.in.h: Likewise.
13638         * lib/sys_wait.in.h: Likewise.
13639         * lib/sysexits.in.h: Likewise.
13640         * lib/wctype.in.h: Likewise.
13641
13642 2010-03-28  James Youngman  <jay@gnu.org>
13643
13644         save-cwd: don't leak a file descriptor when the caller execs.
13645         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
13646         saved file descriptor.
13647         * modules/save-cwd (Depends-on): Depend on cloexec.
13648
13649 2010-03-29  Bruno Haible  <bruno@clisp.org>
13650
13651         Remove vestiges of fts-lgpl module.
13652         * lib/fts_.h: Assume GNULIB_FTS is 1.
13653         * lib/fts.c: Likewise.
13654         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13655
13656 2010-03-28  Bruno Haible  <bruno@clisp.org>
13657
13658         Fix definition of tests witness macro.
13659         * gnulib-tool (func_import): Fix definition of witness macro.
13660
13661 2010-03-28  Bruno Haible  <bruno@clisp.org>
13662
13663         Fix ioctl's protoype on glibc systems.
13664         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
13665         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
13666         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
13667         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
13668         signature. If not, arrange to replace the ioctl function.
13669         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
13670         REPLACE_IOCTL.
13671         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
13672         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
13673         Reported by Ludovic Courtès <ludo@gnu.org>.
13674
13675 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
13676
13677         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
13678         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
13679         made it so grep -r --include=GLOB* ... did not work.
13680
13681 2010-03-26  Jim Meyering  <meyering@redhat.com>
13682             Eric Blake  <eblake@redhat.com>
13683
13684         maint.mk: prohibit use of test's -o and -a operators
13685         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
13686
13687 2010-03-28  Bruno Haible  <bruno@clisp.org>
13688
13689         Remove unused GNULIB_XYZ macro definitions.
13690         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
13691         invocation.
13692
13693 2010-03-28  Bruno Haible  <bruno@clisp.org>
13694
13695         Mark privileged tests modules.
13696         * modules/idpriv-drop-tests (Status): New section.
13697         * modules/idpriv-droptemp-tests (Status): New section.
13698
13699 2010-03-28  Bruno Haible  <bruno@clisp.org>
13700
13701         Split C++ tests into separate tests modules.
13702         * modules/dirent-c++-tests: New file, extracted from
13703         modules/dirent-tests.
13704         * modules/dirent-tests: Depend on it.
13705         * modules/fcntl-h-c++-tests: New file, extracted from
13706         modules/fcntl-h-tests.
13707         * modules/fcntl-h-tests: Depend on it.
13708         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
13709         * modules/glob-tests: Depend on it.
13710         * modules/iconv-h-c++-tests: New file, extracted from
13711         modules/iconv-h-tests.
13712         * modules/iconv-h-tests: Depend on it.
13713         * modules/langinfo-c++-tests: New file, extracted from
13714         modules/langinfo-tests.
13715         * modules/langinfo-tests: Depend on it.
13716         * modules/locale-c++-tests: New file, extracted from
13717         modules/locale-tests.
13718         * modules/locale-tests: Depend on it.
13719         * modules/math-c++-tests: New file, extracted from modules/math-tests.
13720         * modules/math-tests: Depend on it.
13721         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
13722         * modules/pty-tests: Depend on it.
13723         * modules/search-c++-tests: New file, extracted from
13724         modules/search-tests.
13725         * modules/search-tests: Depend on it.
13726         * modules/signal-c++-tests: New file, extracted from
13727         modules/signal-tests.
13728         * modules/signal-tests: Depend on it.
13729         * modules/spawn-c++-tests: New file, extracted from
13730         modules/spawn-tests.
13731         * modules/spawn-tests: Depend on it.
13732         * modules/stdio-c++-tests: New file, extracted from
13733         modules/stdio-tests.
13734         * modules/stdio-tests: Depend on it.
13735         * modules/stdlib-c++-tests: New file, extracted from
13736         modules/stdlib-tests.
13737         * modules/stdlib-tests: Depend on it.
13738         * modules/string-c++-tests: New file, extracted from
13739         modules/string-tests.
13740         * modules/string-tests: Depend on it.
13741         * modules/sys_ioctl-c++-tests: New file, extracted from
13742         modules/sys_ioctl-tests.
13743         * modules/sys_ioctl-tests: Depend on it.
13744         * modules/sys_select-c++-tests: New file, extracted from
13745         modules/sys_select-tests.
13746         * modules/sys_select-tests: Depend on it.
13747         * modules/sys_socket-c++-tests: New file, extracted from
13748         modules/sys_socket-tests.
13749         * modules/sys_socket-tests: Depend on it.
13750         * modules/sys_stat-c++-tests: New file, extracted from
13751         modules/sys_stat-tests.
13752         * modules/sys_stat-tests: Depend on it.
13753         * modules/sys_time-c++-tests: New file, extracted from
13754         modules/sys_time-tests.
13755         * modules/sys_time-tests: Depend on it.
13756         * modules/time-c++-tests: New file, extracted from modules/time-tests.
13757         * modules/time-tests: Depend on it.
13758         * modules/unistd-c++-tests: New file, extracted from
13759         modules/unistd-tests.
13760         * modules/unistd-tests: Depend on it.
13761         * modules/wchar-c++-tests: New file, extracted from
13762         modules/wchar-tests.
13763         * modules/wchar-tests: Depend on it.
13764         * modules/wctype-c++-tests: New file, extracted from
13765         modules/wctype-tests.
13766         * modules/wctype-tests: Depend on it.
13767         Reported by Simon Josefsson.
13768
13769 2010-03-28  Bruno Haible  <bruno@clisp.org>
13770
13771         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
13772         * gnulib-tool (func_exists_module): New function, extracted from
13773         func_verify_module.
13774         (func_verify_module): Use it.
13775         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
13776         'foo' only if 'foo' exists.
13777         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
13778         module.
13779
13780 2010-03-28  Bruno Haible  <bruno@clisp.org>
13781
13782         gnulib-tool: Add support for special categories of tests.
13783         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
13784         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
13785         (func_usage): Document them.
13786         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
13787         inc_unportable_tests, inc_all_tests): New variables.
13788         (func_acceptable): Consider these variables.
13789         (func_modules_transitive_closure): Make it work when the 'Status' field
13790         consists of multiple words.
13791         (func_import): Store and restore the values of inc_cxx_tests,
13792         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
13793         inc_all_tests in gnulib-comp.m4.
13794         (func_create_testdir): Set inc_all_tests to true.
13795         * doc/gnulib.texi (Extra tests modules): New section.
13796         Suggested by Jim Meyering.
13797
13798 2010-03-28  Bruno Haible  <bruno@clisp.org>
13799
13800         ansi-c++-opt: Allow turning off the C++ build by default.
13801         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
13802         gl_CXX_CHOICE_DEFAULT_NO is defined.
13803         Requested by Eric Blake.
13804
13805 2010-03-28  Bruno Haible  <bruno@clisp.org>
13806
13807         unistd: Avoid #define replacements in C++ mode.
13808         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13809         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13810         setsockopt, shutdown, select): In C++, attach a warning to the function
13811         if possible, rather than #defining the symbol to a dysfunctional alias.
13812         Reported by John W. Eaton <jwe@gnu.org>.
13813
13814 2010-03-28  Bruno Haible  <bruno@clisp.org>
13815
13816         Fix link errors on mingw.
13817         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
13818         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
13819         $(LIBSOCKET).
13820         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
13821         $(LIBSOCKET).
13822
13823 2010-03-28  Bruno Haible  <bruno@clisp.org>
13824             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13825
13826         lib-ignore: Determine different options for different compilers.
13827         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
13828         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
13829         Add comments.
13830         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
13831         * NEWS: Mention the change.
13832
13833 2010-03-27  Bruno Haible  <bruno@clisp.org>
13834
13835         Remove unused GNULIB_XYZ macro definitions.
13836         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13837         * modules/fseek (configure.ac): Likewise.
13838         * modules/ioctl (configure.ac): Likewise.
13839         * modules/open (configure.ac): Likewise.
13840         * modules/stdlib-safer (configure.ac): Likewise.
13841
13842 2010-03-27  Bruno Haible  <bruno@clisp.org>
13843
13844         Add a remark about certain modules.
13845         * modules/malloc (Comment): New section.
13846         * modules/realloc (Comment): Likewise.
13847         * modules/sigpipe (Comment): Likewise.
13848
13849 2010-03-27  Bruno Haible  <bruno@clisp.org>
13850
13851         Resolve conflict between the two kinds of module indicators.
13852         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
13853         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
13854         * modules/canonicalize (configure.ac): Invoke
13855         gl_MODULE_INDICATOR_FOR_TESTS.
13856         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
13857         GNULIB_XYZ.
13858         * tests/test-dirent-c++.cc: Likewise.
13859         * tests/test-dirent-safer.c: Likewise.
13860         * tests/test-dup2.c: Likewise.
13861         * tests/test-fchdir.c: Likewise.
13862         * tests/test-fcntl-h-c++.cc: Likewise.
13863         * tests/test-getopt.c: Likewise.
13864         * tests/test-getopt.h: Likewise.
13865         * tests/test-langinfo-c++.cc: Likewise.
13866         * tests/test-locale-c++.cc: Likewise.
13867         * tests/test-math-c++.cc: Likewise.
13868         * tests/test-pty-c++.cc: Likewise.
13869         * tests/test-search-c++.cc: Likewise.
13870         * tests/test-signal-c++.cc: Likewise.
13871         * tests/test-spawn-c++.cc: Likewise.
13872         * tests/test-stdio-c++.cc: Likewise.
13873         * tests/test-stdlib-c++.cc: Likewise.
13874         * tests/test-string-c++.cc: Likewise.
13875         * tests/test-sys_ioctl-c++.cc: Likewise.
13876         * tests/test-sys_select-c++.cc: Likewise.
13877         * tests/test-sys_socket-c++.cc: Likewise.
13878         * tests/test-sys_stat-c++.cc: Likewise.
13879         * tests/test-sys_time-c++.cc: Likewise.
13880         * tests/test-time-c++.cc: Likewise.
13881         * tests/test-unistd-c++.cc: Likewise.
13882         * tests/test-wchar-c++.cc: Likewise.
13883         * tests/uninorm/test-u8-nfc.c: Likewise.
13884         * tests/uninorm/test-u8-nfd.c: Likewise.
13885         * tests/uninorm/test-u8-nfkc.c: Likewise.
13886         * tests/uninorm/test-u8-nfkd.c: Likewise.
13887         * tests/uninorm/test-u16-nfc.c: Likewise.
13888         * tests/uninorm/test-u16-nfd.c: Likewise.
13889         * tests/uninorm/test-u16-nfkc.c: Likewise.
13890         * tests/uninorm/test-u16-nfkd.c: Likewise.
13891         * tests/uninorm/test-u32-nfc.c: Likewise.
13892         * tests/uninorm/test-u32-nfc-big.c: Likewise.
13893         * tests/uninorm/test-u32-nfd.c: Likewise.
13894         * tests/uninorm/test-u32-nfd-big.c: Likewise.
13895         * tests/uninorm/test-u32-nfkc.c: Likewise.
13896         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
13897         * tests/uninorm/test-u32-nfkd.c: Likewise.
13898         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
13899         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13900
13901 2010-03-27  Bruno Haible  <bruno@clisp.org>
13902
13903         Distinguish two kinds of module indicators.
13904         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
13905         gl_MODULE_INDICATOR.
13906         (gl_MODULE_INDICATOR): New macro.
13907         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
13908         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
13909         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13910         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13911         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13912         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13913         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13914         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13915         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13916         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13917         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13918         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13919         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13920         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13921         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13922         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13923         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13924         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13925         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13926         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13927         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13928         * modules/cloexec (configure.ac): Likewise.
13929         * modules/getopt-gnu (configure.ac): Likewise.
13930         * modules/uninorm/u8-normalize (configure.ac): Likewise.
13931         * modules/uninorm/u16-normalize (configure.ac): Likewise.
13932         * modules/uninorm/u32-normalize (configure.ac): Likewise.
13933         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
13934
13935 2010-03-27  Bruno Haible  <bruno@clisp.org>
13936
13937         New module description field 'Comment'.
13938         * gnulib-tool: New option --extract-comment.
13939         (func_usage): Document it.
13940         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
13941         (func_get_comment): New function.
13942         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
13943
13944 2010-03-27  Bruno Haible  <bruno@clisp.org>
13945
13946         Addendum to 2010-02-07 commit.
13947         * gnulib-tool (func_usage): Document --extract-applicability option.
13948
13949 2010-03-27  Bruno Haible  <bruno@clisp.org>
13950
13951         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
13952         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
13953         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
13954         rather than link errors.
13955
13956 2010-03-27  Bruno Haible  <bruno@clisp.org>
13957
13958         Avoid side effects from tests-related modules on the compilation of lib.
13959         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
13960         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
13961         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
13962         parameter. Emit into AM_CPPFLAGS a definition of the designated C
13963         macro.
13964         (func_import): Define a witness macro. Assign it a value that depends
13965         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
13966         tests-related modules.
13967         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
13968         Reported by Jim Meyering.
13969
13970 2010-03-27  Bruno Haible  <bruno@clisp.org>
13971
13972         Factorize common .m4 code.
13973         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
13974         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
13975         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
13976         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
13977         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13978         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
13979         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
13980         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13981         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13982         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13983         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
13984         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13985         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13986         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13987         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13988         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
13989         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13990         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13991         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13992         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
13993         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
13994         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13995         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13996         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13997         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13998         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13999         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
14000         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
14001         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
14002         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14003         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14004         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14005
14006 2010-03-27  Bruno Haible  <bruno@clisp.org>
14007
14008         Fix a compilation error on Cygwin with g++ >= 4.3.
14009         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
14010         if it is undefined or if we alias it to chmod.
14011         (lstat): Don't warn about the use of this function if it is undefined
14012         or if we alias it to stat.
14013         Reported by Simon Josefsson.
14014
14015 2010-03-27  Bruno Haible  <bruno@clisp.org>
14016
14017         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
14018         * modules/getlogin (configure.ac): Update.
14019
14020         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
14021         * modules/getlogin_r (configure.ac): Update.
14022
14023         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
14024         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
14025         * modules/inet_ntop (configure.ac): Update.
14026
14027         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
14028         * modules/inet_pton (configure.ac): Update.
14029
14030         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
14031         * modules/mbslen (configure.ac): Update.
14032
14033         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
14034         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
14035         * modules/forkpty (configure.ac): Update.
14036         * modules/openpty (configure.ac): Update.
14037
14038 2010-03-26  Simon Josefsson  <simon@josefsson.org>
14039
14040         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
14041         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
14042
14043 2010-03-25  Eric Blake  <eblake@redhat.com>
14044
14045         maint: use pragma consistently across replacement headers
14046         * lib/ctype.in.h (system_header): Hoist for consistent placement.
14047         * lib/dirent.in.h (system_header): Likewise.
14048         * lib/errno.in.h (system_header): Likewise.
14049         * lib/float.in.h (system_header): Likewise.
14050         * lib/getopt.in.h (system_header): Likewise.
14051         * lib/iconv.in.h (system_header): Likewise.
14052         * lib/inttypes.in.h (system_header): Likewise.
14053         * lib/langinfo.in.h (system_header): Likewise.
14054         * lib/locale.in.h (system_header): Likewise.
14055         * lib/math.in.h (system_header): Likewise.
14056         * lib/netdb.in.h (system_header): Likewise.
14057         * lib/netinet_in.in.h (system_header): Likewise.
14058         * lib/pty.in.h (system_header): Likewise.
14059         * lib/sched.in.h (system_header): Likewise.
14060         * lib/se-selinux.in.h (system_header): Likewise.
14061         * lib/search.in.h (system_header): Likewise.
14062         * lib/spawn.in.h (system_header): Likewise.
14063         * lib/stdarg.in.h (system_header): Likewise.
14064         * lib/stdint.in.h (system_header): Likewise.
14065         * lib/string.in.h (system_header): Likewise.
14066         * lib/strings.in.h (system_header): Likewise.
14067         * lib/sys_file.in.h (system_header): Likewise.
14068         * lib/sys_ioctl.in.h (system_header): Likewise.
14069         * lib/sys_socket.in.h (system_header): Likewise.
14070         * lib/sys_times.in.h (system_header): Likewise.
14071         * lib/sys_utsname.in.h (system_header): Likewise.
14072         * lib/sys_wait.in.h (system_header): Likewise.
14073         * lib/sysexits.in.h (system_header): Likewise.
14074         * lib/unistd.in.h (system_header): Likewise.
14075         * lib/wctype.in.h (system_header): Likewise.
14076
14077         arpa/inet: fix mingw compilation warning
14078         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
14079         Reported by Matthew Bolte.
14080
14081 2010-03-25  Bruno Haible  <bruno@clisp.org>
14082
14083         Avoid collision between gnulib wrapper and libintl wrapper.
14084         * lib/printf.c (printf): Don't define if a printf wrapper is already
14085         defined in intl/printf.c.
14086         Reported by Michel Boaventura <michel@michelboaventura.com>.
14087
14088 2010-03-25  Bruno Haible  <bruno@clisp.org>
14089
14090         Use ANSI C.
14091         * lib/readutmp.h (getutent): Provide ANSI C prototype.
14092
14093 2010-03-25  Bruno Haible  <bruno@clisp.org>
14094
14095         Minor formatting changes.
14096         * lib/acosl.c: Insert space before function argument list.
14097         * lib/argz.c: Likewise.
14098         * lib/asinl.c: Likewise.
14099         * lib/expl.c: Likewise.
14100         * lib/gen-uni-tables.c: Likewise.
14101         * lib/gettext.h: Likewise.
14102         * lib/glthread/lock.h: Likewise.
14103         * lib/tanl.c: Likewise.
14104         * lib/uniname/uniname.c: Likewise.
14105         * tests/test-idpriv-drop.c: Likewise.
14106         * tests/test-idpriv-droptemp.c: Likewise.
14107         * tests/test-lock.c: Likewise.
14108         * tests/test-tls.c: Likewise.
14109         * lib/argp-help.c: Insert space before function-like macro argument
14110         list.
14111         * lib/memcmp.c: Likewise.
14112         * tests/test-base64.c: Likewise.
14113         * lib/localename.c: Insert space before sizeof's argument list.
14114         * lib/safe-alloc.h: Likewise.
14115         * lib/file-set.h: Insert space before macro argument list.
14116         * tests/test-argp.c: Likewise.
14117         * lib/argp-namefrob.h: Insert space before function parameter list.
14118         * lib/getaddrinfo.c: Likewise.
14119         * lib/netdb.in.h: Likewise.
14120         * lib/parse-duration.h: Likewise.
14121         * lib/parse-duration.c: Likewise.
14122         * lib/poll.c: Likewise.
14123         * lib/select.c: Likewise.
14124         * lib/trim.h: Likewise.
14125         * tests/test-usleep.c: Likewise.
14126         * lib/ldexpl.c: Insert space before function parameter list and before
14127         function argument list.
14128         * lib/logl.c: Likewise.
14129         * lib/sqrtl.c: Likewise.
14130         * lib/trim.c: Likewise.
14131         * lib/cosl.c: Use GNU style indentation. Insert space before function
14132         argument list.
14133         * lib/sinl.c: Likewise.
14134         * lib/tsearch.c: Insert space after 'for'.
14135         Reported by Jim Meyering.
14136
14137 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
14138
14139         * maint.mk (sc_Wundef_boolean): Check for the presence of the
14140         config header before grepping, as it's not present before
14141         autoreconf/configure are run.  Reported by Simon Josefsson.
14142
14143 2010-03-23  Bruno Haible  <bruno@clisp.org>
14144
14145         pt_chown: Make it work with automake < 1.11.
14146         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
14147         Reported by Simon Josefsson.
14148
14149 2010-03-23  Bruno Haible  <bruno@clisp.org>
14150
14151         pt_chown: Don't depend on GPLed modules.
14152         * lib/pt_chown.c: Don't include idpriv.h.
14153         (main): Don't drop privileges.
14154         * modules/pt_chown (Depends-on): Remove idpriv-drop.
14155         Reported by Simon Josefsson.
14156
14157 2010-03-24  Simon Josefsson  <simon@josefsson.org>
14158
14159         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
14160         suggestions from karl@freefriends.org (Karl Berry).
14161
14162 2010-03-22  Eric Blake  <eblake@redhat.com>
14163
14164         gethostname: further tweaks
14165         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
14166         are overriding gethostname.
14167         Suggested by Bruno Haible.
14168
14169 2010-03-21  Bruno Haible  <bruno@clisp.org>
14170
14171         Fix comments.
14172         * lib/forkpty.c (rpl_forkpty): Fix comment.
14173         * lib/openpty.c (rpl_openpty): Likewise.
14174         Reported by Eric Blake.
14175
14176 2010-03-22  Eric Blake  <eblake@redhat.com>
14177
14178         gethostname: fix build on mingw
14179         * lib/unistd.in.h (includes): Work around fact that mingw
14180         <winsock2.h> re-includes <unistd.h>, by avoiding any
14181         redeclarations if we are being included by <winsock2.h>.
14182         Reported by Matthias Bolte.
14183
14184 2010-03-21  Bruno Haible  <bruno@clisp.org>
14185
14186         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14187         * lib/forkpty.c (forkpty): New replacement function, from glibc with
14188         modifications.
14189         * lib/pty.in.h (forkpty): Update declaration. Add comments.
14190         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
14191         provide the replacement.
14192         * modules/forkpty (Depends-on): Add openpty, login_tty.
14193         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
14194         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
14195         * doc/glibc-functions/forkpty.texi: More supported platforms.
14196         * config/srclist.txt: Add forkpty.c (commented).
14197
14198 2010-03-21  Bruno Haible  <bruno@clisp.org>
14199
14200         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
14201         (Makefile.am): Verify that PTY_LIB is defined.
14202
14203         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
14204
14205 2010-03-21  Bruno Haible  <bruno@clisp.org>
14206
14207         Tests for module 'login_tty'.
14208         * modules/login_tty-tests: New file.
14209         * tests/test-login_tty.c: New file.
14210
14211         New module 'login_tty'.
14212         * lib/login_tty.c: New file.
14213         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
14214         * modules/login_tty: New file.
14215         * doc/glibc-functions/login_tty.texi: Mention the new module.
14216
14217 2010-03-21  Bruno Haible  <bruno@clisp.org>
14218
14219         login_tty: Documentation.
14220         * doc/glibc-functions/login_tty.texi: New file.
14221         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
14222
14223 2010-03-21  Bruno Haible  <bruno@clisp.org>
14224
14225         pty: Consistent macro naming.
14226         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
14227         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
14228         * modules/pty (configure.ac): Update.
14229
14230 2010-03-21  Bruno Haible  <bruno@clisp.org>
14231
14232         Tests for openpty: Make stricter.
14233         * tests/test-openpty.c (main): Add test of canonical processing and
14234         erase.
14235         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
14236
14237         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14238         * lib/openpty.c (openpty): New replacement function.
14239         * lib/pty.in.h: Include <termios.h>.
14240         (openpty): Update declaration. Add comments.
14241         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
14242         is not declared, arrange to provide the replacement. Check for _getpty
14243         and posix_openpt.
14244         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
14245         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
14246         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
14247         * modules/pty-tests (test_pty_c___LDADD): New variable.
14248         * doc/glibc-functions/openpty.texi: More supported platforms.
14249
14250 2010-03-21  Bruno Haible  <bruno@clisp.org>
14251
14252         setenv: Tweaks.
14253         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
14254         the test program.
14255         * doc/posix-functions/setenv.texi: Update platforms list.
14256
14257 2010-03-21  Bruno Haible  <bruno@clisp.org>
14258
14259         New module 'unlockpt'.
14260         * lib/unlockpt.c: New file, from glibc with modifications.
14261         * m4/unlockpt.m4: New file.
14262         * modules/unlockpt: New file.
14263         * lib/stdlib.in.h (unlockpt): New declaration.
14264         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
14265         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
14266         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
14267         HAVE_UNLOCKPT.
14268         * doc/posix-functions/unlockpt.texi: Mention the new module.
14269         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
14270         * config/srclist.txt: Add unlockpt.c (commented).
14271
14272 2010-03-21  Jim Meyering  <meyering@redhat.com>
14273
14274         maint.mk: prohibit inclusion of "intprops.h" without use
14275         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
14276
14277 2010-03-21  Bruno Haible  <bruno@clisp.org>
14278
14279         New module 'grantpt'.
14280         * lib/grantpt.c: New file, from glibc with modifications.
14281         * m4/grantpt.m4: New file.
14282         * modules/grantpt: New file.
14283         * lib/stdlib.in.h (grantpt): New declaration.
14284         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
14285         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
14286         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
14287         HAVE_GRANTPT.
14288         * doc/posix-functions/grantpt.texi: Mention the new module.
14289         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
14290         * config/srclist.txt: Add grantpt.c (commented).
14291
14292 2010-03-21  Bruno Haible  <bruno@clisp.org>
14293
14294         New module 'pt_chown'.
14295         * lib/pt_chown.c: New file, from glibc with modifications.
14296         * lib/pty-private.h: New file, from glibc with modifications.
14297         * modules/pt_chown: New file.
14298         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
14299
14300 2010-03-21  Bruno Haible  <bruno@clisp.org>
14301
14302         Tests for module 'ptsname'.
14303         * modules/ptsname-tests: New file.
14304         * tests/test-ptsname.c: New file.
14305
14306         New module 'ptsname'.
14307         * lib/ptsname.c: New file, from glibc with modifications.
14308         * m4/ptsname.m4: New file.
14309         * modules/ptsname: New file.
14310         * lib/stdlib.in.h (ptsname): New declaration.
14311         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
14312         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
14313         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
14314         HAVE_PTSNAME.
14315         * doc/posix-functions/ptsname.texi: Mention the new module.
14316         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
14317         * config/srclist.txt: Add ptsname.c (commented).
14318
14319 2010-03-21  Bruno Haible  <bruno@clisp.org>
14320
14321         Tests for module 'ttyname_r'.
14322         * modules/ttyname_r-tests: New file.
14323         * tests/test-ttyname_r.c: New file.
14324
14325         New module 'ttyname_r'.
14326         * lib/ttyname_r.c: New file.
14327         * m4/ttyname_r.m4: New file.
14328         * modules/ttyname_r: New file.
14329         * lib/unistd.in.h (ttyname_r): New declaration.
14330         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
14331         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
14332         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
14333         HAVE_TTYNAME_R.
14334         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
14335         * doc/posix-functions/ttyname_r.texi: Mention the new module.
14336
14337 2010-03-20  Bruno Haible  <bruno@clisp.org>
14338
14339         signal: Undefine macro definitions in C++ mode.
14340         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
14341         sigfillset): Undefine macro definitions from the system header in C++
14342         mode.
14343         Reported by John W. Eaton <jwe@gnu.org>.
14344
14345 2010-03-20  Bruno Haible  <bruno@clisp.org>
14346
14347         Ensure no #include statements inside extern "C" { ... }.
14348         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
14349         contain #include statements.
14350         * lib/time.in.h: Likewise.
14351
14352 2010-03-20  Bruno Haible  <bruno@clisp.org>
14353
14354         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
14355         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
14356         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
14357         Reported by John W. Eaton <jwe@gnu.org>.
14358
14359 2010-03-20  Bruno Haible  <bruno@clisp.org>
14360
14361         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
14362         Reported by Jim Meyering.
14363
14364 2010-03-20  Bruno Haible  <bruno@clisp.org>
14365
14366         pipe: Set errno upon failure.
14367         * lib/pipe.h: Specify that when -1 is returned, errno is set.
14368         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
14369         errno value in error message.
14370
14371 2010-03-20  Bruno Haible  <bruno@clisp.org>
14372             Jim Meyering  <meyering@redhat.com>
14373
14374         lchown: Avoid "unused variable" warning.
14375         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
14376
14377 2010-03-20  Bruno Haible  <bruno@clisp.org>
14378
14379         Work around unlink() bug on MacOS X 10.5.6.
14380         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
14381         attempting to unlink a parent directory.
14382         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
14383         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
14384         activate for the replacement function.
14385         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
14386
14387 2010-03-20  Bruno Haible  <bruno@clisp.org>
14388
14389         Fix link errors on Solaris 8.
14390         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
14391         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
14392
14393 2010-03-19  Jim Meyering  <meyering@redhat.com>
14394
14395         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
14396         The _LIBC implementation of build_range_exp correctly honors the
14397         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
14398         However, the non-_LIBC implementation would ignore that syntax-bit
14399         flag and return REG_ERANGE unconditionally.
14400         This change makes it honor that flag.
14401         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
14402         Make two pointer parameters "const".
14403         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
14404         (parse_bracket_exp): Update caller.
14405
14406         regex.m4: correct the reversed range endpoint ([b-a]) test
14407         * m4/regex.m4: When requiring that [b-a] evoke failure,
14408         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
14409         test pass once again for x86-based systems.
14410
14411 2010-03-19  Bruno Haible  <bruno@clisp.org>
14412
14413         scandir: Fix link error on Solaris 8.
14414         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
14415         macros.
14416
14417 2010-03-19  Bruno Haible  <bruno@clisp.org>
14418
14419         getusershell: Fix documentation.
14420         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
14421         module.
14422         * doc/glibc-functions/setusershell.texi: Likewise.
14423
14424         getusershell: Provide declaration, missing on Solaris 9.
14425         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
14426         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
14427         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
14428         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
14429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14430         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
14431         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
14432         HAVE_GETUSERSHELL.
14433         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
14434
14435 2010-03-19  Bruno Haible  <bruno@clisp.org>
14436
14437         wctype: Provide iswblank function.
14438         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
14439         exists and is fine.
14440         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
14441         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
14442         * tests/test-wctype.c (main): Re-enable the iswblank tests.
14443         * doc/posix-functions/iswblank.texi: Update.
14444
14445 2010-03-19  Bruno Haible  <bruno@clisp.org>
14446
14447         Tests of module 'pty' in C++ mode.
14448         * modules/pty-tests: New file.
14449         * tests/test-pty-c++.cc: New file.
14450         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14451
14452 2010-03-19  Eric Blake  <eblake@redhat.com>
14453
14454         logb: fix documentation
14455         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
14456         1.5 declaration bug.
14457
14458         forkpty, openpty: prefer glibc's const-safe prototype
14459         * lib/forkpty.c (rpl_forkpty): New file.
14460         * lib/openpty.c (rpl_openpty): Likewise.
14461         * modules/forkpty (Files): Distribute it.
14462         * modules/openpty (Files): Likewise.
14463         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
14464         check...
14465         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
14466         replacement for for non-const BSD signature.
14467         * modules/pty (Makefile.am): Substitute witnesses.
14468         * lib/pty.in.h (forkpty, openpty): Declare replacements.
14469         * tests/test-forkpty.c: Update signature check.
14470         * tests/test-openpty.c: Likewise.
14471         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
14472         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14473
14474         forkpty, openpty: split functions into new modules
14475         * modules/pty (Makefile.am): Substitute new witnesses.
14476         (Libraries): Move library detection...
14477         * modules/forkpty: ...into new module.
14478         * modules/openpty: Another new module.
14479         * modules/pty-tests: Rename and split...
14480         * modules/forkpty-tests: ...to this...
14481         * modules/openpty-tests: ...and this.
14482         * tests/test-pty.c: Rename and split...
14483         * tests/test-forkpty.c: ...to this...
14484         * tests/test-openpty.c: ...and this.
14485         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
14486         (gl_PTY): Split library searching...
14487         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
14488         (gl_FORKPTY, gl_OPENPTY): New macros.
14489         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
14490         * NEWS: Mention the split.
14491         * MODULES.html.sh (Misc): Document the modules.
14492         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
14493         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14494
14495         pty: improve replacement header
14496         * lib/pty.in.h: New file.
14497         * modules/pty (Files): Ship it.
14498         (Makefile.am): Always build replacement.
14499         * m4/pty.m4: Rename...
14500         * m4/pty_h.m4: ...to this.
14501         (gl_PTY): Modernize setting of witness macros; update check of
14502         forkpty to take proper advantage of cache.
14503         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
14504
14505         getopt: avoid compiler warning
14506         * lib/getopt.c (attribute_hidden): Remove unused macro.
14507
14508 2010-03-18  Bruno Haible  <bruno@clisp.org>
14509
14510         Fix link errors on Solaris 8.
14511         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
14512         * modules/search-tests (test_search_c___LDADD): Likewise.
14513         * modules/signal-tests (test_signal_c___LDADD): Likewise.
14514         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
14515         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
14516         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
14517         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
14518         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
14519         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
14520
14521 2010-03-18  Bruno Haible  <bruno@clisp.org>
14522
14523         Fix bug introduced on 2010-03-14.
14524         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
14525         (gl_SPAWN_H): Require it.
14526         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
14527         Reported by Simon Josefsson.
14528
14529 2010-03-18  Bruno Haible  <bruno@clisp.org>
14530
14531         Fix typo introduced on 2009-12-31.
14532         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
14533         posix_spawn_file_actions_adddup2.
14534
14535 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
14536         and Eric Blake  <eblake@redhat.com>
14537
14538         test-vc-list-files-git: make more robust
14539         * tests/test-vc-list-files-git.sh: Unset problematic environment
14540         variables.  Chain commands together.
14541
14542 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
14543
14544         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
14545         `AC_CHECK_DECL' invocation.
14546
14547 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
14548
14549         * lib/inttostr.c (inttostr): Make sure the invocation of verify
14550         appears before executable statements. Suggested by Petr Sumbera
14551         <Petr.Sumbera@Sun.COM>.
14552
14553 2010-03-14  Bruno Haible  <bruno@clisp.org>
14554
14555         * tests/test-flock.c (test_exclusive): Comment out a test that causes
14556         portability problems. Instead use a simpler test.
14557         (main): Check that invalid arguments are rejected only on Linux.
14558
14559 2010-03-14  Bruno Haible  <bruno@clisp.org>
14560
14561         Fix bug introduced on 2009-12-31.
14562         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
14563         gl_PREREQ_SYS_H_WINSOCK2 always.
14564         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
14565         SYS_SOCKET_H variable.
14566         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
14567         Update comments.
14568         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
14569         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14570         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14571         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14572         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14573
14574 2010-03-14  Bruno Haible  <bruno@clisp.org>
14575
14576         Fix values returned by sinl, cosl.
14577         * lib/trigl.h: Add specification comments.
14578         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
14579         that combines the values from the precomputed table with the values of
14580         the Chebyshev polynomials.
14581
14582 2010-03-14  Bruno Haible  <bruno@clisp.org>
14583
14584         Fix compilation error when modules 'posix_spawn[p]' are not used.
14585         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
14586         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
14587
14588 2010-03-14  Bruno Haible  <bruno@clisp.org>
14589
14590         Fix compilation error on mingw when module 'time_r' is not used.
14591         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
14592         is 1.
14593         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
14594         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
14595         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
14596         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
14597
14598 2010-03-14  Bruno Haible  <bruno@clisp.org>
14599
14600         Fix compilation error with Sun C.
14601         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
14602         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
14603         instead of GCC specific ULONG_LONG_MAX.
14604         * lib/xstrtoll.c: Likewise.
14605         * lib/xstrtoull.c: Likewise.
14606
14607 2010-03-13  Bruno Haible  <bruno@clisp.org>
14608
14609         Allow the user to disable C++ code and tests.
14610         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
14611         (gl_PROG_ANSI_CXX): Require it.
14612
14613 2010-03-13  Bruno Haible  <bruno@clisp.org>
14614
14615         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
14616         cases.
14617
14618 2010-03-13  Bruno Haible  <bruno@clisp.org>
14619
14620         Test that gnulib does not break the standard C++ headers.
14621         * tests/test-locale-c++2.cc: New file.
14622         * modules/locale-tests (Files): Add it.
14623         (Makefile.am): Compile it for test-locale-c++.
14624         * tests/test-math-c++2.cc: New file.
14625         * modules/math-tests (Files): Add it.
14626         (Makefile.am): Compile it for test-math-c++.
14627         * tests/test-signal-c++2.cc: New file.
14628         * modules/signal-tests (Files): Add it.
14629         (Makefile.am): Compile it for test-signal-c++.
14630         * tests/test-stdio-c++2.cc: New file.
14631         * modules/stdio-tests (Files): Add it.
14632         (Makefile.am): Compile it for test-stdio-c++.
14633         * tests/test-stdlib-c++2.cc: New file.
14634         * modules/stdlib-tests (Files): Add it.
14635         (Makefile.am): Compile it for test-stdlib-c++.
14636         * tests/test-string-c++2.cc: New file.
14637         * modules/string-tests (Files): Add it.
14638         (Makefile.am): Compile it for test-string-c++.
14639         * tests/test-time-c++2.cc: New file.
14640         * modules/time-tests (Files): Add it.
14641         (Makefile.am): Compile it for test-time-c++.
14642         Reported by John W. Eaton <jwe@gnu.org>.
14643
14644 2010-03-13  Bruno Haible  <bruno@clisp.org>
14645
14646         * gnulib-tool (func_usage): Clarify which options are available for
14647         --create-testdir and --create-megatestdir.
14648
14649 2010-03-13  Bruno Haible  <bruno@clisp.org>
14650
14651         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
14652         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
14653         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
14654         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14655         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
14656         when appropriate.
14657         Reported by Jim Meyering.
14658
14659 2010-03-12  Simon Josefsson  <simon@josefsson.org>
14660
14661         * gnulib-tool (func_import): Explain origin of code.
14662
14663 2010-03-12  Bruno Haible  <bruno@clisp.org>
14664
14665         Fix problem with automake's definition of CXXLINK.
14666         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
14667         Reported by Simon Josefsson and Ludovic Courtès.
14668
14669 2010-03-12  Bruno Haible  <bruno@clisp.org>
14670
14671         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
14672         stable releases.
14673
14674 2010-03-11  Bruno Haible  <bruno@clisp.org>
14675
14676         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
14677         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
14678         whether the system provides one variant or multiple variants of the
14679         function.
14680         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
14681         C++ compilers.
14682         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
14683         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
14684         Reported by Jim Meyering.
14685
14686 2010-03-09  Simon Josefsson  <simon@josefsson.org>
14687
14688         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
14689
14690 2010-03-08  Bruno Haible  <bruno@clisp.org>
14691
14692         gnulib-tool: Add support for --libtool in --create-testdir.
14693         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
14694         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
14695
14696 2010-03-08  Eric Blake  <eblake@redhat.com>
14697
14698         gnulib-tool.texi: mention possibility of git submodule
14699         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
14700         submodules.
14701         * doc/.gitignore: Ignore another generated file.
14702
14703 2010-03-08  Karl Berry  <karl@gnu.org>
14704
14705         * doc/gnulib-tool.texi (VCS Issues): Mention third option
14706         of committing gnulib files while skipping others.
14707
14708 2010-03-07  Bruno Haible  <bruno@clisp.org>
14709
14710         Tests of module 'wctype' in C++ mode.
14711         * tests/test-wctype-c++.cc: New file.
14712         * modules/wctype-tests (Files): Add it and tests/signature.h.
14713         (Depends-on): Add ansi-c++-opt.
14714         (Makefile.am): Arrange to compile and run test-wctype-c++.
14715
14716         Tests of module 'wchar' in C++ mode.
14717         * tests/test-wchar-c++.cc: New file.
14718         * modules/wchar-tests (Files): Add it and tests/signature.h.
14719         (Depends-on): Add ansi-c++-opt.
14720         (Makefile.am): Arrange to compile and run test-wchar-c++.
14721         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
14722         gl_MODULE_INDICATOR.
14723
14724         Tests of module 'unistd' in C++ mode.
14725         * tests/test-unistd-c++.cc: New file.
14726         * modules/unistd-tests (Files): Add it and tests/signature.h.
14727         (Depends-on): Add ansi-c++-opt.
14728         (Makefile.am): Arrange to compile and run test-unistd-c++.
14729         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
14730         gl_MODULE_INDICATOR.
14731
14732         Tests of module 'time' in C++ mode.
14733         * tests/test-time-c++.cc: New file.
14734         * modules/time-tests (Files): Add it and tests/signature.h.
14735         (Depends-on): Add ansi-c++-opt.
14736         (Makefile.am): Arrange to compile and run test-time-c++.
14737         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14738
14739         Tests of module 'sys_time' in C++ mode.
14740         * tests/test-sys_time-c++.cc: New file.
14741         * modules/sys_time-tests (Files): Add it and tests/signature.h.
14742         (Depends-on): Add ansi-c++-opt.
14743         (Makefile.am): Arrange to compile and run test-sys_time-c++.
14744         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
14745         gl_MODULE_INDICATOR.
14746
14747         Tests of module 'sys_stat' in C++ mode.
14748         * tests/test-sys_stat-c++.cc: New file.
14749         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
14750         (Depends-on): Add ansi-c++-opt.
14751         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
14752         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
14753         gl_MODULE_INDICATOR.
14754
14755         Tests of module 'sys_socket' in C++ mode.
14756         * tests/test-sys_socket-c++.cc: New file.
14757         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
14758         (Depends-on): Add ansi-c++-opt.
14759         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
14760         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
14761         gl_MODULE_INDICATOR.
14762
14763         Tests of module 'sys_select' in C++ mode.
14764         * tests/test-sys_select-c++.cc: New file.
14765         * modules/sys_select-tests (Files): Add it and tests/signature.h.
14766         (Depends-on): Add ansi-c++-opt.
14767         (Makefile.am): Arrange to compile and run test-sys_select-c++.
14768         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
14769         gl_MODULE_INDICATOR.
14770
14771         Tests of module 'sys_ioctl' in C++ mode.
14772         * tests/test-sys_ioctl-c++.cc: New file.
14773         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
14774         (Depends-on): Add ansi-c++-opt.
14775         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
14776         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
14777         gl_MODULE_INDICATOR.
14778
14779         Tests of module 'string' in C++ mode.
14780         * tests/test-string-c++.cc: New file.
14781         * modules/string-tests (Files): Add it and tests/signature.h.
14782         (Depends-on): Add ansi-c++-opt.
14783         (Makefile.am): Arrange to compile and run test-string-c++.
14784         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
14785         gl_MODULE_INDICATOR.
14786
14787         Tests of module 'stdlib' in C++ mode.
14788         * tests/test-stdlib-c++.cc: New file.
14789         * modules/stdlib-tests (Files): Add it and tests/signature.h.
14790         (Depends-on): Add ansi-c++-opt.
14791         (Makefile.am): Arrange to compile and run test-stdlib-c++.
14792         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
14793         gl_MODULE_INDICATOR.
14794
14795         Tests of module 'stdio' in C++ mode.
14796         * tests/test-stdio-c++.cc: New file.
14797         * modules/stdio-tests (Files): Add it and tests/signature.h.
14798         (Depends-on): Add ansi-c++-opt.
14799         (Makefile.am): Arrange to compile and run test-stdio-c++.
14800         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
14801         gl_MODULE_INDICATOR.
14802
14803         Tests of module 'spawn' in C++ mode.
14804         * tests/test-spawn-c++.cc: New file.
14805         * modules/spawn-tests (Files): Add it and tests/signature.h.
14806         (Depends-on): Add ansi-c++-opt.
14807         (Makefile.am): Arrange to compile and run test-spawn-c++.
14808         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
14809         gl_MODULE_INDICATOR.
14810
14811         Tests of module 'signal' in C++ mode.
14812         * tests/test-signal-c++.cc: New file.
14813         * modules/signal-tests (Files): Add it and tests/signature.h.
14814         (Depends-on): Add ansi-c++-opt.
14815         (Makefile.am): Arrange to compile and run test-signal-c++.
14816         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
14817         gl_MODULE_INDICATOR.
14818
14819         Tests of module 'search' in C++ mode.
14820         * tests/test-search-c++.cc: New file.
14821         * modules/search-tests (Files): Add it and tests/signature.h.
14822         (Depends-on): Add ansi-c++-opt.
14823         (Makefile.am): Arrange to compile and run test-search-c++.
14824         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
14825         gl_MODULE_INDICATOR.
14826
14827         Tests of module 'math' in C++ mode.
14828         * tests/test-math-c++.cc: New file.
14829         * modules/math-tests (Files): Add it and tests/signature.h.
14830         (Depends-on): Add ansi-c++-opt.
14831         (Makefile.am): Arrange to compile and run test-math-c++.
14832         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14833
14834         Tests of module 'locale' in C++ mode.
14835         * tests/test-locale-c++.cc: New file.
14836         * modules/locale-tests (Files): Add it and tests/signature.h.
14837         (Depends-on): Add ansi-c++-opt.
14838         (Makefile.am): Arrange to compile and run test-locale-c++.
14839         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
14840         gl_MODULE_INDICATOR.
14841
14842         Tests of module 'langinfo' in C++ mode.
14843         * tests/test-langinfo-c++.cc: New file.
14844         * modules/langinfo-tests (Files): Add it and tests/signature.h.
14845         (Depends-on): Add ansi-c++-opt.
14846         (Makefile.am): Arrange to compile and run test-langinfo-c++.
14847         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
14848         gl_MODULE_INDICATOR.
14849
14850         Tests of module 'iconv-h' in C++ mode.
14851         * tests/test-iconv-h-c++.cc: New file.
14852         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
14853         (Depends-on): Add ansi-c++-opt.
14854         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
14855
14856         Tests of module 'glob' in C++ mode.
14857         * tests/test-glob-c++.cc: New file.
14858         * modules/glob-tests (Files): Add it.
14859         (Depends-on): Add ansi-c++-opt.
14860         (Makefile.am): Arrange to compile and run test-glob-c++.
14861
14862         Tests of module 'fcntl-h' in C++ mode.
14863         * tests/test-fcntl-h-c++.cc: New file.
14864         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
14865         (Depends-on): Add ansi-c++-opt.
14866         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
14867         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
14868         gl_MODULE_INDICATOR.
14869
14870         Tests of module 'dirent' in C++ mode.
14871         * tests/test-dirent-c++.cc: New file.
14872         * modules/dirent-tests (Files): Add it and tests/signature.h.
14873         (Depends-on): Add ansi-c++-opt.
14874         (Makefile.am): Arrange to compile and run test-dirent-c++.
14875         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14876         gl_MODULE_INDICATOR.
14877
14878         New module 'ansi-c++-opt'.
14879         * modules/ansi-c++-opt: New file.
14880         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
14881
14882         Document C++ namespace mode.
14883         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
14884
14885         wctype: Avoid #define replacements in C++ mode.
14886         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
14887         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
14888         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
14889         In C++, define a namespaced alias symbol.
14890         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
14891         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
14892         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
14893         rule.
14894
14895         wchar: Avoid #define replacements in C++ mode.
14896         * lib/wchar.in.h: Include c++defs.h.
14897         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
14898         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
14899         symbol.
14900         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
14901         * modules/wchar (Depends-on): Add c++defs.
14902         (Makefile.am): Update wchar.h rule.
14903
14904         unistd: Avoid #define replacements in C++ mode.
14905         * lib/unistd.in.h: Include c++defs.h.
14906         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
14907         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
14908         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
14909         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
14910         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
14911         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
14912         symbol.
14913         (environ): Update.
14914         * modules/unistd (Depends-on): Add c++defs.
14915         (Makefile.am): Update unistd.h rule.
14916
14917         time: Avoid #define replacements in C++ mode.
14918         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
14919         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
14920         define a namespaced alias symbol.
14921         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
14922         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
14923         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
14924         * modules/time (Depends-on): Add c++defs, warn-on-use.
14925         (Makefile.am): Update time.h rule.
14926         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
14927         * modules/nanosleep (configure.ac): Likewise.
14928         * modules/strptime (configure.ac): Likewise.
14929         * modules/timegm (configure.ac): Likewise.
14930
14931         sys_time: Avoid #define replacements in C++ mode.
14932         * lib/sys_time.in.h: Include c++defs.h.
14933         (gettimeofday): In C++, define a namespaced alias symbol.
14934         * modules/sys_time (Depends-on): Add c++defs.
14935         (Makefile.am): Update sys/time.h rule.
14936
14937         sys_stat: Avoid #define replacements in C++ mode.
14938         * lib/sys_stat.in.h: Include c++defs.h.
14939         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
14940         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
14941         namespaced alias symbol.
14942         In C++, define a namespaced alias symbol.
14943         * modules/sys_stat (Depends-on): Add c++defs.
14944         (Makefile.am): Update sys/stat.h rule.
14945
14946         sys_socket: Avoid #define replacements in C++ mode.
14947         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
14948         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
14949         definitions also when the system has a <sys/socket.h>.
14950         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14951         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
14952         In C++, define a namespaced alias symbol.
14953         * modules/sys_socket (Depends-on): Add c++defs.
14954         (Makefile.am): Update sys/socket.h rule.
14955
14956         sys_select: Avoid #define replacements in C++ mode.
14957         * lib/sys_select.in.h: Include c++defs.h. Enable the function
14958         definitions also when the system has a <sys/select.h>.
14959         (select): In C++, define a namespaced alias symbol.
14960         * modules/sys_select (Depends-on): Add c++defs.
14961         (Makefile.am): Update sys/select.h rule.
14962
14963         sys_ioctl: Avoid #define replacements in C++ mode.
14964         * lib/sys_ioctl.in.h: Include c++defs.h.
14965         (ioctl): In C++, define a namespaced alias symbol.
14966         * modules/sys_ioctl (Depends-on): Add c++defs.
14967         (Makefile.am): Update sys/ioctl.h rule.
14968
14969         string: Avoid #define replacements in C++ mode.
14970         * lib/string.in.h: Include c++defs.h.
14971         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
14972         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14973         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14974         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
14975         strsignal, strverscmp): In C++, define a namespaced alias symbol.
14976         * modules/string (Depends-on): Add c++defs.
14977         (Makefile.am): Update string.h rule.
14978
14979         stdlib: Avoid #define replacements in C++ mode.
14980         * lib/stdlib.in.h: Include c++defs.h.
14981         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
14982         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
14983         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
14984         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
14985         symbol.
14986         * modules/stdlib (Depends-on): Add c++defs.
14987         (Makefile.am): Update stdlib.h rule.
14988
14989         stdio: Avoid #define replacements in C++ mode.
14990         * lib/stdio.in.h: Include c++defs.h.
14991         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
14992         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
14993         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
14994         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
14995         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
14996         namespaced alias symbol.
14997         * modules/stdio (Depends-on): Add c++defs.
14998         (Makefile.am): Update stdio.h rule.
14999
15000         spawn: Avoid #define replacements in C++ mode.
15001         * lib/spawn.in.h: Include c++defs.h.
15002         (posix_spawn, posix_spawnp, posix_spawnattr_init,
15003         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
15004         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
15005         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
15006         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
15007         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
15008         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
15009         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
15010         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
15011         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
15012         In C++, define a namespaced alias symbol.
15013         * modules/spawn (Depends-on): Add c++defs.
15014         (Makefile.am): Update spawn.h rule.
15015
15016         signal: Avoid #define replacements in C++ mode.
15017         * lib/signal.in.h: Include c++defs.h.
15018         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
15019         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
15020         namespaced alias symbol.
15021         * modules/signal (Depends-on): Add c++defs.
15022         (Makefile.am): Update signal.h rule.
15023
15024         search: Avoid #define replacements in C++ mode.
15025         * lib/search.in.h: Include c++defs.h.
15026         (_gl_search_compar_fn, _gl_search_action_fn): New types.
15027         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
15028         symbol.
15029         * modules/search (Depends-on): Add c++defs.
15030         (Makefile.am): Update search.h rule.
15031
15032         math: Avoid #define replacements in C++ mode.
15033         * lib/math.in.h: Include c++defs.h.
15034         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
15035         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
15036         trunc, truncl): In C++, define a namespaced alias symbol.
15037         * modules/math (Depends-on): Add c++defs.
15038         (Makefile.am): Update math.h rule.
15039
15040         locale: Avoid #define replacements in C++ mode.
15041         * lib/locale.in.h: Include c++defs.h.
15042         (duplocale): In C++, define a namespaced alias symbol.
15043         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
15044         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
15045         * modules/locale (Depends-on): Add c++defs.
15046         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
15047
15048         langinfo: Avoid #define replacements in C++ mode.
15049         * lib/langinfo.in.h: Include c++defs.h.
15050         (nl_langinfo): In C++, define a namespaced alias symbol.
15051         * modules/langinfo (Depends-on): Add c++defs.
15052         (Makefile.am): Update langinfo.h rule.
15053
15054         iconv-h: Avoid #define replacements in C++ mode.
15055         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
15056         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
15057         symbol.
15058         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
15059         whenever iconv is present.
15060         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
15061         (Makefile.am): Update iconv.h rule.
15062
15063         glob: Avoid #define replacements in C++ mode.
15064         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
15065         (_gl_glob_errfunc_fn): New type.
15066         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
15067         symbol.
15068         * modules/glob (Depends-on): Add c++defs, warn-on-use.
15069         (Makefile.am): Update glob.h rule.
15070
15071         fcntl-h: Avoid #define replacements in C++ mode.
15072         * lib/fcntl.in.h: Include c++defs.h.
15073         (fcntl, open, openat): In C++, define a namespaced alias symbol.
15074         * modules/fcntl-h (Depends-on): Add c++defs.
15075         (Makefile.am): Update fcntl.h rule.
15076
15077         dirent: Avoid #define replacements in C++ mode.
15078         * lib/dirent.in.h: Include c++defs.h.
15079         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
15080         namespaced alias symbol.
15081         (dirfd): Update declaration.
15082         * modules/dirent (Depends-on): Add c++defs.
15083         (Makefile.am): Update dirent.h rule.
15084
15085         ctype: Make it usable in C++ code.
15086         * lib/ctype.in.h: Include c++defs.h.
15087         (isblank): Declare as extern "C".
15088         * modules/ctype (Depends-on): Add c++defs.
15089         (Makefile.am): Update ctype.h rule.
15090
15091         New module 'c++defs'.
15092         * modules/c++defs: New file.
15093         * build-aux/c++defs.h: New file.
15094         Reported by John W. Eaton <jwe@gnu.org>.
15095
15096 2010-03-07  Bruno Haible  <bruno@clisp.org>
15097
15098         logb: Provide missing declaration for Cygwin.
15099         * lib/math.in.h (logb): New declaration.
15100         * m4/logb.m4: New file.
15101         * modules/logb (Files): Add m4/logb.m4.
15102         (Depends-on): Add math.
15103         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
15104         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
15105         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
15106         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
15107         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
15108
15109 2010-03-07  Bruno Haible  <bruno@clisp.org>
15110
15111         Fix test-cond link error.
15112         * tests/test-cond.c: Include <stdio.h>.
15113
15114 2010-03-07  Bruno Haible  <bruno@clisp.org>
15115
15116         Fix test-dirent-safer link error.
15117         * modules/dirent-safer-tests (Makefile.am): Define
15118         test_dirent_safer_LDADD.
15119
15120 2010-03-07  Bruno Haible  <bruno@clisp.org>
15121
15122         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
15123         among default module list.
15124
15125 2010-03-07  Bruno Haible  <bruno@clisp.org>
15126
15127         Fix link error on platforms with GNU libiconv.
15128         * modules/unistr/u8-strcoll-tests (Makefile): Define
15129         test_u8_strcoll_LDADD.
15130         * modules/unistr/u16-strcoll-tests (Makefile): Define
15131         test_u16_strcoll_LDADD.
15132         * modules/unistr/u32-strcoll-tests (Makefile): Define
15133         test_u32_strcoll_LDADD.
15134
15135 2010-03-07  Bruno Haible  <bruno@clisp.org>
15136
15137         Use POSIX declarations for socket functions.
15138         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
15139         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
15140         rpl_sendto): Change declaration to match POSIX.
15141         * lib/connect.c (rpl_connect): Likewise.
15142         * lib/accept.c (rpl_accept): Likewise.
15143         * lib/bind.c (rpl_bind): Likewise.
15144         * lib/getpeername.c (rpl_getpeername): Likewise.
15145         * lib/getsockname.c (rpl_getsockname): Likewise.
15146         * lib/recv.c (rpl_recv): Likewise.
15147         * lib/send.c (rpl_send): Likewise.
15148         * lib/recvfrom.c (rpl_recvfrom): Likewise.
15149         * lib/sendto.c (rpl_sendto): Likewise.
15150
15151 2010-03-06  Bruno Haible  <bruno@clisp.org>
15152
15153         Clarify access, euidaccess, faccessat.
15154         * doc/posix-functions/faccessat.texi: Mention security problem under
15155         "Other problems", not "Portability problems".
15156         * doc/posix-functions/access.texi: Likewise. Mention a related security
15157         problem.
15158         * doc/glibc-functions/euidaccess.texi: Mention security problems.
15159         * lib/euidaccess.c: Add comments about platforms.
15160         * lib/unistd.in.h (access, euidaccess): Add warnings.
15161
15162 2010-03-07  Bruno Haible  <bruno@clisp.org>
15163
15164         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
15165         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
15166         (POSIX_SPAWN_SETSCHEDULER): Likewise.
15167         (POSIX_SPAWN_USEVFORK): Define in a way that works when
15168         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15169         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
15170         declare when POSIX_SPAWN_SETSCHEDULER is zero.
15171         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
15172         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
15173         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
15174         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
15175         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
15176         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
15177         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
15178         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
15179         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
15180         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
15181         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
15182         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
15183         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
15184         Likewise.
15185         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
15186         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
15187         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
15188         Likewise.
15189         * tests/test-spawn.c (main): Make it work when
15190         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15191
15192 2010-03-07  Bruno Haible  <bruno@clisp.org>
15193
15194         Fix incorrect Makefile.am generation in German locale.
15195         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15196         Execute sed command with character range in C locale.
15197
15198 2010-03-06  Bruno Haible  <bruno@clisp.org>
15199
15200         Tests for module 'iconv-h'.
15201         * modules/iconv-h-tests: New file.
15202         * tests/test-iconv-h.c: New file.
15203
15204         New module 'iconv-h'.
15205         * modules/iconv-h: New file.
15206         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
15207         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
15208         (configure.ac): Remove gl_ICONV_H.
15209         (Makefile.am): Remove rule for iconv.h.
15210
15211 2010-03-06  Bruno Haible  <bruno@clisp.org>
15212
15213         More consistent naming of *.m4 files.
15214         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
15215         * modules/wctype (Files): Update.
15216
15217         More consistent naming of *.m4 files.
15218         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
15219         * modules/wchar (Files): Update.
15220
15221 2010-03-06  Jim Meyering  <meyering@redhat.com>
15222
15223         euidaccess: relax license to LGPLv2+
15224         * modules/euidaccess (License): Relax to LGPLv2+.
15225
15226 2010-03-06  Bruno Haible  <bruno@clisp.org>
15227
15228         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
15229         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
15230         (Makefile.am): Augment lib_SOURCES instead.
15231
15232 2010-03-04  Jim Meyering  <meyering@redhat.com>
15233
15234         utime: remove obsolete module
15235         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
15236         unnecessary for years, and has been marked as obsolete for 10 months.
15237         * modules/utime: Remove file.
15238         * lib/utime.c: Remove file.
15239         * m4/utime.m4: Remove file.
15240         * m4/utimes-null.m4: Remove file.
15241         * doc/posix-functions/utime.texi (utime): Remove reference to
15242         the module.  Move the sole "fixed by gnulib" item into the
15243         "problems not fixed by Gnulib" list.
15244         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
15245
15246 2010-03-05  Simon Josefsson  <simon@josefsson.org>
15247
15248         * modules/exit (License): Relax license to LGPLv2+.
15249         (Status): Mark as obsolete.
15250         * NEWS: Mention deprecated 'exit' module.
15251         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
15252         of now obsolete 'exit'.
15253
15254 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15255
15256         fts-lgpl: remove unused module
15257         * modules/fts-lgpl: Remove.
15258         * MODULES.html.sh (func_all_modules): Adjust.
15259         * check-module (find_included_lib_files): Adjust.
15260         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
15261
15262 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
15263
15264         copy-acl: enhance Solaris ACL error handling
15265         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
15266         * lib/set-mode-acl.c (qset_acl): Likewise.
15267
15268 2010-03-02  Bruno Haible  <bruno@clisp.org>
15269
15270         spawn: Don't override the system defined values on FreeBSD 8.
15271         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
15272         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
15273         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
15274         if HAVE_POSIX_SPAWN is 1.
15275         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
15276
15277 2010-03-01  Bruno Haible  <bruno@clisp.org>
15278
15279         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
15280         regarding Automake.
15281
15282 2010-02-25  Bruno Haible  <bruno@clisp.org>
15283
15284         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
15285         * gnulib-tool: Define 'echo' as a function only before the ksh alias
15286         setting, not afterwards.
15287         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
15288
15289 2010-02-24  Eric Blake  <eblake@redhat.com>
15290
15291         bootstrap, git-version-gen: use timestamp
15292         * build-aux/git-version-gen (scriptversion): Force UTC.
15293         * build-aux/bootstrap (scriptversion): New variable.
15294
15295         bootstrap: allow older git
15296         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
15297         older than 1.6.4.  Requested by the libvirt project.
15298
15299 2010-02-23  Eric Blake  <eblake@redhat.com>
15300
15301         warn-on-use: work with old autoconf
15302         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
15303         AS_VAR semantics of autoconf 2.60.
15304         Reported by Bruno Haible.
15305
15306         bootstrap: improve some comments
15307         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
15308         clarification comments.
15309
15310         gettimeofday: provide correct function
15311         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
15312         when replacement is declared, otherwise provide gettimeofday.
15313         Reported by Michael Goffioul.
15314
15315 2010-02-23  Jim Meyering  <meyering@redhat.com>
15316
15317         lib-ignore: relax license to "unlimited", not LGPLv2+
15318         * modules/lib-ignore (License): Relax to "unlimited".
15319
15320 2010-02-23  Jim Meyering  <meyering@redhat.com>
15321
15322         lib-ignore: relax license to LGPLv2+
15323         * modules/lib-ignore (License): Relax to LGPLv2+.
15324
15325 2010-02-22  Eric Blake  <eblake@redhat.com>
15326
15327         lseek: avoid bash 3.2 broken pipe bug
15328         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
15329         warning from bash 3.2.
15330         Reported by Ben Pfaff, with analysis from Bruno Haible.
15331
15332         bootstrap: support non-FSF copyright holder
15333         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
15334         bootstrap.conf override of COPYRIGHT_HOLDER.
15335         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
15336
15337         bootstrap: interoperate with gettext 0.14.1
15338         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
15339
15340         bootstrap: allow for alternate submodule location
15341         * build-aux/bootstrap (gnulib_path): New variable; use instead of
15342         hardcoding submodule location.
15343         (gnulib_mk): Allow direct use of Makefile.am.
15344
15345         bootstrap: use GNULIB_SRCDIR to reduce disk usage
15346         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
15347         rather than reconfiguring where the submodule points.
15348
15349         gettimeofday: restore support for platforms that lack function
15350         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
15351         replacement if function is missing.
15352         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
15353         * modules/sys_time (Makefile.am): Substitute it.
15354         * lib/sys_time.in.h (gettimeofday): Check it.
15355         Reported by Michael Goffioul.
15356
15357 2010-02-21  Bruno Haible  <bruno@clisp.org>
15358
15359         * lib/stdio.in.h (obstack_printf): Fix typo.
15360
15361 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
15362
15363         vc-list-files: use bzr ls's -R option
15364         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
15365         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
15366
15367 2010-02-21  Jim Meyering  <meyering@redhat.com>
15368
15369         init.sh: fix EXEEXT shims to work also for names like test-prog
15370         * tests/init.sh: Re-exec a better shell, when needed.
15371         If the current shell lacks support for posix $(...), an init.sh-using
15372         test will now try to find a shell that supports that.  If EXEEXT is
15373         nonempty, we also require support for hyphen-in-alias-name and shell
15374         substitutions like ${var#glob}.  Failure to find such a shell results
15375         in a skipped test.
15376
15377 2010-02-21  Bruno Haible  <bruno@clisp.org>
15378
15379         Really work around around "broken pipe" error message from bash 3.2.
15380         * gnulib-tool (func_reset_sigpipe): Remove function.
15381         (echo): In bash 3.2, define to a function that uses printf.
15382         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
15383
15384 2010-02-20  Bruno Haible  <bruno@clisp.org>
15385
15386         Restore support for automake 1.9.6 with autoconf 2.61.
15387         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
15388         Reported by James Youngman <jay@gnu.org>.
15389
15390 2010-02-20  Bruno Haible  <bruno@clisp.org>
15391
15392         Improve *printf warning condition.
15393         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
15394         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
15395         and the function is overridden due to SIGPIPE emulation.
15396
15397 2010-02-20  Bruno Haible  <bruno@clisp.org>
15398
15399         * lib/stdio.in.h: Tweak comments.
15400
15401 2010-02-19  Bruno Haible  <bruno@clisp.org>
15402
15403         Make it easier to find modules. New gnulib-tool option '--find'.
15404         * gnulib-tool: New option --find.
15405         (func_usage): Document it.
15406         (func_sanitize_modulelist): New function, extracted from
15407         func_all_modules.
15408         (func_all_modules): Invoke it.
15409         * doc/gnulib-tool.texi (Which modules?): New node.
15410
15411 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
15412
15413         * lib/sys_select.in.h: Provide select replacement even if
15414         sys/select.h exists on a system, for Interix.
15415
15416 2010-02-18  Jim Meyering  <meyering@redhat.com>
15417
15418         init.sh: don't use $(...) just yet
15419         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
15420         to accommodate e.g., Solaris' /bin/sh.
15421
15422 2010-02-17  Bruno Haible  <bruno@clisp.org>
15423
15424         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
15425         Reported by Ludovic Courtès <ludo@gnu.org>.
15426
15427 2010-02-16  Simon Josefsson  <simon@josefsson.org>
15428
15429         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
15430         linking with -lintl.
15431
15432 2010-02-17  Simon Josefsson  <simon@josefsson.org>
15433
15434         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
15435         if not provided by the system's netdb.h.  Reported by
15436         ludo@gnu.org (Ludovic Courtès).
15437
15438 2010-02-15  Jim Meyering  <meyering@redhat.com>
15439
15440         init.sh: improve portability and efficiency
15441         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
15442         "dummy" in a for loop.
15443         Use '!', not '^' to select the complement of a character set used
15444         in a "case" statement.
15445         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
15446         Suggestions from Eric Blake.
15447
15448         init.sh: automatically accommodate programs with the .exe suffix
15449         Automatically arrange for an invocation of "prog" to execute the
15450         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
15451         may use the simpler "prog", yet still work when built on a system
15452         that requires specifying the added suffix.
15453         Do this by constructing a function named "prog" that invokes
15454         "prog.exe" for each .exe file in selected directories.
15455         * tests/init.sh (find_exe_basenames_): New function.
15456         (create_exe_shim_functions_): New function.
15457         (path_prepend_): Use it.
15458
15459         maint.mk: mark syntax-check sc_*.m rules as .PHONY
15460         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
15461         "make -t syntax-check" doesn't create a ton of sc_*.m files.
15462
15463 2010-02-14  Jim Meyering  <meyering@redhat.com>
15464
15465         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
15466         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
15467         (sc_prohibit_hash_pjw_without_use): New rule.
15468
15469         maint.mk: allow the default upload destination dir to be overridden
15470         * top/maint.mk (upload_dest_dir_): Define with a default that
15471         preserves the status quo.
15472         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
15473         Reported by Peter Simons.
15474
15475         maint.mk: prohibit inclusion of "hash.h" without_use
15476         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
15477
15478 2010-02-10  Jim Meyering  <meyering@redhat.com>
15479
15480         maint.mk: prohibit inclusion of "ignore-value.h" without_use
15481         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
15482
15483 2010-02-09  Eric Blake  <ebb9@byu.net>
15484         and Bruno Haible  <bruno@clisp.org>
15485
15486         obstack-printf-posix: ensure declaration
15487         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
15488         extracted from gl_FUNC_OBSTACK_PRINTF.
15489         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
15490         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
15491         Likewise.
15492         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
15493         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
15494         0.
15495
15496 2010-02-08  Bruno Haible  <bruno@clisp.org>
15497
15498         gnulib-tool: Fix typo in 2010-02-07 commit.
15499         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
15500         Reported by Eric Blake.
15501
15502 2010-02-07  Bruno Haible  <bruno@clisp.org>
15503
15504         gnulib-tool: Fix up caching patches.
15505         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
15506         option --no-cache. Use associative arrays when supported by the shell.
15507         (sed_comments): New variable.
15508         (modcache): Renamed from do_cache.
15509         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
15510         abbreviate unnecessarily.
15511         (have_associative): New variable.
15512         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
15513         way also for ksh and zsh.
15514         (func_init_sed_convert_to_cache_statements): New function, extracted
15515         from func_cache_lookup_module. Add support for associative arrays.
15516         Don't set the c_MODULE_cached variable here. Ignore all lines before
15517         the first field header. Remove only the final newline, not all trailing
15518         newlines. Support empty fields correctly. Limit the use of 'eval' to
15519         assignments.
15520         (func_get_description, func_get_status, func_get_notice,
15521         func_get_applicability, func_get_filelist, func_get_dependencies,
15522         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
15523         func_get_automake_snippet, func_get_include_directive,
15524         func_get_link_directive, func_get_license, func_get_maintainer):
15525         Update documentation. List the unoptimized code first. Add support for
15526         associative arrays. Limit the use of 'eval' to assignments.
15527         (func_get_applicability): Undo stylistic pessimisations.
15528         (func_get_automake_snippet, func_get_include_directive): Reduce code
15529         duplication.
15530         (func_modules_transitive_closure, func_modules_add_dummy,
15531         func_modules_notice, func_modules_to_filelist, func_add_file,
15532         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
15533         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
15534         func_create_testdir, func_create_megatestdir): Update documentation.
15535
15536 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15537
15538         * gnulib-tool (func_cache_lookup_module): Store the module name
15539         belonging to the cache variable; error out if two different
15540         module names map to the same cache variable name.
15541
15542 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15543
15544         gnulib-tool: Make caching optional.
15545         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
15546         Update matching short versions of --no-changelog.
15547         (func_usage): Update.
15548         (sed_extract_cache_prog): Renamed from ...
15549         (sed_extract_prog): ... this; revert to old extraction script.
15550         (func_get_description, func_get_status)
15551         (func_get_notice, func_get_applicability, func_get_filelist)
15552         (func_get_dependencies, func_get_autoconf_early_snippet)
15553         (func_get_autoconf_snippet, func_get_automake_snippet)
15554         (func_get_include_directive, func_get_link_directive)
15555         (func_get_license, func_get_maintainer): If $do_cache is false,
15556         use old, non-caching extraction scripts.
15557         Suggestion by Bruno Haible.
15558
15559 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15560
15561         gnulib-tool: cache module metainformation.
15562         * gnulib-tool (sed_extract_prog): Match newline before each
15563         header, and rewrite header to a shell variable suffix.
15564         (func_cache_var, func_cache_lookup_module): New functions,
15565         to turn a module name into a cache variable prefix, and to
15566         look up and cache module metainformation.
15567         (func_get_description, func_get_status)
15568         (func_get_notice, func_get_applicability, func_get_filelist)
15569         (func_get_dependencies, func_get_autoconf_early_snippet)
15570         (func_get_autoconf_snippet, func_get_automake_snippet)
15571         (func_get_include_directive, func_get_link_directive)
15572         (func_get_license, func_get_maintainer): Use
15573         func_cache_lookup_module.
15574
15575 2010-02-07  Bruno Haible  <bruno@clisp.org>
15576
15577         fnctl: Fix missing dependency.
15578         * modules/fcntl (Depends-on): Add getdtablesize.
15579         Reported by John W. Eaton <jwe@gnu.org>.
15580
15581 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
15582
15583         Argp: fix recognition of short alias options.
15584
15585         * lib/argp-parse.c (convert_options): Fix improper use of
15586         `|' between character values.
15587         * tests/test-argp.c (group1_option): New alias option
15588         --read (-r).
15589         (group1_parser): Special handling for 'r'.
15590         (test15): New test case.
15591         (test_fun): Add test15.
15592         * tests/test-argp-2.sh: Update expected --help and --usage
15593         outputs.
15594
15595 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
15596
15597         * tests/test-argp.c: Fix indentation.
15598
15599 2010-02-04  Eric Blake  <ebb9@byu.net>
15600
15601         gettimeofday: expose type of second argument
15602         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
15603         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
15604         * tests/test-gettimeofday.c: Use it to silence warning.
15605         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
15606         the issue.
15607
15608 2010-02-03  Jim Meyering  <meyering@redhat.com>
15609
15610         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
15611         * lib/regcomp.c (TYPE_SIGNED): Define.
15612         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
15613
15614         regcomp.c: avoid a new -Wshadow warning
15615         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
15616
15617 2010-02-01  Jim Meyering  <meyering@redhat.com>
15618
15619         removing useless parentheses in cpp #define directives
15620         For motivation, see commit c0221df4, "define STREQ(a,b)
15621         consistently, removing useless parentheses"
15622         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
15623         * lib/mountlist.c (MNT_IGNORE): Likewise.
15624         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
15625
15626 2010-02-01  Eric Blake  <ebb9@byu.net>
15627
15628         sys_time: use link-warning
15629         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
15630         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
15631         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
15632         * modules/sys_time (Depends-on): Add warn-on-use.
15633         (Makefile.am): Always build replacement.
15634         (configure.ac): Update substitutions.
15635         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
15636         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
15637         bother with SYS_TIME_H.
15638         * modules/gettimeofday (configure.ac): Declare indicator.
15639         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
15640         in use.
15641
15642         closein-tests: silence compiler warning
15643         * tests/test-closein.c (main): Ignore fread result.
15644         * modules/closein-tests (Depends-on): Add ignore-value.
15645
15646         tests: silence warning about system return
15647         * tests/test-areadlink-with-size.c (main): Ignore system result.
15648         * tests/test-areadlink.c (main): Likewise.
15649         * tests/test-areadlinkat-with-size.c (main): Likewise.
15650         * tests/test-areadlinkat.c (main): Likewise.
15651         * tests/test-canonicalize-lgpl.c (main): Likewise.
15652         * tests/test-canonicalize.c (main): Likewise.
15653         * tests/test-chown.c (main): Likewise.
15654         * tests/test-fchownat.c (main): Likewise.
15655         * tests/test-fdutimensat.c (main): Likewise.
15656         * tests/test-fstatat.c (main): Likewise.
15657         * tests/test-futimens.c (main): Likewise.
15658         * tests/test-lchown.c (main): Likewise.
15659         * tests/test-link.c (main): Likewise.
15660         * tests/test-linkat.c (main): Likewise.
15661         * tests/test-lstat.c (main): Likewise.
15662         * tests/test-mkdir.c (main): Likewise.
15663         * tests/test-mkdirat.c (main): Likewise.
15664         * tests/test-mkfifo.c (main): Likewise.
15665         * tests/test-mkfifoat.c (main): Likewise.
15666         * tests/test-mknod.c (main): Likewise.
15667         * tests/test-readlink.c (main): Likewise.
15668         * tests/test-remove.c (main): Likewise.
15669         * tests/test-rename.c (main): Likewise.
15670         * tests/test-renameat.c (main): Likewise.
15671         * tests/test-rmdir.c (main): Likewise.
15672         * tests/test-symlink.c (main): Likewise.
15673         * tests/test-symlinkat.c (main): Likewise.
15674         * tests/test-unlink.c (main): Likewise.
15675         * tests/test-unlinkat.c (main): Likewise.
15676         * tests/test-utimens.c (main): Likewise.
15677         * tests/test-utimensat.c (main): Likewise.
15678         * modules/areadlink-tests (Depends-on): Add ignore-value.
15679         * modules/areadlink-with-size-tests (Depends-on): Likewise.
15680         * modules/areadlinkat-tests (Depends-on): Likewise.
15681         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
15682         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15683         * modules/canonicalize-tests (Depends-on): Likewise.
15684         * modules/chown-tests (Depends-on): Likewise.
15685         * modules/fdutimensat-tests (Depends-on): Likewise.
15686         * modules/futimens-tests (Depends-on): Likewise.
15687         * modules/lchown-tests (Depends-on): Likewise.
15688         * modules/link-tests (Depends-on): Likewise.
15689         * modules/linkat-tests (Depends-on): Likewise.
15690         * modules/lstat-tests (Depends-on): Likewise.
15691         * modules/mkdir-tests (Depends-on): Likewise.
15692         * modules/mkfifo-tests (Depends-on): Likewise.
15693         * modules/mkfifoat-tests (Depends-on): Likewise.
15694         * modules/mknod-tests (Depends-on): Likewise.
15695         * modules/openat-tests (Depends-on): Likewise.
15696         * modules/readlink-tests (Depends-on): Likewise.
15697         * modules/remove-tests (Depends-on): Likewise.
15698         * modules/rename-tests (Depends-on): Likewise.
15699         * modules/renameat-tests (Depends-on): Likewise.
15700         * modules/rmdir-tests (Depends-on): Likewise.
15701         * modules/symlink-tests (Depends-on): Likewise.
15702         * modules/symlinkat-tests (Depends-on): Likewise.
15703         * modules/unlink-tests (Depends-on): Likewise.
15704         * modules/utimens-tests (Depends-on): Likewise.
15705         * modules/utimensat-tests (Depends-on): Likewise.
15706
15707 2010-01-31  Bruno Haible  <bruno@clisp.org>
15708
15709         Perform the same test for many <math.h> functions.
15710         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
15711         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
15712         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
15713         of gl_MATHFUNC.
15714         * modules/acos (configure.ac): Likewise.
15715         * modules/asin (configure.ac): Likewise.
15716         * modules/atan (configure.ac): Likewise.
15717         * modules/atan2 (configure.ac): Likewise.
15718         * modules/cbrt (configure.ac): Likewise.
15719         * modules/copysign (configure.ac): Likewise.
15720         * modules/cos (configure.ac): Likewise.
15721         * modules/cosh (configure.ac): Likewise.
15722         * modules/erf (configure.ac): Likewise.
15723         * modules/erfc (configure.ac): Likewise.
15724         * modules/exp (configure.ac): Likewise.
15725         * modules/fmod (configure.ac): Likewise.
15726         * modules/hypot (configure.ac): Likewise.
15727         * modules/j0 (configure.ac): Likewise.
15728         * modules/j1 (configure.ac): Likewise.
15729         * modules/jn (configure.ac): Likewise.
15730         * modules/lgamma (configure.ac): Likewise.
15731         * modules/log (configure.ac): Likewise.
15732         * modules/log10 (configure.ac): Likewise.
15733         * modules/log1p (configure.ac): Likewise.
15734         * modules/pow (configure.ac): Likewise.
15735         * modules/remainder (configure.ac): Likewise.
15736         * modules/sin (configure.ac): Likewise.
15737         * modules/sinh (configure.ac): Likewise.
15738         * modules/tan (configure.ac): Likewise.
15739         * modules/tanh (configure.ac): Likewise.
15740         * modules/y0 (configure.ac): Likewise.
15741         * modules/y1 (configure.ac): Likewise.
15742         * modules/yn (configure.ac): Likewise.
15743         Suggested by Paolo Bonzini.
15744
15745 2010-01-31  Bruno Haible  <bruno@clisp.org>
15746
15747         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
15748
15749 2010-01-31  Bruno Haible  <bruno@clisp.org>
15750
15751         Work around getdelim() bug on FreeBSD 8.0.
15752         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
15753         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
15754         not work.
15755         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
15756         is 1.
15757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
15758         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
15759         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
15760         a non-zero size.
15761         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
15762
15763 2010-01-31  Bruno Haible  <bruno@clisp.org>
15764
15765         Work around getline() bug on FreeBSD 8.0.
15766         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
15767         and a non-zero size.
15768         * tests/test-getline.c (main): Likewise.
15769         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
15770         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
15771
15772 2010-01-28  Eric Blake  <ebb9@byu.net>
15773
15774         regex: fix build failure
15775         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
15776         platforms.
15777
15778 2010-01-28  Jim Meyering  <meyering@redhat.com>
15779
15780         regex: do not ignore memory allocation failure
15781         * lib/regex_internal.c (create_cd_newstate): Detect
15782         re_node_set_init_copy failure.   Extracted from glibc commit
15783         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15784
15785         regex: sync more white-space changes from libc
15786         * lib/regex_internal.c: White-space only changes.
15787         * lib/regexec.c: Likewise.
15788
15789         regex: add many uses of __attribute_warn_unused_result__
15790         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
15791         * lib/regexec.c: Likewise.
15792         Extracted from a messy glibc commit.
15793
15794         regcomp.c: spelling and merge-artifact from glibc
15795         * lib/regcomp.c: Merge remainder of glibc's
15796         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15797
15798         regcomp.c: sync white-space changes from glibc
15799         * lib/regcomp.c: Merge to accommodate white space
15800         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15801
15802         regcomp.c: do not ignore internal return values
15803         * lib/regcomp.c: Do not ignore internal return values.
15804         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
15805         but without its white-space changes and spelling fixes.
15806
15807         regex_internal.h: define __attribute_warn_unused_result__
15808         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
15809
15810         maint: add a syntax-check rule to check for vulnerable Makefile.in
15811         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
15812
15813 2010-01-27  Jim Meyering  <meyering@redhat.com>
15814
15815         ncftpput-ftp: clean up spaces
15816         * build-aux/ncftpput-ftp: Make Copyright line consistent.
15817         Remove trailing blanks.
15818
15819 2010-01-27  Simon Josefsson  <simon@josefsson.org>
15820
15821         * build-aux/git-version-gen: Fix copyright statement.
15822         * build-aux/gnupload: Likewise.
15823         * tests/test-arcfour.c: Likewise.
15824         * tests/test-arctwo.c: Likewise.
15825         * tests/test-count-one-bits.c: Likewise.
15826         * tests/test-crc.c: Likewise.
15827         * tests/test-des.c: Likewise.
15828         * tests/test-gc-arcfour.c: Likewise.
15829         * tests/test-gc-arctwo.c: Likewise.
15830         * tests/test-gc-des.c: Likewise.
15831         * tests/test-gc-hmac-md5.c: Likewise.
15832         * tests/test-gc-hmac-sha1.c: Likewise.
15833         * tests/test-gc-md2.c: Likewise.
15834         * tests/test-gc-md4.c: Likewise.
15835         * tests/test-gc-md5.c: Likewise.
15836         * tests/test-gc-pbkdf2-sha1.c: Likewise.
15837         * tests/test-gc-rijndael.c: Likewise.
15838         * tests/test-gc-sha1.c: Likewise.
15839         * tests/test-gc.c: Likewise.
15840         * tests/test-gethostname.c: Likewise.
15841         * tests/test-gettimeofday.c: Likewise.
15842         * tests/test-hash.c: Likewise.
15843         * tests/test-hmac-md5.c: Likewise.
15844         * tests/test-hmac-sha1.c: Likewise.
15845         * tests/test-md2.c: Likewise.
15846         * tests/test-md4.c: Likewise.
15847         * tests/test-md5.c: Likewise.
15848         * tests/test-memchr.c: Likewise.
15849         * tests/test-memchr2.c: Likewise.
15850         * tests/test-memcmp.c: Likewise.
15851         * tests/test-memmem.c: Likewise.
15852         * tests/test-memrchr.c: Likewise.
15853         * tests/test-rawmemchr.c: Likewise.
15854         * tests/test-read-file.c: Likewise.
15855         * tests/test-rijndael.c: Likewise.
15856         * tests/test-sockets.c: Likewise.
15857         * tests/test-strchrnul.c: Likewise.
15858         * tests/test-strstr.c: Likewise.
15859         * tests/test-strtod.c: Likewise.
15860         * build-aux/ncftpput-ftp: Likewise.
15861
15862 2010-01-26  Eric Blake  <ebb9@byu.net>
15863
15864         ignore-value: update recommended header name
15865         * modules/ignore-value (Include): Only use <> for headers that
15866         exist in glibc.
15867
15868 2010-01-26  Jim Meyering  <meyering@redhat.com>
15869
15870         test-userspec.c: avoid compiler warnings
15871         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
15872         and "initialization discards qualifiers..." warnings.
15873         Put the first "uid" in its own scope, and make char* members "const".
15874
15875 2010-01-25  Bruno Haible  <bruno@clisp.org>
15876
15877         gnulib-tool: Make warning diagnostics consistent.
15878         * gnulib-tool (func_warning): New function.
15879         Use it everywhere where gnulib-tool produces output to stderr and it is
15880         not a fatal error.
15881
15882 2010-01-25  Bruno Haible  <bruno@clisp.org>
15883
15884         Fix test dependencies.
15885         * modules/xstrtol-tests (Depends-on): Add inttypes.
15886         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
15887
15888 2010-01-25 Pádraig Brady <P@draigBrady.com>
15889
15890         syntax-check: detect incorrect boolean macro values in config.h
15891         * modules/maintainer-makefile (configure.ac): Parameterize the location
15892         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
15893         The logic is from Eric Blake and the location indicated by Jim Meyering.
15894         Note the more natural CONFIG_HEADER name is prohibited by automake
15895         for backwards compatibility reasons.
15896         * top/maint.mk (sc_Wundef_boolean): New rule.
15897
15898 2010-01-25  Jim Meyering  <meyering@redhat.com>
15899
15900         bootstrap: detect MacOS 10.6's shasum, too
15901         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
15902         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
15903
15904 2010-01-23  Jim Meyering  <meyering@redhat.com>
15905
15906         xstrtoll: new module
15907         * modules/xstrtoll: New file.
15908         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
15909         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
15910         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
15911         ./configure fails if you use this module and lack "long long".
15912         * modules/xstrtoll-tests: New module.
15913         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
15914         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
15915         new init.sh-based test framework.
15916
15917 2010-01-24  Bruno Haible  <bruno@clisp.org>
15918
15919         Tests for module 'yn'.
15920         * modules/yn-tests: New file.
15921         * tests/test-yn.c: New file.
15922
15923         Tests for module 'y1'.
15924         * modules/y1-tests: New file.
15925         * tests/test-y1.c: New file.
15926
15927         Tests for module 'y0'.
15928         * modules/y0-tests: New file.
15929         * tests/test-y0.c: New file.
15930
15931         Tests for module 'tanh'.
15932         * modules/tanh-tests: New file.
15933         * tests/test-tanh.c: New file.
15934
15935         Tests for module 'tan'.
15936         * modules/tan-tests: New file.
15937         * tests/test-tan.c: New file.
15938
15939         Tests for module 'sqrt'.
15940         * modules/sqrt-tests: New file.
15941         * tests/test-sqrt.c: New file.
15942
15943         Tests for module 'sinh'.
15944         * modules/sinh-tests: New file.
15945         * tests/test-sinh.c: New file.
15946
15947         Tests for module 'sin'.
15948         * modules/sin-tests: New file.
15949         * tests/test-sin.c: New file.
15950
15951         Tests for module 'rint'.
15952         * modules/rint-tests: New file.
15953         * tests/test-rint.c: New file.
15954
15955         Tests for module 'remainder'.
15956         * modules/remainder-tests: New file.
15957         * tests/test-remainder.c: New file.
15958
15959         Tests for module 'pow'.
15960         * modules/pow-tests: New file.
15961         * tests/test-pow.c: New file.
15962
15963         Tests for module 'nextafter'.
15964         * modules/nextafter-tests: New file.
15965         * tests/test-nextafter.c: New file.
15966
15967         Tests for module 'modf'.
15968         * modules/modf-tests: New file.
15969         * tests/test-modf.c: New file.
15970
15971         Tests for module 'logb'.
15972         * modules/logb-tests: New file.
15973         * tests/test-logb.c: New file.
15974
15975         Tests for module 'log1p'.
15976         * modules/log1p-tests: New file.
15977         * tests/test-log1p.c: New file.
15978
15979         Tests for module 'log10'.
15980         * modules/log10-tests: New file.
15981         * tests/test-log10.c: New file.
15982
15983         Tests for module 'log'.
15984         * modules/log-tests: New file.
15985         * tests/test-log.c: New file.
15986
15987         Tests for module 'lgamma'.
15988         * modules/lgamma-tests: New file.
15989         * tests/test-lgamma.c: New file.
15990
15991         Tests for module 'ldexp'.
15992         * modules/ldexp-tests: New file.
15993         * tests/test-ldexp.c: New file.
15994
15995         Tests for module 'jn'.
15996         * modules/jn-tests: New file.
15997         * tests/test-jn.c: New file.
15998
15999         Tests for module 'j1'.
16000         * modules/j1-tests: New file.
16001         * tests/test-j1.c: New file.
16002
16003         Tests for module 'j0'.
16004         * modules/j0-tests: New file.
16005         * tests/test-j0.c: New file.
16006
16007         Tests for module 'hypot'.
16008         * modules/hypot-tests: New file.
16009         * tests/test-hypot.c: New file.
16010
16011         Tests for module 'fmod'.
16012         * modules/fmod-tests: New file.
16013         * tests/test-fmod.c: New file.
16014
16015         Tests for module 'fabs'.
16016         * modules/fabs-tests: New file.
16017         * tests/test-fabs.c: New file.
16018
16019         Tests for module 'exp'.
16020         * modules/exp-tests: New file.
16021         * tests/test-exp.c: New file.
16022
16023         Tests for module 'erfc'.
16024         * modules/erfc-tests: New file.
16025         * tests/test-erfc.c: New file.
16026
16027         Tests for module 'erf'.
16028         * modules/erf-tests: New file.
16029         * tests/test-erf.c: New file.
16030
16031         Tests for module 'cosh'.
16032         * modules/cosh-tests: New file.
16033         * tests/test-cosh.c: New file.
16034
16035         Tests for module 'cos'.
16036         * modules/cos-tests: New file.
16037         * tests/test-cos.c: New file.
16038
16039         Tests for module 'copysign'.
16040         * modules/copysign-tests: New file.
16041         * tests/test-copysign.c: New file.
16042
16043         Tests for module 'cbrt'.
16044         * modules/cbrt-tests: New file.
16045         * tests/test-cbrt.c: New file.
16046
16047         Tests for module 'atan2'.
16048         * modules/atan2-tests: New file.
16049         * tests/test-atan2.c: New file.
16050
16051         Tests for module 'atan'.
16052         * modules/atan-tests: New file.
16053         * tests/test-atan.c: New file.
16054
16055         Tests for module 'asin'.
16056         * modules/asin-tests: New file.
16057         * tests/test-asin.c: New file.
16058
16059         Tests for module 'acos'.
16060         * modules/acos-tests: New file.
16061         * tests/test-acos.c: New file.
16062
16063 2010-01-24  Bruno Haible  <bruno@clisp.org>
16064
16065         Fix tests for common <math.h> functions.
16066         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
16067         code snippet that references the function pointer, rather than merely
16068         calling the function. Substitute the FUNC_LIBM variable.
16069         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
16070         * modules/acos (configure.ac): Likewise.
16071         * modules/asin (configure.ac): Likewise.
16072         * modules/atan (configure.ac): Likewise.
16073         * modules/atan2 (configure.ac): Likewise.
16074         * modules/cbrt (configure.ac): Likewise.
16075         * modules/copysign (configure.ac): Likewise.
16076         * modules/cos (configure.ac): Likewise.
16077         * modules/cosh (configure.ac): Likewise.
16078         * modules/erf (configure.ac): Likewise.
16079         * modules/erfc (configure.ac): Likewise.
16080         * modules/exp (configure.ac): Likewise.
16081         * modules/fabs (configure.ac): Likewise.
16082         * modules/fmod (configure.ac): Likewise.
16083         * modules/hypot (configure.ac): Likewise.
16084         * modules/j0 (configure.ac): Likewise.
16085         * modules/j1 (configure.ac): Likewise.
16086         * modules/jn (configure.ac): Likewise.
16087         * modules/ldexp (configure.ac): Likewise.
16088         * modules/lgamma (configure.ac): Likewise.
16089         * modules/log (configure.ac): Likewise.
16090         * modules/log10 (configure.ac): Likewise.
16091         * modules/log1p (configure.ac): Likewise.
16092         * modules/logb (configure.ac): Likewise.
16093         * modules/modf (configure.ac): Likewise.
16094         * modules/nextafter (configure.ac): Likewise.
16095         * modules/pow (configure.ac): Likewise.
16096         * modules/remainder (configure.ac): Likewise.
16097         * modules/rint (configure.ac): Likewise.
16098         * modules/sin (configure.ac): Likewise.
16099         * modules/sinh (configure.ac): Likewise.
16100         * modules/tan (configure.ac): Likewise.
16101         * modules/tanh (configure.ac): Likewise.
16102         * modules/y0 (configure.ac): Likewise.
16103         * modules/y1 (configure.ac): Likewise.
16104         * modules/yn (configure.ac): Likewise.
16105
16106 2010-01-24  Bruno Haible  <bruno@clisp.org>
16107
16108         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
16109         * tests/test-acosl.c (x): New variable.
16110         (main): Store argument in x and fetch it from x.
16111         * tests/test-asinl.c (x): New variable.
16112         (main): Store argument in x and fetch it from x.
16113         * tests/test-atanl.c (x): New variable.
16114         (main): Store argument in x and fetch it from x.
16115         * tests/test-cosl.c (x): New variable.
16116         (main): Store argument in x and fetch it from x.
16117         * tests/test-expl.c (x): New variable.
16118         (main): Store argument in x and fetch it from x.
16119         * tests/test-logl.c (x): New variable.
16120         (main): Store argument in x and fetch it from x.
16121         * tests/test-sinl.c (x): New variable.
16122         (main): Store argument in x and fetch it from x.
16123         * tests/test-sqrtl.c (x): New variable.
16124         (main): Store argument in x and fetch it from x.
16125         * tests/test-tanl.c (x): New variable.
16126         (main): Store argument in x and fetch it from x.
16127
16128 2010-01-24  Bruno Haible  <bruno@clisp.org>
16129
16130         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
16131         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
16132         assignments to the initial TESTS_ENVIRONMENT.
16133         * doc/gnulib.texi (Unit test modules): Document it.
16134         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
16135         TESTS_ENVIRONMENT.
16136         * modules/btowc-tests (Makefile.am): Likewise.
16137         * modules/c-stack-tests (Makefile.am): Likewise.
16138         * modules/c-strcase-tests (Makefile.am): Likewise.
16139         * modules/copy-file-tests (Makefile.am): Likewise.
16140         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
16141         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
16142         * modules/mbrtowc-tests (Makefile.am): Likewise.
16143         * modules/mbscasecmp-tests (Makefile.am): Likewise.
16144         * modules/mbscasestr-tests (Makefile.am): Likewise.
16145         * modules/mbschr-tests (Makefile.am): Likewise.
16146         * modules/mbscspn-tests (Makefile.am): Likewise.
16147         * modules/mbsinit-tests (Makefile.am): Likewise.
16148         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
16149         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
16150         * modules/mbspbrk-tests (Makefile.am): Likewise.
16151         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
16152         * modules/mbsrchr-tests (Makefile.am): Likewise.
16153         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
16154         * modules/mbsspn-tests (Makefile.am): Likewise.
16155         * modules/mbsstr-tests (Makefile.am): Likewise.
16156         * modules/nl_langinfo-tests (Makefile.am): Likewise.
16157         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
16158         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
16159         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
16160         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
16161         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
16162         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
16163         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
16164         * modules/wcrtomb-tests (Makefile.am): Likewise.
16165         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
16166         * modules/wcsrtombs-tests (Makefile.am): Likewise.
16167         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
16168         assignments from TESTS_ENVIRONMENT.
16169         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
16170         augmentation.
16171         * modules/argp-version-etc-tests (Makefile.am): Likewise.
16172         * modules/atexit-tests (Makefile.am): Likewise.
16173         * modules/binary-io-tests (Makefile.am): Likewise.
16174         * modules/closein-tests (Makefile.am): Likewise.
16175         * modules/dprintf-posix-tests (Makefile.am): Likewise.
16176         * modules/exclude-tests (Makefile.am): Likewise.
16177         * modules/fflush-tests (Makefile.am): Likewise.
16178         * modules/fpending-tests (Makefile.am): Likewise.
16179         * modules/fprintf-posix-tests (Makefile.am): Likewise.
16180         * modules/freadahead-tests (Makefile.am): Likewise.
16181         * modules/freadptr-tests (Makefile.am): Likewise.
16182         * modules/freadseek-tests (Makefile.am): Likewise.
16183         * modules/fseek-tests (Makefile.am): Likewise.
16184         * modules/fseeko-tests (Makefile.am): Likewise.
16185         * modules/ftell-tests (Makefile.am): Likewise.
16186         * modules/ftello-tests (Makefile.am): Likewise.
16187         * modules/idpriv-drop-tests (Makefile.am): Likewise.
16188         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
16189         * modules/lseek-tests (Makefile.am): Likewise.
16190         * modules/parse-duration-tests (Makefile.am): Likewise.
16191         * modules/perror-tests (Makefile.am): Likewise.
16192         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
16193         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
16194         * modules/pipe-tests (Makefile.am): Likewise.
16195         * modules/pread-tests (Makefile.am): Likewise.
16196         * modules/printf-posix-tests (Makefile.am): Likewise.
16197         * modules/select-tests (Makefile.am): Likewise.
16198         * modules/sigpipe-tests (Makefile.am): Likewise.
16199         * modules/tsearch-tests (Makefile.am): Likewise.
16200         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
16201         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
16202         * modules/uniname/uniname-tests (Makefile.am): Likewise.
16203         * modules/uniwidth/width-tests (Makefile.am): Likewise.
16204         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
16205         * modules/version-etc-tests (Makefile.am): Likewise.
16206         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
16207         * modules/vprintf-posix-tests (Makefile.am): Likewise.
16208         * modules/xalloc-die-tests (Makefile.am): Likewise.
16209         * modules/xprintf-posix-tests (Makefile.am): Likewise.
16210         * modules/xstrtoimax-tests (Makefile.am): Likewise.
16211         * modules/xstrtol-tests (Makefile.am): Likewise.
16212         * modules/xstrtoumax-tests (Makefile.am): Likewise.
16213         * modules/yesno-tests (Makefile.am): Likewise.
16214         Suggested by Jim Meyering.
16215
16216 2010-01-24  Bruno Haible  <bruno@clisp.org>
16217
16218         More documentation.
16219         * doc/gnulib.texi (Writing modules): New chapter.
16220         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
16221         the new chapter.
16222
16223 2010-01-24  Jim Meyering  <meyering@redhat.com>
16224
16225         maint.mk: do not prepend "./" after filtering
16226         * top/maint.mk (_prepend_srcdir_prefix): New variable
16227         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
16228         "./" when $(srcdir) is ".".
16229
16230         define STREQ(a,b) consistently, removing useless parentheses
16231         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
16232         since the only risk is that "a" or "b" contains an unparenthesized
16233         comma, but if either did that, STREQ would have 3 or more arguments.
16234         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
16235         * lib/fts.c (STREQ): Remove unnecessary parentheses.
16236         * lib/hash-triple.c (STREQ): Likewise.
16237         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
16238         * lib/getugroups.c (STREQ): Likewise.
16239
16240 2010-01-23  Jim Meyering  <meyering@redhat.com>
16241
16242         maint.mk: fix syntax-check in a non-srcdir build directory
16243         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
16244         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
16245
16246 2010-01-22  Jim Meyering  <meyering@redhat.com>
16247
16248         userspec: add unit tests
16249         * tests/test-userspec.c: New file.
16250         * modules/userspec-tests: Likewise.
16251
16252 2010-01-21  Jim Meyering  <meyering@redhat.com>
16253
16254         maint.mk: handle source file names containing "." robustly
16255         * top/maint.mk (_dot_escaped_srcdir): Define.
16256         (VC_LIST): Use it in LHS of sed substitution.
16257
16258 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
16259
16260         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
16261         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
16262         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
16263         from a non-srcdir build.
16264
16265 2010-01-20  Eric Blake  <ebb9@byu.net>
16266
16267         warn-on-use: use instead of link-warning
16268         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
16269         * modules/unistd (Depends-on, Makefile.am): Likewise.
16270         * modules/arpa_inet (Depends-on): Replace link-warning with
16271         warn-on-use.
16272         (Makefile.am): Update rules accordingly.
16273         * modules/ctype (Depends-on, Makefile.am): Likewise.
16274         * modules/dirent (Depends-on, Makefile.am): Likewise.
16275         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
16276         * modules/inttypes (Depends-on, Makefile.am): Likewise.
16277         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16278         * modules/locale (Depends-on, Makefile.am): Likewise.
16279         * modules/math (Depends-on, Makefile.am): Likewise.
16280         * modules/search (Depends-on, Makefile.am): Likewise.
16281         * modules/signal (Depends-on, Makefile.am): Likewise.
16282         * modules/spawn (Depends-on, Makefile.am): Likewise.
16283         * modules/stdlib (Depends-on, Makefile.am): Likewise.
16284         * modules/string (Depends-on, Makefile.am): Likewise.
16285         * modules/strings (Depends-on, Makefile.am): Likewise.
16286         * modules/sys_file (Depends-on, Makefile.am): Likewise.
16287         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
16288         * modules/sys_select (Depends-on, Makefile.am): Likewise.
16289         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
16290         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
16291         * modules/sys_times (Depends-on, Makefile.am): Likewise.
16292         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16293         * modules/wchar (Depends-on, Makefile.am): Likewise.
16294         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
16295         should be poisoned.
16296         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
16297         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
16298         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
16299         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16300         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16301         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16302         * m4/math_h.m4 (gl_MATH_H): Likewise.
16303         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16304         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
16305         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16306         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16307         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16308         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
16309         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16310         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
16311         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16312         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16313         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16314         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
16315         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16316         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16317         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16318         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16319         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
16320         GL_LINK_WARNING.
16321         * lib/ctype.in.h: Likewise.
16322         * lib/dirent.in.h: Likewise.
16323         * lib/fcntl.in.h: Likewise.
16324         * lib/inttypes.in.h: Likewise.
16325         * lib/langinfo.in.h: Likewise.
16326         * lib/locale.in.h: Likewise.
16327         * lib/math.in.h: Likewise.
16328         * lib/search.in.h: Likewise.
16329         * lib/signal.in.h: Likewise.
16330         * lib/spawn.in.h: Likewise.
16331         * lib/stdio.in.h: Likewise.
16332         * lib/stdlib.in.h: Likewise.
16333         * lib/string.in.h: Likewise.
16334         * lib/strings.in.h: Likewise.
16335         * lib/sys_file.in.h: Likewise.
16336         * lib/sys_ioctl.in.h: Likewise.
16337         * lib/sys_select.in.h: Likewise.
16338         * lib/sys_socket.in.h: Likewise.
16339         * lib/sys_stat.in.h: Likewise.
16340         * lib/sys_times.in.h: Likewise.
16341         * lib/sys_utsname.in.h: Likewise.
16342         * lib/unistd.in.h: Likewise.
16343         * lib/wchar.in.h: Likewise.
16344
16345 2010-01-20  Bruno Haible  <bruno@clisp.org>
16346
16347         Avoid duplicate -lm.
16348         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
16349         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
16350         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
16351         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
16352         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
16353         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
16354         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
16355         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
16356         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
16357         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
16358         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
16359         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16360         Reported by Paolo Bonzini.
16361
16362 2010-01-19  Bruno Haible  <bruno@clisp.org>
16363
16364         langinfo, nl_langinfo: Relicense under LGPLv2+.
16365         * modules/langinfo (License): Change to LGPLv2+.
16366         * modules/nl_langinfo (License): Likewise.
16367         Patch by David Lutterkort <lutter@redhat.com>.
16368
16369 2010-01-19  Bruno Haible  <bruno@clisp.org>
16370
16371         Avoid compilation error with cc on OSF/1 5.1.
16372         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
16373         statement, not before.
16374         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16375
16376 2010-01-18  Bruno Haible  <bruno@clisp.org>
16377
16378         Avoid a link error due to the __printf__ symbol.
16379         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
16380         and 2.6.x.
16381         (__format__, __printf__): Remove definitions.
16382         * lib/argp-fmtstream.h: Likewise.
16383         * lib/argp.h: Likewise.
16384         * lib/error.h: Likewise.
16385         * lib/vasnprintf.h: Likewise.
16386         * lib/xprintf.h: Likewise.
16387         * lib/xvasprintf.h: Likewise.
16388         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16389
16390 2010-01-18  Bruno Haible  <bruno@clisp.org>
16391
16392         Tests for module 'tanl'.
16393         * modules/tanl-tests: New file.
16394         * tests/test-tanl.c: New file.
16395
16396         Tests for module 'sqrtl'.
16397         * modules/sqrtl-tests: New file.
16398         * tests/test-sqrtl.c: New file.
16399
16400         Tests for module 'sinl'.
16401         * modules/sinl-tests: New file.
16402         * tests/test-sinl.c: New file.
16403
16404         Tests for module 'logl'.
16405         * modules/logl-tests: New file.
16406         * tests/test-logl.c: New file.
16407
16408         Tests for module 'expl'.
16409         * modules/expl-tests: New file.
16410         * tests/test-expl.c: New file.
16411
16412         Tests for module 'cosl'.
16413         * modules/cosl-tests: New file.
16414         * tests/test-cosl.c: New file.
16415
16416         Tests for module 'atanl'.
16417         * modules/atanl-tests: New file.
16418         * tests/test-atanl.c: New file.
16419
16420         Tests for module 'asinl'.
16421         * modules/asinl-tests: New file.
16422         * tests/test-asinl.c: New file.
16423
16424         Tests for module 'acosl'.
16425         * modules/acosl-tests: New file.
16426         * tests/test-acosl.c: New file.
16427
16428         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16429         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
16430         tanl): Use the standard gnulib idiom.
16431         * lib/cosl.c: Don't include trigl.c and sincosl.c.
16432         * lib/sinl.c: Likewise.
16433         * lib/tanl.c: Don't include trigl.c.
16434         (kernel_tanl): Make static.
16435         * lib/sincosl.c: Include trigl.h first.
16436         * lib/trigl.c: Likewise.
16437         * m4/acosl.m4: New file.
16438         * m4/asinl.m4: New file.
16439         * m4/atanl.m4: New file.
16440         * m4/cosl.m4: New file.
16441         * m4/expl.m4: New file.
16442         * m4/logl.m4: New file.
16443         * m4/sinl.m4: New file.
16444         * m4/sqrtl.m4: New file.
16445         * m4/tanl.m4: New file.
16446         * m4/mathl.m4: Remove file.
16447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
16448         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16449         Don't initialize GNULIB_MATHL.
16450         * modules/acosl: New file.
16451         * modules/asinl: New file.
16452         * modules/atanl: New file.
16453         * modules/cosl: New file.
16454         * modules/expl: New file.
16455         * modules/logl: New file.
16456         * modules/sinl: New file.
16457         * modules/sqrtl: New file.
16458         * modules/tanl: New file.
16459         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
16460         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
16461         substitute GNULIB_MATHL.
16462         * modules/mathl: Rewritten.
16463         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
16464         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
16465         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
16466         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
16467         * doc/posix-functions/expl.texi: Mention the 'expl' module.
16468         * doc/posix-functions/logl.texi: Mention the 'logl' module.
16469         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
16470         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
16471         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
16472
16473 2010-01-18  Bruno Haible  <bruno@clisp.org>
16474
16475         sqrt: Make gl_FUNC_SQRT requirable.
16476         * m4/sqrt.m4: New file.
16477         * modules/sqrt (Files): Add it.
16478         (configure.ac): Invoke gl_FUNC_SQRT.
16479
16480 2010-01-18  Bruno Haible  <bruno@clisp.org>
16481
16482         New modules for common <math.h> functions.
16483         * m4/mathfunc.m4: New file.
16484         * modules/acos: New file.
16485         * modules/asin: New file.
16486         * modules/atan: New file.
16487         * modules/atan2: New file.
16488         * modules/cbrt: New file.
16489         * modules/copysign: New file.
16490         * modules/cos: New file.
16491         * modules/cosh: New file.
16492         * modules/erf: New file.
16493         * modules/erfc: New file.
16494         * modules/exp: New file.
16495         * modules/fabs: New file.
16496         * modules/fmod: New file.
16497         * modules/hypot: New file.
16498         * modules/j0: New file.
16499         * modules/j1: New file.
16500         * modules/jn: New file.
16501         * modules/ldexp: New file.
16502         * modules/lgamma: New file.
16503         * modules/log: New file.
16504         * modules/log10: New file.
16505         * modules/log1p: New file.
16506         * modules/logb: New file.
16507         * modules/modf: New file.
16508         * modules/nextafter: New file.
16509         * modules/pow: New file.
16510         * modules/remainder: New file.
16511         * modules/rint: New file.
16512         * modules/sin: New file.
16513         * modules/sinh: New file.
16514         * modules/sqrt: New file.
16515         * modules/tan: New file.
16516         * modules/tanh: New file.
16517         * modules/y0: New file.
16518         * modules/y1: New file.
16519         * modules/yn: New file.
16520         * doc/posix-functions/acos.texi: Mention the 'acos' module.
16521         * doc/posix-functions/asin.texi: Mention the 'asin' module.
16522         * doc/posix-functions/atan.texi: Mention the 'atan' module.
16523         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
16524         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
16525         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
16526         * doc/posix-functions/cos.texi: Mention the 'cos' module.
16527         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
16528         * doc/posix-functions/erf.texi: Mention the 'erf' module.
16529         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
16530         * doc/posix-functions/exp.texi: Mention the 'exp' module.
16531         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
16532         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
16533         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
16534         * doc/posix-functions/j0.texi: Mention the 'j0' module.
16535         * doc/posix-functions/j1.texi: Mention the 'j1' module.
16536         * doc/posix-functions/jn.texi: Mention the 'jn' module.
16537         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
16538         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
16539         * doc/posix-functions/log.texi: Mention the 'log' module.
16540         * doc/posix-functions/log10.texi: Mention the 'log10' module.
16541         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
16542         * doc/posix-functions/logb.texi: Mention the 'logb' module.
16543         * doc/posix-functions/modf.texi: Mention the 'modf' module.
16544         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
16545         * doc/posix-functions/pow.texi: Mention the 'pow' module.
16546         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
16547         * doc/posix-functions/rint.texi: Mention the 'rint' module.
16548         * doc/posix-functions/sin.texi: Mention the 'sin' module.
16549         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
16550         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
16551         * doc/posix-functions/tan.texi: Mention the 'tan' module.
16552         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
16553         * doc/posix-functions/y0.texi: Mention the 'y0' module.
16554         * doc/posix-functions/y1.texi: Mention the 'y1' module.
16555         * doc/posix-functions/yn.texi: Mention the 'yn' module.
16556
16557 2010-01-18  Jim Meyering  <meyering@redhat.com>
16558
16559         ignore-value: relax license to LGPLv2+
16560         * modules/ignore-value (License): Relax to LGPLv2+.
16561
16562         getdate: don't leak when TZ contains two or more '"'s
16563         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
16564         double quote in TZ after the first one.
16565
16566         readtokens: do not leak internal token_lengths buffer
16567         * lib/readtokens.c (readtokens): Free the local, lengths,
16568         when the supplied "token_lengths" parameter is NULL.
16569
16570 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16571
16572         Fix a couple of missing LIBTHREAD link failures on AIX.
16573         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
16574         $(LIBTHREAD).
16575         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
16576
16577         Link test-poll against INET_PTON_LIB.
16578         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
16579         for inet_pton on Solaris 10.
16580
16581 2010-01-17  Bruno Haible  <bruno@clisp.org>
16582
16583         unistdio/*-sprintf: Fix typo in module description.
16584         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
16585         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
16586         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
16587         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
16588         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
16589         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
16590         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
16591         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16592
16593 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16594
16595         gnulib-tool: fix filelist for AIX, HP-UX ksh.
16596         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
16597         variables in shell case patterns, for AIX and HP-UX ksh.
16598
16599         Split large sed scripts, for HP-UX sed.
16600         * modules/stdio: Split sed scripts around 50 sed commands,
16601         to avoid HP-UX limit of 99 commands, in the near future.
16602         * modules/string: Likewise.
16603         * modules/unistd: Likewise.
16604
16605         gnulib-tool: avoid writing in the current directory.
16606         * gnulib-tool (func_emit_lib_Makefile_am)
16607         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
16608         not in the current directory, so concurrent gnulib-tool
16609         instances do not interfere.
16610
16611 2010-01-16  Jim Meyering  <meyering@redhat.com>
16612
16613         doc: update users.txt
16614         * users.txt: Add grep.
16615         (diffutils, gzip): Update URLs.
16616
16617 2010-01-12  Bruno Haible  <bruno@clisp.org>
16618
16619         posix_spawn: Avoid test failure on Cygwin.
16620         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
16621         characters.
16622         Reported by Simon Josefsson.
16623
16624 2010-01-12  Bruno Haible  <bruno@clisp.org>
16625
16626         * tests/test-cond.c (main): When skipping the test, show the reason.
16627
16628 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16629
16630         * lib/striconv.c (str_cd_iconv): Avoid if before free.
16631
16632 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16633
16634         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
16635         VC_LIST_ALWAYS_EXCLUDE_REGEX.
16636
16637 2010-01-12  Eric Blake  <ebb9@byu.net>
16638
16639         build: guarantee AS_VAR_IF
16640         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
16641         (gl_AS_VAR_IF): Move...
16642         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
16643         Reported by Simon Josefsson.
16644
16645 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16646
16647         * lib/stdio.in.h: Fix typo.
16648
16649 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16650
16651         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
16652         libgpg-error.
16653
16654 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16655
16656         * tests/test-xalloc-die.sh: Use $EXEEXT.
16657
16658 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16659             Bruno Haible  <bruno@clisp.org>
16660
16661         getlogin, getlogin_r: Avoid test failure.
16662         * tests/test-getlogin.c: Include <stdio.h>.
16663         (main): Skip the test when the function fails because stdin is not a
16664         tty.
16665         * tests/test-getlogin_r.c: Include <stdio.h>.
16666         (main): Skip the test when the function fails because stdin is not a
16667         tty.
16668
16669 2010-01-11  Eric Blake  <ebb9@byu.net>
16670
16671         tests: avoid more large file warnings
16672         * tests/test-fflush.c: Avoid warning about ftell use.
16673         * tests/test-fseek.c: Avoid warning about fseek use.
16674
16675 2010-01-10  Bruno Haible  <bruno@clisp.org>
16676
16677         nproc: Work better on Linux when /proc and /sys are not mounted.
16678         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
16679         as lower bound when, on glibc/Linux systems,
16680         sysconf (_SC_NPROCESSORS_CONF) returns 1.
16681         Suggested by Pádraig Brady <P@draigbrady.com>.
16682         Reported by Dmitry V. Levin <ldv@altlinux.org>.
16683
16684         nproc: Refactor.
16685         * lib/nproc.c (num_processors_via_affinity_mask): New function,
16686         extracted from num_processors.
16687         (num_processors): Call it.
16688
16689 2010-01-11  Jim Meyering  <meyering@redhat.com>
16690
16691         utimecmp: avoid new warning from upcoming gcc-4.5.0
16692         * lib/utimecmp.c (BILLION): Define using #define rather than an
16693         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
16694
16695 2010-01-11  Eric Blake  <ebb9@byu.net>
16696
16697         math: add portability warnings for classification macros
16698         * modules/math (Depends-on): Add warn-on-use.
16699         (Makefile.am): Provide new substitutions.
16700         * m4/math_h.m4 (gl_MATH_H): Require inline.
16701         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
16702         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
16703         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
16704         implement warnings.
16705
16706         unistd: warn on use of environ without module
16707         * modules/unistd (Depends-on): Add warn-on-use.
16708         (Makefile.am): Provide new substitutions.
16709         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
16710         * lib/unistd.in.h (environ): Wrap with a warning helper function.
16711
16712         stdio: warn on suspicious uses
16713         * modules/stdio (Depends-on): Add warn-on-use.
16714         (Makefile.am): Provide new substitutions.
16715         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
16716         fseeko.
16717         * lib/stdio.in.h (gets): Always warn on use.
16718         (fseek, ftell): Adjust when warnings are issued, and honor
16719         _GL_NO_LARGE_FILES as a way to silence the warning.
16720         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
16721         any warning about large file offsets.
16722         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
16723         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
16724         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
16725         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
16726         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
16727         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
16728         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
16729         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
16730
16731         warn-on-use: new module
16732         * modules/warn-on-use: New file.
16733         * build-aux/warn-on-use.h: Likewise.
16734         * m4/warn-on-use.m4: Likewise.
16735         * MODULES.html.sh (Support for building): Mention it.
16736
16737 2010-01-10  Bruno Haible  <bruno@clisp.org>
16738
16739         Tests for module 'unistr/u32-strdup'.
16740         * modules/unistr/u32-strdup-tests: New file.
16741         * tests/unistr/test-u32-strdup.c: New file.
16742
16743         Tests for module 'unistr/u16-strdup'.
16744         * modules/unistr/u16-strdup-tests: New file.
16745         * tests/unistr/test-u16-strdup.c: New file.
16746
16747         Tests for module 'unistr/u8-strdup'.
16748         * modules/unistr/u8-strdup-tests: New file.
16749         * tests/unistr/test-u8-strdup.c: New file.
16750         * tests/unistr/test-strdup.h: New file.
16751
16752         Tests for module 'unistr/u32-strncmp'.
16753         * modules/unistr/u32-strncmp-tests: New file.
16754         * tests/unistr/test-u32-strncmp.c: New file.
16755
16756         Tests for module 'unistr/u16-strncmp'.
16757         * modules/unistr/u16-strncmp-tests: New file.
16758         * tests/unistr/test-u16-strncmp.c: New file.
16759
16760         Tests for module 'unistr/u8-strncmp'.
16761         * modules/unistr/u8-strncmp-tests: New file.
16762         * tests/unistr/test-u8-strncmp.c: New file.
16763         * tests/unistr/test-strncmp.h: New file.
16764
16765         Tests for module 'unistr/u32-strcoll'.
16766         * modules/unistr/u32-strcoll-tests: New file.
16767         * tests/unistr/test-u32-strcoll.c: New file.
16768
16769         Tests for module 'unistr/u16-strcoll'.
16770         * modules/unistr/u16-strcoll-tests: New file.
16771         * tests/unistr/test-u16-strcoll.c: New file.
16772
16773         Tests for module 'unistr/u8-strcoll'.
16774         * modules/unistr/u8-strcoll-tests: New file.
16775         * tests/unistr/test-u8-strcoll.c: New file.
16776
16777         Tests for module 'unistr/u32-strcmp'.
16778         * modules/unistr/u32-strcmp-tests: New file.
16779         * tests/unistr/test-u32-strcmp.c: New file.
16780         * tests/unistr/test-u32-strcmp.h: New file.
16781
16782         Tests for module 'unistr/u16-strcmp'.
16783         * modules/unistr/u16-strcmp-tests: New file.
16784         * tests/unistr/test-u16-strcmp.c: New file.
16785         * tests/unistr/test-u16-strcmp.h: New file.
16786
16787         Tests for module 'unistr/u8-strcmp'.
16788         * modules/unistr/u8-strcmp-tests: New file.
16789         * tests/unistr/test-u8-strcmp.c: New file.
16790         * tests/unistr/test-u8-strcmp.h: New file.
16791         * tests/unistr/test-strcmp.h: New file.
16792
16793         Tests for module 'unistr/u32-strncat'.
16794         * modules/unistr/u32-strncat-tests: New file.
16795         * tests/unistr/test-u32-strncat.c: New file.
16796
16797         Tests for module 'unistr/u16-strncat'.
16798         * modules/unistr/u16-strncat-tests: New file.
16799         * tests/unistr/test-u16-strncat.c: New file.
16800
16801         Tests for module 'unistr/u8-strncat'.
16802         * modules/unistr/u8-strncat-tests: New file.
16803         * tests/unistr/test-u8-strncat.c: New file.
16804         * tests/unistr/test-strncat.h: New file.
16805
16806         Tests for module 'unistr/u32-strcat'.
16807         * modules/unistr/u32-strcat-tests: New file.
16808         * tests/unistr/test-u32-strcat.c: New file.
16809
16810         Tests for module 'unistr/u16-strcat'.
16811         * modules/unistr/u16-strcat-tests: New file.
16812         * tests/unistr/test-u16-strcat.c: New file.
16813
16814         Tests for module 'unistr/u8-strcat'.
16815         * modules/unistr/u8-strcat-tests: New file.
16816         * tests/unistr/test-u8-strcat.c: New file.
16817         * tests/unistr/test-strcat.h: New file.
16818
16819         Tests for module 'unistr/u32-stpncpy'.
16820         * modules/unistr/u32-stpncpy-tests: New file.
16821         * tests/unistr/test-u32-stpncpy.c: New file.
16822
16823         Tests for module 'unistr/u16-stpncpy'.
16824         * modules/unistr/u16-stpncpy-tests: New file.
16825         * tests/unistr/test-u16-stpncpy.c: New file.
16826
16827         Tests for module 'unistr/u8-stpncpy'.
16828         * modules/unistr/u8-stpncpy-tests: New file.
16829         * tests/unistr/test-u8-stpncpy.c: New file.
16830         * tests/unistr/test-stpncpy.h: New file.
16831
16832         Tests for module 'unistr/u32-strncpy'.
16833         * modules/unistr/u32-strncpy-tests: New file.
16834         * tests/unistr/test-u32-strncpy.c: New file.
16835
16836         Tests for module 'unistr/u16-strncpy'.
16837         * modules/unistr/u16-strncpy-tests: New file.
16838         * tests/unistr/test-u16-strncpy.c: New file.
16839
16840         Tests for module 'unistr/u8-strncpy'.
16841         * modules/unistr/u8-strncpy-tests: New file.
16842         * tests/unistr/test-u8-strncpy.c: New file.
16843         * tests/unistr/test-strncpy.h: New file.
16844
16845         Tests for module 'unistr/u32-stpcpy'.
16846         * modules/unistr/u32-stpcpy-tests: New file.
16847         * tests/unistr/test-u32-stpcpy.c: New file.
16848
16849         Tests for module 'unistr/u16-stpcpy'.
16850         * modules/unistr/u16-stpcpy-tests: New file.
16851         * tests/unistr/test-u16-stpcpy.c: New file.
16852
16853         Tests for module 'unistr/u8-stpcpy'.
16854         * modules/unistr/u8-stpcpy-tests: New file.
16855         * tests/unistr/test-u8-stpcpy.c: New file.
16856         * tests/unistr/test-stpcpy.h: New file.
16857
16858         Tests for module 'unistr/u32-strcpy'.
16859         * modules/unistr/u32-strcpy-tests: New file.
16860         * tests/unistr/test-u32-strcpy.c: New file.
16861
16862         Tests for module 'unistr/u16-strcpy'.
16863         * modules/unistr/u16-strcpy-tests: New file.
16864         * tests/unistr/test-u16-strcpy.c: New file.
16865
16866         Tests for module 'unistr/u8-strcpy'.
16867         * modules/unistr/u8-strcpy-tests: New file.
16868         * tests/unistr/test-u8-strcpy.c: New file.
16869         * tests/unistr/test-strcpy.h: New file.
16870
16871         Tests for module 'unistr/u32-strnlen'.
16872         * modules/unistr/u32-strnlen-tests: New file.
16873         * tests/unistr/test-u32-strnlen.c: New file.
16874
16875         Tests for module 'unistr/u16-strnlen'.
16876         * modules/unistr/u16-strnlen-tests: New file.
16877         * tests/unistr/test-u16-strnlen.c: New file.
16878
16879         Tests for module 'unistr/u8-strnlen'.
16880         * modules/unistr/u8-strnlen-tests: New file.
16881         * tests/unistr/test-u8-strnlen.c: New file.
16882         * tests/unistr/test-strnlen.h: New file.
16883
16884         Tests for module 'unistr/u32-strlen'.
16885         * modules/unistr/u32-strlen-tests: New file.
16886         * tests/unistr/test-u32-strlen.c: New file.
16887
16888         Tests for module 'unistr/u16-strlen'.
16889         * modules/unistr/u16-strlen-tests: New file.
16890         * tests/unistr/test-u16-strlen.c: New file.
16891
16892         Tests for module 'unistr/u8-strlen'.
16893         * modules/unistr/u8-strlen-tests: New file.
16894         * tests/unistr/test-u8-strlen.c: New file.
16895
16896         Tests for module 'unistr/u32-prev'.
16897         * modules/unistr/u32-prev-tests: New file.
16898         * tests/unistr/test-u32-prev.c: New file.
16899
16900         Tests for module 'unistr/u16-prev'.
16901         * modules/unistr/u16-prev-tests: New file.
16902         * tests/unistr/test-u16-prev.c: New file.
16903
16904         Tests for module 'unistr/u8-prev'.
16905         * modules/unistr/u8-prev-tests: New file.
16906         * tests/unistr/test-u8-prev.c: New file.
16907
16908         Tests for module 'unistr/u32-next'.
16909         * modules/unistr/u32-next-tests: New file.
16910         * tests/unistr/test-u32-next.c: New file.
16911
16912         Tests for module 'unistr/u16-next'.
16913         * modules/unistr/u16-next-tests: New file.
16914         * tests/unistr/test-u16-next.c: New file.
16915
16916         Tests for module 'unistr/u8-next'.
16917         * modules/unistr/u8-next-tests: New file.
16918         * tests/unistr/test-u8-next.c: New file.
16919
16920         Tests for module 'unistr/u32-strmbtouc'.
16921         * modules/unistr/u32-strmbtouc-tests: New file.
16922         * tests/unistr/test-u32-strmbtouc.c: New file.
16923
16924         Tests for module 'unistr/u16-strmbtouc'.
16925         * modules/unistr/u16-strmbtouc-tests: New file.
16926         * tests/unistr/test-u16-strmbtouc.c: New file.
16927
16928         Tests for module 'unistr/u8-strmbtouc'.
16929         * modules/unistr/u8-strmbtouc-tests: New file.
16930         * tests/unistr/test-u8-strmbtouc.c: New file.
16931
16932         Tests for module 'unistr/u32-strmblen'.
16933         * modules/unistr/u32-strmblen-tests: New file.
16934         * tests/unistr/test-u32-strmblen.c: New file.
16935
16936         Tests for module 'unistr/u16-strmblen'.
16937         * modules/unistr/u16-strmblen-tests: New file.
16938         * tests/unistr/test-u16-strmblen.c: New file.
16939
16940         Tests for module 'unistr/u8-strmblen'.
16941         * modules/unistr/u8-strmblen-tests: New file.
16942         * tests/unistr/test-u8-strmblen.c: New file.
16943
16944         Tests for module 'unistr/u32-cpy-alloc'.
16945         * modules/unistr/u32-cpy-alloc-tests: New file.
16946         * tests/unistr/test-u32-cpy-alloc.c: New file.
16947
16948         Tests for module 'unistr/u16-cpy-alloc'.
16949         * modules/unistr/u16-cpy-alloc-tests: New file.
16950         * tests/unistr/test-u16-cpy-alloc.c: New file.
16951
16952         Tests for module 'unistr/u8-cpy-alloc'.
16953         * modules/unistr/u8-cpy-alloc-tests: New file.
16954         * tests/unistr/test-u8-cpy-alloc.c: New file.
16955         * tests/unistr/test-cpy-alloc.h: New file.
16956
16957         Tests for module 'unistr/u32-mbsnlen'.
16958         * modules/unistr/u32-mbsnlen-tests: New file.
16959         * tests/unistr/test-u32-mbsnlen.c: New file.
16960
16961         Tests for module 'unistr/u16-mbsnlen'.
16962         * modules/unistr/u16-mbsnlen-tests: New file.
16963         * tests/unistr/test-u16-mbsnlen.c: New file.
16964
16965         Tests for module 'unistr/u8-mbsnlen'.
16966         * modules/unistr/u8-mbsnlen-tests: New file.
16967         * tests/unistr/test-u8-mbsnlen.c: New file.
16968
16969         Tests for module 'unistr/u32-chr'.
16970         * modules/unistr/u32-chr-tests: New file.
16971         * tests/unistr/test-u32-chr.c: New file.
16972
16973         Tests for module 'unistr/u16-chr'.
16974         * modules/unistr/u16-chr-tests: New file.
16975         * tests/unistr/test-u16-chr.c: New file.
16976
16977         Tests for module 'unistr/u8-chr'.
16978         * modules/unistr/u8-chr-tests: New file.
16979         * tests/unistr/test-u8-chr.c: New file.
16980         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
16981
16982         Tests for module 'unistr/u32-cmp2'.
16983         * modules/unistr/u32-cmp2-tests: New file.
16984         * tests/unistr/test-u32-cmp2.c: New file.
16985
16986         Tests for module 'unistr/u16-cmp2'.
16987         * modules/unistr/u16-cmp2-tests: New file.
16988         * tests/unistr/test-u16-cmp2.c: New file.
16989
16990         Tests for module 'unistr/u8-cmp2'.
16991         * modules/unistr/u8-cmp2-tests: New file.
16992         * tests/unistr/test-u8-cmp2.c: New file.
16993         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
16994
16995         Tests for module 'unistr/u32-cmp'.
16996         * modules/unistr/u32-cmp-tests: New file.
16997         * tests/unistr/test-u32-cmp.c: New file.
16998
16999         Tests for module 'unistr/u16-cmp'.
17000         * modules/unistr/u16-cmp-tests: New file.
17001         * tests/unistr/test-u16-cmp.c: New file.
17002
17003         Tests for module 'unistr/u8-cmp'.
17004         * modules/unistr/u8-cmp-tests: New file.
17005         * tests/unistr/test-u8-cmp.c: New file.
17006         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
17007
17008         Tests for module 'unistr/u32-set'.
17009         * modules/unistr/u32-set-tests: New file.
17010         * tests/unistr/test-u32-set.c: New file.
17011
17012         Tests for module 'unistr/u16-set'.
17013         * modules/unistr/u16-set-tests: New file.
17014         * tests/unistr/test-u16-set.c: New file.
17015
17016         Tests for module 'unistr/u8-set'.
17017         * modules/unistr/u8-set-tests: New file.
17018         * tests/unistr/test-u8-set.c: New file.
17019         * tests/unistr/test-set.h: New file.
17020
17021         Tests for module 'unistr/u32-move'.
17022         * modules/unistr/u32-move-tests: New file.
17023         * tests/unistr/test-u32-move.c: New file.
17024
17025         Tests for module 'unistr/u16-move'.
17026         * modules/unistr/u16-move-tests: New file.
17027         * tests/unistr/test-u16-move.c: New file.
17028
17029         Tests for module 'unistr/u8-move'.
17030         * modules/unistr/u8-move-tests: New file.
17031         * tests/unistr/test-u8-move.c: New file.
17032         * tests/unistr/test-move.h: New file.
17033
17034         Tests for module 'unistr/u32-cpy'.
17035         * modules/unistr/u32-cpy-tests: New file.
17036         * tests/unistr/test-u32-cpy.c: New file.
17037
17038         Tests for module 'unistr/u16-cpy'.
17039         * modules/unistr/u16-cpy-tests: New file.
17040         * tests/unistr/test-u16-cpy.c: New file.
17041
17042         Tests for module 'unistr/u8-cpy'.
17043         * modules/unistr/u8-cpy-tests: New file.
17044         * tests/unistr/test-u8-cpy.c: New file.
17045         * tests/unistr/test-cpy.h: New file.
17046
17047 2010-01-09  Bruno Haible  <bruno@clisp.org>
17048
17049         Tests for module 'unistr/u32-uctomb'.
17050         * modules/unistr/u32-uctomb-tests: New file.
17051         * tests/unistr/test-u32-uctomb.c: New file.
17052
17053         Tests for module 'unistr/u16-uctomb'.
17054         * modules/unistr/u16-uctomb-tests: New file.
17055         * tests/unistr/test-u16-uctomb.c: New file.
17056
17057         Tests for module 'unistr/u8-uctomb'.
17058         * modules/unistr/u8-uctomb-tests: New file.
17059         * tests/unistr/test-u8-uctomb.c: New file.
17060
17061         Tests for module 'unistr/u32-mbtoucr'.
17062         * modules/unistr/u32-mbtoucr-tests: New file.
17063         * tests/unistr/test-u32-mbtoucr.c: New file.
17064
17065         Tests for module 'unistr/u16-mbtoucr'.
17066         * modules/unistr/u16-mbtoucr-tests: New file.
17067         * tests/unistr/test-u16-mbtoucr.c: New file.
17068
17069         Tests for module 'unistr/u8-mbtoucr'.
17070         * modules/unistr/u8-mbtoucr-tests: New file.
17071         * tests/unistr/test-u8-mbtoucr.c: New file.
17072
17073         Tests for module 'unistr/u32-mbtouc'.
17074         * modules/unistr/u32-mbtouc-tests: New file.
17075         * tests/unistr/test-u32-mbtouc.c: New file.
17076
17077         Tests for module 'unistr/u16-mbtouc'.
17078         * modules/unistr/u16-mbtouc-tests: New file.
17079         * tests/unistr/test-u16-mbtouc.c: New file.
17080
17081         Tests for module 'unistr/u8-mbtouc'.
17082         * modules/unistr/u8-mbtouc-tests: New file.
17083         * tests/unistr/test-u8-mbtouc.c: New file.
17084
17085         Tests for module 'unistr/u32-mbtouc-unsafe'.
17086         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
17087         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
17088         * tests/unistr/test-u32-mbtouc.h: New file.
17089
17090         Tests for module 'unistr/u16-mbtouc-unsafe'.
17091         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
17092         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
17093         * tests/unistr/test-u16-mbtouc.h: New file.
17094
17095         Tests for module 'unistr/u8-mbtouc-unsafe'.
17096         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
17097         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
17098         * tests/unistr/test-u8-mbtouc.h: New file.
17099
17100         Tests for module 'unistr/u32-mblen'.
17101         * modules/unistr/u32-mblen-tests: New file.
17102         * tests/unistr/test-u32-mblen.c: New file.
17103
17104         Tests for module 'unistr/u16-mblen'.
17105         * modules/unistr/u16-mblen-tests: New file.
17106         * tests/unistr/test-u16-mblen.c: New file.
17107
17108         Tests for module 'unistr/u8-mblen'.
17109         * modules/unistr/u8-mblen-tests: New file.
17110         * tests/unistr/test-u8-mblen.c: New file.
17111
17112         Tests for module 'unistr/u32-to-u16'.
17113         * modules/unistr/u32-to-u16-tests: New file.
17114         * tests/unistr/test-u32-to-u16.c: New file.
17115
17116         Tests for module 'unistr/u32-to-u8'.
17117         * modules/unistr/u32-to-u8-tests: New file.
17118         * tests/unistr/test-u32-to-u8.c: New file.
17119
17120         Tests for module 'unistr/u16-to-u32'.
17121         * modules/unistr/u16-to-u32-tests: New file.
17122         * tests/unistr/test-u16-to-u32.c: New file.
17123
17124         Tests for module 'unistr/u16-to-u8'.
17125         * modules/unistr/u16-to-u8-tests: New file.
17126         * tests/unistr/test-u16-to-u8.c: New file.
17127
17128         Tests for module 'unistr/u8-to-u32'.
17129         * modules/unistr/u8-to-u32-tests: New file.
17130         * tests/unistr/test-u8-to-u32.c: New file.
17131
17132         Tests for module 'unistr/u8-to-u16'.
17133         * modules/unistr/u8-to-u16-tests: New file.
17134         * tests/unistr/test-u8-to-u16.c: New file.
17135
17136         Tests for module 'unistr/u32-check'.
17137         * modules/unistr/u32-check-tests: New file.
17138         * tests/unistr/test-u32-check.c: New file.
17139
17140         Tests for module 'unistr/u16-check'.
17141         * modules/unistr/u16-check-tests: New file.
17142         * tests/unistr/test-u16-check.c: New file.
17143
17144         Tests for module 'unistr/u8-check'.
17145         * modules/unistr/u8-check-tests: New file.
17146         * tests/unistr/test-u8-check.c: New file.
17147
17148         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
17149         (category_equals): New function.
17150         (main): Add more tests.
17151         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
17152
17153         * tests/unictype/test-bidi_byname.c (main): Add more tests.
17154
17155 2010-01-10  Bruno Haible  <bruno@clisp.org>
17156
17157         unistr/u*-strcoll: Try harder to distinguish different strings.
17158         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
17159         compare s1 and s2 to see if they are different.
17160
17161 2010-01-10  Bruno Haible  <bruno@clisp.org>
17162
17163         unistr/u*-stpncpy: Fix the return value.
17164         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
17165         description of the return value consistent with stpncpy in glibc.
17166         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
17167         written non-NUL unit.
17168
17169 2010-01-10  Bruno Haible  <bruno@clisp.org>
17170
17171         unistr/u*-next: Add missing dependencies.
17172         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
17173         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
17174         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
17175
17176 2010-01-10  Bruno Haible  <bruno@clisp.org>
17177
17178         unistr/u8-mbsnlen: Fix return value for incomplete character.
17179         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
17180         u8_mblen.
17181         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
17182         Remove unistr/u8-mblen.
17183         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
17184         u16_mblen.
17185         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
17186         Remove unistr/u16-mblen.
17187
17188 2010-01-10  Bruno Haible  <bruno@clisp.org>
17189
17190         wchar: Fix compilation error when <wchar.h> is used from coreutils.
17191         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
17192         Reported by Brian Gough <bjg@gnu.org> and
17193         Chris Clayton <chris2553@googlemail.com> via
17194         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
17195
17196 2010-01-09  Bruno Haible  <bruno@clisp.org>
17197
17198         unistr/u16-to-u32: Reject invalid input.
17199         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
17200         u16_mbtouc.
17201         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
17202         Remove unistr/u16-mbtouc.
17203
17204         unistr/u16-to-u8: Reject invalid input.
17205         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
17206         u16_mbtouc.
17207         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
17208         Remove unistr/u16-mbtouc.
17209
17210         unistr/u8-to-u32: Reject invalid input.
17211         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
17212         u8_mbtouc.
17213         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
17214         Remove unistr/u8-mbtouc.
17215
17216         unistr/u8-to-u16: Reject invalid input.
17217         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
17218         u8_mbtouc.
17219         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
17220         Remove unistr/u8-mbtouc.
17221
17222 2010-01-09  Bruno Haible  <bruno@clisp.org>
17223
17224         Tests for module 'getlogin'.
17225         * modules/getlogin-tests: New file.
17226         * tests/test-getlogin.c: New file.
17227
17228         New module 'getlogin'.
17229         * lib/unistd.in.h (getlogin): New declaration.
17230         * lib/getlogin.c: New file.
17231         * m4/getlogin.m4: New file.
17232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
17233         HAVE_GETLOGIN.
17234         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
17235         HAVE_GETLOGIN.
17236         * modules/getlogin: New file.
17237         * doc/posix-functions/getlogin.texi: Mention the new module.
17238         Reported by John W. Eaton <jwe@gnu.org>.
17239
17240 2010-01-09  Bruno Haible  <bruno@clisp.org>
17241
17242         getlogin_r: Support for native Windows.
17243         * lib/getlogin_r.c: Include <windows.h>
17244         (getlogin_r): Implement for native Windows.
17245         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
17246         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
17247         via John W. Eaton <jwe@gnu.org>.
17248
17249 2010-01-09  Bruno Haible  <bruno@clisp.org>
17250
17251         getlogin_r: Small fixes.
17252         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
17253         succeeds.
17254         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
17255         before testing whether getlogin_r is declared. No need to set
17256         HAVE_DECL_GETLOGIN_R to 1.
17257         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
17258
17259 2010-01-09  Bruno Haible  <bruno@clisp.org>
17260
17261         * lib/unistd.in.h (getlogin_r): Add comment.
17262
17263 2010-01-09  Bruno Haible  <bruno@clisp.org>
17264
17265         Tests for module 'getlogin_r'.
17266         * modules/getlogin_r-tests: New file.
17267         * tests/test-getlogin_r.c: New file.
17268
17269 2010-01-09  Jim Meyering  <meyering@redhat.com>
17270
17271         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
17272         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
17273         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
17274
17275 2010-01-08  Simon Josefsson  <simon@josefsson.org>
17276
17277         * lib/dup2.c (rpl_dup2): Improve comment.
17278
17279 2010-01-08  Eric Blake  <ebb9@byu.net>
17280
17281         maint.mk: allow packages to add makefile @@ exceptions
17282         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
17283         (sc_makefile_check): Rename...
17284         (sc_makefile_at_at_check): ...to this, and use hook.
17285
17286         dup2: work around mingw bug
17287         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
17288         Reported by Simon Josefsson.
17289
17290 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
17291
17292         glob: Fix C++ compilation.
17293         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
17294         C++.
17295
17296 2010-01-07  Bruno Haible  <bruno@clisp.org>
17297
17298         Fix indentation of wctype.in.h, broken since 2007-01-06.
17299         * lib/wctype.in.h: Fix indentation of preprocessor directives.
17300
17301 2010-01-07  Bruno Haible  <bruno@clisp.org>
17302
17303         mbslen: Avoid collision with system function.
17304         * lib/string.in.h [MirBSD]: Include <wchar.h>.
17305         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
17306         * m4/mbslen.m4: New file.
17307         * modules/mbslen (Files): Add it.
17308         (configure.ac): Invoke gl_MBSLEN.
17309         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
17310         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
17311         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
17312         via Ian Beckwith <ianb@erislabs.net>.
17313
17314 2010-01-07  Bruno Haible  <bruno@clisp.org>
17315
17316         dirent: Document the last fix.
17317         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
17318
17319 2010-01-07  Bruno Haible  <bruno@clisp.org>
17320
17321         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
17322         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
17323         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
17324         va_list are defined.
17325         * doc/posix-headers/stdio.texi: Document the bug of missing types.
17326         Reported by Eric Blake.
17327
17328 2010-01-07  Bruno Haible  <bruno@clisp.org>
17329
17330         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
17331         * modules/xlist (Depends-on): Add 'list',
17332         * modules/xoset (Depends-on): Add 'oset'.
17333         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17334
17335 2010-01-07  Bruno Haible  <bruno@clisp.org>
17336
17337         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
17338         * doc/posix-functions/strncasecmp.texi: Likewise.
17339
17340 2010-01-07  Bruno Haible  <bruno@clisp.org>
17341
17342         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
17343
17344 2010-01-07  John W. Eaton  <jwe@octave.org>
17345
17346         wctype: allow C++ use
17347         * lib/wctype.in.h: Add extern "C" block for C++.
17348
17349 2010-01-06  Eric Blake  <ebb9@byu.net>
17350
17351         maint.mk: detect incorrect GFDL usage
17352         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
17353
17354 2010-01-06  Jim Meyering  <meyering@redhat.com>
17355         and Eric Blake  <ebb9@byu.net>
17356
17357         maint.mk: ignore multi-line copyright in NEWS
17358         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
17359
17360 2010-01-06  Eric Blake  <ebb9@byu.net>
17361
17362         select: add missing dependency
17363         * modules/select-tests (Depends-on): Move sockets dependency...
17364         * modules/select (Depends-on): ...here.
17365         Reported by Ian Beckwith.
17366
17367         doc: regenerate INSTALL
17368         * doc/INSTALL: Reflect recent autoconf update.
17369         * doc/INSTALL.ISO: Likewise.
17370         * doc/INSTALL.UTF-8: Likewise.
17371
17372         pread: fix compilation on glibc
17373         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
17374         Reported by Ralf Wildenhues.
17375
17376         dirent: fix test failure
17377         * lib/dirent.in.h (includes): Guarantee ino_t.
17378         Reported by Ralf Wildenhues.
17379
17380 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
17381
17382         linkat, renameat: avoid bad free
17383         * lib/at-func2.c (at_func2): Fix typo.
17384         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
17385
17386 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17387
17388         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
17389         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
17390         to avoid failure of symlink test later.
17391
17392 2010-01-06  Eric Blake  <ebb9@byu.net>
17393
17394         stdio, unistd: guarantee ssize_t
17395         * lib/unistd.in.h (includes): Ensure that types required by POSIX
17396         2008 are exposed when needed.
17397         * lib/stdio.in.h (includes): Likewise.
17398         Reported by Ralf Wildenhues.
17399
17400 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
17401
17402         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
17403         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
17404         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
17405
17406 2010-01-06  Jim Meyering  <meyering@redhat.com>
17407
17408         readtokens: this module *does* require xalloc.h
17409         It uses only functions that were omitted by the old syntax-check rule.
17410         * lib/readtokens.c: Include "xalloc.h" once again.
17411         * modules/readtokens (Depends-on): Add xalloc.
17412         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
17413
17414 2010-01-05  Eric Blake  <ebb9@byu.net>
17415
17416         maint: support 'make announcement' from a VPATH build
17417         * top/maint.mk (announcement): Look for correct NEWS file.
17418
17419 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
17420
17421         utimens (fdutimens): ignore a negative FD, per contract
17422         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
17423         when we have a valid file descriptor.  Otherwise, using a brand
17424         new glibc (with just-patched futimens that now fails with EBADF)
17425         would cause this function to fail with ENOSYS.
17426         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
17427         See also http://bugzilla.redhat.com/552320.
17428
17429 2010-01-05  Eric Blake  <ebb9@byu.net>
17430
17431         strcase: document what it provides
17432         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
17433         gnulib module.
17434         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
17435         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
17436
17437 2010-01-05  Jim Meyering  <meyering@redhat.com>
17438
17439         maint: remove useless inclusions of "xalloc.h"
17440         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
17441         * lib/readtokens.c: Likewise.
17442         * lib/same.c: Likewise.
17443         * modules/getloadavg (Depends-on): Remove xalloc.
17444         * modules/readtokens: Likewise.
17445         * modules/same: Likewise.
17446
17447         maint.mk: include 4 more function names in alloca.h-checking regexp
17448         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
17449         regexp.  Before, we would give a false-positive (saying alloca.h
17450         is included unnecessarily) when the only uses involved omitted symbols.
17451
17452         xalloc.h: use consistent formatting
17453         * lib/xalloc.h: Move declarations to start in the first column.
17454
17455 2010-01-05  Eric Blake  <ebb9@byu.net>
17456
17457         mkdir: avoid xalloc
17458         * lib/mkdir.c (includes): Drop unused header.
17459         Reported by John W. Eaton.
17460
17461 2010-01-04  Jim Meyering  <meyering@redhat.com>
17462
17463         nl_langinfo: avoid configure-time syntax error
17464         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
17465         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
17466         the empty string.  Don't let that provoke a shell syntax error.
17467
17468         regcomp, regexec, fnmatch: avoid array bounds read error
17469         * lib/regcomp.c (build_equiv_class): From glibc:
17470         Use only the low 24 bits of a findidx return value as an index
17471         into the weights array.  Patch by Ulrich Drepper:
17472         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
17473         * lib/regexec.c (check_node_accept_bytes): Likewise.
17474         * lib/fnmatch_loop.c (FCT): Likewise.
17475
17476         regcomp: skip collseq lookup when there are no rules
17477         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
17478         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
17479
17480         regcomp: recognize ill-formed { } expressions
17481         * lib/regcomp.c (parse_dup_op): From glibc:
17482         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
17483
17484         regcomp: fix typo in comment
17485         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
17486         s/satisfy/satisfies/.
17487
17488         regcomp: sync from glibc: remove dead store
17489         * lib/regcomp.c (duplicate_node_closure): Remove useless
17490         search_duplicated_node call and dead store.
17491
17492         regcomp: sync from glibc; always use nl_langinfo
17493         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
17494         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
17495         * modules/regex (Depends-on): Add nl_langinfo.
17496
17497 2010-01-04  Eric Blake  <ebb9@byu.net>
17498
17499         fdopendir: fix configure test
17500         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
17501
17502 2010-01-01  Bruno Haible  <bruno@clisp.org>
17503
17504         wchar: Remove unused configure check.
17505         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
17506
17507 2010-01-01  Eric Blake  <ebb9@byu.net>
17508
17509         headers: make check of system header explicit
17510         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
17511         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
17512         ourselves.
17513         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17514         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17515         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
17516         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
17517         internals.
17518         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
17519         missing.
17520         Suggested by Bruno Haible.
17521
17522 2010-01-01  Jim Meyering  <meyering@redhat.com>
17523
17524         ChangeLog: tweak to eliminate unnecessary copyright line
17525         * ChangeLog: Remove a copyright line that was mistakenly updated
17526         by today's update-copyright run.  Reported by Eric Blake.
17527
17528         test-update-copyright: don't let envvar setting cause test failure
17529         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
17530
17531 2010-01-01  Bruno Haible  <bruno@clisp.org>
17532
17533         localename: Avoid gcc warning.
17534         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
17535         function if it is not used.
17536
17537 2010-01-01  Jim Meyering  <meyering@redhat.com>
17538
17539         update nearly all FSF copyright year lists to include 2010
17540         Use the same procedure as for 2009, outlined in
17541         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
17542
17543         version-etc: set COPYRIGHT_YEAR to 2010
17544         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
17545
17546 2009-12-31  Eric Blake  <ebb9@byu.net>
17547
17548         doc: correct availability of cygwin 1.5.x getopt
17549         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
17550         variables.
17551         * doc/posix-functions/opterr.texi (opterr): Likewise.
17552         * doc/posix-functions/optind.texi (optind): Likewise.
17553         * doc/posix-functions/optopt.texi (optopt): Likewise.
17554         * doc/posix-functions/tzname.texi (tzname): Likewise.
17555
17556         openat: update maintainer
17557         * modules/openat (Maintainer): Add myself.
17558
17559         utimens: avoid shadowing warning
17560         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
17561         buffers into one, to avoid shadowing, as well as avoiding a
17562         redundant stat.
17563         Reported by Jim Meyering.
17564
17565         test-dup2: avoid compiler warning
17566         * tests/test-dup2.c (is_inheritable): Only define if used.
17567
17568 2010-01-01  Bruno Haible  <bruno@clisp.org>
17569
17570         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
17571         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
17572         defined, use wctomb instead of wcrtomb.
17573
17574 2010-01-01  Bruno Haible  <bruno@clisp.org>
17575
17576         iconv: Reject native Solaris iconv.
17577         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
17578         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
17579
17580 2009-12-31  Bruno Haible  <bruno@clisp.org>
17581
17582         * tests/test-signal.c (main): Remove test of 'SIG'.
17583
17584 2009-12-31  Bruno Haible  <bruno@clisp.org>
17585
17586         spawn: Fix incomplete fix.
17587         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
17588         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
17589         warnings for GNULIB_POSIXCHECK again.
17590         Reported by Eric Blake.
17591
17592 2009-12-31  Bruno Haible  <bruno@clisp.org>
17593
17594         Avoid namespace pollution on glibc systems.
17595         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
17596         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
17597         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
17598         glibc systems.
17599
17600 2009-12-31  Bruno Haible  <bruno@clisp.org>
17601
17602         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
17603         (gl_REPLACE_WCHAR_H): Turn into a no-op.
17604         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
17605         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17606         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17607         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17608         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17609
17610 2009-12-31  Bruno Haible  <bruno@clisp.org>
17611
17612         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17613         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
17614         afterwards.
17615
17616 2009-12-31  Bruno Haible  <bruno@clisp.org>
17617
17618         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
17619         SYS_UTSNAME_H.
17620
17621 2009-12-31  Bruno Haible  <bruno@clisp.org>
17622
17623         spawn: Fix misapplied patch.
17624         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
17625         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
17626         warnings for GNULIB_POSIXCHECK.
17627
17628 2009-12-31  Bruno Haible  <bruno@clisp.org>
17629
17630         times: Update after sys_times changed.
17631         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
17632         * modules/times (Files): Add it.
17633         (configure.ac): Invoke gl_FUNC_TIMES.
17634
17635 2009-12-31  Bruno Haible  <bruno@clisp.org>
17636
17637         Use AC_C_INLINE where necessary.
17638         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
17639         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17640         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
17641         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
17642         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17643         * m4/mbiter.m4 (gl_MBITER): Likewise.
17644         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17645         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17646         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
17647         * modules/u64 (configure.ac): Likewise.
17648
17649 2009-12-31  Bruno Haible  <bruno@clisp.org>
17650
17651         Use AC_C_INLINE instead of module 'inline' where possible.
17652         * modules/inline (Description): Clarify purpose.
17653         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
17654         * modules/count-one-bits (Depends-on): Remove inline.
17655         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
17656         * modules/openat (Depends-on): Remove inline.
17657         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
17658         instead of depending on module 'inline'.
17659         * modules/filevercmp (Depends-on, configure.ac): Likewise.
17660         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
17661         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
17662         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
17663         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
17664         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
17665         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
17666         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
17667         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
17668         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
17669         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
17670         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
17671         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
17672         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
17673         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
17674         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
17675         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
17676         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
17677         Likewise.
17678         * modules/unictype/property-ascii-hex-digit (Depends-on,
17679         configure.ac): Likewise.
17680         * modules/unictype/property-bidi-arabic-digit (Depends-on,
17681         configure.ac): Likewise.
17682         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
17683         configure.ac): Likewise.
17684         * modules/unictype/property-bidi-block-separator (Depends-on,
17685         configure.ac): Likewise.
17686         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
17687         configure.ac): Likewise.
17688         * modules/unictype/property-bidi-common-separator (Depends-on,
17689         configure.ac): Likewise.
17690         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
17691         Likewise.
17692         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
17693         configure.ac): Likewise.
17694         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
17695         configure.ac): Likewise.
17696         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
17697         configure.ac): Likewise.
17698         * modules/unictype/property-bidi-european-digit (Depends-on,
17699         configure.ac): Likewise.
17700         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
17701         configure.ac): Likewise.
17702         * modules/unictype/property-bidi-left-to-right (Depends-on,
17703         configure.ac): Likewise.
17704         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
17705         configure.ac): Likewise.
17706         * modules/unictype/property-bidi-other-neutral (Depends-on,
17707         configure.ac): Likewise.
17708         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
17709         Likewise.
17710         * modules/unictype/property-bidi-segment-separator (Depends-on,
17711         configure.ac): Likewise.
17712         * modules/unictype/property-bidi-whitespace (Depends-on,
17713         configure.ac): Likewise.
17714         * modules/unictype/property-combining (Depends-on, configure.ac):
17715         Likewise.
17716         * modules/unictype/property-composite (Depends-on, configure.ac):
17717         Likewise.
17718         * modules/unictype/property-currency-symbol (Depends-on,
17719         configure.ac): Likewise.
17720         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
17721         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
17722         Likewise.
17723         * modules/unictype/property-default-ignorable-code-point (Depends-on,
17724         configure.ac): Likewise.
17725         * modules/unictype/property-deprecated (Depends-on, configure.ac):
17726         Likewise.
17727         * modules/unictype/property-diacritic (Depends-on, configure.ac):
17728         Likewise.
17729         * modules/unictype/property-extender (Depends-on, configure.ac):
17730         Likewise.
17731         * modules/unictype/property-format-control (Depends-on, configure.ac):
17732         Likewise.
17733         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
17734         Likewise.
17735         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
17736         Likewise.
17737         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
17738         Likewise.
17739         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
17740         Likewise.
17741         * modules/unictype/property-hyphen (Depends-on, configure.ac):
17742         Likewise.
17743         * modules/unictype/property-id-continue (Depends-on, configure.ac):
17744         Likewise.
17745         * modules/unictype/property-id-start (Depends-on, configure.ac):
17746         Likewise.
17747         * modules/unictype/property-ideographic (Depends-on, configure.ac):
17748         Likewise.
17749         * modules/unictype/property-ids-binary-operator (Depends-on,
17750         configure.ac): Likewise.
17751         * modules/unictype/property-ids-trinary-operator (Depends-on,
17752         configure.ac): Likewise.
17753         * modules/unictype/property-ignorable-control (Depends-on,
17754         configure.ac): Likewise.
17755         * modules/unictype/property-iso-control (Depends-on, configure.ac):
17756         Likewise.
17757         * modules/unictype/property-join-control (Depends-on, configure.ac):
17758         Likewise.
17759         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
17760         Likewise.
17761         * modules/unictype/property-line-separator (Depends-on, configure.ac):
17762         Likewise.
17763         * modules/unictype/property-logical-order-exception (Depends-on,
17764         configure.ac): Likewise.
17765         * modules/unictype/property-lowercase (Depends-on, configure.ac):
17766         Likewise.
17767         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
17768         * modules/unictype/property-non-break (Depends-on, configure.ac):
17769         Likewise.
17770         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
17771         Likewise.
17772         * modules/unictype/property-numeric (Depends-on, configure.ac):
17773         Likewise.
17774         * modules/unictype/property-other-alphabetic (Depends-on,
17775         configure.ac): Likewise.
17776         * modules/unictype/property-other-default-ignorable-code-point
17777         (Depends-on, configure.ac): Likewise.
17778         * modules/unictype/property-other-grapheme-extend (Depends-on,
17779         configure.ac): Likewise.
17780         * modules/unictype/property-other-id-continue (Depends-on,
17781         configure.ac): Likewise.
17782         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
17783         Likewise.
17784         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
17785         Likewise.
17786         * modules/unictype/property-other-math (Depends-on, configure.ac):
17787         Likewise.
17788         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
17789         Likewise.
17790         * modules/unictype/property-paired-punctuation (Depends-on,
17791         configure.ac): Likewise.
17792         * modules/unictype/property-paragraph-separator (Depends-on,
17793         configure.ac): Likewise.
17794         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
17795         Likewise.
17796         * modules/unictype/property-pattern-white-space (Depends-on,
17797         configure.ac): Likewise.
17798         * modules/unictype/property-private-use (Depends-on, configure.ac):
17799         Likewise.
17800         * modules/unictype/property-punctuation (Depends-on, configure.ac):
17801         Likewise.
17802         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
17803         Likewise.
17804         * modules/unictype/property-radical (Depends-on, configure.ac):
17805         Likewise.
17806         * modules/unictype/property-sentence-terminal (Depends-on,
17807         configure.ac): Likewise.
17808         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
17809         Likewise.
17810         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
17811         * modules/unictype/property-terminal-punctuation (Depends-on,
17812         configure.ac): Likewise.
17813         * modules/unictype/property-titlecase (Depends-on, configure.ac):
17814         Likewise.
17815         * modules/unictype/property-unassigned-code-value (Depends-on,
17816         configure.ac): Likewise.
17817         * modules/unictype/property-unified-ideograph (Depends-on,
17818         configure.ac): Likewise.
17819         * modules/unictype/property-uppercase (Depends-on, configure.ac):
17820         Likewise.
17821         * modules/unictype/property-variation-selector (Depends-on,
17822         configure.ac): Likewise.
17823         * modules/unictype/property-white-space (Depends-on, configure.ac):
17824         Likewise.
17825         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
17826         Likewise.
17827         * modules/unictype/property-xid-start (Depends-on, configure.ac):
17828         Likewise.
17829         * modules/unictype/property-zero-width (Depends-on, configure.ac):
17830         Likewise.
17831         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
17832         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
17833         Likewise.
17834
17835 2009-12-31  Bruno Haible  <bruno@clisp.org>
17836
17837         Remove unnecessary AC_C_INLINE invocation.
17838         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
17839         since 2009-08-21.
17840
17841 2009-12-31  Jim Meyering  <meyering@redhat.com>
17842
17843         maint.mk: don't require explicit gpg_key_ID in cfg.mk
17844         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
17845         With this change, we can all remove the gpg_key_ID = ... definition
17846         from our respective cfg.mk files.
17847
17848         maint.mk: create announcement template in ~/, not in /tmp
17849         * top/maint.mk (emit_upload_commands): Adjust.
17850         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
17851         Remove temporary file, .ci-msg.
17852
17853 2009-12-31  Eric Blake  <ebb9@byu.net>
17854
17855         link-warning: always build headers with link warnings
17856         * modules/arpa_inet (Makefile.am): Always build replacement
17857         header.
17858         * modules/ctype (Makefile.am): Likewise.
17859         * modules/dirent (Makefile.am): Likewise.
17860         * modules/inttypes (Makefile.am): Likewise.
17861         * modules/langinfo (Makefile.am): Likewise.
17862         * modules/locale (Makefile.am): Likewise.
17863         * modules/spawn (Makefile.am): Likewise.
17864         * modules/sys_file (Makefile.am): Likewise.
17865         * modules/sys_ioctl (Makefile.am): Likewise.
17866         * modules/sys_select (Makefile.am): Likewise.
17867         * modules/sys_socket (Makefile.am): Likewise.
17868         * modules/sys_times (Makefile.am): Likewise.
17869         * modules/sys_utsname (Makefile.am): Likewise.
17870         * modules/sys_wait (Makefile.am): Likewise.
17871         * modules/wchar (Makefile.am): Likewise.
17872         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
17873         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
17874         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
17875         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
17876         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
17877         Likewise.
17878         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17879         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17880         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
17881         Likewise.
17882         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
17883         Likewise.
17884         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17885         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
17886         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
17887         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17888         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17889         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17890         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17891         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
17892         (gl_WCHAR_H_DEFAULTS): Likewise.
17893
17894 2009-12-31  Eric Blake  <ebb9@byu.net>
17895
17896         signal, spawn: use link warnings
17897         * lib/signal.in.h (sigset_t): Make unconditional.
17898         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
17899         (sigpending, sigprocmask, sigaction): Add link warnings.
17900         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
17901         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
17902         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
17903         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
17904         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
17905         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
17906         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
17907         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
17908         (posix_spawn_file_actions_destroy)
17909         (posix_spawn_file_actions_addopen)
17910         (posix_spawn_file_actions_addclose)
17911         (posix_spawn_file_actions_adddup2): Likewise.
17912         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
17913         * tests/test-signal.c (main): Enhance test.
17914
17915         spawn: improve wrapper support
17916         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
17917         (gl_SPAWN_H_DEFAULTS): New defaults.
17918         * modules/spawn (Makefile.am): Substitute them.
17919         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
17920         Only declare if missing or broken.
17921
17922         sys_times, sys_utsname: use include_next
17923         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
17924         header.
17925         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
17926         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17927         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17928         * modules/sys_times (Depends-on): Add include_next.
17929         (Makefile.am): Substitute additional values.
17930         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17931         * lib/sys_times.in.h (includes): Include native header, if
17932         available.
17933         * lib/sys_utsname.in.h (includes): Likewise.
17934         * tests/test-sys_times.c (main): Enhance test.
17935
17936         fdutimensat: revert prior patch
17937         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
17938         utimens.h.
17939         Reported by Bruno Haible.
17940
17941 2009-12-30  Eric Blake  <ebb9@byu.net>
17942
17943         sys_wait: drop link-warning dependency
17944         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
17945         link-warning efforts.
17946         * lib/sys_wait.in.h: Likewise.
17947
17948         fdutimensat: remove bogus dependency
17949         * modules/fdutimensat (Depends-on): Drop inline.
17950
17951         unistd: fix typo
17952         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
17953
17954 2009-12-30  Bruno Haible  <bruno@clisp.org>
17955
17956         Fix compilation error with Solaris cc.
17957         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
17958         * lib/unicase/u16-is-invariant.c: Likewise.
17959         * lib/unicase/u32-is-invariant.c: Likewise.
17960         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
17961
17962 2009-12-30  Bruno Haible  <bruno@clisp.org>
17963
17964         Fix test crash.
17965         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
17966         locales.
17967         Reported by Simon Josefsson <simon@josefsson.org>.
17968
17969 2009-12-30  Bruno Haible  <bruno@clisp.org>
17970
17971         Fix compilation error on most platforms.
17972         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
17973         Reported by Simon Josefsson <simon@josefsson.org>
17974         and Nelson H. F. Beebe <beebe@math.utah.edu>.
17975
17976 2009-12-30  Eric Blake  <ebb9@byu.net>
17977
17978         futimens, utimensat: work around ntfs-3g bug
17979         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
17980         a ctime bug is present, and expand workaround to cover ntfs-3g.
17981         * lib/utimens.c (fdutimens, lutimens): Likewise.
17982         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
17983         (validate_timespec): Adjust return value.
17984         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
17985         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17986         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
17987
17988 2009-12-29  Eric Blake  <ebb9@byu.net>
17989
17990         link-warning: make usage consistent
17991         * modules/ctype (Depends-on): Add link-warning.
17992         (Makefile.am): Update rules accordingly.
17993         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17994         * modules/locale (Depends-on, Makefile.am): Likewise.
17995         * modules/sys_file (Makefile.am): Likewise.
17996         * modules/getopt-posix (Makefile.am): Delete unused link warning
17997         efforts.
17998         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
17999         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
18000         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
18001         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
18002
18003         stdio: remove unused variables
18004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
18005         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
18006         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18007
18008         tests: test more substitute headers
18009         * modules/ctype-tests: New file.
18010         * modules/dirent-tests: Likewise.
18011         * modules/spawn-tests: Likewise.
18012         * modules/sys_file-tests: Likewise.
18013         * modules/sys_ioctl-tests: Likewise.
18014         * modules/sys_wait-tests: Likewise.
18015         * tests/test-ctype.c: Likewise.
18016         * tests/test-dirent.c: Likewise.
18017         * tests/test-spawn.c: Likewise.
18018         * tests/test-sys_file.c: Likewise.
18019         * tests/test-sys_ioctl.c: Likewise.
18020         * tests/test-sys_wait.c: Likewise.
18021         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
18022         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
18023         whether or not flock is in use.
18024
18025         tests: remove License section from module
18026         * modules/arpa_inet-tests: Remove unneeded section.
18027         * modules/byteswap-tests: Likewise.
18028         * modules/ceilf-tests: Likewise.
18029         * modules/ceill-tests: Likewise.
18030         * modules/crypto/des-tests: Likewise.
18031         * modules/crypto/gc-arcfour-tests: Likewise.
18032         * modules/crypto/gc-arctwo-tests: Likewise.
18033         * modules/crypto/gc-des-tests: Likewise.
18034         * modules/crypto/gc-hmac-md5-tests: Likewise.
18035         * modules/crypto/gc-hmac-sha1-tests: Likewise.
18036         * modules/crypto/gc-md2-tests: Likewise.
18037         * modules/crypto/gc-md4-tests: Likewise.
18038         * modules/crypto/gc-md5-tests: Likewise.
18039         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
18040         * modules/crypto/gc-rijndael-tests: Likewise.
18041         * modules/crypto/gc-sha1-tests: Likewise.
18042         * modules/crypto/gc-tests: Likewise.
18043         * modules/crypto/md2-tests: Likewise.
18044         * modules/crypto/md4-tests: Likewise.
18045         * modules/fcntl-h-tests: Likewise.
18046         * modules/floorf-tests: Likewise.
18047         * modules/floorl-tests: Likewise.
18048         * modules/frexp-nolibm-tests: Likewise.
18049         * modules/frexp-tests: Likewise.
18050         * modules/frexpl-nolibm-tests: Likewise.
18051         * modules/frexpl-tests: Likewise.
18052         * modules/getaddrinfo-tests: Likewise.
18053         * modules/inttypes-tests: Likewise.
18054         * modules/isfinite-tests: Likewise.
18055         * modules/isinf-tests: Likewise.
18056         * modules/ldexpl-tests: Likewise.
18057         * modules/locale-tests: Likewise.
18058         * modules/math-tests: Likewise.
18059         * modules/netdb-tests: Likewise.
18060         * modules/netinet_in-tests: Likewise.
18061         * modules/printf-frexp-tests: Likewise.
18062         * modules/printf-frexpl-tests: Likewise.
18063         * modules/priv-set-tests: Likewise.
18064         * modules/random_r-tests: Likewise.
18065         * modules/round-tests: Likewise.
18066         * modules/roundf-tests: Likewise.
18067         * modules/roundl-tests: Likewise.
18068         * modules/search-tests: Likewise.
18069         * modules/select-tests: Likewise.
18070         * modules/signal-tests: Likewise.
18071         * modules/stdbool-tests: Likewise.
18072         * modules/stddef-tests: Likewise.
18073         * modules/stdint-tests: Likewise.
18074         * modules/stdio-tests: Likewise.
18075         * modules/stdlib-tests: Likewise.
18076         * modules/string-tests: Likewise.
18077         * modules/strings-tests: Likewise.
18078         * modules/sys_select-tests: Likewise.
18079         * modules/sys_socket-tests: Likewise.
18080         * modules/sys_stat-tests: Likewise.
18081         * modules/sys_time-tests: Likewise.
18082         * modules/sys_utsname-tests: Likewise.
18083         * modules/sysexits-tests: Likewise.
18084         * modules/time-tests: Likewise.
18085         * modules/trunc-tests: Likewise.
18086         * modules/truncf-tests: Likewise.
18087         * modules/truncl-tests: Likewise.
18088         * modules/tsearch-tests: Likewise.
18089         * modules/unistd-tests: Likewise.
18090         * modules/wchar-tests: Likewise.
18091         * modules/wctype-tests: Likewise.
18092
18093         tests: fix license on several tests
18094         * tests/test-des.c: Update to GPLv3+.
18095         * tests/test-flock.c: Likewise.
18096         * tests/test-fsync.c: Likewise.
18097         * tests/test-futimens.h: Likewise.
18098         * tests/test-gc-arcfour.c: Likewise.
18099         * tests/test-gc-arctwo.c: Likewise.
18100         * tests/test-gc-des.c: Likewise.
18101         * tests/test-gc-hmac-md5.c: Likewise.
18102         * tests/test-gc-hmac-sha1.c: Likewise.
18103         * tests/test-gc-md2.c: Likewise.
18104         * tests/test-gc-md4.c: Likewise.
18105         * tests/test-gc-md5.c: Likewise.
18106         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18107         * tests/test-gc-rijndael.c: Likewise.
18108         * tests/test-gc-sha1.c: Likewise.
18109         * tests/test-gc.c: Likewise.
18110         * tests/test-getcwd.c: Likewise.
18111         * tests/test-link.c: Likewise.
18112         * tests/test-link.h: Likewise.
18113         * tests/test-lutimens.h: Likewise.
18114         * tests/test-md2.c: Likewise.
18115         * tests/test-md4.c: Likewise.
18116         * tests/test-mkdir.h: Likewise.
18117         * tests/test-rename.c: Likewise.
18118         * tests/test-rename.h: Likewise.
18119         * tests/test-safe-alloc.c: Likewise.
18120         * tests/test-utimens-common.h: Likewise.
18121         * tests/test-utimens.h: Likewise.
18122
18123         maint: sync license texts
18124         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
18125         * doc/gpl-3.0.texi: Revert copyright year update.
18126         * doc/lgpl-3.0.texi: Likewise.
18127
18128 2009-12-29  Jim Meyering  <meyering@redhat.com>
18129
18130         update nearly all FSF copyright year lists to include 2009
18131         The files named by the following are exempted:
18132             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
18133               test -f "$dst" && { echo "$dst"; continue; }
18134               test -d "$dst" || continue
18135               echo "$dst"/$(basename "$src")
18136             done > exempt
18137             git ls-files tests/unictype >> exempt
18138         In the remaining files, convert to all-interval notation if
18139         - there is already at least one year interval like 2000-2003
18140         - the file is maintained by me
18141         - the file is in lib/uni*/, where that style already prevails
18142         Otherwise, use update-copyright's default.
18143
18144 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18145         and Eric Blake  <ebb9@byu.net>
18146
18147         tests: don't require debug system() to pass
18148         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
18149         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18150         * tests/test-unlink.h (test_unlink_func): Likewise.
18151         * tests/test-fstatat.c (main): ...into callers.
18152         * tests/test-lstat.c (main): Likewise.
18153         * tests/test-rmdir.c (main): Likewise.
18154         * tests/test-unlink.c (main): Likewise.
18155         * tests/test-unlinkat.c (main): Likewise.
18156         * tests/test-areadlink-with-size.c (main): Don't require a
18157         debug-only system call to pass, aiding cross-testing to mingw.
18158         * tests/test-areadlink.c (main): Likewise.
18159         * tests/test-areadlinkat-with-size.c (main): Likewise.
18160         * tests/test-areadlinkat.c (main): Likewise.
18161         * tests/test-canonicalize-lgpl.c (main): Likewise.
18162         * tests/test-canonicalize.c (main): Likewise.
18163         * tests/test-chown.c (main): Likewise.
18164         * tests/test-fchownat.c (main): Likewise.
18165         * tests/test-lchown.c (main): Likewise.
18166         * tests/test-fdutimensat.c (main): Likewise.
18167         * tests/test-futimens.c (main): Likewise.
18168         * tests/test-link.c (main): Likewise.
18169         * tests/test-linkat.c (main): Likewise.
18170         * tests/test-mkdir.c (main): Likewise.
18171         * tests/test-mkdirat.c (main): Likewise.
18172         * tests/test-mkfifo.c (main): Likewise.
18173         * tests/test-mkfifoat.c (main): Likewise.
18174         * tests/test-mknod.c (main): Likewise.
18175         * tests/test-readlink.c (main): Likewise.
18176         * tests/test-remove.c (main): Likewise.
18177         * tests/test-rename.c (main): Likewise.
18178         * tests/test-renameat.c (main): Likewise.
18179         * tests/test-symlink.c (main): Likewise.
18180         * tests/test-symlinkat.c (main): Likewise.
18181         * tests/test-utimens.c (main): Likewise.
18182         * tests/test-utimensat.c (main): Likewise.
18183
18184 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18185
18186         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
18187         on $(UNUSED_PARAMETER_H) to avoid build failure.
18188
18189 2009-12-28  Jim Meyering  <meyering@redhat.com>
18190
18191         update-copyright: you may specify a max. line length other than 72
18192         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18193
18194         maint: use consistent FSF copyright line syntax
18195         * lib/posixtm.c: Add missing comma in FSF copyright line.
18196         * lib/posixtm.h: Likewise.
18197         * lib/getugroups.c: Add missing ", Inc.".
18198
18199         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
18200         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
18201         FSF copyright line.  Remove trailing blanks.
18202
18203 2009-12-28  Eric Blake  <ebb9@byu.net>
18204
18205         test-dup2: reduce dependencies
18206         * modules/cloexec (Configure.ac): Set witness.
18207         * modules/dup2-tests (Depends-on): Drop cloexec.
18208         * tests/test-dup2.c (main): Skip portion of test if cloexec module
18209         not present.
18210         Suggested by Bruno Haible.
18211
18212 2009-12-26  Bruno Haible  <bruno@clisp.org>
18213
18214         Remove an unneeded dependency.
18215         * modules/fseterr (Depends-on): Remove dup2.
18216
18217 2009-12-26  Eric Blake  <ebb9@byu.net>
18218
18219         tests: use macros.h in more places
18220         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
18221         (ASSERT_STREAM): Provide default of stderr.
18222         * tests/test-dirent-safer.c: Include macros.h, using alternate
18223         stream for assertions.
18224         * tests/test-dup-safer.c: Likewise.
18225         * tests/test-freopen-safer.c: Likewise.
18226         * tests/test-getopt.c: Likewise.
18227         * tests/test-openat-safer.c: Likewise.
18228         * tests/test-pipe.c: Likewise.
18229         * tests/test-popen-safer.c: Likewise.
18230         * modules/dirent-safer-tests (Files): Include macros.h.
18231         * modules/unistd-safer-tests (Files): Likewise.
18232         * modules/freopen-safer-tests (Files): Likewise.
18233         * modules/getopt-posix-tests (Files): Likewise.
18234         * modules/openat-safer-tests (Files): Likewise.
18235         * modules/pipe-tests (Files): Likewise.
18236
18237 2009-12-26  Bruno Haible  <bruno@clisp.org>
18238
18239         javacomp: Portability fix.
18240         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
18241         that it also works on Solaris.
18242
18243 2009-12-26  Bruno Haible  <bruno@clisp.org>
18244
18245         localename: Fix storage allocation of gl_locale_name_thread's result.
18246         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
18247         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
18248         all platforms that have 'uselocale'.
18249         (gl_locale_name_thread_unsafe): New function, extracted from
18250         gl_locale_name_thread.
18251         (gl_locale_name_thread): Call struniq on all platforms that have
18252         'uselocale'.
18253         * tests/test-localename.c (test_locale_name_thread): Check that the
18254         resulting strings are permanently allocated.
18255         * modules/localename-tests (Depends-on): Add strdup.
18256
18257 2009-12-26  Bruno Haible  <bruno@clisp.org>
18258
18259         * tests/test-localename.c (categories): Fill in the strings.
18260
18261 2009-12-26  Jim Meyering  <meyering@redhat.com>
18262
18263         isdir: complete the removal of m4/isdir.m4
18264         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
18265
18266         isdir: clean up, since at least grep still uses it
18267         * lib/isdir.c: Include "isdir.h".
18268         (S_ISDIR): Remove now-unneeded definition.
18269         * modules/isdir (Files): Add lib/isdir.h.
18270         * lib/isdir.h: New file, with declaration.
18271         * m4/isdir.m4: Remove file -- unneeded.
18272
18273 2009-12-25  Bruno Haible  <bruno@clisp.org>
18274
18275         selinux-h: Make generated .h files standalone.
18276         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
18277         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
18278         * lib/se-selinux.in.h: Likewise.
18279         * modules/selinux-h (Depends-on): Add unused-parameter.
18280         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
18281         selinux/selinux.h and selinux/context.h.
18282         Suggested by Eric Blake.
18283
18284 2009-12-25  Bruno Haible  <bruno@clisp.org>
18285
18286         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
18287         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
18288         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
18289         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
18290         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
18291
18292 2009-12-24  Bruno Haible  <bruno@clisp.org>
18293
18294         openat: Fix warning.
18295         * lib/openat-proc.c: Include <unistd.h>.
18296
18297 2009-12-24  Bruno Haible  <bruno@clisp.org>
18298
18299         New module 'unused-parameter'.
18300         * build-aux/unused-parameter.h: New file, extracted from earlier
18301         gnulib-common.m4.
18302         * modules/unused-parameter: New file.
18303         * lib/unistr.h: Include unused-parameter.h.
18304         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
18305         _GL_UNUSED.
18306         * modules/unistr/base (Depends-on): Add unused-parameter.
18307
18308 2009-12-24  Bruno Haible  <bruno@clisp.org>
18309
18310         Add missing dependencies to 'extensions' module.
18311         * m4/extensions.m4: Add comment.
18312         * modules/accept4 (Depends-on): Add extensions.
18313         * modules/dup3 (Depends-on): Likewise.
18314         * modules/fcntl (Depends-on): Likewise.
18315         * modules/futimens (Depends-on): Likewise.
18316         * modules/mknod (Depends-on): Likewise.
18317         * modules/pipe2 (Depends-on): Likewise.
18318         * modules/stat-time (Depends-on): Likewise.
18319         * modules/strcasestr-simple (Depends-on): Likewise.
18320         * modules/strsignal (Depends-on): Likewise.
18321         * modules/utimensat (Depends-on): Likewise.
18322         * modules/localcharset (Depends-on): Likewise. Needed because of
18323         gl_FCNTL_O_FLAGS.
18324         * modules/wcrtomb (Depends-on): Likewise. Needed because of
18325         AC_TYPE_MBSTATE_T.
18326         * modules/wcsnrtombs (Depends-on): Likewise.
18327         * modules/wcsrtombs (Depends-on): Likewise.
18328
18329 2009-12-24  Bruno Haible  <bruno@clisp.org>
18330
18331         binary-io: Avoid gcc warning due to SET_BINARY.
18332         * lib/binary-io.h (SET_BINARY): Cast the result to void.
18333         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
18334
18335 2009-12-24  Bruno Haible  <bruno@clisp.org>
18336
18337         Avoid future namespace pollution on glibc systems.
18338         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
18339         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
18340         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
18341         glibc systems.
18342
18343 2009-12-24  Bruno Haible  <bruno@clisp.org>
18344
18345         Refactor common macros used in tests.
18346         * tests/macros.h: New file.
18347         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
18348         and/or <stdlib.h>, if appropriate.
18349         (ASSERT, SIZEOF): Remove macros.
18350         * tests/test-areadlink-with-size.c: Likewise.
18351         * tests/test-areadlinkat.c: Likewise.
18352         * tests/test-areadlinkat-with-size.c: Likewise.
18353         * tests/test-argmatch.c: Likewise.
18354         * tests/test-argv-iter.c: Likewise.
18355         * tests/test-array-mergesort.c: Likewise.
18356         * tests/test-array_list.c: Likewise.
18357         * tests/test-array_oset.c: Likewise.
18358         * tests/test-avltree_list.c: Likewise.
18359         * tests/test-avltree_oset.c: Likewise.
18360         * tests/test-avltreehash_list.c: Likewise.
18361         * tests/test-base64.c: Likewise.
18362         * tests/test-binary-io.c: Likewise.
18363         * tests/test-bitrotate.c: Likewise.
18364         * tests/test-btowc.c: Likewise.
18365         * tests/test-byteswap.c: Likewise.
18366         * tests/test-c-ctype.c: Likewise.
18367         * tests/test-c-stack.c: Likewise.
18368         * tests/test-c-strcasecmp.c: Likewise.
18369         * tests/test-c-strcasestr.c: Likewise.
18370         * tests/test-c-strncasecmp.c: Likewise.
18371         * tests/test-c-strstr.c: Likewise.
18372         * tests/test-canonicalize-lgpl.c: Likewise.
18373         * tests/test-canonicalize.c: Likewise.
18374         * tests/test-carray_list.c: Likewise.
18375         * tests/test-ceilf1.c: Likewise.
18376         * tests/test-ceilf2.c: Likewise.
18377         * tests/test-ceill.c: Likewise.
18378         * tests/test-chown.c: Likewise.
18379         * tests/test-cloexec.c: Likewise.
18380         * tests/test-copy-acl.c: Likewise.
18381         * tests/test-copy-file.c: Likewise.
18382         * tests/test-count-one-bits.c: Likewise.
18383         * tests/test-dprintf-posix.c: Likewise.
18384         * tests/test-dup2.c: Likewise.
18385         * tests/test-dup3.c: Likewise.
18386         * tests/test-duplocale.c: Likewise.
18387         * tests/test-fbufmode.c: Likewise.
18388         * tests/test-fchdir.c: Likewise.
18389         * tests/test-fchownat.c: Likewise.
18390         * tests/test-fcntl-safer.c: Likewise.
18391         * tests/test-fcntl.c: Likewise.
18392         * tests/test-fdopendir.c: Likewise.
18393         * tests/test-fdutimensat.c: Likewise.
18394         * tests/test-fflush2.c: Likewise.
18395         * tests/test-file-has-acl.c: Likewise.
18396         * tests/test-filevercmp.c: Likewise.
18397         * tests/test-flock.c: Likewise.
18398         * tests/test-floorf1.c: Likewise.
18399         * tests/test-floorf2.c: Likewise.
18400         * tests/test-floorl.c: Likewise.
18401         * tests/test-fnmatch.c: Likewise.
18402         * tests/test-fopen.h: Likewise.
18403         * tests/test-fpending.c: Likewise.
18404         * tests/test-fprintf-posix.c: Likewise.
18405         * tests/test-fpurge.c: Likewise.
18406         * tests/test-freadable.c: Likewise.
18407         * tests/test-freadahead.c: Likewise.
18408         * tests/test-freading.c: Likewise.
18409         * tests/test-freadptr.c: Likewise.
18410         * tests/test-freadptr2.c: Likewise.
18411         * tests/test-freadseek.c: Likewise.
18412         * tests/test-freopen.c: Likewise.
18413         * tests/test-frexp.c: Likewise.
18414         * tests/test-frexpl.c: Likewise.
18415         * tests/test-fseek.c: Likewise.
18416         * tests/test-fseeko.c: Likewise.
18417         * tests/test-fstatat.c: Likewise.
18418         * tests/test-fstrcmp.c: Likewise.
18419         * tests/test-fsync.c: Likewise.
18420         * tests/test-ftell.c: Likewise.
18421         * tests/test-ftello.c: Likewise.
18422         * tests/test-func.c: Likewise.
18423         * tests/test-futimens.c: Likewise.
18424         * tests/test-fwritable.c: Likewise.
18425         * tests/test-fwriting.c: Likewise.
18426         * tests/test-getcwd.c: Likewise.
18427         * tests/test-getdate.c: Likewise.
18428         * tests/test-getdelim.c: Likewise.
18429         * tests/test-getdtablesize.c: Likewise.
18430         * tests/test-getgroups.c: Likewise.
18431         * tests/test-getline.c: Likewise.
18432         * tests/test-getndelim2.c: Likewise.
18433         * tests/test-glob.c: Likewise.
18434         * tests/test-hash.c: Likewise.
18435         * tests/test-i-ring.c: Likewise.
18436         * tests/test-iconv-utf.c: Likewise.
18437         * tests/test-iconv.c: Likewise.
18438         * tests/test-idpriv-drop.c: Likewise.
18439         * tests/test-idpriv-droptemp.c: Likewise.
18440         * tests/test-inet_ntop.c: Likewise.
18441         * tests/test-inet_pton.c: Likewise.
18442         * tests/test-isblank.c: Likewise.
18443         * tests/test-isfinite.c: Likewise.
18444         * tests/test-isinf.c: Likewise.
18445         * tests/test-isnan.c: Likewise.
18446         * tests/test-isnand.h: Likewise.
18447         * tests/test-isnanf.h: Likewise.
18448         * tests/test-isnanl.h: Likewise.
18449         * tests/test-lchown.c: Likewise.
18450         * tests/test-ldexpl.c: Likewise.
18451         * tests/test-link.c: Likewise.
18452         * tests/test-linkat.c: Likewise.
18453         * tests/test-linked_list.c: Likewise.
18454         * tests/test-linkedhash_list.c: Likewise.
18455         * tests/test-localename.c: Likewise.
18456         * tests/test-lseek.c: Likewise.
18457         * tests/test-lstat.c: Likewise.
18458         * tests/test-mbmemcasecmp.c: Likewise.
18459         * tests/test-mbmemcasecoll.c: Likewise.
18460         * tests/test-mbrtowc.c: Likewise.
18461         * tests/test-mbscasecmp.c: Likewise.
18462         * tests/test-mbscasestr1.c: Likewise.
18463         * tests/test-mbscasestr2.c: Likewise.
18464         * tests/test-mbscasestr3.c: Likewise.
18465         * tests/test-mbscasestr4.c: Likewise.
18466         * tests/test-mbschr.c: Likewise.
18467         * tests/test-mbscspn.c: Likewise.
18468         * tests/test-mbsinit.c: Likewise.
18469         * tests/test-mbsncasecmp.c: Likewise.
18470         * tests/test-mbsnrtowcs.c: Likewise.
18471         * tests/test-mbspbrk.c: Likewise.
18472         * tests/test-mbspcasecmp.c: Likewise.
18473         * tests/test-mbsrchr.c: Likewise.
18474         * tests/test-mbsrtowcs.c: Likewise.
18475         * tests/test-mbsspn.c: Likewise.
18476         * tests/test-mbsstr1.c: Likewise.
18477         * tests/test-mbsstr2.c: Likewise.
18478         * tests/test-mbsstr3.c: Likewise.
18479         * tests/test-memchr.c: Likewise.
18480         * tests/test-memchr2.c: Likewise.
18481         * tests/test-memcmp.c: Likewise.
18482         * tests/test-memmem.c: Likewise.
18483         * tests/test-memrchr.c: Likewise.
18484         * tests/test-mkdir.c: Likewise.
18485         * tests/test-mkdirat.c: Likewise.
18486         * tests/test-mkfifo.c: Likewise.
18487         * tests/test-mkfifoat.c: Likewise.
18488         * tests/test-mknod.c: Likewise.
18489         * tests/test-nanosleep.c: Likewise.
18490         * tests/test-nl_langinfo.c: Likewise.
18491         * tests/test-obstack-printf.c: Likewise.
18492         * tests/test-open.c: Likewise.
18493         * tests/test-openat.c: Likewise.
18494         * tests/test-pipe-filter-gi1.c: Likewise.
18495         * tests/test-pipe-filter-gi2-main.c: Likewise.
18496         * tests/test-pipe-filter-ii1.c: Likewise.
18497         * tests/test-pipe-filter-ii2-main.c: Likewise.
18498         * tests/test-pipe2.c: Likewise.
18499         * tests/test-popen.h: Likewise.
18500         * tests/test-posixtm.c: Likewise.
18501         * tests/test-pread.c: Likewise.
18502         * tests/test-printf-frexp.c: Likewise.
18503         * tests/test-printf-frexpl.c: Likewise.
18504         * tests/test-printf-posix.c: Likewise.
18505         * tests/test-priv-set.c: Likewise.
18506         * tests/test-quotearg.c: Likewise.
18507         * tests/test-random_r.c: Likewise.
18508         * tests/test-rawmemchr.c: Likewise.
18509         * tests/test-rbtree_list.c: Likewise.
18510         * tests/test-rbtree_oset.c: Likewise.
18511         * tests/test-rbtreehash_list.c: Likewise.
18512         * tests/test-readlink.c: Likewise.
18513         * tests/test-remove.c: Likewise.
18514         * tests/test-rename.c: Likewise.
18515         * tests/test-renameat.c: Likewise.
18516         * tests/test-rmdir.c: Likewise.
18517         * tests/test-round1.c: Likewise.
18518         * tests/test-roundf1.c: Likewise.
18519         * tests/test-roundl.c: Likewise.
18520         * tests/test-safe-alloc.c: Likewise.
18521         * tests/test-sameacls.c: Likewise.
18522         * tests/test-set-mode-acl.c: Likewise.
18523         * tests/test-setenv.c: Likewise.
18524         * tests/test-sigaction.c: Likewise.
18525         * tests/test-signbit.c: Likewise.
18526         * tests/test-sleep.c: Likewise.
18527         * tests/test-snprintf-posix.c: Likewise.
18528         * tests/test-snprintf.c: Likewise.
18529         * tests/test-sprintf-posix.c: Likewise.
18530         * tests/test-stat-time.c: Likewise.
18531         * tests/test-stat.c: Likewise.
18532         * tests/test-strcasestr.c: Likewise.
18533         * tests/test-strchrnul.c: Likewise.
18534         * tests/test-strerror.c: Likewise.
18535         * tests/test-striconv.c: Likewise.
18536         * tests/test-striconveh.c: Likewise.
18537         * tests/test-striconveha.c: Likewise.
18538         * tests/test-strsignal.c: Likewise.
18539         * tests/test-strstr.c: Likewise.
18540         * tests/test-strtod.c: Likewise.
18541         * tests/test-strverscmp.c: Likewise.
18542         * tests/test-symlink.c: Likewise.
18543         * tests/test-symlinkat.c: Likewise.
18544         * tests/test-trunc1.c: Likewise.
18545         * tests/test-trunc2.c: Likewise.
18546         * tests/test-truncf1.c: Likewise.
18547         * tests/test-truncf2.c: Likewise.
18548         * tests/test-truncl.c: Likewise.
18549         * tests/test-uname.c: Likewise.
18550         * tests/test-unlink.c: Likewise.
18551         * tests/test-unlinkat.c: Likewise.
18552         * tests/test-unsetenv.c: Likewise.
18553         * tests/test-usleep.c: Likewise.
18554         * tests/test-utimens.c: Likewise.
18555         * tests/test-utimensat.c: Likewise.
18556         * tests/test-vasnprintf-posix.c: Likewise.
18557         * tests/test-vasnprintf-posix2.c: Likewise.
18558         * tests/test-vasnprintf.c: Likewise.
18559         * tests/test-vasprintf-posix.c: Likewise.
18560         * tests/test-vasprintf.c: Likewise.
18561         * tests/test-vdprintf-posix.c: Likewise.
18562         * tests/test-vfprintf-posix.c: Likewise.
18563         * tests/test-vprintf-posix.c: Likewise.
18564         * tests/test-vsnprintf-posix.c: Likewise.
18565         * tests/test-vsnprintf.c: Likewise.
18566         * tests/test-vsprintf-posix.c: Likewise.
18567         * tests/test-wcrtomb.c: Likewise.
18568         * tests/test-wcsnrtombs.c: Likewise.
18569         * tests/test-wcsrtombs.c: Likewise.
18570         * tests/test-wctype.c: Likewise.
18571         * tests/test-wcwidth.c: Likewise.
18572         * tests/test-xfprintf-posix.c: Likewise.
18573         * tests/test-xmemdup0.c: Likewise.
18574         * tests/test-xprintf-posix.c: Likewise.
18575         * tests/test-xvasprintf.c: Likewise.
18576         * tests/unicase/test-locale-language.c: Likewise.
18577         * tests/unicase/test-mapping-part1.h: Likewise.
18578         * tests/unicase/test-predicate-part1.h: Likewise.
18579         * tests/unicase/test-u8-casecmp.c: Likewise.
18580         * tests/unicase/test-u8-casecoll.c: Likewise.
18581         * tests/unicase/test-u8-casefold.c: Likewise.
18582         * tests/unicase/test-u8-is-cased.c: Likewise.
18583         * tests/unicase/test-u8-is-casefolded.c: Likewise.
18584         * tests/unicase/test-u8-is-lowercase.c: Likewise.
18585         * tests/unicase/test-u8-is-titlecase.c: Likewise.
18586         * tests/unicase/test-u8-is-uppercase.c: Likewise.
18587         * tests/unicase/test-u8-tolower.c: Likewise.
18588         * tests/unicase/test-u8-totitle.c: Likewise.
18589         * tests/unicase/test-u8-toupper.c: Likewise.
18590         * tests/unicase/test-u16-casecmp.c: Likewise.
18591         * tests/unicase/test-u16-casecoll.c: Likewise.
18592         * tests/unicase/test-u16-casefold.c: Likewise.
18593         * tests/unicase/test-u16-is-cased.c: Likewise.
18594         * tests/unicase/test-u16-is-casefolded.c: Likewise.
18595         * tests/unicase/test-u16-is-lowercase.c: Likewise.
18596         * tests/unicase/test-u16-is-titlecase.c: Likewise.
18597         * tests/unicase/test-u16-is-uppercase.c: Likewise.
18598         * tests/unicase/test-u16-tolower.c: Likewise.
18599         * tests/unicase/test-u16-totitle.c: Likewise.
18600         * tests/unicase/test-u16-toupper.c: Likewise.
18601         * tests/unicase/test-u32-casecmp.c: Likewise.
18602         * tests/unicase/test-u32-casecoll.c: Likewise.
18603         * tests/unicase/test-u32-casefold.c: Likewise.
18604         * tests/unicase/test-u32-is-cased.c: Likewise.
18605         * tests/unicase/test-u32-is-casefolded.c: Likewise.
18606         * tests/unicase/test-u32-is-lowercase.c: Likewise.
18607         * tests/unicase/test-u32-is-titlecase.c: Likewise.
18608         * tests/unicase/test-u32-is-uppercase.c: Likewise.
18609         * tests/unicase/test-u32-tolower.c: Likewise.
18610         * tests/unicase/test-u32-totitle.c: Likewise.
18611         * tests/unicase/test-u32-toupper.c: Likewise.
18612         * tests/unicase/test-ulc-casecmp.c: Likewise.
18613         * tests/unicase/test-ulc-casecoll.c: Likewise.
18614         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
18615         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
18616         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
18617         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
18618         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
18619         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
18620         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
18621         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
18622         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
18623         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
18624         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
18625         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
18626         * tests/unictype/test-bidi_byname.c: Likewise.
18627         * tests/unictype/test-bidi_name.c: Likewise.
18628         * tests/unictype/test-bidi_of.c: Likewise.
18629         * tests/unictype/test-bidi_test.c: Likewise.
18630         * tests/unictype/test-block_list.c: Likewise.
18631         * tests/unictype/test-block_of.c: Likewise.
18632         * tests/unictype/test-block_test.c: Likewise.
18633         * tests/unictype/test-categ_and.c: Likewise.
18634         * tests/unictype/test-categ_and_not.c: Likewise.
18635         * tests/unictype/test-categ_byname.c: Likewise.
18636         * tests/unictype/test-categ_name.c: Likewise.
18637         * tests/unictype/test-categ_none.c: Likewise.
18638         * tests/unictype/test-categ_of.c: Likewise.
18639         * tests/unictype/test-categ_or.c: Likewise.
18640         * tests/unictype/test-categ_test_withtable.c: Likewise.
18641         * tests/unictype/test-combining.c: Likewise.
18642         * tests/unictype/test-decdigit.c: Likewise.
18643         * tests/unictype/test-digit.c: Likewise.
18644         * tests/unictype/test-mirror.c: Likewise.
18645         * tests/unictype/test-numeric.c: Likewise.
18646         * tests/unictype/test-pr_byname.c: Likewise.
18647         * tests/unictype/test-pr_test.c: Likewise.
18648         * tests/unictype/test-predicate-part1.h: Likewise.
18649         * tests/unictype/test-scripts.c: Likewise.
18650         * tests/unictype/test-sy_c_ident.c: Likewise.
18651         * tests/unictype/test-sy_java_ident.c: Likewise.
18652         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
18653         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
18654         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
18655         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
18656         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
18657         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
18658         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
18659         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
18660         * tests/uninorm/test-canonical-decomposition.c: Likewise.
18661         * tests/uninorm/test-compat-decomposition.c: Likewise.
18662         * tests/uninorm/test-composition.c: Likewise.
18663         * tests/uninorm/test-decomposing-form.c: Likewise.
18664         * tests/uninorm/test-decomposition.c: Likewise.
18665         * tests/uninorm/test-u8-nfc.c: Likewise.
18666         * tests/uninorm/test-u8-nfd.c: Likewise.
18667         * tests/uninorm/test-u8-nfkc.c: Likewise.
18668         * tests/uninorm/test-u8-nfkd.c: Likewise.
18669         * tests/uninorm/test-u8-normcmp.c: Likewise.
18670         * tests/uninorm/test-u8-normcoll.c: Likewise.
18671         * tests/uninorm/test-u16-nfc.c: Likewise.
18672         * tests/uninorm/test-u16-nfd.c: Likewise.
18673         * tests/uninorm/test-u16-nfkc.c: Likewise.
18674         * tests/uninorm/test-u16-nfkd.c: Likewise.
18675         * tests/uninorm/test-u16-normcmp.c: Likewise.
18676         * tests/uninorm/test-u16-normcoll.c: Likewise.
18677         * tests/uninorm/test-u32-nfc.c: Likewise.
18678         * tests/uninorm/test-u32-nfd.c: Likewise.
18679         * tests/uninorm/test-u32-nfkc.c: Likewise.
18680         * tests/uninorm/test-u32-nfkd.c: Likewise.
18681         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18682         * tests/uninorm/test-u32-normcmp.c: Likewise.
18683         * tests/uninorm/test-u32-normcoll.c: Likewise.
18684         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
18685         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
18686         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
18687         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
18688         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
18689         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
18690         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
18691         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
18692         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
18693         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
18694         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
18695         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
18696         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
18697         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
18698         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
18699         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
18700         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
18701         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
18702         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
18703         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
18704         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
18705         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
18706         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
18707         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
18708         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
18709         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
18710         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
18711         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
18712         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
18713         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
18714         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
18715         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
18716         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
18717         * tests/uniwidth/test-u8-strwidth.c: Likewise.
18718         * tests/uniwidth/test-u8-width.c: Likewise.
18719         * tests/uniwidth/test-u16-strwidth.c: Likewise.
18720         * tests/uniwidth/test-u16-width.c: Likewise.
18721         * tests/uniwidth/test-u32-strwidth.c: Likewise.
18722         * tests/uniwidth/test-u32-width.c: Likewise.
18723         * tests/uniwidth/test-uc_width.c: Likewise.
18724         * tests/uniwidth/test-uc_width2.c: Likewise.
18725         * modules/acl-tests (Files): Add tests/macros.h.
18726         * modules/areadlink-tests (Files): Likewise.
18727         * modules/areadlink-with-size-tests (Files): Likewise.
18728         * modules/areadlinkat-tests (Files): Likewise.
18729         * modules/areadlinkat-with-size-tests (Files): Likewise.
18730         * modules/argmatch-tests (Files): Likewise.
18731         * modules/argv-iter-tests (Files): Likewise.
18732         * modules/array-list-tests (Files): Likewise.
18733         * modules/array-mergesort-tests (Files): Likewise.
18734         * modules/array-oset-tests (Files): Likewise.
18735         * modules/avltree-list-tests (Files): Likewise.
18736         * modules/avltree-oset-tests (Files): Likewise.
18737         * modules/avltreehash-list-tests (Files): Likewise.
18738         * modules/base64-tests (Files): Likewise.
18739         * modules/binary-io-tests (Files): Likewise.
18740         * modules/bitrotate-tests (Files): Likewise.
18741         * modules/btowc-tests (Files): Likewise.
18742         * modules/byteswap-tests (Files): Likewise.
18743         * modules/c-ctype-tests (Files): Likewise.
18744         * modules/c-stack-tests (Files): Likewise.
18745         * modules/c-strcase-tests (Files): Likewise.
18746         * modules/c-strcasestr-tests (Files): Likewise.
18747         * modules/c-strstr-tests (Files): Likewise.
18748         * modules/canonicalize-lgpl-tests (Files): Likewise.
18749         * modules/canonicalize-tests (Files): Likewise.
18750         * modules/carray-list-tests (Files): Likewise.
18751         * modules/ceilf-tests (Files): Likewise.
18752         * modules/ceill-tests (Files): Likewise.
18753         * modules/chown-tests (Files): Likewise.
18754         * modules/cloexec-tests (Files): Likewise.
18755         * modules/copy-file-tests (Files): Likewise.
18756         * modules/count-one-bits-tests (Files): Likewise.
18757         * modules/dprintf-posix-tests (Files): Likewise.
18758         * modules/dup2-tests (Files): Likewise.
18759         * modules/dup3-tests (Files): Likewise.
18760         * modules/duplocale-tests (Files): Likewise.
18761         * modules/fbufmode-tests (Files): Likewise.
18762         * modules/fchdir-tests (Files): Likewise.
18763         * modules/fcntl-safer-tests (Files): Likewise.
18764         * modules/fcntl-tests (Files): Likewise.
18765         * modules/fdopendir-tests (Files): Likewise.
18766         * modules/fdutimensat-tests (Files): Likewise.
18767         * modules/fflush-tests (Files): Likewise.
18768         * modules/filevercmp-tests (Files): Likewise.
18769         * modules/flock-tests (Files): Likewise.
18770         * modules/floorf-tests (Files): Likewise.
18771         * modules/floorl-tests (Files): Likewise.
18772         * modules/fnmatch-tests (Files): Likewise.
18773         * modules/fopen-safer-tests (Files): Likewise.
18774         * modules/fopen-tests (Files): Likewise.
18775         * modules/fpending-tests (Files): Likewise.
18776         * modules/fprintf-posix-tests (Files): Likewise.
18777         * modules/fpurge-tests (Files): Likewise.
18778         * modules/freadable-tests (Files): Likewise.
18779         * modules/freadahead-tests (Files): Likewise.
18780         * modules/freading-tests (Files): Likewise.
18781         * modules/freadptr-tests (Files): Likewise.
18782         * modules/freadseek-tests (Files): Likewise.
18783         * modules/freopen-tests (Files): Likewise.
18784         * modules/frexp-nolibm-tests (Files): Likewise.
18785         * modules/frexp-tests (Files): Likewise.
18786         * modules/frexpl-nolibm-tests (Files): Likewise.
18787         * modules/frexpl-tests (Files): Likewise.
18788         * modules/fseek-tests (Files): Likewise.
18789         * modules/fseeko-tests (Files): Likewise.
18790         * modules/fstrcmp-tests (Files): Likewise.
18791         * modules/fsync-tests (Files): Likewise.
18792         * modules/ftell-tests (Files): Likewise.
18793         * modules/ftello-tests (Files): Likewise.
18794         * modules/func-tests (Files): Likewise.
18795         * modules/futimens-tests (Files): Likewise.
18796         * modules/fwritable-tests (Files): Likewise.
18797         * modules/fwriting-tests (Files): Likewise.
18798         * modules/getcwd-tests (Files): Likewise.
18799         * modules/getdate-tests (Files): Likewise.
18800         * modules/getdelim-tests (Files): Likewise.
18801         * modules/getdtablesize-tests (Files): Likewise.
18802         * modules/getgroups-tests (Files): Likewise.
18803         * modules/getline-tests (Files): Likewise.
18804         * modules/getndelim2-tests (Files): Likewise.
18805         * modules/glob-tests (Files): Likewise.
18806         * modules/hash-tests (Files): Likewise.
18807         * modules/i-ring-tests (Files): Likewise.
18808         * modules/iconv-tests (Files): Likewise.
18809         * modules/iconv_open-utf-tests (Files): Likewise.
18810         * modules/idpriv-drop-tests (Files): Likewise.
18811         * modules/idpriv-droptemp-tests (Files): Likewise.
18812         * modules/inet_ntop-tests (Files): Likewise.
18813         * modules/inet_pton-tests (Files): Likewise.
18814         * modules/isblank-tests (Files): Likewise.
18815         * modules/isfinite-tests (Files): Likewise.
18816         * modules/isinf-tests (Files): Likewise.
18817         * modules/isnan-tests (Files): Likewise.
18818         * modules/isnand-nolibm-tests (Files): Likewise.
18819         * modules/isnand-tests (Files): Likewise.
18820         * modules/isnanf-nolibm-tests (Files): Likewise.
18821         * modules/isnanf-tests (Files): Likewise.
18822         * modules/isnanl-nolibm-tests (Files): Likewise.
18823         * modules/isnanl-tests (Files): Likewise.
18824         * modules/lchown-tests (Files): Likewise.
18825         * modules/ldexpl-tests (Files): Likewise.
18826         * modules/link-tests (Files): Likewise.
18827         * modules/linkat-tests (Files): Likewise.
18828         * modules/linked-list-tests (Files): Likewise.
18829         * modules/linkedhash-list-tests (Files): Likewise.
18830         * modules/localename-tests (Files): Likewise.
18831         * modules/lseek-tests (Files): Likewise.
18832         * modules/lstat-tests (Files): Likewise.
18833         * modules/mbmemcasecmp-tests (Files): Likewise.
18834         * modules/mbmemcasecoll-tests (Files): Likewise.
18835         * modules/mbrtowc-tests (Files): Likewise.
18836         * modules/mbscasecmp-tests (Files): Likewise.
18837         * modules/mbscasestr-tests (Files): Likewise.
18838         * modules/mbschr-tests (Files): Likewise.
18839         * modules/mbscspn-tests (Files): Likewise.
18840         * modules/mbsinit-tests (Files): Likewise.
18841         * modules/mbsncasecmp-tests (Files): Likewise.
18842         * modules/mbsnrtowcs-tests (Files): Likewise.
18843         * modules/mbspbrk-tests (Files): Likewise.
18844         * modules/mbspcasecmp-tests (Files): Likewise.
18845         * modules/mbsrchr-tests (Files): Likewise.
18846         * modules/mbsrtowcs-tests (Files): Likewise.
18847         * modules/mbsspn-tests (Files): Likewise.
18848         * modules/mbsstr-tests (Files): Likewise.
18849         * modules/memchr-tests (Files): Likewise.
18850         * modules/memchr2-tests (Files): Likewise.
18851         * modules/memcmp-tests (Files): Likewise.
18852         * modules/memmem-tests (Files): Likewise.
18853         * modules/memrchr-tests (Files): Likewise.
18854         * modules/mkdir-tests (Files): Likewise.
18855         * modules/mkfifo-tests (Files): Likewise.
18856         * modules/mkfifoat-tests (Files): Likewise.
18857         * modules/mknod-tests (Files): Likewise.
18858         * modules/nanosleep-tests (Files): Likewise.
18859         * modules/nl_langinfo-tests (Files): Likewise.
18860         * modules/obstack-printf-tests (Files): Likewise.
18861         * modules/open-tests (Files): Likewise.
18862         * modules/openat-tests (Files): Likewise.
18863         * modules/pipe-filter-gi-tests (Files): Likewise.
18864         * modules/pipe-filter-ii-tests (Files): Likewise.
18865         * modules/pipe2-tests (Files): Likewise.
18866         * modules/popen-safer-tests (Files): Likewise.
18867         * modules/popen-tests (Files): Likewise.
18868         * modules/posixtm-tests (Files): Likewise.
18869         * modules/pread-tests (Files): Likewise.
18870         * modules/printf-frexp-tests (Files): Likewise.
18871         * modules/printf-frexpl-tests (Files): Likewise.
18872         * modules/printf-posix-tests (Files): Likewise.
18873         * modules/priv-set-tests (Files): Likewise.
18874         * modules/quotearg-tests (Files): Likewise.
18875         * modules/random_r-tests (Files): Likewise.
18876         * modules/rawmemchr-tests (Files): Likewise.
18877         * modules/rbtree-list-tests (Files): Likewise.
18878         * modules/rbtree-oset-tests (Files): Likewise.
18879         * modules/rbtreehash-list-tests (Files): Likewise.
18880         * modules/readlink-tests (Files): Likewise.
18881         * modules/remove-tests (Files): Likewise.
18882         * modules/rename-tests (Files): Likewise.
18883         * modules/renameat-tests (Files): Likewise.
18884         * modules/rmdir-tests (Files): Likewise.
18885         * modules/round-tests (Files): Likewise.
18886         * modules/roundf-tests (Files): Likewise.
18887         * modules/roundl-tests (Files): Likewise.
18888         * modules/safe-alloc-tests (Files): Likewise.
18889         * modules/setenv-tests (Files): Likewise.
18890         * modules/sigaction-tests (Files): Likewise.
18891         * modules/signbit-tests (Files): Likewise.
18892         * modules/sleep-tests (Files): Likewise.
18893         * modules/snprintf-posix-tests (Files): Likewise.
18894         * modules/snprintf-tests (Files): Likewise.
18895         * modules/sprintf-posix-tests (Files): Likewise.
18896         * modules/stat-tests (Files): Likewise.
18897         * modules/stat-time-tests (Files): Likewise.
18898         * modules/strcasestr-tests (Files): Likewise.
18899         * modules/strchrnul-tests (Files): Likewise.
18900         * modules/strerror-tests (Files): Likewise.
18901         * modules/striconv-tests (Files): Likewise.
18902         * modules/striconveh-tests (Files): Likewise.
18903         * modules/striconveha-tests (Files): Likewise.
18904         * modules/strsignal-tests (Files): Likewise.
18905         * modules/strstr-tests (Files): Likewise.
18906         * modules/strtod-tests (Files): Likewise.
18907         * modules/strverscmp-tests (Files): Likewise.
18908         * modules/symlink-tests (Files): Likewise.
18909         * modules/symlinkat-tests (Files): Likewise.
18910         * modules/trunc-tests (Files): Likewise.
18911         * modules/truncf-tests (Files): Likewise.
18912         * modules/truncl-tests (Files): Likewise.
18913         * modules/uname-tests (Files): Likewise.
18914         * modules/unicase/cased-tests (Files): Likewise.
18915         * modules/unicase/ignorable-tests (Files): Likewise.
18916         * modules/unicase/locale-language-tests (Files): Likewise.
18917         * modules/unicase/tolower-tests (Files): Likewise.
18918         * modules/unicase/totitle-tests (Files): Likewise.
18919         * modules/unicase/toupper-tests (Files): Likewise.
18920         * modules/unicase/u8-casecmp-tests (Files): Likewise.
18921         * modules/unicase/u8-casecoll-tests (Files): Likewise.
18922         * modules/unicase/u8-casefold-tests (Files): Likewise.
18923         * modules/unicase/u8-is-cased-tests (Files): Likewise.
18924         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
18925         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
18926         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
18927         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
18928         * modules/unicase/u8-tolower-tests (Files): Likewise.
18929         * modules/unicase/u8-totitle-tests (Files): Likewise.
18930         * modules/unicase/u8-toupper-tests (Files): Likewise.
18931         * modules/unicase/u16-casecmp-tests (Files): Likewise.
18932         * modules/unicase/u16-casecoll-tests (Files): Likewise.
18933         * modules/unicase/u16-casefold-tests (Files): Likewise.
18934         * modules/unicase/u16-is-cased-tests (Files): Likewise.
18935         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
18936         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
18937         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
18938         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
18939         * modules/unicase/u16-tolower-tests (Files): Likewise.
18940         * modules/unicase/u16-totitle-tests (Files): Likewise.
18941         * modules/unicase/u16-toupper-tests (Files): Likewise.
18942         * modules/unicase/u32-casecmp-tests (Files): Likewise.
18943         * modules/unicase/u32-casecoll-tests (Files): Likewise.
18944         * modules/unicase/u32-casefold-tests (Files): Likewise.
18945         * modules/unicase/u32-is-cased-tests (Files): Likewise.
18946         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
18947         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
18948         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
18949         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
18950         * modules/unicase/u32-tolower-tests (Files): Likewise.
18951         * modules/unicase/u32-totitle-tests (Files): Likewise.
18952         * modules/unicase/u32-toupper-tests (Files): Likewise.
18953         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
18954         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
18955         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
18956         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
18957         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
18958         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
18959         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
18960         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
18961         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
18962         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
18963         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
18964         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
18965         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
18966         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
18967         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
18968         * modules/unictype/bidicategory-name-tests (Files): Likewise.
18969         * modules/unictype/bidicategory-of-tests (Files): Likewise.
18970         * modules/unictype/bidicategory-test-tests (Files): Likewise.
18971         * modules/unictype/block-list-tests (Files): Likewise.
18972         * modules/unictype/block-of-tests (Files): Likewise.
18973         * modules/unictype/block-test-tests (Files): Likewise.
18974         * modules/unictype/category-C-tests (Files): Likewise.
18975         * modules/unictype/category-Cc-tests (Files): Likewise.
18976         * modules/unictype/category-Cf-tests (Files): Likewise.
18977         * modules/unictype/category-Cn-tests (Files): Likewise.
18978         * modules/unictype/category-Co-tests (Files): Likewise.
18979         * modules/unictype/category-Cs-tests (Files): Likewise.
18980         * modules/unictype/category-L-tests (Files): Likewise.
18981         * modules/unictype/category-Ll-tests (Files): Likewise.
18982         * modules/unictype/category-Lm-tests (Files): Likewise.
18983         * modules/unictype/category-Lo-tests (Files): Likewise.
18984         * modules/unictype/category-Lt-tests (Files): Likewise.
18985         * modules/unictype/category-Lu-tests (Files): Likewise.
18986         * modules/unictype/category-M-tests (Files): Likewise.
18987         * modules/unictype/category-Mc-tests (Files): Likewise.
18988         * modules/unictype/category-Me-tests (Files): Likewise.
18989         * modules/unictype/category-Mn-tests (Files): Likewise.
18990         * modules/unictype/category-N-tests (Files): Likewise.
18991         * modules/unictype/category-Nd-tests (Files): Likewise.
18992         * modules/unictype/category-Nl-tests (Files): Likewise.
18993         * modules/unictype/category-No-tests (Files): Likewise.
18994         * modules/unictype/category-P-tests (Files): Likewise.
18995         * modules/unictype/category-Pc-tests (Files): Likewise.
18996         * modules/unictype/category-Pd-tests (Files): Likewise.
18997         * modules/unictype/category-Pe-tests (Files): Likewise.
18998         * modules/unictype/category-Pf-tests (Files): Likewise.
18999         * modules/unictype/category-Pi-tests (Files): Likewise.
19000         * modules/unictype/category-Po-tests (Files): Likewise.
19001         * modules/unictype/category-Ps-tests (Files): Likewise.
19002         * modules/unictype/category-S-tests (Files): Likewise.
19003         * modules/unictype/category-Sc-tests (Files): Likewise.
19004         * modules/unictype/category-Sk-tests (Files): Likewise.
19005         * modules/unictype/category-Sm-tests (Files): Likewise.
19006         * modules/unictype/category-So-tests (Files): Likewise.
19007         * modules/unictype/category-Z-tests (Files): Likewise.
19008         * modules/unictype/category-Zl-tests (Files): Likewise.
19009         * modules/unictype/category-Zp-tests (Files): Likewise.
19010         * modules/unictype/category-Zs-tests (Files): Likewise.
19011         * modules/unictype/category-and-not-tests (Files): Likewise.
19012         * modules/unictype/category-and-tests (Files): Likewise.
19013         * modules/unictype/category-byname-tests (Files): Likewise.
19014         * modules/unictype/category-name-tests (Files): Likewise.
19015         * modules/unictype/category-none-tests (Files): Likewise.
19016         * modules/unictype/category-of-tests (Files): Likewise.
19017         * modules/unictype/category-or-tests (Files): Likewise.
19018         * modules/unictype/category-test-withtable-tests (Files): Likewise.
19019         * modules/unictype/combining-class-tests (Files): Likewise.
19020         * modules/unictype/ctype-alnum-tests (Files): Likewise.
19021         * modules/unictype/ctype-alpha-tests (Files): Likewise.
19022         * modules/unictype/ctype-blank-tests (Files): Likewise.
19023         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
19024         * modules/unictype/ctype-digit-tests (Files): Likewise.
19025         * modules/unictype/ctype-graph-tests (Files): Likewise.
19026         * modules/unictype/ctype-lower-tests (Files): Likewise.
19027         * modules/unictype/ctype-print-tests (Files): Likewise.
19028         * modules/unictype/ctype-punct-tests (Files): Likewise.
19029         * modules/unictype/ctype-space-tests (Files): Likewise.
19030         * modules/unictype/ctype-upper-tests (Files): Likewise.
19031         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
19032         * modules/unictype/decimal-digit-tests (Files): Likewise.
19033         * modules/unictype/digit-tests (Files): Likewise.
19034         * modules/unictype/mirror-tests (Files): Likewise.
19035         * modules/unictype/numeric-tests (Files): Likewise.
19036         * modules/unictype/property-alphabetic-tests (Files): Likewise.
19037         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
19038         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
19039         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
19040         Likewise.
19041         * modules/unictype/property-bidi-block-separator-tests (Files):
19042         Likewise.
19043         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
19044         Likewise.
19045         * modules/unictype/property-bidi-common-separator-tests (Files):
19046         Likewise.
19047         * modules/unictype/property-bidi-control-tests (Files): Likewise.
19048         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
19049         Likewise.
19050         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
19051         Likewise.
19052         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
19053         Likewise.
19054         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
19055         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
19056         Likewise.
19057         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
19058         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
19059         Likewise.
19060         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
19061         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
19062         * modules/unictype/property-bidi-segment-separator-tests (Files):
19063         Likewise.
19064         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
19065         * modules/unictype/property-byname-tests (Files): Likewise.
19066         * modules/unictype/property-combining-tests (Files): Likewise.
19067         * modules/unictype/property-composite-tests (Files): Likewise.
19068         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
19069         * modules/unictype/property-dash-tests (Files): Likewise.
19070         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
19071         * modules/unictype/property-default-ignorable-code-point-tests (Files):
19072         Likewise.
19073         * modules/unictype/property-deprecated-tests (Files): Likewise.
19074         * modules/unictype/property-diacritic-tests (Files): Likewise.
19075         * modules/unictype/property-extender-tests (Files): Likewise.
19076         * modules/unictype/property-format-control-tests (Files): Likewise.
19077         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
19078         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
19079         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
19080         * modules/unictype/property-hex-digit-tests (Files): Likewise.
19081         * modules/unictype/property-hyphen-tests (Files): Likewise.
19082         * modules/unictype/property-id-continue-tests (Files): Likewise.
19083         * modules/unictype/property-id-start-tests (Files): Likewise.
19084         * modules/unictype/property-ideographic-tests (Files): Likewise.
19085         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
19086         * modules/unictype/property-ids-trinary-operator-tests (Files):
19087         Likewise.
19088         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
19089         * modules/unictype/property-iso-control-tests (Files): Likewise.
19090         * modules/unictype/property-join-control-tests (Files): Likewise.
19091         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
19092         * modules/unictype/property-line-separator-tests (Files): Likewise.
19093         * modules/unictype/property-logical-order-exception-tests (Files):
19094         Likewise.
19095         * modules/unictype/property-lowercase-tests (Files): Likewise.
19096         * modules/unictype/property-math-tests (Files): Likewise.
19097         * modules/unictype/property-non-break-tests (Files): Likewise.
19098         * modules/unictype/property-not-a-character-tests (Files): Likewise.
19099         * modules/unictype/property-numeric-tests (Files): Likewise.
19100         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
19101         * modules/unictype/property-other-default-ignorable-code-point-tests
19102         (Files): Likewise.
19103         * modules/unictype/property-other-grapheme-extend-tests (Files):
19104         Likewise.
19105         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
19106         * modules/unictype/property-other-id-start-tests (Files): Likewise.
19107         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
19108         * modules/unictype/property-other-math-tests (Files): Likewise.
19109         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
19110         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
19111         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
19112         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
19113         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
19114         * modules/unictype/property-private-use-tests (Files): Likewise.
19115         * modules/unictype/property-punctuation-tests (Files): Likewise.
19116         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
19117         * modules/unictype/property-radical-tests (Files): Likewise.
19118         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
19119         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
19120         * modules/unictype/property-space-tests (Files): Likewise.
19121         * modules/unictype/property-terminal-punctuation-tests (Files):
19122         Likewise.
19123         * modules/unictype/property-test-tests (Files): Likewise.
19124         * modules/unictype/property-titlecase-tests (Files): Likewise.
19125         * modules/unictype/property-unassigned-code-value-tests (Files):
19126         Likewise.
19127         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
19128         * modules/unictype/property-uppercase-tests (Files): Likewise.
19129         * modules/unictype/property-variation-selector-tests (Files): Likewise.
19130         * modules/unictype/property-white-space-tests (Files): Likewise.
19131         * modules/unictype/property-xid-continue-tests (Files): Likewise.
19132         * modules/unictype/property-xid-start-tests (Files): Likewise.
19133         * modules/unictype/property-zero-width-tests (Files): Likewise.
19134         * modules/unictype/scripts-tests (Files): Likewise.
19135         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
19136         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
19137         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
19138         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
19139         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
19140         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
19141         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
19142         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
19143         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
19144         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
19145         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
19146         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
19147         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
19148         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
19149         * modules/uninorm/composition-tests (Files): Likewise.
19150         * modules/uninorm/decomposing-form-tests (Files): Likewise.
19151         * modules/uninorm/decomposition-tests (Files): Likewise.
19152         * modules/uninorm/filter-tests (Files): Likewise.
19153         * modules/uninorm/nfc-tests (Files): Likewise.
19154         * modules/uninorm/nfd-tests (Files): Likewise.
19155         * modules/uninorm/nfkc-tests (Files): Likewise.
19156         * modules/uninorm/nfkd-tests (Files): Likewise.
19157         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
19158         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
19159         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
19160         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
19161         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
19162         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
19163         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
19164         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19165         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
19166         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
19167         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
19168         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
19169         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19170         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
19171         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
19172         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
19173         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
19174         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19175         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
19176         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
19177         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
19178         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
19179         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19180         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
19181         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
19182         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
19183         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
19184         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
19185         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
19186         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
19187         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
19188         * modules/uniwidth/u8-width-tests (Files): Likewise.
19189         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
19190         * modules/uniwidth/u16-width-tests (Files): Likewise.
19191         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
19192         * modules/uniwidth/u32-width-tests (Files): Likewise.
19193         * modules/uniwidth/width-tests (Files): Likewise.
19194         * modules/unlink-tests (Files): Likewise.
19195         * modules/unsetenv-tests (Files): Likewise.
19196         * modules/usleep-tests (Files): Likewise.
19197         * modules/utimens-tests (Files): Likewise.
19198         * modules/utimensat-tests (Files): Likewise.
19199         * modules/vasnprintf-posix-tests (Files): Likewise.
19200         * modules/vasnprintf-tests (Files): Likewise.
19201         * modules/vasprintf-posix-tests (Files): Likewise.
19202         * modules/vasprintf-tests (Files): Likewise.
19203         * modules/vdprintf-posix-tests (Files): Likewise.
19204         * modules/vfprintf-posix-tests (Files): Likewise.
19205         * modules/vprintf-posix-tests (Files): Likewise.
19206         * modules/vsnprintf-posix-tests (Files): Likewise.
19207         * modules/vsnprintf-tests (Files): Likewise.
19208         * modules/vsprintf-posix-tests (Files): Likewise.
19209         * modules/wcrtomb-tests (Files): Likewise.
19210         * modules/wcsnrtombs-tests (Files): Likewise.
19211         * modules/wcsrtombs-tests (Files): Likewise.
19212         * modules/wctype-tests (Files): Likewise.
19213         * modules/wcwidth-tests (Files): Likewise.
19214         * modules/xmemdup0-tests (Files): Likewise.
19215         * modules/xprintf-posix-tests (Files): Likewise.
19216         * modules/xvasprintf-tests (Files): Likewise.
19217
19218 2009-12-24  Eric Blake  <ebb9@byu.net>
19219
19220         test-nanosleep: fix typo
19221         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
19222         patch.
19223         Reported by Bruno Haible.
19224
19225 2009-12-24  Bruno Haible  <bruno@clisp.org>
19226
19227         Reduce namespace pollution on glibc systems.
19228         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
19229         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
19230         systems.
19231         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
19232         <getopt.h> on glibc systems.
19233         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
19234         systems.
19235         * lib/fcntl.c: Include <unistd.h> here instead.
19236
19237 2009-12-24  Bruno Haible  <bruno@clisp.org>
19238
19239         * lib/stdlib.in.h (includes): Fix typo in today's commit.
19240
19241 2009-12-24  Eric Blake  <ebb9@byu.net>
19242
19243         tests: add signature checks
19244         * tests/signature.h (SIGNATURE_CHECK): New file.
19245         * modules/atexit-tests (Files): Use it.
19246         * modules/btowc-tests (Files): Likewise.
19247         * modules/canonicalize-lgpl-tests (Files): Likewise.
19248         * modules/ceilf-tests (Files): Likewise.
19249         * modules/ceill-tests (Files): Likewise.
19250         * modules/chown-tests (Files): Likewise.
19251         * modules/dprintf-posix-tests (Files): Likewise.
19252         * modules/dup2-tests (Files): Likewise.
19253         * modules/dup3-tests (Files): Likewise.
19254         * modules/duplocale-tests (Files): Likewise.
19255         * modules/fchdir-tests (Files): Likewise.
19256         * modules/fcntl-tests (Files): Likewise.
19257         * modules/fdopendir-tests (Files): Likewise.
19258         * modules/fflush-tests (Files): Likewise.
19259         * modules/flock-tests (Files): Likewise.
19260         * modules/floorf-tests (Files): Likewise.
19261         * modules/floorl-tests (Files): Likewise.
19262         * modules/fnmatch-tests (Files): Likewise.
19263         * modules/fopen-tests (Files): Likewise.
19264         * modules/fprintf-posix-tests (Files): Likewise.
19265         * modules/freopen-tests (Files): Likewise.
19266         * modules/frexp-nolibm-tests (Files): Likewise.
19267         * modules/frexp-tests (Files): Likewise.
19268         * modules/frexpl-nolibm-tests (Files): Likewise.
19269         * modules/frexpl-tests (Files): Likewise.
19270         * modules/fseek-tests (Files): Likewise.
19271         * modules/fseeko-tests (Files): Likewise.
19272         * modules/fsync-tests (Files): Likewise.
19273         * modules/ftell-tests (Files): Likewise.
19274         * modules/ftello-tests (Files): Likewise.
19275         * modules/futimens-tests (Files): Likewise.
19276         * modules/getaddrinfo-tests (Files): Likewise.
19277         * modules/getcwd-tests (Files): Likewise.
19278         * modules/getdelim-tests (Files): Likewise.
19279         * modules/getdtablesize-tests (Files): Likewise.
19280         * modules/getgroups-tests (Files): Likewise.
19281         * modules/gethostname-tests (Files): Likewise.
19282         * modules/getline-tests (Files): Likewise.
19283         * modules/getopt-posix-tests (Files): Likewise.
19284         * modules/gettimeofday-tests (Files): Likewise.
19285         * modules/glob-tests (Files): Likewise.
19286         * modules/iconv-tests (Files): Likewise.
19287         * modules/inet_ntop-tests (Files): Likewise.
19288         * modules/inet_pton-tests (Files): Likewise.
19289         * modules/isblank-tests (Files): Likewise.
19290         * modules/lchown-tests (Files): Likewise.
19291         * modules/ldexpl-tests (Files): Likewise.
19292         * modules/link-tests (Files): Likewise.
19293         * modules/linkat-tests (Files): Likewise.
19294         * modules/lseek-tests (Files): Likewise.
19295         * modules/lstat-tests (Files): Likewise.
19296         * modules/mbrtowc-tests (Files): Likewise.
19297         * modules/mbsinit-tests (Files): Likewise.
19298         * modules/mbsnrtowcs-tests (Files): Likewise.
19299         * modules/mbsrtowcs-tests (Files): Likewise.
19300         * modules/memchr-tests (Files): Likewise.
19301         * modules/memcmp-tests (Files): Likewise.
19302         * modules/memmem-tests (Files): Likewise.
19303         * modules/memrchr-tests (Files): Likewise.
19304         * modules/mkdir-tests (Files): Likewise.
19305         * modules/mkfifo-tests (Files): Likewise.
19306         * modules/mkfifoat-tests (Files): Likewise.
19307         * modules/mknod-tests (Files): Likewise.
19308         * modules/nanosleep-tests (Files): Likewise.
19309         * modules/nl_langinfo-tests (Files): Likewise.
19310         * modules/obstack-printf-tests (Files): Likewise.
19311         * modules/open-tests (Files): Likewise.
19312         * modules/openat-tests (Files): Likewise.
19313         * modules/perror-tests (Files): Likewise.
19314         * modules/pipe2-tests (Files): Likewise.
19315         * modules/poll-tests (Files): Likewise.
19316         * modules/popen-tests (Files): Likewise.
19317         * modules/posix_spawn-tests (Files): Likewise.
19318         * modules/posix_spawnp-tests (Files): Likewise.
19319         * modules/pread-tests (Files): Likewise.
19320         * modules/printf-posix-tests (Files): Likewise.
19321         * modules/pty-tests (Files): Likewise.
19322         * modules/random_r-tests (Files): Likewise.
19323         * modules/rawmemchr-tests (Files): Likewise.
19324         * modules/readlink-tests (Files): Likewise.
19325         * modules/remove-tests (Files): Likewise.
19326         * modules/rename-tests (Files): Likewise.
19327         * modules/renameat-tests (Files): Likewise.
19328         * modules/rmdir-tests (Files): Likewise.
19329         * modules/round-tests (Files): Likewise.
19330         * modules/roundf-tests (Files): Likewise.
19331         * modules/roundl-tests (Files): Likewise.
19332         * modules/select-tests (Files): Likewise.
19333         * modules/setenv-tests (Files): Likewise.
19334         * modules/sigaction-tests (Files): Likewise.
19335         * modules/sleep-tests (Files): Likewise.
19336         * modules/snprintf-posix-tests (Files): Likewise.
19337         * modules/snprintf-tests (Files): Likewise.
19338         * modules/sprintf-posix-tests (Files): Likewise.
19339         * modules/stat-tests (Files): Likewise.
19340         * modules/strcasestr-tests (Files): Likewise.
19341         * modules/strchrnul-tests (Files): Likewise.
19342         * modules/strerror-tests (Files): Likewise.
19343         * modules/strsignal-tests (Files): Likewise.
19344         * modules/strstr-tests (Files): Likewise.
19345         * modules/strtod-tests (Files): Likewise.
19346         * modules/strverscmp-tests (Files): Likewise.
19347         * modules/symlink-tests (Files): Likewise.
19348         * modules/symlinkat-tests (Files): Likewise.
19349         * modules/times-tests (Files): Likewise.
19350         * modules/trunc-tests (Files): Likewise.
19351         * modules/truncf-tests (Files): Likewise.
19352         * modules/truncl-tests (Files): Likewise.
19353         * modules/tsearch-tests (Files): Likewise.
19354         * modules/uname-tests (Files): Likewise.
19355         * modules/unlink-tests (Files): Likewise.
19356         * modules/unsetenv-tests (Files): Likewise.
19357         * modules/usleep-tests (Files): Likewise.
19358         * modules/utimensat-tests (Files): Likewise.
19359         * modules/vasprintf-tests (Files): Likewise.
19360         * modules/vdprintf-posix-tests (Files): Likewise.
19361         * modules/vfprintf-posix-tests (Files): Likewise.
19362         * modules/vprintf-posix-tests (Files): Likewise.
19363         * modules/vsnprintf-posix-tests (Files): Likewise.
19364         * modules/vsnprintf-tests (Files): Likewise.
19365         * modules/vsprintf-posix-tests (Files): Likewise.
19366         * modules/wcrtomb-tests (Files): Likewise.
19367         * modules/wcsnrtombs-tests (Files): Likewise.
19368         * modules/wcsrtombs-tests (Files): Likewise.
19369         * modules/wcwidth-tests (Files): Likewise.
19370         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
19371         * tests/test-isinf.c (isinf): Likewise.
19372         * tests/test-isnan.c (isnan): Likewise.
19373         * tests/test-signbit.c (signbit): Likewise.
19374         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
19375         declaration, either as macro or with correct signature.
19376         (select): Ensure function under test is declared with correct
19377         signature in correct header.
19378         * tests/test-atexit.c (atexit): Likewise.
19379         * tests/test-btowc.c (btowc): Likewise.
19380         * tests/test-canonicalize-lgpl.c (realpath)
19381         (canonicalize_file_name): Likewise.
19382         * tests/test-ceilf1.c (ceilf): Likewise.
19383         * tests/test-ceill.c (ceill): Likewise.
19384         * tests/test-chown.c (chown): Likewise.
19385         * tests/test-dprintf-posix.c (dprintf): Likewise.
19386         * tests/test-dup2.c (dup2): Likewise.
19387         * tests/test-dup3.c (dup3): Likewise.
19388         * tests/test-duplocale.c (duplocale): Likewise.
19389         * tests/test-fchdir.c (fchdir): Likewise.
19390         * tests/test-fchownat.c (fchownat): Likewise.
19391         * tests/test-fcntl.c (fcntl): Likewise.
19392         * tests/test-fdopendir.c (fdopendir): Likewise.
19393         * tests/test-fflush.c (fflush): Likewise.
19394         * tests/test-flock.c (flock): Likewise.
19395         * tests/test-floorf1.c (floorf): Likewise.
19396         * tests/test-floorl.c (floorl): Likewise.
19397         * tests/test-fnmatch.c (fnmatch): Likewise.
19398         * tests/test-fopen.c (fopen): Likewise.
19399         * tests/test-fprintf-posix.c (fprintf): Likewise.
19400         * tests/test-freopen.c (freopen): Likewise.
19401         * tests/test-frexp.c (frexp): Likewise.
19402         * tests/test-frexpl.c (frexpl): Likewise.
19403         * tests/test-fseek.c (fseek): Likewise.
19404         * tests/test-fseeko.c (fseeko): Likewise.
19405         * tests/test-fstatat.c (fstatat): Likewise.
19406         * tests/test-fsync.c (fsync): Likewise.
19407         * tests/test-ftell.c (ftell): Likewise.
19408         * tests/test-ftello.c (ftello): Likewise.
19409         * tests/test-futimens.c (futimens): Likewise.
19410         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
19411         (gai_strerror): Likewise.
19412         * tests/test-getcwd.c (getcwd): Likewise.
19413         * tests/test-getdelim.c (getdelim): Likewise.
19414         * tests/test-getdtablesize.c (getdtablesize): Likewise.
19415         * tests/test-getgroups.c (getgroups): Likewise.
19416         * tests/test-gethostname.c (gethostname): Likewise.
19417         * tests/test-getline.c (getline): Likewise.
19418         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
19419         Likewise.
19420         * tests/test-gettimeofday.c (gettimeofday): Likewise.
19421         * tests/test-glob.c (glob, globfree): Likewise.
19422         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
19423         * tests/test-inet_ntop.c (inet_ntop): Likewise.
19424         * tests/test-inet_pton.c (inet_pton): Likewise.
19425         * tests/test-isblank.c (isblank): Likewise.
19426         * tests/test-lchown.c (lchown): Likewise.
19427         * tests/test-ldexpl.c (ldexpl): Likewise.
19428         * tests/test-link.c (link): Likewise.
19429         * tests/test-linkat.c (linkat): Likewise.
19430         * tests/test-lseek.c (lseek): Likewise.
19431         * tests/test-lstat.c (lstat): Likewise.
19432         * tests/test-mbrtowc.c (mbrtowc): Likewise.
19433         * tests/test-mbsinit.c (mbsinit): Likewise.
19434         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
19435         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
19436         * tests/test-memchr.c (memchr): Likewise.
19437         * tests/test-memcmp.c (memcmp): Likewise.
19438         * tests/test-memmem.c (memmem): Likewise.
19439         * tests/test-memrchr.c (memrchr): Likewise.
19440         * tests/test-mkdir.c (mkdir): Likewise.
19441         * tests/test-mkdirat.c (mkdirat): Likewise.
19442         * tests/test-mkfifo.c (mkfifo): Likewise.
19443         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
19444         * tests/test-mknod.c (mknod): Likewise.
19445         * tests/test-nanosleep.c (nanosleep): Likewise.
19446         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
19447         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
19448         Likewise.
19449         * tests/test-open.c (open): Likewise.
19450         * tests/test-openat.c (openat): Likewise.
19451         * tests/test-perror.c (perror): Likewise.
19452         * tests/test-pipe2.c (pipe2): Likewise.
19453         * tests/test-poll.c (poll): Likewise.
19454         * tests/test-popen.c (popen, pclose): Likewise.
19455         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
19456         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
19457         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
19458         (posix_spawn_file_actions_destroy)
19459         (posix_spawn_file_actions_addclose)
19460         (posix_spawn_file_actions_addopen)
19461         (posix_spawn_file_actions_adddup2): Likewise.
19462         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
19463         * tests/test-pread.c (pread): Likewise.
19464         * tests/test-printf-posix.c (printf): Likewise.
19465         * tests/test-pty.c (openpty, forkpty): Likewise.
19466         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
19467         (random_r): Likewise.
19468         * tests/test-rawmemchr.c (rawmemchr): Likewise.
19469         * tests/test-readlink.c (readlink): Likewise.
19470         * tests/test-remove.c (remove): Likewise.
19471         * tests/test-rename.c (rename): Likewise.
19472         * tests/test-renameat.c (renameat): Likewise.
19473         * tests/test-rmdir.c (rmdir): Likewise.
19474         * tests/test-round1.c (round): Likewise.
19475         * tests/test-roundf1.c (roundf): Likewise.
19476         * tests/test-roundl.c (roundl): Likewise.
19477         * tests/test-setenv.c (setenv): Likewise.
19478         * tests/test-sigaction.c (sigaction): Likewise.
19479         * tests/test-sleep.c (sleep): Likewise.
19480         * tests/test-snprintf.c (snprintf): Likewise.
19481         * tests/test-sprintf-posix.c (sprintf): Likewise.
19482         * tests/test-stat.c (stat): Likewise.
19483         * tests/test-stpncpy.c (stpncpy): Likewise.
19484         * tests/test-strcasestr.c (strcasestr): Likewise.
19485         * tests/test-strchrnul.c (strchrnul): Likewise.
19486         * tests/test-strerror.c (strerror): Likewise.
19487         * tests/test-strsignal.c (strsignal): Likewise.
19488         * tests/test-strstr.c (strstr): Likewise.
19489         * tests/test-strtod.c (strtod): Likewise.
19490         * tests/test-strverscmp.c (strverscmp): Likewise.
19491         * tests/test-symlink.c (symlink): Likewise.
19492         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
19493         * tests/test-times.c (times): Likewise.
19494         * tests/test-trunc1.c (trunc): Likewise.
19495         * tests/test-truncf1.c (truncf): Likewise.
19496         * tests/test-truncl.c (truncl): Likewise.
19497         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
19498         Likewise.
19499         * tests/test-uname.c (uname): Likewise.
19500         * tests/test-unlink.c (unlink): Likewise.
19501         * tests/test-unlinkat.c (unlinkat): Likewise.
19502         * tests/test-unsetenv.c (unsetenv): Likewise.
19503         * tests/test-usleep.c (usleep): Likewise.
19504         * tests/test-utimensat.c (utimensat): Likewise.
19505         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
19506         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
19507         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
19508         * tests/test-vprintf-posix.c (vprintf): Likewise.
19509         * tests/test-vsnprintf.c (vsnprintf): Likewise.
19510         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
19511         * tests/test-wcrtomb.c (wcrtomb): Likewise.
19512         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
19513         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
19514         * tests/test-wcwidth.c (wcwidth): Likewise.
19515
19516         build: pull in conditional headers during GNULIB_POSIXCHECK
19517         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
19518         definitions from any conditionally-included headers.
19519         * lib/stdlib.in.h (includes): Likewise.
19520         * lib/unistd.in.h (includes): Likewise.
19521
19522 2009-12-24  Bruno Haible  <bruno@clisp.org>
19523
19524         * tests/test-argv-iter.c: Include header file being tested immediately
19525         after config.h.
19526         * tests/test-base64.c: Likewise.
19527         * tests/test-flock.c: Likewise.
19528         * tests/test-fsync.c: Likewise.
19529         * tests/test-getdate.c: Likewise.
19530         * tests/test-getndelim2.c: Likewise.
19531         * tests/test-isfinite.c: Likewise.
19532         * tests/test-isinf.c: Likewise.
19533         * tests/test-strerror.c: Likewise.
19534         * tests/test-strsignal.c: Likewise.
19535
19536 2009-12-23  Eric Blake  <ebb9@byu.net>
19537
19538         unistd: work around cygwin bug
19539         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
19540         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
19541         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19542
19543 2009-12-23  Bruno Haible  <bruno@clisp.org>
19544
19545         localename: More tests.
19546         * tests/test-localename.c (SIZEOF): New macro.
19547         (categories): New variable.
19548         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
19549         test_locale_name_default): Add test w.r.t. thread locale.
19550         (test_locale_name_thread): New function.
19551         (main): Invoke it.
19552
19553         localename: Make aware of thread locale.
19554         * lib/localename.h (gl_locale_name_thread): New declaration.
19555         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
19556         behaviour with respect to thread locale.
19557         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
19558         <langinfo.h>, glthread/lock.h.
19559         (SIZE_BITS): New macro.
19560         (string_hash): New function.
19561         (struct hash_node): New type.
19562         (HASH_TABLE_SIZE): New macro.
19563         (struniq_hash_table, struniq_lock): New variables.
19564         (struniq): New function.
19565         (gl_locale_name_thread): New function.
19566         (gl_locale_name): Invoke it.
19567         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
19568         * modules/localename (Depends-on): Add lock.
19569         Reported by Mike Gran <spk121@yahoo.com>.
19570
19571 2009-12-23  Eric Blake  <ebb9@byu.net>
19572
19573         va-args: new module
19574         * modules/va-args: New file.
19575         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
19576         * MODULES.html.sh (Core language properties): Mention it.
19577
19578         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
19579         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
19580         named alias for __attribute__((__unused__)).
19581         * lib/chown.c: Update client.
19582         * lib/fchmodat.c: Likewise.
19583         * lib/fts.c: Likewise.
19584         * lib/getdate.y: Likewise.
19585         * lib/getgroups.c: Likewise.
19586         * lib/getopt.c: Likewise.
19587         * lib/getugroups.c: Likewise.
19588         * lib/mkdir.c: Likewise.
19589         * lib/mkfifo.c: Likewise.
19590         * lib/mkfifoat.c: Likewise.
19591         * lib/mknod.c: Likewise.
19592         * lib/mknodat.c: Likewise.
19593         * lib/readlink.c: Likewise.
19594         * lib/se-context.in.h: Likewise.
19595         * lib/se-selinux.in.h: Likewise.
19596         * lib/sockets.c: Likewise.
19597         * lib/symlink.c: Likewise.
19598         * lib/symlinkat.c: Likewise.
19599         * lib/unicodeio.c: Likewise.
19600         * lib/unistr.h: Likewise.
19601         * tests/test-areadlink.c: Likewise.
19602         * tests/test-areadlinkat.c: Likewise.
19603         * tests/test-filenamecat.c: Likewise.
19604         * tests/test-fseeko.c: Likewise.
19605         * tests/test-ftello.c: Likewise.
19606         * tests/test-getdate.c: Likewise.
19607         * tests/test-getgroups.c: Likewise.
19608         * tests/test-gethostname.c: Likewise.
19609         * tests/test-quotearg.c: Likewise.
19610         * tests/test-version-etc.c: Likewise.
19611         * tests/test-xalloc-die.c: Likewise.
19612         * tests/test-xfprintf-posix.c: Likewise.
19613         * tests/test-xprintf-posix.c: Likewise.
19614         * tests/test-xvasprintf.c: Likewise.
19615
19616         tests: avoid compiler warnings
19617         * tests/test-fcntl.c (main): Delete unused parameters.
19618         * tests/test-freopen-safer.c (main): Likewise.
19619         * tests/test-xalloc-die.c (main): Mark unused parameters.
19620         * tests/test-fseeko.c (main): Likewise.
19621         * tests/test-ftello.c (main): Likewise.
19622         * tests/test-nanosleep.c (main): Avoid declaration warning.
19623         * tests/test-sleep.c (main): Likewise.
19624         * tests/test-unsetenv.c (main): Silence warning about string
19625         literal.
19626         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19627
19628 2009-12-23  Bruno Haible  <bruno@clisp.org>
19629
19630         * tests/test-localename.c (test_locale_name): New function, extracted
19631         from main. Also test mixed situations.
19632         (test_locale_name_posix, test_locale_name_environ,
19633         test_locale_name_default): New functions.
19634         (main): Invoke them all.
19635         * modules/localename-tests (configure.ac): Test for newlocale.
19636
19637 2009-12-23  Bruno Haible  <bruno@clisp.org>
19638
19639         unistd: Ensure getcwd gets declared before being overridden.
19640         * lib/unistd.in.h: Conditionally include <io.h>.
19641
19642 2009-12-22  Bruno Haible  <bruno@clisp.org>
19643
19644         wchar: Diagnose broken combination of glibc and gcc versions and flags.
19645         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
19646         (gl_WCHAR_H): Invoke it.
19647         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
19648         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
19649         Reported by Karl Berry <karl@freefriends.org>.
19650
19651 2009-12-22  Eric Blake  <ebb9@byu.net>
19652
19653         math, unistd: avoid redundant includes
19654         * lib/math.in.h (isnan): No need to re-include <math.h>.
19655         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
19656
19657         getsubopt: work around cygwin bug
19658         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
19659         avoid conflicting with system getsubopt.
19660         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
19661         bug.
19662
19663         getopt: synchronize from glibc
19664         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
19665         parameter order.  Adjust all callers.
19666         (_getopt_internal_r, main): Adjust quoting in error messages.
19667         Drop considerations for outdated POSIX 1003.2 error message.
19668         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
19669         callers.
19670         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
19671
19672         test-getopt: test stderr behavior
19673         * modules/getopt-posix-tests (Depends-on): Add dup2.
19674         * tests/test-getopt.c (ASSERT): Avoid stderr.
19675         (main): Move stderr to a temporary file.
19676         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
19677         Instead, add parameter to inform caller if output occurred.
19678         (test_getopt): Adjust all existing tests to expect silence, and
19679         add new tests of leading ":".
19680         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19681         glibc shortcomings with leading "-:" or "+:" in optstring.
19682         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19683         Likewise.
19684         * doc/posix-functions/getopt.texi (getopt): Likewise.
19685
19686         test-getopt: enhance test
19687         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
19688         supports optind=0.
19689         * tests/test-getopt.c (OPTIND_MIN): Move...
19690         * tests/test-getopt.h (OPTIND_MIN): ...here.
19691         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
19692         Require that optind=0 works, since modern BSD supports it in
19693         addition to optreset, and since coreutils expects it.
19694         (test_getopt_long_only): New test.
19695         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19696         glibc shortcomings with 'W;', and enforcement of optind=0.
19697         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19698         Likewise.
19699
19700 2009-12-21  Bruno Haible  <bruno@clisp.org>
19701
19702         localename: Improvements for MacOS X and Cygwin.
19703         * lib/localename.h (gl_locale_name_environ): New declaration.
19704         * lib/localename.c (gl_locale_name_environ): New function, extracted from
19705         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
19706         (gl_locale_name_posix): Invoke it.
19707         (gl_locale_name_default): Add comments. Use Windows native API also on
19708         Cygwin.
19709
19710 2009-12-21  Bruno Haible  <bruno@clisp.org>
19711
19712         Update list of Win32 locale ids.
19713         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
19714         (LANG_SAMI): Renamed from LANG_SAAMI.
19715         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
19716         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
19717         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
19718         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
19719         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
19720         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
19721         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
19722         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
19723         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
19724         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
19725         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
19726         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
19727         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
19728         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
19729         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
19730         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
19731         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
19732         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
19733         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
19734         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
19735         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
19736         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
19737         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
19738         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
19739         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
19740         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
19741         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
19742         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
19743         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
19744         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
19745         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
19746         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
19747         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
19748         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
19749         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
19750         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
19751         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
19752         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
19753         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
19754         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
19755         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
19756         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
19757         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
19758         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
19759         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
19760         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
19761         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
19762         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
19763         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
19764         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
19765         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
19766         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
19767         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
19768         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
19769         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
19770         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
19771         Add more languages and countries for Sami, Sorbian. Add more countries
19772         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
19773         for Pashto. Change country for Syriac, Tswana.
19774
19775 2009-12-21  Eric Blake  <ebb9@byu.net>
19776
19777         test-utimens: avoid spurious failure
19778         * tests/test-chown.h (nap): Factor...
19779         * tests/nap.h: ...into new file.
19780         * tests/test-lchown.h (nap): Avoid duplication.
19781         * tests/test-utimens-common.h (nap): Use shared implementation,
19782         necessary on file systems with 1-second resolution.
19783         * modules/chown-tests (Files): Include new file.
19784         * modules/fdutimensat-tests (Files): Likewise.
19785         * modules/futimens-tests (Files): Likewise.
19786         * modules/lchown-tests (Files): Likewise.
19787         * modules/openat-tests (Files): Likewise.
19788         * modules/utimens-tests (Files): Likewise.
19789         * modules/utimensat-tests (Files): Likewise.
19790
19791 2009-12-19  Eric Blake  <ebb9@byu.net>
19792
19793         futimens, utimensat: work around Linux bug
19794         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
19795         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19796         * lib/utimensat.c (rpl_utimensat): Work around it.
19797         * lib/futimens.c (rpl_futimens): Adjust comment.
19798
19799         utimens: work around Linux ctime bug
19800         * lib/utimens.c (detect_ctime_bug): New helper function.
19801         (update_timespec): Differentiate between workaround needed for
19802         this bug vs. what is needed for systems that lack utimensat.
19803         (fdutimens, lutimens): Work around bug.
19804
19805         utimens: check for ctime update
19806         * tests/test-utimens-common.h (check_ctime): Define.
19807         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
19808         * tests/test-futimens.h (test_futimens): Likewise.
19809         * tests/test-lutimens.h (test_lutimens): Likewise.
19810         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19811         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19812
19813 2009-12-19  Bruno Haible  <bruno@clisp.org>
19814
19815         dprintf-posix: Check against memory leak fixed on 2009-12-15.
19816         * tests/test-dprintf-posix2.sh: New file.
19817         * tests/test-dprintf-posix2.c: New file.
19818         * modules/dprintf-posix-tests (Files): Add them.
19819         (configure.ac): Check for getrlimit and setrlimit.
19820         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19821
19822 2009-12-19  Bruno Haible  <bruno@clisp.org>
19823
19824         fprintf-posix: Check against memory leak fixed on 2009-12-15.
19825         * tests/test-fprintf-posix3.sh: New file.
19826         * tests/test-fprintf-posix3.c: New file.
19827         * modules/fprintf-posix-tests (Files): Add them.
19828         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19829
19830 2009-12-19  Eric Blake  <ebb9@byu.net>
19831
19832         dirfd: fix prototype
19833         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
19834         * lib/dirfd.c (dirfd): Likewise.
19835
19836         canonicalize: reduce memory usage
19837         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
19838         allocation to size.
19839         Reported by Solar Designer <solar@openwall.com>.
19840
19841 2009-12-19  Bruno Haible  <bruno@clisp.org>
19842
19843         New module attribute 'Applicability'.
19844         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
19845         * gnulib-tool: New option --extract-applicability.
19846         (func_usage): Document it.
19847         (sed_extract_prog): Recognize it.
19848         (func_get_applicability): New function.
19849         (func_import): Generalize handling of 'link-warning' module.
19850         * modules/link-warning (Applicability): New section.
19851         * modules/arg-nonnull (Applicability): New section.
19852         Repoted by Simon Josefsson <simon@josefsson.org>.
19853
19854 2009-12-19  Bruno Haible  <bruno@clisp.org>
19855
19856         fflush: tweak
19857         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
19858         * lib/fseeko.c (rpl_fseeko): Likewise.
19859
19860 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
19861
19862         * lib/gl_list.h: Fix typo in comment.
19863
19864 2009-12-16  Eric Blake  <ebb9@byu.net>
19865
19866         fcntl: use to simplify other modules
19867         * modules/cloexec (Depends-on): Add fcntl.
19868         * modules/fchdir (Depends-on): Likewise.
19869         * modules/fd-safer-flag (Depends-on): Likewise.
19870         * modules/unistd-safer (Depends-on): Likewise.
19871         * modules/dup3 (configure.ac): Set module indicator.
19872         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
19873         missing.
19874         * lib/fchdir.c (_gl_register_dup): Fix comment.
19875         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
19876         * lib/dup-safer.c (dup_safer): Likewise.
19877         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
19878         * lib/dup3.c (dup3): Likewise.
19879         * tests/test-fchdir.c (main): Enhance test.
19880         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
19881
19882         fcntl: port portions of fcntl to mingw
19883         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
19884         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
19885         replacement for mingw.
19886         * modules/fcntl (Description): Update.
19887         (Depends-on): Add dup2.
19888         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
19889         * modules/fcntl-h (Makefile.am): Substitute it.
19890         * lib/fcntl.in.h (fcntl): Update declaration.
19891         (F_DUPFD, F_GETFD): New macros, when needed.
19892         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19893         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
19894         * tests/test-fcntl.c (check_flags, main): Enhance test for items
19895         we now guarantee.
19896
19897         fcntl: work around cygwin bug in F_DUPFD
19898         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
19899         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
19900         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
19901         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
19902         * doc/posix-functions/fcntl.texi (fcntl): Document it.
19903
19904         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
19905         * modules/fcntl (Files): List new files.
19906         (configure.ac): Run a test.
19907         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
19908         * lib/fcntl.c (rpl_fcntl): Likewise.
19909         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
19910         (gl_FCNTL_H): Always replace fcntl.h.
19911         * modules/fcntl-h (Makefile.am): Substitute witnesses.
19912         * lib/fcntl.in.h (fcntl): Declare replacement.
19913         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
19914         needed, plus a witness.
19915         * doc/posix-functions/fcntl.texi (fcntl): Document this.
19916         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
19917         * tests/test-fcntl.c: New file.
19918         * modules/fcntl-tests: Likewise.
19919
19920         binary-io: avoid potential compilation warning
19921         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
19922         directives.
19923
19924         fflush: avoid compilation error on NetBSD
19925         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
19926         between off_t and fpos_t, since the latter is sometimes a struct.
19927         * lib/fseeko.c (rpl_fseeko): Likewise.
19928         Reported by Alexander Nasonov <alnsn@yandex.ru>.
19929
19930 2009-12-15  Eric Blake  <ebb9@byu.net>
19931
19932         fcntl-h, stdio, sys_ioctl: fix declarations
19933         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
19934         function must not take arguments.
19935         * lib/sys_ioctl.in.h (ioctl): Likewise.
19936         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
19937         (open): Add a link warning.
19938
19939 2009-12-15  Jim Meyering  <meyering@redhat.com>
19940
19941         areadlink, areadlink-with-size: relax license to LGPLv2+
19942         * modules/areadlink (License): Relax to LGPLv2+.
19943         * modules/areadlink-with-size (License): Likewise.
19944
19945 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
19946             Bruno Haible  <bruno@clisp.org>
19947
19948         *printf: Fix memory leak.
19949         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
19950         * lib/vfprintf.c (vfprintf): Likewise.
19951         * lib/dprintf.c (dprintf): Likewise.
19952         * lib/vdprintf.c (vdprintf): Likewise.
19953
19954 2009-12-14  Eric Blake  <ebb9@byu.net>
19955
19956         accept4: adjust module dependencies
19957         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
19958
19959         utimens: one more try at avoiding compiler warning
19960         * lib/utimens.c (lutimens): Lower scope of result.
19961
19962 2009-12-13  Bruno Haible  <bruno@clisp.org>
19963
19964         Move the malloc checking from module 'list' to new module 'xlist'.
19965         * modules/xlist: New file.
19966         * lib/gl_xlist.h: New file.
19967         * lib/gl_xlist.c: New file.
19968         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
19969         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
19970         gl_list_add_last, gl_list_add_before, gl_list_add_after,
19971         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
19972         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
19973         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
19974         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
19975         gl_sortedlist_nx_add): New declarations.
19976         (struct gl_list_implementation): Rename and change methods accordingly.
19977         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
19978         (gl_list_nx_create): Renamed from gl_list_create.
19979         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19980         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19981         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19982         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19983         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19984         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19985         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19986         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19987         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
19988         gl_list_create_empty.
19989         (gl_list_nx_create): Renamed from gl_list_create.
19990         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19991         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19992         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19993         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19994         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19995         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19996         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19997         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19998         * lib/gl_array_list.c: Don't include xalloc.h.
19999         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
20000         NULL upon out-of-memory.
20001         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
20002         out-of-memory.
20003         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
20004         Change return type to 'int'.
20005         (gl_array_nx_set_at): Renamed from gl_array_set_at.
20006         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20007         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
20008         upon out-of-memory.
20009         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
20010         upon out-of-memory.
20011         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
20012         upon out-of-memory.
20013         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
20014         upon out-of-memory.
20015         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
20016         out-of-memory.
20017         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
20018         Update.
20019         (gl_array_list_implementation): Update.
20020         * lib/gl_carray_list.c: Don't include xalloc.h.
20021         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
20022         Return NULL upon out-of-memory.
20023         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
20024         out-of-memory.
20025         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
20026         Change return type to 'int'.
20027         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
20028         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20029         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
20030         upon out-of-memory.
20031         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
20032         upon out-of-memory.
20033         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
20034         out-of-memory.
20035         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
20036         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
20037         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
20038         Update.
20039         (gl_carray_list_implementation): Update.
20040         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
20041         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
20042         gl_linked_create_empty. Return NULL upon out-of-memory.
20043         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
20044         out-of-memory.
20045         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
20046         Change return type to 'int'. Return -1 upon out-of-memory.
20047         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
20048         out-of-memory.
20049         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
20050         upon out-of-memory.
20051         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
20052         upon out-of-memory.
20053         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
20054         NULL upon out-of-memory.
20055         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
20056         upon out-of-memory.
20057         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
20058         out-of-memory.
20059         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
20060         Update.
20061         * lib/gl_linked_list.c: Don't include xalloc.h.
20062         (gl_linked_list_implementation): Update.
20063         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
20064         (add_to_bucket): Change return type to 'int'.
20065         (gl_linkedhash_list_implementation): Update.
20066         * lib/gl_anytree_list1.h (free_subtree): New function.
20067         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
20068         gl_tree_create_empty. Return NULL upon out-of-memory.
20069         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
20070         Change return type to 'int'. Return -1 upon out-of-memory.
20071         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
20072         out-of-memory.
20073         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
20074         (gl_tree_remove_node): New function, moved here from
20075         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
20076         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
20077         Update.
20078         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
20079         malloc, not xmalloc. Return NULL upon out-of-memory.
20080         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20081         out-of-memory.
20082         (gl_tree_remove_node_from_tree): New function, extracted from
20083         gl_tree_remove_node.
20084         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20085         upon out-of-memory.
20086         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20087         out-of-memory.
20088         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20089         upon out-of-memory.
20090         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20091         upon out-of-memory.
20092         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20093         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
20094         not xmalloc. Return NULL upon out-of-memory.
20095         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20096         out-of-memory.
20097         (gl_tree_remove_node_from_tree): New function, extracted from
20098         gl_tree_remove_node.
20099         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20100         upon out-of-memory.
20101         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20102         out-of-memory.
20103         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20104         upon out-of-memory.
20105         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20106         upon out-of-memory.
20107         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20108         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
20109         gl_anytree_list1.h before gl_anyavltree_list2.h.
20110         (gl_avltree_list_implementation): Update.
20111         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
20112         gl_anytree_list1.h before gl_anyavltree_list2.h.
20113         (gl_rbtree_list_implementation): Update.
20114         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
20115         Change return type to 'int'. Return -1 upon out-of-memory. Use
20116         __builtin_expect.
20117         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
20118         (gl_avltreehash_list_implementation): Update.
20119         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
20120         (gl_rbtreehash_list_implementation): Update.
20121         * modules/array-list (Depends-on): Remove xalloc.
20122         * modules/carray-list (Depends-on): Likewise.
20123         * modules/linked-list (Depends-on): Likewise.
20124         * modules/linkedhash-list (Depends-on): Likewise.
20125         * modules/avltree-list (Depends-on): Likewise.
20126         * modules/rbtree-list (Depends-on): Likewise.
20127         * modules/avltreehash-list (Depends-on): Likewise.
20128         * modules/rbtreehash-list (Depends-on): Likewise.
20129
20130         * modules/xsublist: New file.
20131         * lib/gl_xsublist.h: New file.
20132         * lib/gl_xsublist.c: New file.
20133         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
20134         (gl_sublist_nx_create): New declaration.
20135         * lib/gl_sublist.c: Don't include xalloc.h.
20136         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
20137         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
20138         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
20139         Change return type to 'int'. Return -1 upon out-of-memory.
20140         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
20141         upon out-of-memory.
20142         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
20143         NULL upon out-of-memory.
20144         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
20145         upon out-of-memory.
20146         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
20147         NULL upon out-of-memory.
20148         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
20149         NULL upon out-of-memory.
20150         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
20151         upon out-of-memory.
20152         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
20153         (gl_sublist_list_implementation): Update.
20154         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
20155         upon out-of-memory.
20156         * modules/sublist (Depends-on): Remove xalloc.
20157
20158         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
20159         * tests/test-carray_list.c: Likewise.
20160         * tests/test-linked_list.c: Likewise.
20161         * tests/test-linkedhash_list.c: Likewise.
20162         * tests/test-avltree_list.c: Likewise.
20163         * tests/test-rbtree_list.c: Likewise.
20164         * tests/test-avltreehash_list.c: Likewise.
20165         * tests/test-rbtreehash_list.c: Likewise.
20166         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
20167         * modules/carray-list-tests (Makefile.am): Likewise.
20168         * modules/linked-list-tests (Makefile.am): Likewise.
20169         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20170         * modules/avltree-list-tests (Makefile.am): Likewise.
20171         * modules/rbtree-list-tests (Makefile.am): Likewise.
20172         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20173         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20174
20175         * NEWS: Mention the changes.
20176
20177         * lib/clean-temp.c: Include gl_xlist.h.
20178         * modules/clean-temp (Depends-on): Add xlist.
20179
20180         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
20181         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
20182
20183         * tests/test-array_oset.c: Include gl_xlist.h.
20184         * modules/array-oset-tests (Depends-on): Add xlist.
20185
20186         Reported by José E. Marchesi <jemarch@gnu.org>.
20187
20188 2009-12-13  Bruno Haible  <bruno@clisp.org>
20189
20190         Move the malloc checking from module 'oset' to new module 'xoset'.
20191         * modules/xoset: New file.
20192         * lib/gl_xoset.h: New file.
20193         * lib/gl_xoset.c: New file.
20194         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
20195         declarations.
20196         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
20197         (struct gl_oset_implementation): Rename and change methods accordingly.
20198         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
20199         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20200         'int'. Mark as __warn_unused_result__.
20201         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
20202         gl_oset_create_empty.
20203         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20204         'int'.
20205         * lib/gl_array_oset.c: Don't include xalloc.h.
20206         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
20207         malloc, not xmalloc.
20208         (grow): Change return type to 'int'. Don't call xalloc_die.
20209         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
20210         to 'int'.
20211         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
20212         'int'.
20213         (gl_array_oset_implementation): Update.
20214         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
20215         gl_tree_create_empty.
20216         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
20217         'int'.
20218         * lib/gl_avltree_oset.c: Don't include xalloc.h.
20219         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20220         xmalloc.
20221         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20222         not xmalloc.
20223         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20224         xmalloc.
20225         (gl_avltree_oset_implementation): Update.
20226         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
20227         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20228         xmalloc.
20229         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20230         not xmalloc.
20231         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20232         xmalloc.
20233         (gl_rbtree_oset_implementation): Update.
20234         * modules/array-oset (Depends-on): Remove xalloc.
20235         * modules/avltree-oset (Depends-on): Likewise.
20236         * modules/rbtree-oset (Depends-on): Likewise.
20237         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
20238         * tests/test-avltree_oset.c: Likewise.
20239         * tests/test-rbtree_oset.c: Likewise.
20240         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20241         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
20242         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20243         * NEWS: Mention the change.
20244
20245 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
20246
20247         maint.mk: allow a project to override release-prep commands
20248         * top/maint.mk (alpha, beta, stable): Move release-preparatory
20249         commands into a new rule.
20250         (release-prep): New rule.
20251         (release-prep-hook): New overridable variable.
20252
20253 2009-12-13  Bruno Haible  <bruno@clisp.org>
20254
20255         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
20256
20257 2009-12-13  Jim Meyering  <meyering@redhat.com>
20258
20259         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
20260         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
20261
20262 2009-12-12  Bruno Haible  <bruno@clisp.org>
20263
20264         duplocale: Tweak.
20265         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
20266
20267 2009-12-12  Karl Berry  <karl@gnu.org>
20268
20269         * config/srclist.txt (strtoll.c): tab changes, no more sync.
20270
20271 2009-12-12  Bruno Haible  <bruno@clisp.org>
20272
20273         * m4/po.m4: Undo incorrect untabification.
20274
20275 2009-12-12  Bruno Haible  <bruno@clisp.org>
20276
20277         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
20278         * modules/c-strtod (Depends-on): Add locale.
20279         * modules/c-strtold (Depends-on): Likewise.
20280
20281 2009-12-12  Bruno Haible  <bruno@clisp.org>
20282
20283         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
20284
20285 2009-12-11  Eric Blake  <ebb9@byu.net>
20286
20287         setenv: relax requirement in light of POSIX ruling
20288         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
20289         not NULL.
20290         * tests/test-setenv.c (main): Relax test.
20291         * tests/test-unsetenv.c (main): Likewise.
20292         * doc/posix-functions/setenv.texi (setenv): Document this.
20293         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20294
20295 2009-12-11  Bruno Haible  <bruno@clisp.org>
20296
20297         New module 'fd-safer-flag'.
20298         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
20299         * lib/dup-safer.c (dup_safer_flag): Remove function.
20300         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
20301         * lib/fd-safer.c (fd_safer_flag): Remove function.
20302         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
20303         * modules/cloexec (configure.ac): Drop indicator macro.
20304         * modules/fd-safer-flag: New file.
20305         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
20306         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
20307         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
20308
20309 2009-12-11  Bruno Haible  <bruno@clisp.org>
20310
20311         Tests for module 'nl_langinfo'.
20312         * modules/nl_langinfo-tests: New file.
20313         * tests/test-nl_langinfo.sh: New file.
20314         * tests/test-nl_langinfo.c: New file.
20315
20316         New module 'nl_langinfo'.
20317         * lib/nl_langinfo.c: New file.
20318         * m4/nl_langinfo.m4: New file.
20319         * modules/nl_langinfo: New file.
20320         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
20321
20322 2009-12-11  Bruno Haible  <bruno@clisp.org>
20323
20324         Tests for module 'langinfo'.
20325         * modules/langinfo-tests: New file.
20326         * tests/test-langinfo.c: New file.
20327
20328         New module 'langinfo'.
20329         * lib/langinfo.in.h: New file.
20330         * m4/langinfo_h.m4: New file.
20331         * modules/langinfo: New file.
20332         * doc/posix-headers/langinfo.texi: Mention the new module.
20333
20334 2009-12-11  Bruno Haible  <bruno@clisp.org>
20335
20336         * lib/config.charset: Untabify.
20337
20338 2009-12-11  Bruno Haible  <bruno@clisp.org>
20339
20340         * modules/unistd-safer (configure.ac): Drop indicator macro.
20341
20342 2009-12-11  Bruno Haible  <bruno@clisp.org>
20343
20344         Move pipe2-safer code to its own file.
20345         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
20346         * lib/pipe-safer.c (pipe2_safer): Remove function.
20347         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
20348         (Makefile.am): Add it to lib_SOURCES.
20349
20350 2009-12-10  Bruno Haible  <bruno@clisp.org>
20351
20352         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
20353
20354 2009-12-10  Bruno Haible  <bruno@clisp.org>
20355
20356         Declare which arguments expect non-NULL values, for GCC and clang.
20357         * build-aux/arg-nonnull.h: New file.
20358         * modules/arg-nonnull: New file.
20359         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
20360         (inet_ntop, inet_pton): Use it.
20361         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
20362         (closedir, dirfd, opendir, scandir, alphasort): Use it.
20363         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
20364         (open, openat): Use it.
20365         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
20366         (fnmatch): Use it.
20367         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
20368         (getopt, getopt_long, getopt_long_only): Use it.
20369         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
20370         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
20371         Use it.
20372         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
20373         (iconv_open): Use it.
20374         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
20375         (strtoimax, strtoumax): Use it.
20376         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
20377         (duplocale): Use it.
20378         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
20379         (frexp, frexpl): Use it.
20380         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
20381         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
20382         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
20383         (tsearch, tfind, tdelete, twalk): Use it.
20384         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
20385         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20386         sigpending): Use it.
20387         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
20388         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20389         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20390         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20391         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20392         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20393         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20394         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20395         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20396         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20397         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20398         Use it.
20399         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
20400         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
20401         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
20402         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
20403         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
20404         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
20405         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
20406         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
20407         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
20408         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
20409         strtoull, unsetenv): Use it.
20410         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
20411         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20412         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20413         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
20414         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
20415         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
20416         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
20417         (strcasecmp, strncasecmp): Use it.
20418         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
20419         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
20420         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
20421         rpl_setsockopt): Use it.
20422         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
20423         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
20424         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
20425         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
20426         (gettimeofday): Use it.
20427         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
20428         (times): Use it.
20429         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
20430         (uname): Use it.
20431         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
20432         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
20433         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
20434         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
20435         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
20436         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
20437         unlinkat, write): Use it.
20438         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
20439         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
20440         * lib/argv-iter.h: Include arg-nonnull.h.
20441         (_ATTRIBUTE_NONNULL_): Remove macro.
20442         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
20443         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
20444         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
20445         optimization.
20446         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
20447         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
20448         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
20449         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
20450         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
20451         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
20452         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
20453         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
20454         * modules/arpa_inet (Depends-on): Add arg-nonnull.
20455         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
20456         * modules/dirent (Depends-on): Add arg-nonnull.
20457         (Makefile.am): Insert arg-nonnull.h into dirent.h.
20458         * modules/fcntl-h (Depends-on): Add arg-nonnull.
20459         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
20460         * modules/fnmatch (Depends-on): Add arg-nonnull.
20461         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
20462         * modules/getopt-posix (Depends-on): Add arg-nonnull.
20463         (Makefile.am): Insert arg-nonnull.h into getopt.h.
20464         * modules/glob (Depends-on): Add arg-nonnull.
20465         (Makefile.am): Insert arg-nonnull.h into glob.h.
20466         * modules/iconv_open (Depends-on): Add arg-nonnull.
20467         (Makefile.am): Insert arg-nonnull.h into iconv.h.
20468         * modules/inttypes (Depends-on): Add arg-nonnull.
20469         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
20470         * modules/locale (Depends-on): Add arg-nonnull.
20471         (Makefile.am): Insert arg-nonnull.h into locale.h.
20472         * modules/math (Depends-on): Add arg-nonnull.
20473         (Makefile.am): Insert arg-nonnull.h into math.h.
20474         * modules/netdb (Depends-on): Add arg-nonnull.
20475         (Makefile.am): Insert arg-nonnull.h into netdb.h.
20476         * modules/search (Depends-on): Add arg-nonnull.
20477         (Makefile.am): Insert arg-nonnull.h into search.h.
20478         * modules/signal (Depends-on): Add arg-nonnull.
20479         (Makefile.am): Insert arg-nonnull.h into signal.h.
20480         * modules/spawn (Depends-on): Add arg-nonnull.
20481         (Makefile.am): Insert arg-nonnull.h into spawn.h.
20482         * modules/stdio (Depends-on): Add arg-nonnull.
20483         (Makefile.am): Insert arg-nonnull.h into stdio.h.
20484         * modules/stdlib (Depends-on): Add arg-nonnull.
20485         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
20486         * modules/string (Depends-on): Add arg-nonnull.
20487         (Makefile.am): Insert arg-nonnull.h into string.h.
20488         * modules/strings (Depends-on): Add arg-nonnull.
20489         (Makefile.am): Insert arg-nonnull.h into strings.h.
20490         * modules/sys_socket (Depends-on): Add arg-nonnull.
20491         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
20492         * modules/sys_stat (Depends-on): Add arg-nonnull.
20493         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
20494         * modules/sys_time (Depends-on): Add arg-nonnull.
20495         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
20496         * modules/sys_times (Depends-on): Add arg-nonnull.
20497         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
20498         * modules/sys_utsname (Depends-on): Add arg-nonnull.
20499         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
20500         * modules/time (Depends-on): Add arg-nonnull.
20501         (Makefile.am): Insert arg-nonnull.h into time.h.
20502         * modules/unistd (Depends-on): Add arg-nonnull.
20503         (Makefile.am): Insert arg-nonnull.h into unistd.h.
20504         * modules/wchar (Depends-on): Add arg-nonnull.
20505         (Makefile.am): Insert arg-nonnull.h into wchar.h.
20506         * modules/argv-iter (Depends-on): Add arg-nonnull.
20507         * tests/test-canonicalize.c (null_ptr): New function.
20508         (main): Use it.
20509         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
20510         (main): Use it.
20511         * tests/test-memmem.c (null_ptr): New function.
20512         (main): Use it.
20513         Reported by Jim Meyering.
20514
20515 2009-12-10  Bruno Haible  <bruno@clisp.org>
20516
20517         Use spaces for indentation, not tabs.
20518         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20519         * m4/*.m4: Untabify.
20520         * build-aux/*.h: Untabify.
20521         * tests/**/*.[hc]: Untabify.
20522         * README: New section "Indent with spaces, not TABs", based on
20523         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
20524         * NEWS: Mention the change.
20525
20526 2009-12-10  Bruno Haible  <bruno@clisp.org>
20527
20528         pty test: Fix link error.
20529         * modules/pty-tests (Makefile.am): Add the default LDADD value to
20530         test_pty_LDADD.
20531
20532 2009-12-07  Simon Josefsson  <simon@josefsson.org>
20533
20534         * modules/pty: New file.
20535         * modules/pty-tests: New file.
20536         * m4/pty.m4: New file.
20537         * tests/test-pty.c: New file.
20538         * doc/glibc-headers/pty.texi: Modified.
20539         * doc/glibc-functions/forkpty.texi: Modified.
20540         * doc/glibc-functions/openpty.texi: Modified.
20541
20542 2009-12-10  Bruno Haible  <bruno@clisp.org>
20543
20544         Avoid syntax error in C++ mode.
20545         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
20546
20547 2009-12-10  Bruno Haible  <bruno@clisp.org>
20548
20549         Use sed with option -e.
20550         * gnulib-tool (func_version, func_emit_copyright_notice,
20551         func_emit_initmacro_end, func_import, func_create_testdir): Pass
20552         option -e to sed.
20553         * modules/link-warning (Makefile.am): Likewise.
20554
20555 2009-12-10  Jim Meyering  <meyering@redhat.com>
20556
20557         mgetgroups: do not write bytes beyond end of malloc'd buffer
20558         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
20559         username, we call getgroups with a one-element-shorter buffer,
20560         but still told it the length was original, max_n_groups.
20561
20562 2009-12-09  Eric Blake  <ebb9@byu.net>
20563
20564         cloexec: relax license
20565         * modules/cloexec (Maintainer): Add myself.
20566         (License): Use LGPL, not GPL.
20567
20568         link-warning: optimize generation
20569         * modules/link-warning (Makefile.am): Reduce process usage.
20570
20571 2009-12-09  Bruno Haible  <bruno@clisp.org>
20572
20573         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
20574         workaround was added on 2009-11-17.
20575
20576 2009-12-09  Jim Meyering  <meyering@redhat.com>
20577             Bruno Haible  <bruno@clisp.org>
20578
20579         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
20580         * modules/link-warning (Makefile.am): Make the comment-removing sed
20581         command more robust in the face of bootstrap-prepended comment lines.
20582
20583 2009-12-09  Bruno Haible  <bruno@clisp.org>
20584
20585         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
20586         most one group.
20587
20588 2009-12-09  Simon Josefsson <simon@josefsson.org>
20589             Bruno Haible  <bruno@clisp.org>
20590
20591         * build-aux/link-warning.h: Add copyright notice.
20592         * modules/link-warning (Makefile.am): Generate link-warning.h from
20593         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
20594         * NEWS: Mention change in link-warning module.
20595         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
20596         * modules/dirent (Makefile.am): Add dependency to dirent.h.
20597         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
20598         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
20599         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
20600         * modules/math (Makefile.am): Add dependency to math.h.
20601         * modules/search (Makefile.am): Add dependency to search.h.
20602         * modules/signal (Makefile.am): Add dependency to signal.h.
20603         * modules/spawn (Makefile.am): Add dependency to spawn.h.
20604         * modules/stdio (Makefile.am): Add dependency to stdio.h.
20605         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
20606         * modules/string (Makefile.am): Add dependency to string.h.
20607         * modules/strings (Makefile.am): Add dependency to strings.h.
20608         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
20609         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
20610         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
20611         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
20612         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
20613         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
20614         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
20615         * modules/unistd (Makefile.am): Add dependency to unistd.h.
20616         * modules/wchar (Makefile.am): Add dependency to wchar.h.
20617
20618 2009-12-09  Bruno Haible  <bruno@clisp.org>
20619
20620         fchdir: Optimize away rpl_fstat when possible.
20621         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
20622         REPLACE_OPEN_DIRECTORY.
20623         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
20624
20625 2009-12-09  Bruno Haible  <bruno@clisp.org>
20626
20627         * lib/fchdir.c: Update comment.
20628
20629 2009-12-09  Bruno Haible  <bruno@clisp.org>
20630
20631         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
20632
20633 2009-12-08  Eric Blake  <ebb9@byu.net>
20634
20635         fchdir: avoid memory leak on re-registration.
20636         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
20637
20638 2009-12-08  Jim Meyering  <meyering@redhat.com>
20639
20640         init.sh: avoid Solaris 10 /bin/sh portability problem
20641         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
20642         sourced script:
20643           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
20644           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
20645           bar
20646         tests/init.sh relied on that, accepting a --set-path=DIR argument,
20647         and two tests used that idiom.
20648         * tests/init.sh: Update suggested usage comments.
20649         (path_prepend_): New function, to be used in place
20650         of the --src-path=DIR option.
20651         (setup_): Move PATH-prepending code into path_prepend_.
20652         * tests/test-pread.sh: Adapt to new usage.
20653         * tests/test-xalloc-die.sh: Likewise.
20654
20655 2009-12-08  Simon Josefsson  <simon@josefsson.org>
20656
20657         * doc/gnulib.texi (Glibc pty.h): Add.
20658         * doc/glibc-functions/forkpty.texi: Add.
20659         * doc/glibc-functions/openpty.texi: Add.
20660         Suggested by Bruno Haible.
20661
20662 2009-12-08  Eric Blake  <ebb9@byu.net>
20663
20664         fchdir: fix logic bugs
20665         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
20666         * tests/test-fchdir.c (main): Enhance test.
20667         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
20668         is in use.
20669
20670         dup2: fix logic bugs
20671         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
20672         REPLACE_DUP2 to decide when rpl_dup2 is needed.
20673         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
20674         exists.
20675         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
20676
20677 2009-12-07  Eric Blake  <ebb9@byu.net>
20678
20679         unlink: fix m4 detection
20680         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
20681
20682         unistd-safer: add unit test
20683         * modules/unistd-safer-tests: New file.
20684         * tests/test-dup-safer.c: Likewise.
20685         * tests/test-cloexec.c (setmode): Avoid compiler warning.
20686         * tests/test-dup2.c (setmode): Likewise.
20687         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
20688
20689         cloexec: preserve text vs. binary across dup_cloexec
20690         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
20691         mode.
20692         * modules/dup2-tests (Depends-on): Add binary-io.
20693         * modules/cloexec-tests (Depends-on): Likewise.
20694         * tests/test-dup2.c (setmode, is_mode): New helpers.
20695         (main): Add tests that translation mode is preserved.
20696         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
20697         Reported by Bruno Haible.
20698
20699         mgetgroups: reduce duplicate listings
20700         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
20701         resulting array.
20702         * tests/test-chown.h (test_chown): Simplify client.
20703         * tests/test-lchown.h (test_lchown): Likewise.
20704
20705 2009-12-06  Bruno Haible  <bruno@clisp.org>
20706
20707         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
20708         value.
20709
20710 2009-12-06  Bruno Haible  <bruno@clisp.org>
20711
20712         * lib/progname.c: Include stdio.h, stdlib.h.
20713         (set_program_name): Reject a NULL argument.
20714
20715 2009-12-05  Eric Blake  <ebb9@byu.net>
20716
20717         pipe2-safer: new module
20718         * modules/pipe2-safer: New file.
20719         * lib/unistd-safer.h (pipe2_safer): New prototype.
20720         * lib/unistd--.h (pipe2): New wrapper.
20721         * lib/pipe-safer.c (pipe2_safer): New function.
20722         * modules/pipe (Depends-on): Add pipe2-safer.
20723         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
20724
20725         stdlib-safer: preserve cloexec flag for mkostemp[s]
20726         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
20727         fd_safer_flag.
20728
20729         unistd-safer: allow preservation of cloexec status via flag
20730         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
20731         prototypes.
20732         * lib/dup-safer.c (dup_safer_flag): New function.
20733         * lib/fd-safer.c (fd_safer_flag): Likewise.
20734         * modules/cloexec (configure.ac): Set witness.
20735
20736         test-dup2: enhance test
20737         * modules/dup2-tests (Depends-on): Add cloexec.
20738         * tests/test-dup2.c (main): Enhance test.
20739
20740         cloexec: add dup_cloexec
20741         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
20742         header and comments.
20743         * lib/cloexec.c (set_cloexec_flag): Add comments.
20744         (dup_cloexec): New function, with mingw implementation borrowed
20745         from...
20746         * lib/w32spawn.h (dup_noinherit): ...here.
20747         * modules/execute (Depends-on): Add cloexec.
20748         * modules/pipe (Depends-on): Likewise.
20749         * modules/cloexec (Depends-on): Add dup2.
20750         * modules/cloexec-tests (Files): New file.
20751         * tests/test-cloexec.c: Likewise.
20752
20753         test-xalloc-die: fix test for mingw
20754         * modules/xalloc-die-tests (Files): Add tests/init.sh.
20755         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
20756         directory and .exe suffix off argv[0] output.
20757
20758         test-fseeko: fix test for mingw
20759         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
20760         than undefining fseek, so test will pass on mingw.
20761
20762 2009-12-05  Bruno Haible  <bruno@clisp.org>
20763
20764         * lib/progname.h (set_program_name): Clarify specification.
20765         * lib/progname.c (set_program_name): Likewise.
20766         Reported by Jim Meyering.
20767
20768 2009-12-05  Jim Meyering  <meyering@redhat.com>
20769
20770         maint.mk: backslash-escape parens in default regexp
20771         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
20772         backslash-escape the literal parentheses.
20773
20774         maint.mk: news-date-check: use grep -E
20775         * top/maint.mk (today): Define a Make variable, not a...
20776         (news-date-check): ...shell variable.
20777         (news-date-regexp): Use the Make variable.
20778         Use grep's -E option.  Change the failing diagnostic to mention
20779         the variable, $(news-date-regexp).
20780
20781 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
20782
20783         maintainer-makefile: allow customization of NEWS entry format
20784         * top/maint.mk (news-date-regexp): New overridable variable.
20785         (news-date-check): Use it.
20786
20787 2009-12-04  Eric Blake  <ebb9@byu.net>
20788
20789         mgetgroups: add xgetgroups, and avoid ENOSYS failures
20790         * lib/mgetgroups.h (xgetgroups): New prototype.
20791         * lib/mgetgroups.c (xgetgroups): New wrapper.
20792         (mgetgroups): Handle ENOSYS.
20793         * modules/mgetgroups (Depends-on): Add realloc.
20794         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
20795
20796         mgetgroups: avoid argument promotion issues with -1
20797         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
20798         for invalid gid_t.
20799         * tests/test-chown.h (getegid, test_chown): Likewise.
20800         * tests/test-lchown.h (getegid, test_lchown): Likewise.
20801
20802 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
20803
20804         exclude: Fix header file problems.
20805         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
20806
20807 2009-12-01  Jim Meyering  <meyering@redhat.com>
20808
20809         fts: fts_open: do not let an empty string cause immediate failure
20810         This is required in support of GNU rm, for which the command
20811         "rm A '' B" must process and remove both A and B, in spite of
20812         the empty string argument.
20813         * lib/fts.c (fts_open): Do not let the presence of an empty string
20814         cause fts_open to fail immediately.  Most fts-using tools must be
20815         able to process all arguments, in order, and can be expected to
20816         diagnose such arguments themselves.
20817
20818 2009-11-30  Eric Blake  <ebb9@byu.net>
20819
20820         utimens: fix compilation error
20821         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
20822         Declare variable at right scope.
20823
20824 2009-11-29  Jim Meyering  <meyering@redhat.com>
20825
20826         bootstrap: handle perl-5.11's changed --version output
20827         * build-aux/bootstrap (get_version): Handle perl separately,
20828         since perl-5.11's --version output is different.
20829
20830 2009-11-28  Jim Meyering  <meyering@redhat.com>
20831
20832         userspec: depend on the inttostr module, too
20833         * modules/userspec (Depends-on): Add inttostr.
20834
20835         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
20836         * lib/userspec.c (parse_with_separator): Do not accept a user ID
20837         number of MAXUID when it evaluates to (uid_t) -1.
20838         Likewise for group ID.  Reported by Matt McCutchen in
20839         <http://savannah.gnu.org/bugs/?28113>
20840
20841         userspec: reformat to use spaces, not TABs
20842         * lib/userspec.c: Expand TABs to spaces.
20843         Add Emacs' "indent-tabs-mode: nil" hint.
20844
20845 2009-11-27  Eric Blake  <ebb9@byu.net>
20846
20847         getopt-gnu: flush out another BSD bug
20848         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
20849         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
20850         flush out BSD bug.
20851         * tests/test-getopt.h (test_getopt): End lists with NULL.
20852         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20853         (test_getopt_long_posix): Enhance test.
20854         * modules/getopt-posix-tests (Depends-on): Add stdbool.
20855         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
20856         getopt-gnu.
20857         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20858         Likewise.
20859
20860 2009-11-27  Simon Josefsson  <simon@josefsson.org>
20861
20862         * modules/idpriv-droptemp-tests (Notice): Fix text.
20863
20864 2009-11-27  Jim Meyering  <meyering@redhat.com>
20865
20866         test-xalloc-die: avoid spurious failure due to libtool argv difference
20867         In a libtool-enabled project, this test would fail due to a difference
20868         in the emitted program name, e.g.,
20869         -test-xalloc-die: memory exhausted
20870         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
20871         Use program to avoid that.
20872         * modules/xalloc-die-tests (Depends-on): Add progname.
20873         * tests/test-xalloc-die.c: Include progname.h".
20874         (program_name): Remove decl.
20875         (main): Call set_program_name.
20876         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
20877
20878 2009-11-26  Richard Jones  <rjones@redhat.com>
20879
20880         w32sock: leave win32 error in place.
20881         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
20882
20883 2009-11-26  Eric Blake  <ebb9@byu.net>
20884
20885         init.sh: suggest to use skip_ and fail_ functions in comments
20886         * tests/init.sh: Add a sentence.
20887
20888 2009-11-25  Bruno Haible  <bruno@clisp.org>
20889
20890         init.sh: add documentation in comments
20891         * tests/init.sh: Add some developer and user documentation.
20892
20893 2009-11-26  Jim Meyering  <meyering@redhat.com>
20894
20895         init.sh: accommodate even those who specify bogus srcdir manually
20896         * tests/init.sh: Normally, srcdir is guaranteed by automake and
20897         configure-time tests to be sanitized, so that there is no need to
20898         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
20899         (with no double quotes) suffices.  However, since tests may be
20900         invoked manually, and since you may explicitly set srcdir to the
20901         name of a directory containing spaces, do quote its uses here.
20902         * tests/test-pread.sh: Likewise.
20903         Suggested by Bruno Haible.
20904
20905         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
20906         * tests/test-pread.sh: Write no data into the pipe, because
20907         test-pread actually reads none.  This avoids a diagnostic,
20908         "bash: echo: write error: Broken pipe", that arises in the unusual
20909         event something is ignoring SIGPIPE, and might be interpreted
20910         as some sort of failure.  Reported by Bruno Haible.
20911
20912 2009-11-25  Jim Meyering  <meyering@redhat.com>
20913
20914         test-pread: cover failure with ESPIPE and EINVAL
20915         * tests/test-pread.c (main): Test for failure, too.
20916         * tests/test-pread.sh: Invoke with stdin on a pipe.
20917         Suggested by Eric Blake.
20918
20919         pread: improvement and fix
20920         * modules/pread (Depends-on): Depend on lseek, for portability to
20921         e.g., mingw.  Suggested by Eric Blake.
20922         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
20923
20924         unistd.in.h: correct declaration of pread
20925         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
20926         Reported by Richard W.M. Jones.
20927
20928         test-pread.sh: distribute the test script
20929         * modules/pread-tests (Files): Include test-pread.sh.
20930
20931         test-pread.sh: clean up
20932         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
20933         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
20934         That is unnecessary, since it's always ".".
20935         Suggestion from Eric Blake.
20936
20937         test-pread.sh: make executable
20938         * tests/test-pread.sh: Set executable bit.
20939         Reported by Eric Blake.
20940
20941         correct typo in test-pread.sh
20942         * tests/test-pread.sh: Add #! line.
20943
20944         test pread
20945         * tests/test-pread.c: New file.
20946         * tests/test-pread.sh: Likewise.
20947         * modules/pread-tests: Likewise.
20948
20949         pread: new module
20950         * modules/pread: New file.
20951         * lib/unistd.in.h (pread): Define/declare.
20952         * lib/pread.c (pread): New file.
20953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
20954         * modules/unistd (Makefile.am): Substitute witnesses.
20955         * doc/posix-functions/pread.texi (pread): Update.
20956         * MODULES.html.sh: Add pread.
20957
20958 2009-11-25  Jim Meyering  <meyering@redhat.com>
20959
20960         tests/init.sh: new file to be used via most *.sh tests
20961         * tests/init.sh: New file.
20962
20963 2009-11-25  Eric Blake  <ebb9@byu.net>
20964
20965         utimens: work around older Linux failure with symlinks
20966         * lib/utimens.c (lutimensat_works_really): New variable.
20967         (fdutimens, lutimens): Use it to manage kernels that support
20968         nanosecond times on files, but not on symlinks.
20969         Reported by OndÅ™ej Vašík.
20970
20971         utimes: fix configure grammar
20972         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
20973
20974 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
20975
20976         regex: Fix fastmap for multibyte character ranges.
20977         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
20978         characters when a multibyte character range is included.
20979
20980 2009-11-22  Andy Wingo  <wingo@pobox.com>
20981
20982         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
20983         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
20984
20985 2009-11-24  Bruno Haible  <bruno@clisp.org>
20986
20987         doc: Most *_l functions exist in MacOS X 10.5.
20988         * doc/posix-functions/duplocale.texi: Update platforms list.
20989         * doc/posix-functions/freelocale.texi: Likewise.
20990         * doc/posix-functions/newlocale.texi: Likewise.
20991         * doc/posix-functions/uselocale.texi: Likewise.
20992         * doc/posix-functions/isalnum_l.texi: Likewise.
20993         * doc/posix-functions/isalpha_l.texi: Likewise.
20994         * doc/posix-functions/isblank_l.texi: Likewise.
20995         * doc/posix-functions/iscntrl_l.texi: Likewise.
20996         * doc/posix-functions/isdigit_l.texi: Likewise.
20997         * doc/posix-functions/isgraph_l.texi: Likewise.
20998         * doc/posix-functions/islower_l.texi: Likewise.
20999         * doc/posix-functions/isprint_l.texi: Likewise.
21000         * doc/posix-functions/ispunct_l.texi: Likewise.
21001         * doc/posix-functions/isspace_l.texi: Likewise.
21002         * doc/posix-functions/isupper_l.texi: Likewise.
21003         * doc/posix-functions/iswalnum_l.texi: Likewise.
21004         * doc/posix-functions/iswalpha_l.texi: Likewise.
21005         * doc/posix-functions/iswblank_l.texi: Likewise.
21006         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21007         * doc/posix-functions/iswctype_l.texi: Likewise.
21008         * doc/posix-functions/iswdigit_l.texi: Likewise.
21009         * doc/posix-functions/iswgraph_l.texi: Likewise.
21010         * doc/posix-functions/iswlower_l.texi: Likewise.
21011         * doc/posix-functions/iswprint_l.texi: Likewise.
21012         * doc/posix-functions/iswpunct_l.texi: Likewise.
21013         * doc/posix-functions/iswspace_l.texi: Likewise.
21014         * doc/posix-functions/iswupper_l.texi: Likewise.
21015         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21016         * doc/posix-functions/isxdigit_l.texi: Likewise.
21017         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
21018         * doc/posix-functions/strcasecmp_l.texi: Likewise.
21019         * doc/posix-functions/strcoll_l.texi: Likewise.
21020         * doc/posix-functions/strfmon_l.texi: Likewise.
21021         * doc/posix-functions/strftime_l.texi: Likewise.
21022         * doc/posix-functions/strncasecmp_l.texi: Likewise.
21023         * doc/posix-functions/strxfrm_l.texi: Likewise.
21024         * doc/posix-functions/tolower_l.texi: Likewise.
21025         * doc/posix-functions/toupper_l.texi: Likewise.
21026         * doc/posix-functions/towctrans_l.texi: Likewise.
21027         * doc/posix-functions/towlower_l.texi: Likewise.
21028         * doc/posix-functions/towupper_l.texi: Likewise.
21029         * doc/posix-functions/wcscoll_l.texi: Likewise.
21030         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21031         * doc/posix-functions/wctrans_l.texi: Likewise.
21032         * doc/posix-functions/wctype_l.texi: Likewise.
21033         * doc/glibc-functions/strptime_l.texi: Likewise.
21034         * doc/glibc-functions/strtod_l.texi: Likewise.
21035         * doc/glibc-functions/strtof_l.texi: Likewise.
21036         * doc/glibc-functions/strtol_l.texi: Likewise.
21037         * doc/glibc-functions/strtold_l.texi: Likewise.
21038         * doc/glibc-functions/strtoll_l.texi: Likewise.
21039         * doc/glibc-functions/strtoul_l.texi: Likewise.
21040         * doc/glibc-functions/strtoull_l.texi: Likewise.
21041         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21042         * doc/glibc-functions/wcstod_l.texi: Likewise.
21043         * doc/glibc-functions/wcstof_l.texi: Likewise.
21044         * doc/glibc-functions/wcstol_l.texi: Likewise.
21045         * doc/glibc-functions/wcstold_l.texi: Likewise.
21046         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21047         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21048         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21049
21050 2009-11-24  Bruno Haible  <bruno@clisp.org>
21051
21052         duplocale: Fix logic bug.
21053         * lib/duplocale.c: Don't include <langinfo.h>.
21054         (_NL_LOCALE_NAME): Remove macro.
21055         (rpl_duplocale): Use setlocale instead of nl_langinfo.
21056         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
21057
21058 2009-11-23  Jim Meyering  <meyering@redhat.com>
21059
21060         test-update-copyright: don't hard-code /usr/bin/perl
21061         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
21062         perl to print the current year.  Gilles Espinasse reported that
21063         the replaced use of perl was hard-coded as /usr/bin/perl.
21064
21065 2009-11-23  Bruno Haible  <bruno@clisp.org>
21066
21067         duplocale: Add support for glibc 2.3.x.
21068         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
21069
21070 2009-11-22  Bruno Haible  <bruno@clisp.org>
21071
21072         vasnprintf: Tiny optimization.
21073         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
21074         MacOS X.
21075
21076 2009-11-22  Bruno Haible  <bruno@clisp.org>
21077
21078         Tests for module 'duplocale'.
21079         * modules/duplocale-tests: New file.
21080         * tests/test-duplocale.c: New file.
21081
21082         New module 'duplocale'.
21083         * m4/duplocale.m4: New file.
21084         * lib/locale.in.h (duplocale): New declaration.
21085         * lib/duplocale.c: New file.
21086         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
21087         gl_LOCALE_H_DEFAULTS): New macros.
21088         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
21089         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
21090         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
21091         REPLACE_DUPLOCALE.
21092         * modules/duplocale: New file.
21093         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
21094
21095 2009-11-22  Bruno Haible  <bruno@clisp.org>
21096
21097         * modules/locale-tests (configure.ac): Test for newlocale function.
21098         * tests/test-locale.c: When the system has extended locale functions,
21099         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
21100
21101         locale: Make locale_t available when possible.
21102         * lib/locale.in.h: Include <xlocale.h> when it exists.
21103         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
21104         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
21105         * modules/locale (Depends-on): Add extensions.
21106         (Makefile.am): Also substitute HAVE_XLOCALE_H.
21107         * doc/posix-headers/locale.texi: Document the problem with locale_t.
21108
21109 2009-11-22  Bruno Haible  <bruno@clisp.org>
21110
21111         Add comments.
21112         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
21113         invocation.
21114         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21115         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21116         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21117
21118 2009-11-22  Bruno Haible  <bruno@clisp.org>
21119
21120         error: account for the possibility of freopen (stdout).
21121         * lib/error.c: Include <unistd.h>.
21122         (flush_stdout): New function, extracted from error and error_at_line.
21123         Determine stdout's fd dynamically.
21124         (error, error_at_line): Invoke flush_stdout.
21125         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
21126         * modules/error (Depends-on): Add unistd.
21127
21128 2009-11-22  Bruno Haible  <bruno@clisp.org>
21129
21130         diffseq: Add comment.
21131         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
21132
21133 2009-11-22  Jim Meyering  <meyering@redhat.com>
21134
21135         c-stack: avoid defining an unused static function
21136         * lib/c-stack.c (find_stack_direction): Do not define this function
21137         when it will not be used.
21138
21139         diffseq: avoid spurious gcc warnings
21140         * lib/diffseq.h (IF_LINT2): Define.
21141         (compareseq): Use it to initialize two members of "part".
21142         This avoids two used-uninitialized warnings.
21143
21144 2009-11-21  Jim Meyering  <meyering@redhat.com>
21145
21146         c-stack: avoid "ignoring return value of `write'" warning
21147         * lib/c-stack.c: Include "ignore-value.h".
21148         (die): Explicitly ignore each write return value.
21149         * modules/c-stack (Depends-on): Add ignore-value.
21150
21151 2009-11-21  Bruno Haible  <bruno@clisp.org>
21152
21153         diffseq: reduce scope of variable 'best'.
21154         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
21155         variable, earlier used for two different purposes.
21156
21157 2009-11-21  Jim Meyering  <meyering@redhat.com>
21158
21159         diffseq: remove useless assignment to "best"
21160         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
21161         assignment.  At that point "best" is already guaranteed to be zero.
21162
21163 2009-11-20  Eric Blake  <ebb9@byu.net>
21164
21165         build: mention ftp redirector in release announcements
21166         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
21167         values that used to come from cfg.mk; mention FTP redirect URL.
21168         * build-aux/announce-gen: Mention the mirror list.
21169         Suggested by Karl Berry.
21170
21171         nanosleep: improve port to mingw
21172         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
21173         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
21174         LIB_NANOSLEEP, but only when needed.
21175         * modules/select (Link): Document LIBSOCKET.
21176         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
21177         enough.
21178
21179         nanosleep: work around cygwin bug
21180         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
21181         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
21182         bug.
21183         (getnow): Delete, not needed.
21184         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
21185         LIB_CLOCK_GETTIME.
21186         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
21187         clock-time, gettime.
21188         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
21189         bug.
21190         * modules/nanosleep-tests: New test.
21191         * tests/test-nanosleep.c: New file.
21192
21193         sleep: work around cygwin bug
21194         * lib/sleep.c (rpl_sleep): Work around the bug.
21195         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
21196         (gl_PREREQ_SLEEP): Delete unused macro.
21197         * modules/sleep (Depends-on): Add verify.
21198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21199         * modules/unistd (Makefile.am): Substitute witness.
21200         * lib/unistd.in.h (sleep): Update prototype.
21201         * doc/posix-functions/sleep.texi (sleep): Document the bug.
21202         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
21203         * modules/sleep-tests (Depends-on): Check for alarm.
21204
21205 2009-11-20  Jim Meyering  <meyering@redhat.com>
21206
21207         maint.mk: improve sc_prohibit_magic_number_exit
21208         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
21209         so it does not match uses like System.exit(1).
21210         Add comments showing how to correct all offenders.
21211
21212 2009-11-19  Eric Blake  <ebb9@byu.net>
21213
21214         xalloc-die-tests: add missing library
21215         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
21216
21217         test-xvasprintf: silence compiler warnings
21218         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
21219         empty string from gcc.
21220
21221 2009-11-19  Jim Meyering  <meyering@redhat.com>
21222
21223         xfreopen: new module, from coreutils
21224         * modules/xfreopen: New module.
21225         * lib/xfreopen.c: New file.
21226         * lib/xfreopen.h: New file.
21227         * MODULES.html.sh (File stream based Input/Output"): Add it.
21228
21229 2009-11-19  Eric Blake  <ebb9@byu.net>
21230
21231         manywarnings: depend on warnings
21232         * modules/manywarnings (Depends-on): Add warnings.
21233
21234         build: avoid compiler warnings
21235         * lib/select.c (rpl_select): Delete unused variable.
21236         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
21237
21238 2009-11-18  Eric Blake  <ebb9@byu.net>
21239
21240         tests: avoid false negative with --with-packager
21241         * tests/test-version-etc.sh: Discard packager information.
21242         * tests/test-argp-version-etc-1.sh: Likewise.
21243         Reported by Mike Frysinger.
21244
21245         utimens: fix regression on Solaris
21246         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
21247         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
21248         can only change fd timestamps via futimesat.  Instead, use an
21249         additional witness macro to avoid BSD bug.
21250         Reported by Jim Meyering.
21251
21252 2009-11-17  Eric Blake  <ebb9@byu.net>
21253
21254         usleep: use it to simplify tests
21255         * modules/stat-time-tests (Depends-on): Add usleep.
21256         (configure.ac): Drop usleep check.
21257         * modules/chown-tests (Depends-on, configure.ac): Likewise.
21258         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
21259         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
21260         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
21261         * modules/openat-tests (Depends-on, configure.ac): Likewise.
21262         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
21263         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
21264         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
21265         Likewise.
21266         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
21267         * tests/test-lchown.h (nap): Likewise.
21268         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
21269         * tests/test-stat-time.c (nap): Likewise.
21270         * tests/test-utimens-common.h (nap): Update comments.
21271
21272         usleep: new module
21273         * modules/usleep: New file.
21274         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21275         * lib/usleep.c (usleep): Likewise.
21276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21277         * modules/unistd (Makefile.am): Substitute witnesses.
21278         * lib/unistd.in.h (usleep): Add declaration.
21279         * doc/pastposix-functions/usleep.texi (usleep): Document this.
21280         * MODULES.html.sh (Date and time): Likewise.
21281         * modules/usleep-tests (Depends-on): New test.
21282         * tests/test-usleep.c: New file.
21283
21284         chown: work around OpenBSD bug
21285         * lib/chown.c (rpl_chown): Work around the bug.
21286         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
21287         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
21288         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
21289         * modules/chown (Depends-on): Add stdbool.
21290         * modules/lchown (Depends-on): Likewise.
21291         * doc/posix-functions/chown.texi (chown): Document the bug.
21292         * doc/posix-functions/lchown.texi (lchown): Likewise.
21293         * tests/test-lchown.h (test_chown): Relax test.
21294
21295         mkstemp: avoid conflict with C++ keyword template
21296         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
21297         * lib/mkostemp.c (mkostemp): Likewise.
21298         * lib/mkostemps.c (mkostemps): Likewise.
21299         * lib/mkstemp.c (mkstemp): Likewise.
21300         * lib/mkstemps.c (mkstemps): Likewise.
21301
21302         xalloc-die-tests: optimize
21303         * tests/test-xalloc-die.sh: Reduce number of processes.
21304
21305 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21306
21307         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
21308         patch from ludo@gnu.org (Ludovic Courtès).
21309
21310 2009-11-17  Jim Meyering  <meyering@redhat.com>
21311
21312         version-etc: use proper license string
21313         * modules/version-etc (License): Use LGPL, not LGPLv3+.
21314         * modules/version-etc-fsf: Likewise.
21315
21316 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21317
21318         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
21319         printed to stdout.  Deal with EOL differences.
21320
21321 2009-11-17  Eric Blake  <ebb9@byu.net>
21322
21323         unsetenv: work around Solaris bug
21324         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
21325         * lib/unsetenv.c (rpl_unsetenv): Work around it.
21326         Reported by Jim Meyering.
21327
21328         vasnprintf: avoid compiler warnings
21329         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
21330         variables.
21331         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
21332
21333 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21334
21335         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
21336         settings since xalloc-die is no longer the self test,
21337         xalloc-die.sh is.
21338
21339 2009-11-17  Jim Meyering  <meyering@redhat.com>
21340
21341         test-xalloc-die.sh: make the code agree with the commit log
21342         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
21343         at the end, just in case you happen to have a test-xalloc-die
21344         program in some other PATH directory.
21345
21346         test-xalloc-die.sh: fix a portability bug
21347         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
21348         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
21349         Otherwise, argv[0] (as often seen in diagnostics) would be too
21350         system-dependent, sometimes with, and sometimes without the leading "./".
21351
21352         version-etc-fsf: relax license to LGPLv3+
21353         * modules/version-etc-fsf (License): Relax license.
21354
21355 2009-11-16  Eric Blake  <ebb9@byu.net>
21356
21357         xalloc-die-tests: avoid printing null pointer
21358         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
21359         shell script.
21360         * tests/test-xalloc-die.c (program_name): Declare.
21361         * tests/test-xalloc-die.sh (tmpfiles): New file.
21362
21363         setenv, unsetenv: work around various bugs
21364         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
21365         (setenv) [HAVE_SETENV]: Work around bugs.
21366         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
21367         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
21368         for bugs.
21369         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
21370         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
21371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
21372         * modules/stdlib (Makefile.am): Update substitutions.
21373         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
21374         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
21375         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21376         * modules/setenv-tests: New test.
21377         * modules/unsetenv-tests: Likewise.
21378         * tests/test-setenv.c: New file.
21379         * tests/test-unsetenv.c: Likewise.
21380
21381 2009-11-16  Jim Meyering  <meyering@redhat.com>
21382
21383         version-etc: relax license to LGPLv3+
21384         * modules/version-etc (License): Relax license.
21385
21386         better AC_REQUIRE expanded-before-required-warning avoidance
21387         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
21388         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
21389         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
21390         which is no longer needed.
21391
21392 2009-11-16  Eric Blake  <ebb9@byu.net>
21393
21394         test-freading: clean up temporary file
21395         * tests/test-freading.c (main): Remove file on success, and use
21396         ASSERT more liberally.
21397         Reported by Jim Meyering.
21398
21399 2009-11-16  Jim Meyering  <meyering@redhat.com>
21400
21401         avoid new AC_REQUIRE expanded-before-required warnings
21402         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
21403         merely using it.
21404         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
21405         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
21406
21407 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21408
21409         * tests/test-xalloc-die.c: New file.
21410         * modules/xalloc-die-tests: New file.
21411         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
21412         XFAIL_TESTS so it can be appended by modules.
21413
21414 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21415
21416         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
21417         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
21418
21419 2009-11-14  Eric Blake  <ebb9@byu.net>
21420
21421         fnmatch: avoid compiler warning
21422         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
21423         to silence compiler warning about mismatch signedness in ?:.
21424         Reported by Robert Millan.
21425
21426         intprops: add double-inclusion guard
21427         * lib/intprops.h: Allow idempotent includes.
21428         Suggested by Bruce Korb.
21429
21430         openat: detect Solaris fchownat bug
21431         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
21432         penalizing glibc chownat when only lchownat is broken.
21433         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
21434         trailing slash bugs.
21435         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
21436         * modules/openat-tests (Files): Include more files.
21437         (Depends-on): Add mgetgroups, sleep, stat-time.
21438         (configure.ac): Add additional checks.
21439         (Makefile.am): Build new test.
21440         * tests/test-fchownat.c: New file.
21441
21442         lchown: detect Solaris and FreeBSD bug
21443         * lib/lchown.c (rpl_lchown): Work around bug.
21444         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
21445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21446         * modules/unistd (Makefile.am): Populate it.
21447         * lib/unistd.in.h (lchown): Update declaration.
21448         * doc/posix-functions/lchown.texi (lchown): Document the bug.
21449         * modules/lchown-tests: New file.
21450         * tests/test-lchown.h (test_lchown): Likewise.
21451         * tests/test-lchown.c (main): Likewise.
21452
21453         chown: detect Solaris and FreeBSD bug
21454         * lib/chown.c (rpl_chown): Work around bug.
21455         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
21456         (gl_PREREQ_CHOWN): Delete.
21457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21458         * modules/unistd (Makefile.am): Populate it.
21459         * lib/unistd.in.h (chown): Update declaration.
21460         * lib/lchown.c (chown): Update client.
21461         * modules/lchown (Depends-on): Add lstat.
21462         * doc/posix-functions/chown.texi (chown): Document the bug.
21463         * doc/posix-functions/getgroups.texi (getgroups): Document
21464         getgroups pitfall.
21465         * modules/chown-tests: New file.
21466         * tests/test-chown.h (test_chown): Likewise.
21467         * tests/test-chown.c (main): Likewise.
21468
21469 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
21470
21471         gnulib-tool: correctly detect absence of m4 directories
21472         * gnulib-tool: Avoid extra newline on data passed to wc -l.
21473
21474 2009-11-14  Jim Meyering  <meyering@redhat.com>
21475
21476         maint.mk: Prohibit inclusion of "xalloc.h" without use.
21477         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21478
21479 2009-11-14  John W. Eaton  <jwe@gnu.org>
21480
21481         strftime.h: wrap funtion declaration in extern "C" block
21482         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
21483
21484 2009-11-13  Eric Blake  <ebb9@byu.net>
21485
21486         getgroups: avoid compiler warning
21487         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
21488
21489         getgroups: work around FreeBSD bug
21490         * lib/getgroups.c (rpl_getgroups): Work around the bug.
21491         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
21492         * doc/posix-functions/getgroups.texi (getgroups): Document it.
21493         * tests/test-getgroups.c (main): Fix buffer overrun.
21494
21495         getgroups: avoid compilation failure
21496         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
21497         * modules/getgroups (Depends-on): Add stdint.
21498
21499 2009-11-13  Jim Meyering  <meyering@redhat.com>
21500
21501         test-getgroups: avoid compilation failure
21502         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
21503
21504 2009-11-13  Eric Blake  <ebb9@byu.net>
21505
21506         mgetgroups: new module, taken from coreutils
21507         * modules/mgetgroups: New file.
21508         * lib/mgetgroups.h: Likewise.
21509         * lib/mgetgroups.c (mgetgroups): Likewise.
21510         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
21511         * MODULES.html.sh (Users and groups): Mention it.
21512
21513         getgroups: don't expose GETGROUPS_T to user
21514         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
21515         an element at a time if GETGROUPS_T is wrong size.
21516         * lib/getugroups.h (getugroups): Change signature.
21517         * lib/unistd.in.h (getgroups): Likewise.
21518         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
21519         signature needs fixing.
21520         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
21521         AC_TYPE_GETGROUPS.
21522         * modules/group-member (Depends-on): Add getgroups.
21523         * lib/group-member.c (group_info, get_group_info): Use gid_t.
21524         (group_member): Rely on getgroups replacement.
21525         * lib/getugroups.c (getugroups): Use gid_t.
21526         * tests/test-getgroups.c (main): Likewise.
21527         * NEWS: Mention the signature change.
21528         * doc/posix-functions/getgroups.texi (getgroups): Mention the
21529         problem with signature.
21530         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
21531         GETGROUPS_T is still useful for setgroups.
21532
21533         getgroups, getugroups: provide stubs for mingw
21534         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
21535         * lib/getugroups.c (getugroups): Likewise.
21536         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
21537         function.  Modernize replacement scheme.
21538         (gl_PREREQ_GETGROUPS): Delete.
21539         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
21540         * modules/getgroups (configure.ac): Declare witness.
21541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21542         * modules/unistd (Depends-on): Substitute witness.
21543         * lib/unistd.in.h (getgroups): Declare replacement.
21544
21545         getgroups: avoid calling exit
21546         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
21547         drop xalloc.
21548         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
21549         dependencies.
21550         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
21551         exiting, in the rare case of malloc failure.
21552
21553         getgroups: fix logic error
21554         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
21555         has more than 20 groups.
21556         * modules/getgroups-tests: New test.
21557         * tests/test-getgroups.c: New file.
21558
21559 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21560
21561         * tests/test-base64.c: Improve.
21562
21563 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21564
21565         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
21566         Blake <ebb9@byu.net>.
21567
21568 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21569
21570         * tests/test-xvasprintf.c: Add %s%s related checks.
21571
21572 2009-11-12  Eric Blake  <ebb9@byu.net>
21573
21574         version-etc: match standards.texi style
21575         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
21576         and use <> only for URLs.
21577
21578 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
21579
21580         fts: do not fail on a submount during traversal
21581         * lib/fts.c (fts_build): Read the stat info again after opening
21582         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
21583         Original report at http://bugzilla.redhat.com/501848.
21584
21585 2009-11-12  Jim Meyering  <meyering@redhat.com>
21586
21587         bootstrap: sync from coreutils
21588         * build-aux/bootstrap (bootstrap_epilogue): New function.
21589         Use git_modules_config in one more place.  This make bootstrap's
21590         --gnulib-srcdir option more useful for testing.
21591
21592         bootstrap: generalize autoheader check
21593         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
21594         AC_CONFIG_HEADERS.
21595
21596 2009-11-11  Eric Blake  <ebb9@byu.net>
21597
21598         mkfifoat: use new modules for Solaris and BSD bugs
21599         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
21600         * lib/mkfifoat.c (mknodat): Split...
21601         * lib/mknodat.c (mknodat): ...into new file.
21602         * modules/mkfifoat (Files): Ship new file.
21603         (Depends-on): Add mkfifo, mknod.
21604         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
21605         (Depends-on): Add symlink.
21606         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
21607         redundant with test_mkfifo.h.
21608         (do_mkfifoat, do_mknodat): New helpers.
21609
21610         mknod: new module
21611         * modules/mknod: New file.
21612         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
21613         * lib/mknod.c (mknod): Likewise.
21614         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21615         defaults.
21616         * modules/sys_stat (Makefile.am): Substitute them.
21617         * lib/sys_stat.in.h (mknod): Declare replacement.
21618         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21619         Document it.
21620         * doc/posix-functions/mknod.texi (mknod): Likewise.
21621         * modules/mknod-tests: New test.
21622         * tests/test-mknod.c: Likewise.
21623
21624         mkfifo: new module
21625         * modules/mkfifo: New file.
21626         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
21627         * lib/mkfifo.c (mkfifo): Likewise.
21628         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21629         defaults.
21630         * modules/sys_stat (Makefile.am): Substitute them.
21631         * lib/sys_stat.in.h (mkfifo): Declare replacement.
21632         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21633         Document it.
21634         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
21635         * modules/mkfifo-tests: New test.
21636         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
21637         from test-mkfifoat.c.
21638         * tests/test-mkfifo.c: New file.
21639
21640         readlink: detect FreeBSD bug
21641         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
21642         slash on symlink.
21643         * doc/posix-functions/readlink.texi (readlink): Document the bug.
21644         * tests/test-readlink.h (test_readlink): Enhance test.
21645
21646         symlink: detect FreeBSD bug
21647         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
21648         slash on symlink.
21649         * doc/posix-functions/symlink.texi (symlink): Document the bug.
21650         * tests/test-symlink.h (test_symlink): Enhance test.
21651
21652 2009-11-10  Eric Blake  <ebb9@byu.net>
21653
21654         link: detect FreeBSD bug
21655         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
21656         symlink.
21657         * doc/posix-functions/link.texi (link): Document the bug.
21658         * tests/test-link.h (test_link): Enhance test.
21659         * tests/test-linkat.c (main): Update caller.
21660
21661         unlink, remove: detect FreeBSD bug
21662         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
21663         slash on symlink.
21664         * doc/posix-functions/unlink.texi (unlink): Document the bug.
21665         * doc/posix-functions/remove.texi (remove): Likewise.
21666         * tests/test-unlink.h (test_unlink): Enhance test.
21667         * tests/test-remove.c (main): Likewise.
21668
21669 2009-11-09  Eric Blake  <ebb9@byu.net>
21670
21671         rename: detect FreeBSD bug
21672         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
21673         slash on symlink.
21674         * modules/renameat-tests (Depends-on): Add filenamecat.
21675         * tests/test-rename.h (test_rename): Allow one more errno.
21676         * tests/test-renameat.c (main): Likewise.
21677         * doc/posix-functions/rename.texi (rename): Document the bug.
21678
21679         open: detect FreeBSD bug
21680         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
21681         symlink.
21682         * doc/posix-functions/open.texi (open): Document the bug.
21683         * doc/posix-functions/utimes.texi (utimes): Likewise.
21684         * tests/test-open.h (test_open): Add parameters, and test symlink
21685         handling.
21686         * tests/test-open.c (main): Adjust caller.
21687         * tests/test-fcntl-safer.c (main): Likewise.
21688         * modules/open-tests (Depends-on): Add stdbool, symlink.
21689         * modules/fcntl-safer-tests (Depends-on): Likewise.
21690         * tests/test-openat.c (main): Add test-open tests.
21691
21692         stat: detect FreeBSD bug
21693         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
21694         symlink.
21695         * doc/posix-functions/stat.texi (stat): Document the bug.
21696         * tests/test-stat.h (test_stat_func): Add argument.
21697         * tests/test-stat.c (main): Adjust caller.
21698         * tests/test-fstatat.c (main): Likewise.
21699         * modules/stat-tests (Depends-on): Add stdbool, symlink.
21700         Reported by Jim Meyering.
21701
21702 2009-11-09  James Youngman  <jay@gnu.org>
21703
21704         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
21705         * lib/strftime.c: Correct placement of #include "ignore-value.h".
21706
21707 2009-11-08  Jim Meyering  <meyering@redhat.com>
21708
21709         utimens: remove invalid futimesat call
21710         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
21711         It used the file descriptor of the target file as the DIR_FD
21712         parameter and NULL as the file name.  That caused failure with
21713         errno == EFAULT on FreeBSD-8.0-rc2
21714
21715 2009-11-07  Eric Blake  <ebb9@byu.net>
21716
21717         fflush, freadseek: use fseeko, not fseek
21718         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
21719         (clear_ungetc_buffer): Avoid potential problems on large files.
21720         * lib/freadseek.c (freadseek): Likewise.
21721         * modules/freadseek (Depends-on): Add fseeko.
21722         * modules/fseek (configure.ac): Set a witness.
21723         * tests/test-fflush.c (main): Use fseeko.
21724         * tests/test-fpurge.c (fseek): Disable link warning.
21725         * tests/test-freadable.c (fseek): Likewise.
21726         * tests/test-freading.c (fseek): Likewise.
21727         * tests/test-fseeko.c (fseek): Likewise.
21728         * tests/test-ftell.c (fseek): Likewise.
21729         * tests/test-ftello.c (fseek): Likewise.
21730         * tests/test-fwritable.c (fseek): Likewise.
21731         * tests/test-fwriting.c (fseek): Likewise.
21732
21733 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21734
21735         * modules/memchr (Depends-on): Drop getpagesize dependency.
21736
21737 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21738
21739         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
21740         Reported by Ludovic Courtès.
21741         * build-aux/pmccabe2html: Improve example usage.
21742         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
21743
21744 2009-11-06  Jim Meyering  <meyering@redhat.com>
21745
21746         do-release-commit-and-tag: New module.
21747         Automate the release-commit and tag process.
21748         * build-aux/do-release-commit-and-tag: New script, from coreutils.
21749         * modules/do-release-commit-and-tag: New file.
21750         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21751
21752 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21753
21754         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
21755         because test-select.c uses inet_pton.
21756
21757 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21758
21759         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
21760         GETADDRINFO_LIB.  Bump serial number.
21761         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
21762         Suggested by Eric Blake <ebb9@byu.net>.
21763
21764 2009-11-05  Eric Blake  <ebb9@byu.net>
21765
21766         strtod: detect darwin bug
21767         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
21768         Reported by Leo Davis.
21769
21770         freopen-safer: new module
21771         * modules/freopen-safer: New module.
21772         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
21773         * lib/freopen-safer.c (freopen_safer): New file.
21774         * lib/stdio-safer.h (freopen_safer): New declaration.
21775         * lib/stdio--.h (freopen): New override.
21776         * MODULES.html.sh (File stream based Input/Output): Mention it.
21777         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
21778         freopen-safer module.
21779         * doc/posix-functions/stderr.texi (stderr): Likewise.
21780         * doc/posix-functions/stdin.texi (stdin): Likewise.
21781         * doc/posix-functions/stdout.texi (stdout): Likewise.
21782         * modules/freopen-safer-tests: New test.
21783         * tests/test-reopen-safer.c: New file.
21784
21785 2009-11-05  Jim Meyering  <meyering@redhat.com>
21786
21787         maint.mk: Prohibit inclusion of "close-stream.h" without use.
21788         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21789
21790 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21791
21792         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
21793
21794 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21795
21796         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
21797
21798 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21799
21800         Fix link error.
21801         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21802         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21803
21804 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21805
21806         * tests/test-func.c: Also test value of __func__.
21807
21808 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21809
21810         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
21811         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
21812
21813 2009-11-05  Bruno Haible  <bruno@clisp.org>
21814
21815         Fix link error.
21816         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21817         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21818         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
21819
21820 2009-11-05  Bruno Haible  <bruno@clisp.org>
21821
21822         Tests for module 'inet_pton'.
21823         * modules/inet_pton-tests: New file.
21824         * tests/test-inet_pton.c: New file.
21825
21826 2009-11-05  Bruno Haible  <bruno@clisp.org>
21827
21828         Tests for module 'inet_ntop'.
21829         * modules/inet_ntop-tests: New file.
21830         * tests/test-inet_ntop.c: New file.
21831
21832 2009-11-04  Eric Blake  <ebb9@byu.net>
21833
21834         stdlib-safer: wrap all mkstemp variants
21835         * modules/mkostemp (configure.ac): Set witness.
21836         * modules/mkostemps (configure.ac): Likewise.
21837         * modules/mkstemps (configure.ac): Likewise.
21838         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
21839         (mkstemps_safer): Wrap more functions.
21840         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
21841         wrapping.
21842         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
21843         (mkstemps_safer): Implement the wrappers.
21844
21845         mkstemps, mkostemps: new modules
21846         * modules/mkostemps: New module.
21847         * modules/mkstemps: Likewise.
21848         * lib/mkostemps.c (mkostemps): New file.
21849         * lib/mkstemps.c (mkstemps): Likewise.
21850         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
21851         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
21852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
21853         * modules/stdlib (Makefile.am): Substitute them.
21854         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
21855         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
21856         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21857         * doc/gnulib.texi (Glibc stdlib.h): Include them.
21858         * MODULES.html.sh (File system functions): Mention them.
21859
21860         tempname: resync from glibc
21861         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
21862         same values for __GT_FILE as glibc.  Abort even when assertions
21863         are disabled.
21864         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
21865         match its value otherwise.  Allow idempotent inclusion.
21866         * lib/mkdtemp.c (mkdtemp): Adjust caller.
21867         * lib/mkostemp.c (mkostemp): Likewise.
21868         * lib/mkstemp.c (mkstemp): Likewise.
21869         * lib/tmpfile.c (tmpfile): Likewise.
21870         * NEWS: Document this.
21871
21872         utimens: fix use of futimens on older Linux
21873         * lib/utimens.c (fdutimens): Use updated, rather than original,
21874         timespec to avoid bug in older Linux kernel.
21875         Reported by Simon Josefsson.
21876
21877 2009-11-04  Bruno Haible  <bruno@clisp.org>
21878
21879         Make num_processors more flexible and consistent.
21880         * lib/nproc.h (enum nproc_query): New type.
21881         (num_processors): Add a 'query' argument.
21882         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
21883         (num_processors): Add a 'query' argument. Test the value of the
21884         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
21885         mingw, count the number of CPUs available for the current process.
21886         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
21887         Check for sched_getaffinity and sched_getaffinity_np.
21888         * modules/nproc (Depends-on): Add c-ctype, extensions.
21889         * NEWS: Mention the change.
21890
21891 2009-11-03  Bruno Haible  <bruno@clisp.org>
21892
21893         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
21894
21895 2009-11-03  Jim Meyering  <meyering@redhat.com>
21896
21897         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
21898         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
21899         if it is defined.
21900
21901 2009-11-02  Eric Blake  <ebb9@byu.net>
21902
21903         mktime, timegm: share common declaration
21904         * lib/mktime-internal.h: New file.
21905         * lib/mktime.c: Use it rather than open-coding a declaration.
21906         * lib/timegm.c: Likewise.
21907         * modules/mktime (Files): Ship it.
21908         * modules/timegm (Files): Likewise.
21909         Suggested by Bruno Haible.
21910
21911         test-update-copyright: update test to match script changes
21912         * tests/test-update-copyright.sh: Avoid hard-coding perl
21913         location.  Don't update *.bak created by earlier runs.
21914
21915 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21916             Simon Josefsson  <simon@josefsson.org>
21917             Bruno Haible  <bruno@clisp.org>
21918
21919         Fix link error on Solaris 8.
21920         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
21921         also in libnsl. Define also INET_PTON_LIB.
21922         * modules/inet_pton (Link): New section.
21923
21924 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21925             Bruno Haible  <bruno@clisp.org>
21926
21927         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
21928         * modules/inet_ntop (Link): New section.
21929         Reported by Boyan Kasarov <bkasarov@gmail.com>.
21930
21931 2009-11-02  Eric Blake  <ebb9@byu.net>
21932
21933         maint: avoid compiler warnings in m4 macros
21934         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
21935         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
21936
21937 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21938
21939         * m4/pmccabe2html.m4: Remove file.
21940         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
21941         function.  Change maintainer.
21942         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
21943         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
21944         Courtès).
21945
21946 2009-10-31  Eric Blake  <ebb9@byu.net>
21947
21948         fseeko: fix m4 regression
21949         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
21950         regression from 2009-10-27.
21951         Reported by Ralf Wildenhues.
21952
21953 2009-10-31  Jim Meyering  <meyering@redhat.com>
21954
21955         inttostr: aesthetics and improved (compile-time) safety
21956         Define inttype_is_signed rather than inttype_is_unsigned,
21957         since the sole use is via "#if inttype_is_signed".
21958         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
21959         inttype_is_unsigned.
21960         * lib/offtostr.c (inttype_is_signed): Likewise.
21961         * lib/uinttostr.c (inttype_is_signed): Likewise.
21962         * lib/umaxtostr.c (inttype_is_signed): Likewise.
21963         * lib/inttostr.c (inttostr): Use verify to cross-check the
21964         inttype_is_signed value and the signedness of the actual type.
21965         * modules/inttostr (Depends-on): Add verify.
21966
21967 2009-10-30  Eric Blake  <ebb9@byu.net>
21968
21969         build: avoid compiler warnings
21970         * lib/fchmodat.c (lchmod): Mark unused variables.
21971         * lib/getopt.c (_getopt_initialize): Likewise.
21972         * lib/mktime.c (__mktime_internal): Provide prototype.
21973         * lib/inttostr.c (inttostr): Avoid compiler warning even with
21974         older gcc that do not understand #pragma GCC diagnostic.
21975         * lib/uinttostr.c (inttype_is_unsigned): Define.
21976         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
21977
21978 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
21979
21980         stat: fix compilation on AIX
21981         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
21982         only see struct stat64.
21983
21984 2009-10-30  Eric Blake  <ebb9@byu.net>
21985
21986         exclude: make more robust
21987         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
21988         rather than masking a coding bug.
21989         Suggested by Bruno Haible.
21990
21991 2009-10-30  Jim Meyering  <meyering@redhat.com>
21992
21993         perl scripts: remove #!/usr/bin/perl in favor of more portable...
21994         Rather than putting #!/usr/bin/perl on the first line,
21995         start with a variant of what's recommended by "man perlrun" that
21996         invokes the first "perl" program from your shell's search path.
21997         * build-aux/gitlog-to-changelog: Replace #!... as above.
21998         Add a "Local Variables" perl mode setting.
21999         Prompted by a patch from Ludovic Courtès.
22000         Improved by Eric Blake.
22001         * build-aux/useless-if-before-free: Likewise.
22002         * build-aux/announce-gen: Likewise.
22003         * build-aux/update-copyright: Likewise.
22004
22005 2009-10-29  Eric Blake  <ebb9@byu.net>
22006
22007         filenamecat-lgpl: adjust clients
22008         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
22009         filenamecat.
22010         * modules/renameat (Depends-on): Likewise.
22011
22012         filenamecat: split into filenamecat-lgpl
22013         * modules/filenamecat-lgpl: New module.
22014         * modules/filenamecat (Files): Move library-safe files into
22015         filenamecat-lgpl.
22016         (Depends-on): Add filenamecat-lgpl.
22017         (configure.ac): Declare witness.
22018         * lib/filenamecat.h (file_name_concat): Only declare when using
22019         GPL module.
22020         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
22021         Move...
22022         * lib/filenamecat-lgpl.c: ...into new file.
22023         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
22024         (gl_FILE_NAME_CONCAT): Use it.
22025         * MODULES.html.sh (File system functions): Mention new module.
22026
22027         argp: avoid memory leak
22028         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
22029         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
22030         base_name, since the latter malloc()s and can call exit().
22031         Leak introduced 2006-07-03.
22032
22033         dirname-lgpl: adjust clients that don't need full dirname
22034         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
22035         * modules/filenamecat (Depends-on): Likewise.
22036         * modules/linkat (Depends-on): Likewise.
22037         * modules/mkancesdirs (Depends-on): Likewise.
22038         * modules/mkdir (Depends-on): Likewise.
22039         * modules/openat (Depends-on): Likewise.
22040         * modules/savewd (Depends-on): Likewise.
22041         * modules/rename (Depends-on): Likewise.
22042         (License): Relax license.
22043         * modules/mkdir-tests (Depends-on): Drop progname.
22044         (Makefile.am): Delete unneeded LDADD.
22045         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
22046
22047         dirname: split into dirname-lgpl
22048         * modules/dirname-lgpl: New module.
22049         * modules/dirname (Files): Move library-safe files into
22050         dirname-lgpl.
22051         (Depends-on): Add dirname-lgpl.
22052         (configure.ac): Declare witness.
22053         * modules/double-slash-root (License): Relax license.
22054         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
22055         module.
22056         * lib/dirname.c (dir_len, mdir_name): Move...
22057         * lib/dirname-lgpl.c: ...into new file.
22058         * lib/basename.c (last_component, base_len): Move...
22059         * lib/basename-lgpl.c: ...into new file.
22060         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
22061         (gl_DIRNAME): Use it.
22062         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
22063         Mention new module.
22064         * modules/dirname-tests (Depends-on): Add progname.
22065         * tests/test-dirname.c (program_name): Delete.
22066
22067         mkdir: make safe for libraries
22068         * modules/mkdir (Depends-on): Drop xalloc.
22069         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
22070         exit.
22071
22072         tests: avoid some compiler warnings
22073         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
22074         literals.
22075         * tests/test-memchr.c (main): Avoid type mismatch.
22076         * tests/test-arpa_inet.c (main): Avoid unused parameters.
22077         * tests/test-base64.c (main): Likewise.
22078         * tests/test-getdelim.c (main): Likewise.
22079         * tests/test-gethostname.c (main): Likewise.
22080         * tests/test-getline.c (main): Likewise.
22081         * tests/test-netinet_in.c (main): Likewise.
22082         * tests/test-select.c (open_server_socket, main): Likewise.
22083         * tests/test-select-stdin.c (main): Likewise.
22084         * tests/test-sockets.c (main): Likewise.
22085         * tests/test-strsignal.c (main): Likewise.
22086         * tests/test-sys_select.c (main): Likewise.
22087         * tests/test-sys_socket.c (main): Likewise.
22088         * tests/test-u64.c (main): Likewise.
22089         * tests/test-xfprintf-posix.c (main): Likewise.
22090         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
22091
22092         sockets: avoid compiler warning
22093         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
22094
22095         maint: detect usage(1) and other suspicious exits
22096         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
22097
22098 2009-10-29  Jim Meyering  <meyering@redhat.com>
22099
22100         timespec: long-to-int truncation could make timespec_cmp malfunction
22101         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
22102         a multiple of 2^32 nanoseconds as no difference.
22103
22104 2009-10-28  Jim Meyering  <meyering@redhat.com>
22105
22106         fprintftime: wrap macro code argument in "do {...} while(0)"
22107         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
22108         cpy macro must be a statement that can be followed by a semicolon.
22109         Now that the else clause contains a comment and is hence longer
22110         than one line, I require curly braces.  That in turn requires
22111         that we wrap this code block in the standard do...while(0).
22112
22113         fprintftime: remove stray semicolon from previous change
22114         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
22115
22116         fprintftime: avoid a warning about ignored fwrite return value
22117         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
22118         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
22119         that is unsafe.
22120         * modules/fprintftime (Depends-on): Add ignore-value.
22121
22122         exclude: avoid an unwarranted warning
22123         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
22124
22125 2009-10-27  Eric Blake  <ebb9@byu.net>
22126
22127         fseek: avoid compilation failure when fflush is replaced
22128         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
22129         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
22130         module is in use.
22131         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
22132         module is not in use; since REPLACE_FSEEK worked otherwise.
22133         (GNULIB_FTELLO): Likewise for ftell.
22134         Reported by Ian Beckwith and others.
22135
22136 2009-10-27  Bruno Haible  <bruno@clisp.org>
22137
22138         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
22139         Reported by Jim Meyering.
22140
22141 2009-10-27  Jim Meyering  <jim@meyering.net>
22142             Bruno Haible  <bruno@clisp.org>
22143
22144         Avoid warning despite dropping the return value of fwrite.
22145         * lib/unicodeio.c: Include ignore-value.h.
22146         (fwrite_success_callback): Explicitly ignore fwrite's return value.
22147         * modules/unicodeio (Depends-on): Add ignore-value.
22148
22149 2009-10-26  Eric Blake  <ebb9@byu.net>
22150
22151         areadlinkat: fix fallback path
22152         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
22153         pointer and zero.
22154
22155 2009-10-22  Pádraig Brady  <P@draigBrady.com>
22156
22157         Use a better IO block size for modern systems
22158         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
22159         * lib/md2.c: Likewise.
22160         * lib/md4.c: Likewise.
22161         * lib/md5.c: Likewise.
22162         * lib/sha1.c: Likewise.
22163         * lib/sha256.c: Likewise.
22164         * lib/sha512.c: Likewise.
22165
22166 2009-10-22  Eric Blake  <ebb9@byu.net>
22167
22168         tests: avoid several compiler warnings
22169         * tests/test-getcwd.c (main): Avoid buffer underflow.
22170         * tests/test-getdate.c (main): String literals are not safe with
22171         putenv, so use setenv.  Declare unused argument.
22172         * modules/getdate-tests (Depends-on): Add setenv.
22173         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
22174         problems with string literals in char *.
22175         * tests/test-hash.c (main): Avoid shadowing declaration.
22176         (insert_new): Treat string literals as char const *.
22177         * tests/test-getopt.h (test_getopt): Likewise.
22178         (getopt_loop): Alter types to minimize casting elsewhere.
22179         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
22180         (test_getopt_long_posix): Likewise.
22181         (do_getopt_long): Add wrapper to minimize casting.
22182         * tests/test-atexit.c (clear_temp_file): Use void.
22183         * tests/test-areadlink-with-size.c (main): Declare unused
22184         arguments.
22185         * tests/test-areadlink.c (main): Likewise.
22186         * tests/test-areadlinkat-with-size.c (main): Likewise.
22187         * tests/test-areadlinkat.c (main): Likewise.
22188         * tests/test-canonicalize-lgpl.c (main): Likewise.
22189         * tests/test-canonicalize.c (main): Likewise.
22190         * tests/test-dirent-safer.c (main): Likewise.
22191         * tests/test-dirname.c (main): Likewise.
22192         * tests/test-dup2.c (main): Likewise.
22193         * tests/test-fchdir.c (main): Likewise.
22194         * tests/test-fcntl-h.c (main): Likewise.
22195         * tests/test-fcntl-safer.c (main): Likewise.
22196         * tests/test-fdopendir.c (main): Likewise.
22197         * tests/test-fdutimensat.c (main): Likewise.
22198         * tests/test-fflush.c (main): Likewise.
22199         * tests/test-filenamecat.c (main): Likewise.
22200         * tests/test-filevercmp.c (main): Likewise.
22201         * tests/test-fopen-safer.c (main): Likewise.
22202         * tests/test-fopen.c (main): Likewise.
22203         * tests/test-fpending.c (main): Likewise.
22204         * tests/test-fpurge.c (main): Likewise.
22205         * tests/test-freading.c (main): Likewise.
22206         * tests/test-fstatat.c (main): Likewise.
22207         * tests/test-fsync.c (main): Likewise.
22208         * tests/test-futimens.c (main): Likewise.
22209         * tests/test-getndelim2.c (main): Likewise.
22210         * tests/test-gettimeofday.c (main): Likewise.
22211         * tests/test-getopt.c (main): Likewise.
22212         * tests/test-i-ring.c (main): Likewise.
22213         * tests/test-inttypes.c (main): Likewise.
22214         * tests/test-link.c (main): Likewise.
22215         * tests/test-lstat.c (main): Likewise.
22216         * tests/test-math.c (main): Likewise.
22217         * tests/test-md5.c (main): Likewise.
22218         * tests/test-memchr2.c (main): Likewise.
22219         * tests/test-memrchr.c (main): Likewise.
22220         * tests/test-mkdir.c (main): Likewise.
22221         * tests/test-mkdirat.c (main): Likewise.
22222         * tests/test-mkfifoat.c (main): Likewise.
22223         * tests/test-open.c (main): Likewise.
22224         * tests/test-openat-safer.c (main): Likewise.
22225         * tests/test-openat.c (main): Likewise.
22226         * tests/test-quotearg.c (main): Likewise.
22227         * tests/test-rawmemchr.c (main): Likewise.
22228         * tests/test-readlink.c (main): Likewise.
22229         * tests/test-remove.c (main): Likewise.
22230         * tests/test-rename.c (main): Likewise.
22231         * tests/test-renameat.c (main): Likewise.
22232         * tests/test-rmdir.c (main): Likewise.
22233         * tests/test-sha1.c (main): Likewise.
22234         * tests/test-signal.c (main): Likewise.
22235         * tests/test-sigaction.c (main): Likewise.
22236         * tests/test-stat.c (main): Likewise.
22237         * tests/test-stat-time.c (main): Likewise.
22238         * tests/test-stddef.c (main): Likewise.
22239         * tests/test-stdint.c (main): Likewise.
22240         * tests/test-stdio.c (main): Likewise.
22241         * tests/test-stdlib.c (main): Likewise.
22242         * tests/test-strchrnul.c (main): Likewise.
22243         * tests/test-strerror.c (main): Likewise.
22244         * tests/test-string.c (main): Likewise.
22245         * tests/test-strtod.c (main): Likewise.
22246         * tests/test-strverscmp.c (main): Likewise.
22247         * tests/test-symlink.c (main): Likewise.
22248         * tests/test-symlinkat.c (main): Likewise.
22249         * tests/test-sys_stat.c (main): Likewise.
22250         * tests/test-sys_time.c (main): Likewise.
22251         * tests/test-time.c (main): Likewise.
22252         * tests/test-unistd.c (main): Likewise.
22253         * tests/test-unlink.c (main): Likewise.
22254         * tests/test-unlinkat.c (main): Likewise.
22255         * tests/test-utimens.c (main): Likewise.
22256         * tests/test-utimensat.c (main): Likewise.
22257         * tests/test-version-etc.c (main): Likewise.
22258         * tests/test-wchar.c (main): Likewise.
22259         * tests/test-wctype.c (main): Likewise.
22260         * tests/test-xprintf-posix.c (main): Likewise.
22261         * tests/test-posixtm.c (main): Likewise.
22262         (STREQ): Delete unused macro.
22263         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
22264         shadowed variables.
22265         * tests/test-memchr.c (main): Likewise.
22266
22267 2009-10-21  Eric Blake  <ebb9@byu.net>
22268
22269         areadlinkat: avoid failure on older glibc
22270         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
22271         rather than mis-comparing 0 against FUNC_RESULT of char*.
22272
22273 2009-10-21  Bruno Haible  <bruno@clisp.org>
22274
22275         * modules/stpncpy (License): Relicense under LGPLv2+.
22276         Reported by David Lutterkort <lutter@redhat.com>.
22277
22278 2009-10-20  Eric Blake  <ebb9@byu.net>
22279
22280         utimensat: work around Solaris 9 bug
22281         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
22282         has trailing slash bugs.
22283         * tests/test-lutimens.h (test_lutimens): Enhance test.
22284         * tests/test-utimens.h (test_utimens): Likewise.
22285         * doc/posix-functions/utime.texi (utime): Enhance documentation.
22286         * doc/posix-functions/utimes.texi (utimes): Likewise.
22287         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22288         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
22289         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
22290         * doc/posix-functions/futimens.texi (futimens): Likewise.
22291
22292         fdutimensat: new module
22293         * modules/fdutimensat: New file.
22294         * lib/fdutimensat.c (fdutimensat): Likewise.
22295         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
22296         * MODULES.html.sh (File system functions): Mention module.
22297         * modules/fdutimensat-tests: New test.
22298         * tests/test-fdutimensat.c: Likewise.
22299
22300         doc: regenerate INSTALL
22301         * doc/INSTALL: Reflect recent autoconf update.
22302         * doc/INSTALL.ISO: Likewise.
22303         * doc/INSTALL.UTF-8: Likewise.
22304
22305 2009-10-20  Pádraig Brady  <P@draigBrady.com>
22306
22307         acl: warn if ACL support is not detected
22308         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
22309
22310 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
22311
22312         * lib/nproc.h: Add extern "C" block for C++.
22313
22314 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
22315             Bruno Haible  <bruno@clisp.org>
22316
22317         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
22318         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
22319         * doc/posix-functions/isalpha.texi: Likewise.
22320         * doc/posix-functions/isblank.texi: Likewise.
22321         * doc/posix-functions/iscntrl.texi: Likewise.
22322         * doc/posix-functions/isdigit.texi: Likewise.
22323         * doc/posix-functions/isgraph.texi: Likewise.
22324         * doc/posix-functions/islower.texi: Likewise.
22325         * doc/posix-functions/isprint.texi: Likewise.
22326         * doc/posix-functions/ispunct.texi: Likewise.
22327         * doc/posix-functions/isspace.texi: Likewise.
22328         * doc/posix-functions/isupper.texi: Likewise.
22329         * doc/posix-functions/isxdigit.texi: Likewise.
22330
22331 2009-10-18  Bruno Haible  <bruno@clisp.org>
22332
22333         Tests for module 'isblank'.
22334         * modules/isblank-tests: New file.
22335         * tests/test-isblank.c: New file.
22336
22337         New module 'isblank'.
22338         * lib/isblank.c: New file.
22339         * m4/isblank.m4: New file.
22340         * modules/isblank: New file.
22341         * doc/posix-functions/isblank.texi: Mention the new module.
22342
22343 2009-10-18  Bruno Haible  <bruno@clisp.org>
22344
22345         New module 'ctype'.
22346         * lib/ctype.in.h: New file.
22347         * m4/ctype.m4: New file.
22348         * modules/ctype: New file.
22349         * doc/posix-headers/ctype.texi: Mention the new module.
22350
22351 2009-10-18  Jim Meyering  <meyering@redhat.com>
22352
22353         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
22354         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
22355         right after its initialization, rather than farther down.
22356         Keeping these in close proximity makes it easier to ensure
22357         that each such variable is initialized.  E.g.,
22358
22359             LIB_CLOCK_GETTIME=
22360             AC_SUBST([LIB_CLOCK_GETTIME])
22361
22362         This change also increments these serial numbers.
22363         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
22364         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22365         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22366
22367 2009-10-18  Bruno Haible  <bruno@clisp.org>
22368
22369         Don't let environment variables perturb build.
22370         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
22371         (gl_PREREQ_GETHRXTIME): ... not here.
22372
22373 2009-10-18  Bruno Haible  <bruno@clisp.org>
22374
22375         Avoid symlink attack in localcharset module.
22376         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
22377         (O_NOFOLLOW): Define fallback.
22378         (get_charset_aliases): Don't open the file if it is a symbolic link.
22379         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
22380         gl_FCNTL_H.
22381         (gl_FCNTL_H): Require it.
22382         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
22383         * modules/localcharset (Files): Add m4/fcntl_h.m4.
22384         Reported by Fergal Glynn <fglynn@veracode.com>.
22385
22386 2009-10-18  Bruno Haible  <bruno@clisp.org>
22387
22388         Implement nproc for mingw.
22389         * lib/nproc.c: Include <windows.h>
22390         (num_processors): On native Windows platforms, try GetSystemInfo.
22391
22392 2009-10-18  Bruno Haible  <bruno@clisp.org>
22393
22394         Implement nproc for IRIX.
22395         * lib/nproc.c: Include <sys/sysmp.h>.
22396         (num_processors): On IRIX systems, try sysmp.
22397         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
22398
22399 2009-10-18  Bruno Haible  <bruno@clisp.org>
22400
22401         Implement nproc for HP-UX.
22402         * lib/nproc.c: Include <sys/pstat.h>
22403         (num_processors): On HP-UX systems, try pstat_getdynamic.
22404         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
22405         pstat_getdynamic.
22406
22407 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
22408             Bruno Haible  <bruno@clisp.org>
22409
22410         Implement nproc for NetBSD, OpenBSD.
22411         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
22412         (ARRAY_SIZE): New macro.
22413         (num_processors): On BSD systems, try sysctl of HW_NCPU.
22414         * m4/nproc.m4: New file.
22415         * modules/nproc (Files): Add m4/nproc.m4.
22416         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
22417         (Makefile.am): Instead, augment lib_SOURCES.
22418
22419 2009-10-18  Bruno Haible  <bruno@clisp.org>
22420
22421         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
22422         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
22423         sys/param.h.
22424
22425 2009-10-16  Eric Blake  <ebb9@byu.net>
22426
22427         utimensat: new module
22428         * modules/utimensat: New file.
22429         * lib/utimensat.c (utimensat): Likewise.
22430         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22431         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
22432         so we can work around Linux bugs.
22433         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22434         * modules/sys_stat (Makefile.am): Substitute them.
22435         * lib/sys_stat.in.h (utimensat): Declare it.
22436         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22437         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22438         * modules/utimensat-tests: New test.
22439         * tests/test-utimensat.c: Likewise.
22440
22441         utimens: let lutimens work on non-symlinks
22442         * lib/utimens.c (lutimens): Fall back to utimens rather than
22443         failing with ENOSYS, when file is not a symlink.
22444         (utimens): Reduce redirection.
22445         * tests/test-lutimens.h (test_lutimens): Update test to cover
22446         non-symlinks.
22447         * tests/test-utimens.h (test_utimens): Update test to cover
22448         symlinks.
22449         * tests/test-utimens.c (main): Update caller.
22450
22451         utimens: cache whether utimensat syscall works
22452         * lib/utimens.c (utimensat_works_really): New cache variable.
22453         (fdutimens, lutimens): Use it to avoid failing syscall.
22454
22455         test-stat-time, test-utimens: improve portability
22456         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
22457         ext4 on alpha, and for cygwin.
22458         * tests/test-utimens-common.h: New file.
22459         (nap): Factor delays into single function.
22460         * tests/test-lutimens.h (test_lutimens): Use new header.
22461         * tests/test-futimens.h (test_futimens): Likewise.
22462         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
22463         timestamps to occur from same machine, as was done previously for
22464         test_utimens.
22465         * modules/utimens-tests (Files): Ship new file.
22466         * modules/futimens-tests (Files): Likewise.
22467         Reported in part by Jim Meyering.
22468
22469         sys_stat: sort replacement declarations
22470         * lib/sys_stat.in.h: Sort declarations.
22471         * lib/futimens.c (futimens): Fix typo.
22472
22473 2009-10-15  Jim Meyering  <meyering@redhat.com>
22474
22475         don't let environment settings perturb build
22476         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
22477         could cause a configure-time and/or build-time malfunction.
22478         Typically, a configure-time function-in-library test is performed
22479         via code like this:
22480
22481           LIB_VAR=
22482           AC_SUBST([LIB_VAR])
22483           prefix_saved_LIBS=$LIBS
22484             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
22485                        [test "$ac_cv_search_FUNC" = "none required" ||
22486                         LIB_VAR=$ac_cv_search_FUNC])
22487           LIBS=$prefix_saved_LIBS
22488
22489         However, in each of the files affected by this change, the LIB_VAR=
22490         initialization was omitted.  Thus, when set in the environment, its
22491         value would propagate into generated Makefiles when FUNC is not found
22492         in LIB_NAME.
22493         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
22494         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22495         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22496
22497 2009-10-14  Eric Blake  <ebb9@byu.net>
22498
22499         fchdir: avoid infinite recursion in mingw
22500         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
22501         recursing.
22502
22503         test-stat-time: port to mingw
22504         * tests/test-stat-time.c (force_unlink): Return a value.
22505         (test_ctime) [W32]: Fix compilation error.
22506         (nap): Don't call usleep with too large an argument.  Use
22507         force_unlink.
22508         * doc/pastposix-functions/usleep.texi (usleep): Document the
22509         portability issue.
22510
22511 2009-10-13  Jim Meyering  <meyering@redhat.com>
22512
22513         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
22514         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
22515         * modules/pipe-filter-ii: Likewise.
22516         * modules/sys_socket-tests: Likewise.
22517         * modules/tsearch-tests: Likewise.
22518         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
22519         (check): Depend on it.
22520
22521 2009-10-12  Eric Blake  <ebb9@byu.net>
22522
22523         utimens-tests: port to NFS file systems
22524         * tests/test-utimens.h (test_utimens): Refactor utimecmp
22525         comparisons to avoid spurious failures from timestamp drift
22526         between NFS machines.
22527
22528 2009-10-12  Eric Blake  <ebb9@byu.net>
22529
22530         stat-time-tests: minor cleanups
22531         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
22532         * tests/test-stat-time.c (nap): Separate assignment from call.
22533         Suggested by Paolo Bonzini and Bruno Haible.
22534
22535         sys_stat: guarantee struct timespec
22536         * lib/sys_stat.in.h (includes): Always include <time.h>
22537         * modules/sys_stat (Depends-on): Add time.
22538         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
22539         mode_t permission values.
22540         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
22541         get at subsecond timestamps.
22542
22543 2009-10-10  Eric Blake  <ebb9@byu.net>
22544
22545         futimens: new module
22546         * modules/futimens: New file.
22547         * lib/futimens.c (futimens): Likewise.
22548         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
22549         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
22550         we can work around Linux bugs.
22551         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22552         * modules/sys_stat (Makefile.am): Substitute them.
22553         * lib/sys_stat.in.h (futimens): Declare it.
22554         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22555         * doc/posix-functions/futimens.texi (futimens): Likewise.
22556         * modules/futimens-tests: New test.
22557         * tests/test-futimens.c: Likewise.
22558
22559         utimens: introduce fdutimens
22560         * lib/utimens.h (fdutimens): New prototype.
22561         * lib/utimens.c (gl_futimens): Move guts...
22562         (fdutimens): ...to new interface.
22563         * tests/test-utimens.c (do_fdutimens): Use it.
22564
22565         utimens: add UTIME_NOW and UTIME_OMIT support
22566         * lib/utimens.c (validate_timespec, update_timespec): New helper
22567         functions.
22568         (gl_futimens, lutimens): Use them.
22569         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
22570         stdbool, sys_stat.
22571         (Link): Mention resulting library dependency.
22572         * modules/utimecmp (Link): Likewise.
22573         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
22574         (Makefile.am): Pick up library dependency.
22575         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
22576         definition.
22577         * tests/test-sys_stat.c: Test the definitions.
22578         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
22579         * NEWS: Document library dependency.
22580
22581         utimecmp: support symlink timestamps
22582         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
22583         hashing when possible.  Use pathconf when available.
22584         (SYSCALL_RESOLUTION): Recognize tighter resolution.
22585         * modules/utimecmp (Depends-on): Add lstat.
22586
22587         utimens: add lutimens interface
22588         * lib/utimens.c (lutimens): New function.
22589         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
22590         * lib/utimens.h (lutimens): Declare new interface.
22591         * tests/test-utimens.c (main): Enhance test.
22592         * tests/test-lutimens.h (test_lutimens): New file.
22593         * modules/utimens-tests (Files): Distribute it.
22594         (Depends-on): Add symlink.
22595         (configure.ac): Check for usleep.
22596
22597         utimens: validate futimens usage
22598         * lib/utimens.c (gl_futimens): Require valid fd up front, using
22599         fewer syscalls on failure later on.  Avoid compiler warning on
22600         mingw.
22601         * modules/utimens (Depends-on): Add dup2.
22602
22603         utimens: add test
22604         * modules/utimens-tests: New test.
22605         * tests/test-utimens.h: New file.
22606         * tests/test-futimens.h: Likewise.
22607         * tests/test-utimens.c: Likewise.
22608
22609         doc: mention timestamp portability issues
22610         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
22611         instead.
22612         * doc/posix-functions/utime.texi (utime): Likewise.
22613         * doc/posix-functions/utimes.texi (utimes): Likewise.
22614         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
22615         instead.
22616         * doc/posix-functions/futimens.texi (futimens): Mention utimens
22617         module.
22618         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22619         Mention weakness with symlink timestamps.
22620         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
22621         to utimensat/futimens instead.
22622         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
22623
22624         test-dup2: enhance test
22625         * tests/test-dup2.c (main): Also check AT_FDCWD.
22626
22627         test-stat-time: avoid more spurious failures
22628         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
22629         xfs; and avoid race if the two timestamps cross quantization edge.
22630
22631         relocatable: prefer 'file system' over 'filesystem'
22632         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
22633         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
22634         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
22635         * doc/relocatable.texi (Enabling Relocatability): Likewise.
22636         * lib/relocatable.c (compute_curr_prefix): Likewise.
22637
22638 2009-10-10  Jim Meyering  <meyering@redhat.com>
22639
22640         stat-time-tests: check for the usleep function
22641         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
22642
22643 2009-10-10  Bruno Haible  <bruno@clisp.org>
22644
22645         * modules/xnanosleep: Put the Link section after the Include section.
22646
22647 2009-10-09  Eric Blake  <ebb9@byu.net>
22648
22649         dup2: work around FreeBSD 6.1 bug
22650         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
22651         * doc/posix-functions/dup2.texi (dup2): Document it.
22652         Reported by Nelson H. F. Beebe and Jim Meyering.
22653
22654         test-stat-time: port to buggy NFS clients
22655         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
22656         (test_ctime): Also skip test if mtime and ctime are skewed.
22657
22658         maint: prefer 'file system' over 'filesystem'
22659         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
22660         * doc/posix-functions/lstat.texi (lstat): Likewise.
22661         * lib/file-has-acl.c (file_has_acl): Likewise.
22662         * lib/fwriteerror.c [TEST]: Likewise.
22663         * tests/test-areadlink.h (test_areadlink): Likewise.
22664         * tests/test-areadlinkat-with-size.c (main): Likewise.
22665         * tests/test-areadlinkat.c (main): Likewise.
22666         * tests/test-canonicalize-lgpl.c (main): Likewise.
22667         * tests/test-canonicalize.c (main): Likewise.
22668         * tests/test-fstatat.c (main): Likewise.
22669         * tests/test-linkat.c (main): Likewise.
22670         * tests/test-lstat.h (test_lstat_func): Likewise.
22671         * tests/test-mkdir.h (test_mkdir): Likewise.
22672         * tests/test-readlink.h (test_readlink): Likewise.
22673         * tests/test-remove.c (main): Likewise.
22674         * tests/test-rename.h (test_rename): Likewise.
22675         * tests/test-renameat.c (main): Likewise.
22676         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22677         * tests/test-symlink.h (test_symlink): Likewise.
22678         * tests/test-symlinkat.c (main): Likewise.
22679         * tests/test-unlink.h (test_unlink_func): Likewise.
22680         * tests/test-unlinkat.c (main): Likewise.
22681
22682         maint: make realtime library usage explicit
22683         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
22684         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
22685         * modules/settime (Link): Likewise.
22686         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
22687
22688         test-stat-time: speed up execution
22689         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
22690         warning on mingw.
22691         (nap): New helper function.
22692         (prepare_test): Use it to reduce sleep time.
22693         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
22694         execution.
22695         * modules/stat-time-tests (configure.ac): Check for usleep.
22696
22697 2009-10-09  Jim Meyering  <meyering@redhat.com>
22698
22699         selinux-h: always use getfilecon wrappers
22700         * lib/getfilecon.c: New file.
22701         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
22702         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
22703         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
22704         (fgetfilecon): Provide a stub.
22705         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
22706         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
22707         file unconditionally.
22708         When <selinux/selinux.h> is found, arrange to use wrappers.
22709         * modules/selinux-h (Files): Add getfilecon.c.
22710         (Makefile.am): Substitute include-next-related bits
22711         into the now-always-generated selinux/selinux.h file.
22712         * doc/glibc-functions/lgetfilecon.texi: New file.
22713         * doc/glibc-functions/fgetfilecon.texi: New file.
22714         * doc/glibc-functions/getfilecon.texi: New file.
22715         * doc/glibc-functions/getfilecon-desc.texi: New file.
22716         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
22717         which to pull in the new files.
22718         * MODULES.html.sh (Misc): Add selinux-h.
22719
22720 2009-10-08  Jim Meyering  <meyering@redhat.com>
22721
22722         unistd: fix comment typo
22723         * lib/unistd.in.h (euidaccess): Fix a comment typo.
22724
22725 2009-10-08  Eric Blake  <ebb9@byu.net>
22726
22727         areadlink: use SIZE_MAX consistently
22728         * modules/areadlink (Depends-on): Add stdint.
22729         * modules/areadlink-with-size (Depends-on): Likewise.
22730         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
22731         gives NULL; drop sys/types, since unistd gives size_t; and add
22732         stdint for SIZE_MAX.
22733         (SIZE_MAX): Rely on headers.
22734         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
22735         and add stdint.
22736         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
22737         (SIZE_MAX): Likewise.
22738         (INITIAL_BUF_SIZE): Turn into enum.
22739         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
22740
22741 2009-10-08  Jim Meyering  <meyering@redhat.com>
22742
22743         areadlinkat: avoid compilation failure
22744         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
22745         Fix typo in comment.
22746
22747 2009-10-07  Eric Blake  <ebb9@byu.net>
22748
22749         areadlinkat-with-size: new module
22750         * modules/areadlinkat-with-size: New module.
22751         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
22752         * lib/areadlink.h (areadlinkat): Declare it.
22753         * MODULES.html.sh (File system functions): Mention it.
22754         * modules/areadlinkat-with-size-tests: New test.
22755         * tests/test-areadlinkat-with-size.c: New file.
22756
22757         xreadlinkat: new module
22758         * modules/xreadlinkat: New module.
22759         * lib/xreadlinkat.c (xreadlinkat): New file.
22760         * lib/xreadlink.h (xreadlinkat): Declare it.
22761         * MODULES.html.sh (File system functions): Mention it.
22762
22763         areadlinkat: new module
22764         * lib/at-func.c (FUNC_FAIL): New define.
22765         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
22766         * modules/areadlinkat: New module.
22767         * lib/linkat.c (areadlinkat): Move...
22768         * lib/areadlinkat.c (areadlinkat): ...to new file.
22769         * lib/areadlink.h (areadlinkat): Declare it.
22770         * modules/linkat (Depends-on): Add areadlinkat.
22771         * MODULES.html.sh (File system functions): Mention it.
22772         * modules/areadlinkat-tests: New test.
22773         * tests/test-areadlinkat.c: New file.
22774
22775         areadlink, areadlink-with-size: add tests
22776         * modules/areadlink-tests: New test.
22777         * modules/areadlink-with-size-tests: Likewise.
22778         * tests/test-areadlink.h: New file.
22779         * tests/test-areadlink.c: Likewise.
22780         * tests/test-areadlink-with-size.c: Likewise.
22781
22782         maint: minor cleanups
22783         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
22784         _UNUSED_PARAMETER_ instead.
22785         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
22786         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
22787         * modules/linkat-tests (Files): Distribute test-link.h.
22788
22789         openat, utimens: whitespace cleanup
22790         * lib/openat.c: Prefer space throughout, rather than mix of 8
22791         spaces vs. tabs.
22792         * lib/at-func.c: Likewise.
22793         * lib/utimens.c: Likewise.
22794
22795         openat: avoid using wrong fd
22796         * lib/openat.c (openat_permissive): Reject user's fd if saving the
22797         working directory chooses same fd.
22798         * lib/at-func.c (AT_FUNC_NAME): Likewise.
22799
22800         mkdir, mkdirat: fix cygwin 1.5.x bug
22801         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
22802         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
22803         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
22804         bug.
22805         (gl_PREREQ_MKDIR): Delete unused macro.
22806         * modules/mkdir (Files): Track file rename.
22807         (configure.ac): Update macro name.
22808         * modules/openat (Depends-on): Add mkdir.
22809         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
22810
22811         mkdir, mkdirat: add tests
22812         * modules/mkdir-tests: New test.
22813         * tests/test-mkdir.h: New file.
22814         * tests/test-mkdir.c: Likewise.
22815         * tests/test-mkdirat.c: Likewise.
22816         * modules/openat-tests (Files): Add new files.
22817         (Makefile.am): Run new test.
22818
22819 2009-10-06  Eric Blake  <ebb9@byu.net>
22820
22821         doc: tweak *at function documentation
22822         * doc/posix-functions/faccessat.texi (faccessat): Mention
22823         known issue with replacement.
22824         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
22825         * doc/posix-functions/linkat.texi (linkat): Likewise.
22826         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
22827         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
22828         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22829         * doc/posix-functions/renameat.texi (renameat): Likewise.
22830         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22831
22832         openat: fix GNU/Hurd bug in unlinkat
22833         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
22834         broken.
22835         * doc/posix-functions/unlink.texi (unlink): Document this.
22836         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
22837
22838         fdopendir: fix GNU/Hurd bug
22839         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
22840         allowing non-directory fds.
22841         * lib/fdopendir.c (rpl_fdopendir): Work around it.
22842         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22843         * modules/dirent (Makefile.am): Substitute it.
22844         * lib/dirent.in.h (fdopendir): Declare replacement.
22845         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
22846         * tests/test-fdopendir.c (main): Test something other than
22847         /dev/null, since on Hurd that behaves like a directory.
22848
22849         test-symlink: port to GNU/Hurd
22850         * tests/test-symlink.h (test_symlink): Relax expected errno.
22851
22852         doc: tweak more cygwin information
22853         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
22854         now compatible with glibc.
22855         * doc/posix-functions/getopt.texi (getopt): Likewise.
22856
22857         getopt-gnu: add another test
22858         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
22859         guarantee behavior relied on by m4.
22860         * tests/test-getopt.c (main): Use it.
22861         * modules/getopt-posix-tests (Depends-on): Add setenv.
22862         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
22863
22864         getopt: fix compilation on darwin
22865         * lib/getopt.in.h (includes): Leave breadcrumbs during system
22866         include.
22867         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
22868         Reported by Ludovic Courtès.
22869
22870 2009-10-06  Bruno Haible  <bruno@clisp.org>
22871
22872         * modules/size_max (Description): Discourage its use.
22873         Reported by Simon Josefsson.
22874
22875 2009-10-06  Jim Meyering  <meyering@redhat.com>
22876
22877         linkat: avoid compilation failure
22878         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
22879
22880 2009-10-05  Eric Blake  <ebb9@byu.net>
22881
22882         linkat: support Linux 2.6.17
22883         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
22884         linkat on Linux, but allow cache variable override.
22885         * lib/linkat.c (rpl_linkat): Define override.
22886         * modules/linkat (Depends-on): Add symlinkat.
22887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
22888         * modules/unistd (Makefile.am): Substitute it.
22889         * lib/unistd.in.h (linkat): Declare replacement.
22890         Reported by Pádraig Brady.
22891
22892         quotearg: port test to systems with C.UTF-8 locale
22893         * tests/test-quotearg.c (struct result_strings): Add another
22894         member, differentiating between C.ASCII and C.UTF-8 handling.
22895         (compare_strings): Add parameter.
22896         (main): Adjust all callers.
22897
22898         getopt: avoid clash with FreeBSD _getopt_internal
22899         * lib/getopt.in.h (_getopt_internal): Override the name.
22900         * lib/getopt_int.h (includes): Pick up any overrides.
22901         Reported by Reuben Thomas.
22902
22903         hash: allow C89 compilation
22904         * lib/hash.c (check_tuning): Move declaration before statement.
22905         Reported by Reuben Thomas.
22906
22907 2009-10-05  Karl Berry  <karl@gnu.org>
22908
22909         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
22910
22911 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
22912             Bruno Haible  <bruno@clisp.org>
22913
22914         * lib/uname.c (uname): Use a table-driven algorithm to compute
22915         Windows NT versions.
22916
22917 2009-10-04  Bruno Haible  <bruno@clisp.org>
22918
22919         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
22920         program_invocation_short_name.
22921         * modules/progname (configure.ac): Test for presence of
22922         program_invocation_short_name.
22923         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22924
22925 2009-10-04  Bruno Haible  <bruno@clisp.org>
22926
22927         * lib/progname.c (set_program_name): Fix comment.
22928         Reported by Jim Meyering.
22929
22930 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
22931             Bruno Haible  <bruno@clisp.org>
22932
22933         * lib/uname.c: Include <string.h>.
22934         (uname): Do only one call to GetVersionEx in the common case.
22935
22936 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
22937             Bruno Haible  <bruno@clisp.org>
22938
22939         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
22940         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
22941         (uname): Add support for Windows CE and various non-x86 CPU types.
22942
22943 2009-10-03  Bruno Haible  <bruno@clisp.org>
22944
22945         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
22946         invocation to tests/configure.ac.
22947         Reported by Ian Beckwith <ianb@erislabs.net>.
22948
22949 2009-10-02  Eric Blake  <ebb9@byu.net>
22950
22951         fchdir: avoid compiler warning
22952         * lib/fchdir.c (canonicalize_file_name)
22953         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
22954
22955         test-open: support mingw errno values
22956         * tests/test-open.h (test_open): Relax test.
22957         * tests/test-fopen.h (test_fopen): Likewise.
22958         * tests/test-openat-safer.c (main): Likewise.
22959
22960         open: fix opening directory on mingw
22961         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
22962
22963         test-open: on GNU/Hurd, /dev/null is a directory
22964         * tests/test-fopen.h (main): Rename...
22965         (test_fopen): ...to this.  Use a guaranteed non-directory when
22966         confirming open behavior on trailing slash.
22967         * tests/test-openat-safer.c (main): Likewise.
22968         * tests/test-open.h (main): Likewise....
22969         (test_open): ...to this.
22970         * tests/test-fopen.c (main): Adjust caller.
22971         * tests/test-fopen-safer.c (main): Likewise.
22972         * tests/test-open.c (main): Likewise.
22973         * tests/test-fcntl-safer.c (main): Likewise.
22974         Reported by Samuel Thibault.
22975
22976         rename, fchdir: don't ignore chdir failure
22977         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
22978         * lib/rename.c (rpl_rename) [W32]: Likewise.
22979         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
22980         an empty destination directory if source cannot be renamed,
22981         although there is still possibility for failure.
22982         * doc/posix-functions/rename.texi (rename): Document the race.
22983         Reported by Jim Meyering.
22984
22985         maint: cleanup whitespace in recent commits
22986         * lib/rename.c (rpl_rename): Remove tabs.
22987         * tests/test-link.h (test_link): Likewise.
22988         * lib/fchdir.c (get_name): Likewise.
22989         Reported by Jim Meyering.
22990
22991 2009-10-02  Ben Pfaff  <blp@gnu.org>
22992
22993         relocatable-prog-wrapper: Add missing dependency on
22994         double-slash-root.
22995         * modules/relocatable-prog-wrapper: Add dependency.
22996         Reported by Ian Beckwith <ianb@erislabs.net>.
22997
22998 2009-10-02  Eric Blake  <ebb9@byu.net>
22999
23000         renameat: fix Solaris bugs
23001         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
23002         needed fixing.
23003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
23004         * modules/stdio (Makefile.am): Substitute it.
23005         * lib/stdio.in.h (renameat): Declare replacement.
23006         * lib/renameat.c (rpl_renameat): Implement fix.
23007
23008         renameat: new module
23009         * modules/renameat: New file.
23010         * lib/renameat.c (renameat): Likewise.
23011         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
23012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23013         * modules/stdio (Makefile.am): Substitute them.
23014         * lib/stdio.in.h (renameat): Declare it.
23015         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23016         * doc/posix-functions/renameat.texi (renameat): Likewise.
23017         * modules/renameat-tests: New test.
23018         * tests/test-renameat.c: Likewise.
23019
23020         rename: fix mingw bugs
23021         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
23022         directory overwrite bugs.
23023
23024         rename: fix another cygwin 1.5 bug
23025         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
23026         checks.
23027         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
23028         unnecessary cygwin workarounds.  Also work around bug with moving
23029         full directory onto an empty one.
23030         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
23031
23032         rename-dest-slash: merge into rename module
23033         * modules/rename-dest-slash (Status): Mark obsolete.
23034         (Depends-on): Add rename.
23035         (Files): Let rename do it all.
23036         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
23037         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
23038         * m4/rename-dest-slash.m4: ...so this file can be deleted.
23039         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
23040         * lib/rename.c (rpl_rename): Update comments.
23041
23042         rename: fix cygwin 1.5.x bugs
23043         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
23044         * lib/rename.c (rpl_rename): Work around them.
23045         * modules/rename (Depends-on): Add same-inode.
23046
23047         rename: fix Solaris 10 bug
23048         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23049         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
23050         was the only bug.
23051
23052         rename: fix Solaris 9 bug
23053         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
23054         on non-directory.  Avoid calling exit.
23055         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
23056         strdup.
23057         * modules/rename-tests (Depends-on): Drop lstat.
23058         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23059         (gl_PREREQ_RENAME): Delete unused macro.
23060
23061         rename-dest-slash: fix NetBSD bug
23062         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
23063         links.
23064         * modules/rename-dest-slash (Depends-on): Add same-inode.
23065
23066         rename-tests: new test, exposes several platform bugs
23067         * modules/rename-tests: New file.
23068         * tests/test-rename.h: Likewise.
23069         * tests/test-rename.c: Likewise.
23070         * doc/posix-functions/rename.texi (rename): Improve documentation,
23071         including bugs that will eventually be fixed in gnulib.
23072
23073 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
23074
23075         * lib/uname.c: Include <stdlib.h>
23076         (uname): Assume version info is available.
23077
23078 2009-10-02  Jim Meyering  <meyering@redhat.com>
23079
23080         gnu-web-doc-update: correct --help output
23081         * build-aux/gnu-web-doc-update: Make --help output relevant.
23082
23083         gnu-web-doc-update: add standard options
23084         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
23085
23086         gnu-web-doc-update: New module.
23087         Use this script to automatically update the on-line web documentation
23088         for your GNU project at http://www.gnu.org/software/$pkg/manual/
23089         * modules/gnu-web-doc-update: New file, from coreutils.
23090         * build-aux/gnu-web-doc-update: New script.
23091
23092 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
23093
23094         link: LoadLibrary is not needed.
23095         * lib/link.c: Use GetModuleHandle.
23096
23097 2009-10-01  Eric Blake  <ebb9@byu.net>
23098
23099         getopt: bump serial number
23100         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
23101         change.
23102
23103         tests: tighten link, rmdir, and remove tests
23104         * tests/test-link.h (includes): No need to use <config.h> here.
23105         Clean up if directory hard link was created, otherwise test for
23106         trailing '.'.
23107         * tests/test-linkat.c (main): Simplify.
23108         * tests/test-remove.c (main): Enhance test for trailing '.'.
23109         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23110
23111 2009-10-01  Jim Meyering  <meyering@redhat.com>
23112
23113         maint.mk: requiring "make major" was annoying, for a "minor" release.
23114         What is intended is "stable", to contrast with alpha and beta,
23115         so require "make stable", not "make major".
23116         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
23117         (get_tool_versions): Likewise.
23118         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
23119
23120 2009-09-30  Ben Pfaff  <blp@gnu.org>
23121
23122         Fix broken build of replacement for Windows tmpfile().
23123         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
23124         flags argument added along with the 'mkostemp' module.
23125
23126 2009-09-28  Bruno Haible  <bruno@clisp.org>
23127
23128         Avoid identifier clash with POSIX function 'remove' defined as a macro.
23129         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
23130         to 'remove_elt'.
23131         (gl_list_remove): Update.
23132         * lib/gl_list.c (gl_list_remove): Update.
23133         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
23134         to 'remove_elt'.
23135         (gl_oset_remove): Update.
23136         * lib/gl_list.c (gl_oset_remove): Update.
23137         Reported by Eric Blake.
23138
23139 2009-09-28  Eric Blake  <ebb9@byu.net>
23140
23141         doc: mention yet more cygwin 1.7 status
23142         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
23143         cygwin.
23144         * doc/glibc-functions/execvpe.texi (execvpe): New file.
23145         * doc/gnulib.texi (Glibc unistd.h): Mention it.
23146
23147         argp: fix test failure
23148         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
23149         that are not upper-case.  Pass correct range to tolower.
23150
23151 2009-09-27  Jim Meyering  <meyering@redhat.com>
23152
23153         test-yesno: work around sparc-dash here-document infelicity
23154         Without this change, the literal \177 byte in a here document
23155         would make dash 0.5.5.1-3 access uninitialized memory.
23156         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
23157         Instead, use a marker, "@", and filter through tr to create the desired
23158         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
23159
23160 2009-09-27  Bruno Haible  <bruno@clisp.org>
23161
23162         Disable untested support for new flavours of ACLs on AIX.
23163         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
23164         progress.
23165         * lib/set-mode-acl.c (qset_acl): Likewise.
23166
23167 2008-12-07  Bruno Haible  <bruno@clisp.org>
23168
23169         Add support for new flavours of ACLs on AIX. (Untested.)
23170         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
23171         (file_has_acl): Add support for newer AIX.
23172         * lib/set-mode-acl.c (qset_acl): Likewise.
23173         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
23174         Rainer Tammer <tammer@tammer.net>.
23175
23176 2009-09-26  Eric Blake  <ebb9@byu.net>
23177
23178         argp: fix compilation of getopt
23179         * lib/getopt.in.h (includes): Use different guard than glibc.
23180         Reported by Sergey Poznyakoff.
23181
23182         doc: mention more cygwin 1.7 status
23183         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
23184         bug.
23185         * doc/posix-functions/execl.texi (execl): Likewise.
23186         * doc/posix-functions/execle.texi (execle): Likewise.
23187         * doc/posix-functions/execlp.texi (execlp): Likewise.
23188         * doc/posix-functions/execv.texi (execv): Likewise.
23189         * doc/posix-functions/execve.texi (execve): Likewise.
23190         * doc/posix-functions/execvp.texi (execvp): Likewise.
23191         * doc/glibc-functions/canonicalize_file_name.texi
23192         (canonicalize_file_name): Cygwin 1.7 now provides this.
23193         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
23194         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
23195         on AT_SYMLINK_NOFOLLOW.
23196
23197 2009-09-24  Eric Blake  <ebb9@byu.net>
23198
23199         test-linkat: make test more robust
23200         * tests/test-linkat.c (main): Avoid collision with EEXIST.
23201
23202         getopt: fix inclusion guards for cygwin
23203         * modules/getopt-posix (Depends-on): Add include-next.
23204         (Makefile.am): Substitute more items in replacement header.
23205         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
23206         <getopt.h>.
23207         * lib/getopt.in.h (includes): Use split inclusion guard, and
23208         prefer <getopt.h> over include <unistd.h> when one is present.
23209         (option): Also override name of 'struct option'.
23210
23211         same-inode: revert prior change; it is not yet ready
23212         * NEWS: Undo mention of this change.
23213         * lib/same-inode.h (same-inode.h): Undo tri-state change.
23214         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23215         * lib/cycle-check.c (cycle_check): Likewise.
23216         * lib/same.c (same_name): Likewise.
23217         * lib/at-func2.c (at_func2): Likewise.
23218
23219 2009-09-23  Eric Blake  <ebb9@byu.net>
23220
23221         linkat: new module
23222         * modules/linkat: New file.
23223         * lib/at-func2.c (at_func2): Likewise.
23224         * lib/linkat.c (linkat): Likewise.
23225         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23226         * lib/openat-priv.h (at_func2): Add declaration.
23227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23228         * modules/unistd (Makefile.am): Substitute them.
23229         * lib/unistd.in.h (linkat): Declare it.
23230         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23231         * doc/posix-functions/linkat.texi (linkat): Likewise.
23232         * doc/posix-functions/link.texi (link): Tweak wording.
23233         * tests/test-link.c (main): Move guts...
23234         * tests/test-link.h (test_link): ...into new file.
23235         * modules/linkat-tests: New test.
23236         * tests/test-linkat.c: Likewise.
23237         * modules/link-tests (Files): Ship new file.
23238         (Depends-on): Add stdbool.
23239
23240         dirname: add library-safe mdir_name
23241         * lib/dirname.h (mdir_name): New prototype.
23242         * lib/dirname.c (dir_name): Move guts...
23243         (mdir_name): ...to new function that avoids xalloc_die.
23244
23245         fchdir: another mingw fix
23246         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
23247         * lib/fchdir.c (get_name): New helper method; skips canonicalize
23248         on mingw (where it has not yet been ported), and make it optional
23249         elsewhere.
23250         (_gl_register_fd): Use it.
23251
23252         same-inode: make SAME_INODE tri-state, to port to mingw
23253         * NEWS: Mention this change.
23254         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
23255         st_ino always being 0.
23256         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23257         * lib/cycle-check.c (cycle_check): Likewise.
23258         * lib/same.c (same_name): Likewise.
23259
23260         lstat: avoid mingw compilation error
23261         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
23262         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
23263         lstat ourselves.
23264         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
23265         was adequate.
23266         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
23267         the checks for lstat.
23268         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
23269
23270         link: fix test failure on Solaris 9
23271         * lib/link.c (rpl_link): Don't assume link will catch bogus
23272         trailing slash on source.
23273
23274         test-symlinkat: enhance test
23275         * tests/test-readlink.c (main): Move guts...
23276         * tests/test-readlink.h (test_readlink): ...into new file.
23277         * tests/test-symlink.c (main): Move guts...
23278         * tests/test-symlink.h (test_symlink): ...into new file.
23279         * tests/test-symlinkat.c (main): Use new files for further
23280         coverage.
23281         (do_symlink, do_readlink): New helper functions.
23282         * modules/symlink-tests (Files): Ship new file.
23283         (Depends-on): Add stdbool.
23284         * modules/readlink-tests (Files): Ship new file.
23285         (Depends-on): Add stdbool.
23286         * modules/symlinkat-tests (Files): Use new files.
23287
23288 2009-09-23  Eric Blake  <ebb9@byu.net>
23289
23290         readlink: document portability issue with symlink length
23291         * doc/posix-functions/lstat.texi (lstat): Mention that some file
23292         systems have bogus st_size on symlinks, and mention the
23293         areadlink-with-size module.
23294         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23295         * doc/posix-functions/readlink.texi (readlink): Mention the
23296         areadlink module, and ERANGE failure.
23297         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23298         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
23299
23300         readlink: fix Solaris 9 bug with trailing slash
23301         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
23302         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
23303         * doc/posix-functions/readlink.texi (readlink): Document this.
23304         * modules/readlink-tests: New test.
23305         * tests/test-readlink.c: Likewise.
23306
23307         readlink: fix cygwin 1.5.x bug with return type
23308         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
23309         * lib/unistd.in.h (readlink): Use ssize_t.
23310         * lib/readlink.c (readlink): Likewise.
23311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23312         * modules/unistd (Makefile.am): Substitute it.
23313         * lib/unistd.in.h (readlink): Declare replacement.
23314         * doc/posix-functions/readlink.texi (readlink): Document this.
23315
23316         symlink: use throughout gnulib
23317         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
23318         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
23319         symlink is not used.
23320         * modules/symlinkat (Depends-on): Add symlink.
23321         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23322         * modules/canonicalize-tests (Depends-on): Likewise.
23323         * modules/lstat-tests (Depends-on): Likewise.
23324         * modules/openat-tests (Depends-on): Likewise.
23325         * modules/remove-tests (Depends-on): Likewise.
23326         * modules/rmdir-tests (Depends-on): Likewise.
23327         * modules/unlink-tests (Depends-on): Likewise.
23328         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
23329         * tests/test-canonicalize.c (symlink): Likewise.
23330         * tests/test-fstatat.c (symlink): Likewise.
23331         * tests/test-lstat.c (symlink): Likewise.
23332         * tests/test-remove.c (symlink): Likewise.
23333         * tests/test-rmdir.c (symlink): Likewise.
23334         * tests/test-unlink.c (symlink): Likewise.
23335         * tests/test-unlinkat.c (symlink): Likewise.
23336
23337         symlink: new module, for Solaris 9 bug
23338         * modules/symlink: New file.
23339         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23340         * lib/symlink.c: Likewise.
23341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23342         * modules/unistd (Makefile.am): Substitute them.
23343         * lib/unistd.in.h (symlink): Declare replacement.
23344         * MODULES.html.sh (File system functions): Mention it.
23345         * doc/posix-functions/symlink.texi (symlink): Likewise.
23346         * modules/symlink-tests: New test.
23347         * tests/test-symlink.c: Likewise.
23348
23349 2009-09-23  Bruno Haible  <bruno@clisp.org>
23350
23351         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
23352         when needed.
23353         Test case: gnulib-tool --import --with-tests atexit inttypes.
23354         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
23355
23356 2009-09-23  Bruno Haible  <bruno@clisp.org>
23357
23358         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
23359         subcommand, not in a subshell.
23360
23361 2009-09-22  Eric Blake  <ebb9@byu.net>
23362
23363         unistd: sort replacement declarations
23364         * lib/unistd.in.h: Sort declarations.
23365
23366         open, openat: minor optimization
23367         * lib/open.c (open): If open succeeded, len is non-zero.
23368         * lib/openat.c (rpl_openat): Likewise.
23369
23370         link-follow: ensure correct result
23371         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
23372         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
23373         distinguish between possible failures.
23374
23375 2009-09-21  Eric Blake  <ebb9@byu.net>
23376
23377         fts: avoid compiler warning
23378         * lib/fts.c (dirent_inode_sort_may_be_useful)
23379         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
23380
23381 2009-09-19  Bruno Haible  <bruno@clisp.org>
23382
23383         * lib/progreloc.c (canonicalize_file_name): New declaration.
23384
23385 2009-09-19  Eric Blake  <ebb9@byu.net>
23386
23387         link: fix quoting
23388         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
23389
23390         openat: fix openat bugs on Solaris 9
23391         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
23392         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
23393         * modules/openat (Depends-on): Add open.
23394         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
23395         * modules/fcntl-h (Makefile.am): Substitute it.
23396         * lib/fcntl.in.h (openat): Declare replacement.
23397         * doc/posix-functions/openat.texi (openat): Document this.
23398
23399         openat: move fstatat and unlinkat into correct files
23400         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
23401         compiled.
23402         * lib/openat.c (fstatat, unlinkat): Move...
23403         * lib/fstatat.c (fstatat): ...into correct files.
23404         * lib/unlinkat.c (unlinkat): Likewise.
23405
23406         openat: fix unlinkat bugs on Solaris 9
23407         * lib/unlinkat.c (unlinkat): New file.
23408         * modules/openat (Depends-on): Add unlink.
23409         (Files): Distribute it.
23410         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
23411         trailing slash behavior is broken.
23412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23413         * modules/unistd (Makefile.am): Substitute it.
23414         * lib/unistd.in.h (unlinkat): Declare replacement.
23415         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
23416
23417         openat: fix fstatat bugs on Solaris 9
23418         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
23419         stat.
23420         * doc/posix-functions/fstatat.texi (fstatat): Document this.
23421
23422         test-unlinkat: enhance test, to expose Solaris 9 bug
23423         * tests/test-unlink.c (main): Factor guts...
23424         * tests/test-unlink.h (test_rmdir_func): ...into new file.
23425         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
23426         * tests/test-rmdir.c (main): Adjust caller.
23427         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
23428         (unlinker): New helper function.
23429         (rmdirat): Enhance check.
23430         * modules/rmdir-tests (Depends-on): Add stdbool.
23431         * modules/unlink-tests (Depends-on): Likewise.
23432         (Files): Add test-unlink.h.
23433         * modules/openat-tests (Files): Likewise.
23434         (Depends-on): Add unlinkdir.
23435
23436         test-fstatat: new test, to expose Solaris 9 bugs
23437         * tests/test-stat.c (main): Factor guts...
23438         * tests/test-stat.h (test_stat_func): ...into new file.
23439         * tests/test-lstat.c (main): Factor guts...
23440         * tests/test-lstat.h (test_lstat_func): ...into new file.
23441         * tests/test-fstatat.c: New file.
23442         * modules/stat-tests (Files): Add test-stat.h.
23443         * modules/lstat-tests (Files): Add test-lstat.h.
23444         (Depends-on): Add stdbool.
23445         * modules/openat-tests (Depends-on): Add pathmax.
23446         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
23447         (Makefile.am): Run new test.
23448
23449         remove: new module, for mingw and Solaris 9 bugs
23450         * modules/remove: New file.
23451         * lib/remove.c: Likewise.
23452         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
23453         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23454         * modules/stdio (Makefile.am): Use them.
23455         * lib/stdio.in.h (remove): Declare replacement.
23456         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23457         * doc/posix-functions/remove.texi (remove): Likewise.
23458         * modules/remove-tests: New test.
23459         * tests/test-remove.c: Likewise.
23460
23461         unlink: new module, for Solaris 9 bug
23462         * modules/unlink: New file.
23463         * lib/unlink.c: Likewise.
23464         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23466         * modules/unistd (Makefile.am): Use them.
23467         * lib/unistd.in.h (stat): Declare replacement.
23468         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23469         * doc/posix-functions/unlink.texi (unlink): Likewise.
23470         * modules/unlink-tests: New test.
23471         * tests/test-unlink.c: Likewise.
23472
23473         lstat: fix Solaris 9 bug
23474         * lib/lstat.c (lstat): Also check for trailing slash on
23475         non-symlink, non-directories.  Use stat module to simplify logic.
23476         * doc/posix-functions/lstat.texi (lstat): Document it.
23477         * modules/lstat-tests (Depends-on): Add errno, same-inode.
23478         (configure.ac): Check for symlink.
23479         * tests/test-lstat.c (main): Add more tests.
23480
23481         stat: add as dependency to other modules
23482         * modules/chown (Depends-on): Add stat.
23483         * modules/euidaccess (Depends-on): Likewise.
23484         * modules/fchdir (Depends-on): Likewise.
23485         * modules/isdir (Depends-on): Likewise.
23486         * modules/link (Depends-on): Likewise.
23487         * modules/lstat (Depends-on): Likewise.
23488         * modules/mkdir-p (Depends-on): Likewise.
23489         * modules/modechange (Depends-on): Likewise.
23490         * modules/open (Depends-on): Likewise.
23491         * modules/readlink (Depends-on): Likewise.
23492         * modules/same (Depends-on): Likewise.
23493
23494         stat: fix Solaris 9 bug
23495         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
23496         slash.
23497         * lib/stat.c (rpl_stat): Work around it.
23498         * doc/posix-functions/stat.texi (stat): Update documentation.
23499
23500         stat: new module, for mingw bug
23501         * modules/stat: New file.
23502         * lib/stat.c: Likewise.
23503         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23504         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23505         * modules/sys_stat (Makefile.am): Use them.
23506         * lib/sys_stat.in.h (stat): Declare replacement.
23507         * lib/openat.c (fstatat): Deal with lstat and stat being function
23508         macros.
23509         * modules/openat (Depends-on): Add inline.
23510         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23511         * doc/posix-functions/stat.texi (stat): Likewise.
23512         * modules/stat-tests: New test.
23513         * tests/test-stat.c: Likewise.
23514
23515 2009-09-19  Jim Meyering  <meyering@redhat.com>
23516
23517         syntax-check: detect unnecessary inclusion of canonicalize.h
23518         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
23519
23520 2009-09-19  Eric Blake  <ebb9@byu.net>
23521
23522         canonicalize-lgpl: adjust clients to use correct header
23523         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
23524         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
23525         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
23526         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
23527         * lib/progreloc.c (includes): Likewise.
23528
23529 2009-09-19  Jim Meyering  <meyering@redhat.com>
23530
23531         test-posixtm.c: correct a comment
23532         * tests/test-posixtm.c: Correct first-line comment.
23533         Spotted by Eric Blake.
23534
23535 2009-09-16  Jim Meyering  <meyering@redhat.com>
23536
23537         posixtm-tests: make T const-correct; add a test case
23538         * tests/test-posixtm.c (T): Declare const.
23539         Add a test for -(2^31+1).
23540         Remove useless can-succeed-only-in-2002 test.
23541
23542         posixtm-tests: adjust the sole failing test
23543         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
23544         expected output matches what mktime now produces.  Cross-checked via
23545         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
23546
23547         posixtm: move #ifdef'd tests into a new module
23548         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
23549         * tests/test-posixtm.c: ... this new file.
23550         * modules/posixtm-tests: New module.
23551
23552 2009-09-19  Eric Blake  <ebb9@byu.net>
23553
23554         openat: simplify use of at-func.c
23555         * lib/at-func.c (includes): Include prerequisites here, to
23556         simplify requirements on client files.
23557         * lib/openat-priv.h: Add double-inclusion guard.
23558         * lib/faccessat.c (includes): Simplify.
23559         * lib/fchmodat.c (includes): Likewise.
23560         * lib/fchownat.c (includes): Likewise.
23561         * lib/mkdirat.c (includes): Likewise.
23562         * lib/mkfifoat.c (includes): Likewise.
23563         * lib/symlinkat.c (includes): Likewise.
23564
23565         openat: allow return of fd 0
23566         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
23567         * modules/save-cwd (Depends-on): Replace fcntl-safer with
23568         unistd-safer.
23569         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
23570         <fcntl.h>; this module does not leak fds.
23571         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
23572         must be allowed to return 0, leaving openat_safer to add the
23573         safety.
23574         (openat_permissive): Avoid writing to just-opened fd 2 if
23575         restoring the current directory fails.
23576         * lib/openat-die.c (openat_restore_fail): Add comment.
23577         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
23578         (save_cwd): Guarantee safe fd, but without use of open_safer.
23579         * tests/test-openat.c: New test.
23580         * modules/openat-tests (Files, Makefile.am): Distribute and build
23581         new file.
23582
23583         relocatable-prog-wrapper: fix build
23584         * modules/relocatable-prog-wrapper (Files): Update name of
23585         canonicalize m4 file, broken on 2009-09-17.
23586         Reported by emad hajjar <aleppos@hotmail.com>.
23587
23588 2009-09-19  Bruno Haible  <bruno@clisp.org>
23589
23590         * lib/safe-alloc.h: Use the standard header with GPL copyright.
23591         * lib/safe-alloc.c: Likewise.
23592         Reported by Ian Beckwith <ianb@erislabs.net>.
23593
23594 2009-09-18  Bruno Haible  <bruno@clisp.org>
23595
23596         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
23597         Reported by <erobles@sensacd.com.mx>.
23598
23599 2009-09-17  Eric Blake  <ebb9@byu.net>
23600
23601         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
23602         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
23603         slashes when checking if last component is missing.
23604         * tests/test-canonicalize.c (main): Test this.
23605
23606         canonicalize, canonicalize-lgpl: honor // if distinct from /
23607         * modules/canonicalize (Files): Add double-slash-root.m4.
23608         * modules/canonicalize-lgpl (Files): Likewise.
23609         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
23610         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
23611         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
23612         fallback definition.
23613         (canonicalize_filename_mode): Use it to protect //.
23614         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
23615         (__realpath): Likewise.
23616         * tests/test-canonicalize.c (main): Test this.
23617         * tests/test-canonicalize-lgpl.c (main): Likewise.
23618         * modules/canonicalize-tests (Depends-on): Add same-inode.
23619         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23620
23621         canonicalize-lgpl: fix glibc bug with trailing slash
23622         * m4/canonicalize-lgpl.m4: Move contents...
23623         * m4/canonicalize.m4: ...here.
23624         (gl_CANONICALIZE_LGPL): Factor realpath check...
23625         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
23626         glibc 2.3.5 bug, fixed 2005-04-27.
23627         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
23628         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
23629         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
23630         * modules/canonicalize-lgpl (Files): Manage file rename.
23631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23632         * modules/stdlib (Makefile.am): Substitute witness.
23633         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
23634         is needed.
23635         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
23636         replacement is required.
23637         * lib/canonicalize.c (canonicalize_file_name): Likewise.
23638         * doc/glibc-functions/canonicalize_file_name.texi
23639         (canonicalize_file_name): Document this.
23640         * doc/posix-functions/realpath.texi (realpath): Likewise.
23641
23642         canonicalize-lgpl: reject non-directory with trailing slash
23643         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
23644         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
23645         catches failures in glibc 2.3.5.
23646         * tests/test-canonicalize.c (main): Likewise.
23647
23648         canonicalize-lgpl: use native realpath if it works
23649         * lib/canonicalize-lgpl.c (realpath): Guard with
23650         FUNC_REALPATH_WORKS.
23651         * lib/stdlib.in.h (realpath): Make declaration optional based on
23652         HAVE_REALPATH.
23653         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
23654         native realpath works.
23655         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23656         * modules/stdlib (Makefile.am): Substitute witness.
23657
23658         canonicalize, canonicalize-lgpl: use <stdlib.h>
23659         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
23660         (Include): Mention <stdlib.h>.
23661         (configure.ac): Mention functions we provide.
23662         * modules/canonicalize (configure.ac): Likewise.
23663         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
23664         realpath if canonicalize_file_name is missing.
23665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
23666         * modules/stdlib (Makefile.am): Substitute witnesses.
23667         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
23668         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
23669         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
23670         * NEWS: Document this.
23671         * doc/glibc-functions/canonicalize_file_name.texi
23672         (canonicalize_file_name): Likewise.
23673         * doc/posix-functions/realpath.texi (realpath): Likewise.
23674         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
23675
23676         test-canonicalize: consolidate into single C program
23677         * tests/test-canonicalize.sh: Delete; move setup into...
23678         * tests/test-canonicalize.c (main): ...the program, making it
23679         easier to run in debugger.  Add some tests.
23680         * modules/canonicalize-tests (Files): Remove unused file.
23681         (Depends-on): Add progname.
23682         (configure.ac, Makefile.am): Simplify.
23683
23684         test-canonicalize-lgpl: consolidate into single C program
23685         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
23686         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
23687         easier to run in debugger.  Add some tests.
23688         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
23689         (configure.ac, Makefile.am): Simplify.
23690
23691         canonicalize: avoid resolvepath
23692         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
23693         unnecessary checks.
23694         * lib/canonicalize.c (includes): Simplify.
23695         (canonicalize_file_name): Drop resolvepath implementation.
23696         * modules/canonicalize (Depends-on): Drop filenamecat.
23697
23698         canonicalize: don't lose errno
23699         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
23700         over calls to free.
23701
23702         canonicalize: simplify errno handling
23703         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
23704         assignment.
23705
23706         canonicalize, canonicalize-lgpl: update module dependencies
23707         * modules/canonicalize (Depends-on): Add extensions, lstat,
23708         pathmax, stdlib.
23709         (Files): Drop pathmax.h.
23710         (configure.ac): Adjust macro name.
23711         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
23712         lstat, stdlib, sys_stat.
23713         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
23714         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
23715         extensions.
23716         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
23717         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
23718         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
23719         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
23720         declaration, if available.
23721         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
23722         we can rely on the readlink module.
23723         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
23724         (includes): Use <unistd.h> unconditionally.
23725
23726 2009-09-17  Eric Blake  <ebb9@byu.net>
23727
23728         maint: make Include sections of modules consistent
23729         * modules/alloca: Use only header name; no need to list #include.
23730         * modules/alloca-opt: Likewise.
23731         * modules/arpa_inet: Likewise.
23732         * modules/canon-host: Likewise.
23733         * modules/configmake: Likewise.
23734         * modules/dirent: Likewise.
23735         * modules/eealloc: Likewise.
23736         * modules/environ: Likewise.
23737         * modules/fchdir: Likewise.
23738         * modules/fcntl: Likewise.
23739         * modules/fcntl-h: Likewise.
23740         * modules/gethrxtime: Likewise.
23741         * modules/gettime: Likewise.
23742         * modules/ignore-value: Likewise.
23743         * modules/inet_ntop: Likewise.
23744         * modules/inet_pton: Likewise.
23745         * modules/inttypes: Likewise.
23746         * modules/isnand-nolibm: Likewise.
23747         * modules/isnanf-nolibm: Likewise.
23748         * modules/mbchar: Likewise.
23749         * modules/mbfile: Likewise.
23750         * modules/mbiter: Likewise.
23751         * modules/mbuiter: Likewise.
23752         * modules/netdb: Likewise.
23753         * modules/netinet_in: Likewise.
23754         * modules/nproc: Likewise.
23755         * modules/pagealign_alloc: Likewise.
23756         * modules/poll: Likewise.
23757         * modules/printf-frexp: Likewise.
23758         * modules/pthread: Likewise.
23759         * modules/putenv: Likewise.
23760         * modules/random_r: Likewise.
23761         * modules/relocatable-prog: Likewise.
23762         * modules/search: Likewise.
23763         * modules/select: Likewise.
23764         * modules/selinux-h: Likewise.
23765         * modules/settime: Likewise.
23766         * modules/signal: Likewise.
23767         * modules/size_max: Likewise.
23768         * modules/socklen: Likewise.
23769         * modules/ssize_t: Likewise.
23770         * modules/stdarg: Likewise.
23771         * modules/stdbool: Likewise.
23772         * modules/stddef: Likewise.
23773         * modules/stdint: Likewise.
23774         * modules/stdio: Likewise.
23775         * modules/stdlib: Likewise.
23776         * modules/string: Likewise.
23777         * modules/strings: Likewise.
23778         * modules/sys_file: Likewise.
23779         * modules/sys_ioctl: Likewise.
23780         * modules/sys_select: Likewise.
23781         * modules/sys_socket: Likewise.
23782         * modules/sys_stat: Likewise.
23783         * modules/sys_time: Likewise.
23784         * modules/sys_times: Likewise.
23785         * modules/sys_utsname: Likewise.
23786         * modules/sys_wait: Likewise.
23787         * modules/sysexits: Likewise.
23788         * modules/time: Likewise.
23789         * modules/times: Likewise.
23790         * modules/tmpfile: Likewise.
23791         * modules/trim: Likewise.
23792         * modules/unistd: Likewise.
23793         * modules/wchar: Likewise.
23794         * modules/wctype: Likewise.
23795
23796 2009-09-17  Bruno Haible  <bruno@clisp.org>
23797
23798         Make getdate.y compile on QNX and NetBSD 5 / i386.
23799         * m4/getdate.m4 (gl_GETDATE): Conditionally define
23800         TIME_T_FITS_IN_LONG_INT.
23801         * lib/getdate.y (long_time_t): New type.
23802         (relative_time): Change type of 'seconds' field to long_time_t.
23803         (get_date): Update types of local variables. Check against overflow
23804         during conversion from long_time_t to time_t.
23805         Reported by Matt Kraai <kraai@ftbfs.org>
23806         and Hasso Tepper <hasso@netbsd.org>.
23807
23808 2009-09-17  Bruno Haible  <bruno@clisp.org>
23809
23810         * modules/COPYING: Update copyright years.
23811         * modules/README: Likeiwse.
23812         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
23813         Reported by Ian Beckwith <ianb@erislabs.net>.
23814
23815 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23816
23817         * users.txt: Update references for gnuit package.
23818
23819 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23820
23821         * m4/getdelim.m4: Fix typo in copyright line.
23822
23823 2009-09-17  Bruno Haible  <bruno@clisp.org>
23824
23825         * lib/atoll.c: Use the standard header with GPL copyright.
23826         * lib/argz.in.h: Likewise.
23827         * lib/glob.c: Likewise.
23828         * lib/glob-libc.h: Likewise.
23829         * lib/random_r.c: Likewise.
23830         * lib/siglist.h: Likewise.
23831         * lib/strsignal.c: Likewise.
23832         Reported by Ian Beckwith <ianb@erislabs.net>.
23833
23834 2009-09-17  Eric Blake  <ebb9@byu.net>
23835
23836         rmdir: ensure correct dependency order
23837         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
23838
23839 2009-09-17  Bruno Haible  <bruno@clisp.org>
23840
23841         Disable assertion that fails on NetBSD 5 / i386.
23842         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
23843         Reported by Sam Steingold <sds@gnu.org>
23844         and Hasso Tepper <hasso@netbsd.org>.
23845
23846 2009-09-16  Eric Blake  <ebb9@byu.net>
23847
23848         unlinkdir: port to mingw
23849         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
23850         on which no one can unlink a directory.
23851
23852         stdlib: sort witness names
23853         * modules/stdlib (Makefile.am): Sort replacements.
23854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
23855         * lib/stdlib.in.h: Likewise.
23856
23857         parse-duration-tests: avoid link failure
23858         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
23859         LIBINTL.
23860         Reported by Tom G. Christensen.
23861
23862         openat-tests: ensure unlinkat behaves like rmdir
23863         * tests/test-rmdir.c (main): Factor guts...
23864         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
23865         * modules/rmdir-tests (Files): Ship new file.
23866         * modules/openat-tests: New test.
23867         * tests/test-unlinkat.c: Likewise.
23868
23869         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
23870         * modules/rmdir-errno (Status, Notice): Now obsolete.
23871
23872         rmdir: work around cygwin 1.5.x and mingw bugs
23873         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
23874         * lib/rmdir.c (rmdir): Work around it.
23875         * modules/rmdir (Status, Notice): No longer obsolete.
23876         (Files): Add dos.m4.
23877         (Depends-on): Add unistd.
23878         (configure.ac): Set witnesses.
23879         (License): Relax to LGPLv2+.
23880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
23881         * modules/unistd (Makefile.am): Substitute witnesses.
23882         * lib/unistd.in.h (rmdir): Declare replacement.
23883         * doc/posix-functions/rmdir.texi (rmdir): Document this.
23884         * modules/rmdir-tests: New tests.
23885         * tests/test-rmdir.c: Likewise.
23886
23887 2009-09-15  Eric Blake  <ebb9@byu.net>
23888
23889         fchdir: improve use of replacement functions
23890         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
23891         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
23892         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
23893         REPLACE_CLOSEDIR.
23894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
23895         * modules/sys_stat (Makefile.am): Substitute correct witness.
23896         * modules/dirent (Makefile.am): Likewise.
23897         * modules/unistd (Makefile.am): Likewise.
23898         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
23899         * lib/unistd.in.h (dup): Likewise.
23900         * lib/sys_stat.in.h (fstat): Likewise.
23901
23902         maint: ignore gnulib-tool temp files
23903         * .gitignore: Ignore files created during gnulib-tool --test.
23904
23905 2009-09-13  Jim Meyering  <meyering@redhat.com>
23906
23907         posixtm: don't reject a time that specify "60" as the number of seconds
23908         * lib/posixtm.c (posixtime): The code to reject invalid dates
23909         would also reject a time specified with the .60 suffix.
23910         But POSIX allows that, in order to accommodate leap seconds.
23911         So don't reject it.
23912         (main): Adjust tests accordingly.
23913         * modules/posixtm (Depends-on): Add stpcpy.
23914
23915 2009-09-11  Jim Meyering  <meyering@redhat.com>
23916
23917         announce-gen: include [$release_type] in emitted Subject:
23918         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
23919         e.g., [stable] in the emitted Subject: line.
23920
23921 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23922
23923         Remove obsolete macros from several modules.
23924         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
23925         obsolete Autoconf macros with their modern counterparts.
23926         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
23927         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
23928         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
23929         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
23930         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
23931         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23932         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23933         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23934         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23935         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
23936         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23937         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23938         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
23939         * m4/sockets.m4 (gl_SOCKETS): Likewise.
23940         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
23941         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
23942         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
23943         * m4/time_r.m4 (gl_TIME_R): Likewise.
23944         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23945         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
23946         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
23947
23948         Fix copyright header in build-aux scripts.
23949         * build-aux/git-version-gen: Fix copyright header to match GPLv3
23950         recommendation.
23951         * build-aux/ncftpput-ftp: Likewise.
23952         * build-aux/update-copyright: Likewise.
23953
23954 2009-09-09  Eric Blake  <ebb9@byu.net>
23955
23956         test-link: allow Linux choice of errno
23957         * tests/test-link.c (main): Relax test for alternate error.
23958
23959         strndup: fix improper m4 caching
23960         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
23961         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
23962         (gl_PREREQ_STRNDUP): Delete.
23963         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
23964         * modules/string (Makefile.am): Substitute it.
23965         * lib/string.in.h (strndup): Modernize prototype.
23966
23967         getcwd: port to mingw
23968         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
23969         different from the POSIX assumptions made throughout the getcwd
23970         module; fortunately, the mingw getcwd does not need replacement.
23971         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
23972         * modules/getcwd-tests: New test.
23973         * tests/test-getcwd.c: Likewise.
23974
23975         link: fix platform bugs
23976         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
23977         * lib/link.c (link): Work around them.  Fix related mingw bug.
23978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
23979         * modules/unistd (Makefile.am): Substitute it.
23980         * lib/unistd.in.h (link): Declare replacement.
23981         * doc/posix-functions/link.texi (link): Document this.
23982         * modules/link (Depends-on): Add strdup-posix, sys_stat.
23983
23984         test-link: consolidate into single C program, test more cases
23985         * tests/test-link.sh: Delete.
23986         * tests/test-link.c: Test more error conditions.  Exposes bugs on
23987         at least Cygwin and Solaris.
23988         * modules/link-tests (Files): Remove unused file.
23989         (Depends-on): Add errno, sys_stat.
23990         (Makefile.am): Simplify.
23991
23992 2009-09-08  Bruno Haible  <bruno@clisp.org>
23993
23994         Work around towlower, towupper bug on mingw.
23995         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
23996         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
23997         * doc/posix-functions/towlower.texi: Mention the mingw bug.
23998         * doc/posix-functions/towupper.texi: Likewise.
23999         Reported by Eric Blake.
24000
24001 2009-09-08  Jim Meyering  <meyering@redhat.com>
24002
24003         build: don't try to run autoheader if we don't use it
24004         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
24005         is not used in configure.ac.
24006
24007 2009-09-08  Eric Blake  <ebb9@byu.net>
24008
24009         euidaccess: fix compilation error
24010         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
24011
24012         rawmemchr: relax license
24013         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
24014         okay.
24015         Reported by Jim Meyering.
24016
24017         mkfifoat: new module
24018         * modules/mkfifoat: New file.
24019         * lib/mkfifoat.c: Likewise.
24020         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
24021         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24022         * modules/sys_stat (Makefile.am): Use them.
24023         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
24024         * MODULES.html.sh (File system functions): Mention module.
24025         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24026         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24027         * modules/mkfifoat-tests: New test.
24028         * tests/test-mkfifoat.c: Likewise.
24029
24030         strchrnul: relax license
24031         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
24032         okay.
24033         Reported by Jim Meyering.
24034
24035 2009-09-08  Eric Blake  <ebb9@byu.net>
24036
24037         fstatat: fix compilation on Solaris
24038         * lib/fstatat.c (includes): Add fcntl.h.
24039         Reported by Pádraig Brady.
24040
24041 2009-09-07  Eric Blake  <ebb9@byu.net>
24042
24043         rename: modernize replacement
24044         * modules/rename (Depends-on): Add stdio.
24045         (configure.ac): Declare witness.
24046         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
24047         stdio take care of replacement.
24048         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
24049         * modules/stdio (Makefile.am): Substitute them.
24050         * lib/stdio.in.h (rename): Declare replacement.
24051         * lib/rename.c (includes): Allow cross-compilation to non-windows
24052         machines.
24053         * doc/posix-functions/rename.texi (rename): Improve
24054         documentation.
24055
24056         stdio: sort witness names
24057         * modules/stdio (Makefile.am): Sort replacements.
24058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24059         * lib/stdio.in.h: Likewise.
24060
24061         getcwd: minor cleanups
24062         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
24063         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
24064
24065         openat: provide more convenience names
24066         * modules/faccessat (configure.ac): Add C witness.
24067         * lib/unistd.in.h (readlinkat): Fix typo.
24068         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
24069         convenience wrappers.
24070         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
24071         wrappers in syntax checks.
24072
24073 2009-09-06  Eric Blake  <ebb9@byu.net>
24074
24075         doc: fix comments in recent patches
24076         * lib/faccessat.c: Mention correct function.
24077         * lib/fchmodat.c: Likewise.
24078         * lib/fchownat.c: Likewise.
24079         * lib/symlinkat.c: Likewise.
24080         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
24081         constants.
24082
24083         faccessat, symlinkat: continue cleanup of previous patch
24084         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
24085         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24086         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
24087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
24088         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
24089         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
24090         set.
24091
24092 2009-09-06  Bruno Haible  <bruno@clisp.org>
24093
24094         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
24095         (fstatat): Declare if GNULIB_FSTATAT is set.
24096         (mkdirat): Declare if GNULIB_MKDIRAT is set.
24097         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
24098         (unlinkat): Declare if GNULIB_UNLINKAT is set.
24099         * modules/fcntl-h (Files): Remove m4/openat.m4.
24100         * modules/sys_stat (Files): Remove m4/openat.m4.
24101         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
24102         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
24103         * modules/unistd (Files): Remove m4/openat.m4.
24104         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
24105         GNULIB_OPENAT.
24106         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
24107         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
24108         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
24109         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
24110         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
24111         gl_OPENAT_DEFAULTS.
24112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
24113         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
24114         Don't require gl_OPENAT_DEFAULTS.
24115         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
24116         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
24117         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
24118         (gl_OPENAT_DEFAULTS): Remove macro.
24119
24120 2009-09-06  Bruno Haible  <bruno@clisp.org>
24121
24122         * modules/openat (configure.ac): Remove unneeded witness.
24123
24124 2009-09-06  Bruno Haible  <bruno@clisp.org>
24125
24126         Set errno to ENOSYS when a function is entirely unsupported.
24127         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
24128         EOPNOTSUPP.
24129         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24130         * modules/chown (Depends-on): Remove errno.
24131
24132 2009-09-06  Bruno Haible  <bruno@clisp.org>
24133
24134         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
24135
24136 2009-09-06  Bruno Haible  <bruno@clisp.org>
24137
24138         * lib/sys_stat.in.h: Fix preprocessor command indentation.
24139
24140 2009-09-06  Ben Pfaff  <blp@gnu.org>
24141             Bruno Haible  <bruno@clisp.org>
24142
24143         Work around a glibc bug in strtok_r.
24144         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
24145         Undefine if UNDEFINE_STRTOK_R is set.
24146         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
24147         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24148         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
24149         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
24150         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
24151         UNDEFINE_STRTOK_R.
24152         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
24153
24154 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24155
24156         exclude: minor fix
24157         * lib/exclude.c: Include wctype.h
24158
24159 2009-09-06  Akim Demaille  <demaille@gostai.com>
24160
24161         bootstrap: improve error message
24162         * build-aux/bootstrap (find_tool): Upon failure, report the list
24163         of candidates.
24164         Honor the initial value of the envvar.
24165
24166 2009-09-05  Eric Blake  <ebb9@byu.net>
24167
24168         symlinkat: new module
24169         * modules/symlinkat: New file.
24170         * lib/symlinkat.c: Likewise.
24171         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
24172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24173         * modules/unistd (Makefile.am): Use them.
24174         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
24175         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
24176         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
24177         * MODULES.html.sh (File system functions): Mention module.
24178         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24179         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24180         * modules/symlinkat-tests: New test.
24181         * tests/test-symlinkat.c: Likewise.
24182
24183         test-openat-safer: add more checks
24184         * tests/test-openat-safer.c (main): Check more code paths.
24185
24186 2009-09-05  Jim Meyering  <meyering@redhat.com>
24187
24188         syntax-check: detect unnecessary inclusion of openat.h
24189         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
24190
24191 2009-09-05  Bruno Haible  <bruno@clisp.org>
24192
24193         Support towlower, towupper.
24194         * doc/posix-functions/towlower.texi: Mention module wctype.
24195         * doc/posix-functions/towupper.texi: Likewise.
24196         * lib/wctype.in.h (towlower, towupper): New functions.
24197         * tests/test-wctype.c: Include stdio.h, stdlib.h.
24198         (ASSERT): New macro.
24199         (e): New variable.
24200         (main): Test also towlower, towupper. Test WEOF argument.
24201         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24202
24203 2009-09-05  Bruno Haible  <bruno@clisp.org>
24204
24205         Fix conversion behaviour when the input is invalid.
24206         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
24207         mark occurring in first pass of indirect conversion.
24208         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
24209         input.
24210         Found by clang's static analyzer.
24211
24212 2009-09-05  Bruno Haible  <bruno@clisp.org>
24213
24214         * tests/test-striconveh.c (main): Test indirect conversion on platforms
24215         where direct conversion is possible.
24216
24217 2009-09-04  Eric Blake  <ebb9@byu.net>
24218
24219         openat: fail with ENOENT on empty name
24220         * lib/openat-proc.c (openat_proc_name): Special-case the empty
24221         buffer.
24222
24223         link-follow: fix logic bug in prior patch
24224         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
24225         reversed sense of yes and no in prior patch.  Avoid confusing
24226         compilation failure with desired semantics.
24227
24228         link-follow: accomodate mingw and cross-compilation
24229         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
24230         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
24231         cross-compilation results to -1, to make linkat easier to
24232         implement when cross-compiling.  Trivially support mingw.
24233         * modules/link-follow (configure.ac): Call new name.
24234         * NEWS: Mention this.
24235
24236 2009-09-03  Eric Blake  <ebb9@byu.net>
24237
24238         faccessat: compile replacement
24239         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
24240         needed.
24241
24242         fts: fix compilation error
24243         * lib/fts.c (includes): Re-add "openat.h", for
24244         openat_needs_fchdir.
24245
24246         faccessat: new module
24247         * modules/faccessat: New file.
24248         * lib/faccessat.c: Likewise.
24249         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24251         * modules/unistd (Makefile.am): Use it.
24252         * lib/unistd.in.h (faccessat): Declare it.
24253         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
24254         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
24255         * MODULES.html.sh (File system functions): Mention it.
24256         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
24257         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24258
24259         euidaccess: prefer POSIX over non-standard implementation
24260         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
24261         * lib/euidaccess.c (euidaccess): Use it if available.
24262
24263         openat: make template easier to use
24264         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
24265         AT_FUNC_F2 to be undefined.
24266         (VALIDATE_FLAG): New macro; use it to reject bad flags.
24267         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
24268         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
24269         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
24270         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
24271         Likewise.
24272         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
24273         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
24274         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
24275         Likewise.
24276
24277         openat: declare in POSIX headers
24278         * NEWS: Mention this.
24279         * modules/openat (configure.ac): Declare witnesses.
24280         (Depends-on): Add fcntl-h, sys_stat, unistd.
24281         (Include): Mention correct headers.
24282         * modules/fcntl-h (Depends-on): Add link-warning.
24283         (Files): Add openat.m4.
24284         (Makefile.am): Substitute witnesses.
24285         * modules/sys_stat (Files, Makefile.am): Likewise.
24286         * modules/unistd (Files, Makefile.am): Likewise.
24287         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
24288         (gl_OPENAT_DEFAULTS): New macro.
24289         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
24290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
24291         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
24292         (SYS_STAT_H): Remove unused variable.
24293         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
24294         * lib/fcntl--.h (includes): Remove unneeded header.
24295         * lib/openat-safer.c (includes): Likewise.
24296         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
24297         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
24298         appropriate headers.
24299         (__OPENAT_PREFIX): Delete.
24300         * lib/fcntl.in.h (openat): Provide declaration.
24301         (AT_FDCWD): Fix Solaris bug.
24302         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
24303         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
24304         * lib/fchmodat.c (includes):  Adjust to find declaration.
24305         * lib/fchownat.c (includes): Likewise.
24306         * lib/mkdirat.c (includes): Likewise.
24307         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
24308         still visible.
24309
24310 2009-09-02  Eric Blake  <ebb9@byu.net>
24311
24312         errno: use consistently
24313         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
24314         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
24315         * lib/canonicalize.c (ELOOP): Likewise.
24316         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
24317         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
24318         * lib/lchown.c (EOPNOTSUPP): Likewise.
24319         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
24320         * lib/savewd.c (ESTALE): Likewise.
24321         * lib/settime.c (ENOSYS): Likewise.
24322         * lib/utimens.c (ENOSYS): Likewise.
24323         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
24324         * lib/chdir-safer.c (ELOOP): Likewise.
24325         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
24326         * modules/c-stack (Depends-on): Add errno.
24327         * modules/canonicalize (Depends-on): Likewise.
24328         * modules/chdir-safer (Depends-on): Likewise.
24329         * modules/fdopendir (Depends-on): Likewise.
24330         * modules/inet_ntop (Depends-on): Likewise.
24331         * modules/inet_pton (Depends-on): Likewise.
24332         * modules/lchown (Depends-on): Likewise.
24333         * modules/openat (Depends-on): Likewise.
24334         * modules/savewd (Depends-on): Likewise.
24335         * modules/settime (Depends-on): Likewise.
24336         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
24337
24338         fts: avoid leaking fds
24339         * modules/fts (Depends-on): Add cloexec.
24340         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
24341         flag.
24342
24343         fts: make directory fds more robust
24344         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
24345         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
24346
24347         backupfile, chdir-long, fts, savedir: make safer
24348         * lib/backupfile.c (includes): Use "dirent--.h", since
24349         numbered_backup can write to stderr during readdir.
24350         * lib/savedir.c (includes): Likewise.
24351         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
24352         emulation can write to stderr on failure.
24353         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
24354         * lib/getcwd.c: Document why opendir_safer is unused.
24355         * lib/glob.c: Likewise.
24356         * lib/scandir.c: Likewise.
24357         * lib/openat-proc.c: Likewise, for open_safer.
24358         * modules/backupfile (Depends-on): Add dirent-safer.
24359         * modules/savedir (Depends-on): Likewise.
24360         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
24361         * modules/chdir-long (Depends-on): Add openat-safer.
24362
24363         openat-safer: new module
24364         * modules/openat-safer: New file.
24365         * lib/openat-safer.c: Likewise.
24366         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
24367         * lib/fcntl-safer.h (openat_safer): Declare.
24368         * lib/fcntl--.h (openat): Override.
24369         * MODULES.html.sh (File descriptor based I/O): Mention it.
24370         * lib/openat.h: Add double-inclusion guards.
24371         * lib/openat.c (includes): Only include "fcntl-safer.h", not
24372         "fcntl--.h", so we can implement openat.
24373         * modules/openat-safer-tests: New test.
24374         * tests/test-openat-safer.c: New file.
24375
24376         dirent-safer: new module
24377         * modules/dirent-safer: New file.
24378         * lib/dirent--.h: Likewise.
24379         * lib/dirent-safer.h: Likewise.
24380         * lib/opendir-safer.c: Likewise.
24381         * m4/dirent-safer.m4: Likewise.
24382         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
24383         * modules/dirent-safer-tests: New test.
24384         * tests/test-dirent-safer.c: New file.
24385         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
24386
24387         fdopendir: optimize on mingw
24388         * lib/unistd.in.h (_gl_directory_name): New prototype.
24389         * lib/fchdir.c (_gl_directory_name): Implement it.
24390         (fchdir): Use it to simplify implementation.
24391         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
24392         fchdir, when available, to avoid calling [f]chdir().
24393
24394         fdopendir: split into its own module
24395         * lib/openat.c (fdopendir): Move...
24396         * lib/fdopendir.c: ...into new file.
24397         * modules/fdopendir: New module.
24398         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
24399         * modules/openat (Depends-on): Add fdopendir.
24400         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
24401         fdopendir here.
24402         * modules/savedir (Depends-on): Only need fdopendir, not full
24403         openat.
24404         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
24405         * lib/openat.h (fdopendir): Drop prototype.
24406         * lib/dirent.in.h (fdopendir): Provide prototype.
24407         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
24408         * modules/dirent (Makefile.am): Substitute them.
24409         * MODULES.html.sh (File system functions): Mention it.
24410         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
24411         * modules/fdopendir-tests: New file.
24412         * tests/test-fdopendir.c: Likewise.
24413
24414         fchdir: use more consistent macro convention
24415         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
24416         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
24417         REPLACE_FCHDIR, rather than relying on config.h macros.
24418         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
24419         inside a single make-time REPLACE_FCHDIR block, rather than using
24420         the config.h FCHDIR_REPLACEMENT.
24421         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
24422         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
24423         Manage fstat replacement.
24424         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
24425         REPLACE_FCHDIR.
24426         * modules/sys_stat (Files): Add m4/unistd_h.m4.
24427         (Makefile.am): Substitute REPLACE_FCHDIR.
24428         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
24429         FCHDIR_REPLACEMENT.
24430         * lib/dup-safer.c (dup_safer): Likewise.
24431         * lib/dup2.c (rpl_dup2): Likewise.
24432         * lib/dup3.c (rpl_dup3): Likewise.
24433         * lib/open.c (rpl_open): Likewise.
24434
24435         fchdir: simplify error handling, and support dup3
24436         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
24437         stdbool, malloc-posix, realloc-posix.
24438         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
24439         (ensure_dirs_slot): Return false on allocation failure.
24440         (rpl_dup2): Delete.
24441         (_gl_register_dup): New function.
24442         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
24443         (_gl_register_fd): Close fd on allocation failure.
24444         * lib/fcntl.in.h (_gl_register_fd): Update signature.
24445         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
24446         prototype.
24447         (rpl_dup2_fchdir): Delete prototype.
24448         * lib/open.c (open): Update caller.
24449         * lib/dup2.c (dup2): Track fchdir metadata.
24450         * lib/dup3.c (dup3): Likewise.
24451         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
24452         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
24453
24454 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24455
24456         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
24457         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
24458         don't pass arguments to AC_OUTPUT.
24459
24460 2009-09-02  Bruno Haible  <bruno@clisp.org>
24461
24462         * modules/mkdtemp (License): Relicense under LGPLv2+.
24463         Reported by Paolo Bonzini.
24464
24465 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24466
24467         Replace uses of obsolete autoconf macros in Jim's modules.
24468         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
24469         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
24470         can evoke a warning from autoconf when run with -Wobsolete
24471         enabled.  They were declared obsolete for good reasons (see
24472         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
24473         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
24474         should not continue using the deprecated macros.
24475         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
24476         obsolete Autoconf macros with modern counterparts.
24477         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24478         * m4/dos.m4 (gl_AC_DOS): Likewise.
24479         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
24480         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24481         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
24482         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
24483         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
24484         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
24485         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
24486         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
24487         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
24488         Likewise.
24489         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24490         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
24491         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
24492         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
24493         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
24494         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
24495
24496 2009-09-01  Eric Blake  <ebb9@byu.net>
24497
24498         fchdir: fix off-by-one bug in previous patch
24499         * lib/fchdir.c (rpl_fstat): Use correct bounds.
24500         (_gl_unregister_fd): Delete useless if.
24501
24502 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
24503
24504         maint.mk: sort the list of syntax-check rules
24505         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
24506         easier to get a sense of progress when the rules are run sequentially
24507         and take a long time.
24508
24509 2009-09-01  Simon Josefsson  <simon@josefsson.org>
24510
24511         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
24512         * modules/netinet_in: Likewise.
24513         * modules/sys_file: Likewise.
24514         * modules/sys_ioctl: Likewise.
24515         * modules/sys_select: Likewise.
24516         * modules/sys_socket: Likewise.
24517         * modules/sys_stat: Likewise.
24518         * modules/sys_time: Likewise.
24519         * modules/sys_times: Likewise.
24520         * modules/sys_utsname: Likewise.
24521         * modules/sys_wait: Likewise.
24522
24523 2009-09-01  Jim Meyering  <meyering@redhat.com>
24524
24525         fts: help ensure that return values are not ignored
24526         * lib/fts_.h (__GNUC_PREREQ): Define.
24527         (__attribute_warn_unused_result__): Define.
24528         (fts_children, fts_close, fts_open, fts_read): Declare with
24529         __attribute_warn_unused_result__.
24530
24531         fts: fts_close now fails also when closing a dir file descriptor fails
24532         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
24533         and propagate to caller, along with errno.
24534
24535         announce-gen: correct formatting in --help output
24536         * build-aux/announce-gen (usage): Move the one-line description in
24537         --help output "up", to where it belongs, just after Usage:.
24538
24539 2009-08-31  Eric Blake  <ebb9@byu.net>
24540
24541         fchdir: port to mingw
24542         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
24543         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
24544         opened, then use a substitute.
24545         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
24546         replacement.
24547         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
24548         (_gl_register_fd): No need to check stat if open already filters
24549         all directories.
24550         (fchdir): Fix error condition to match POSIX.
24551         * modules/fchdir (Depends-on): Add sys_stat.
24552         * doc/posix-functions/open.texi (open): Document the limitation.
24553         * modules/fchdir-tests: New file.
24554         * tests/test-fchdir.c: Likewise.
24555
24556         canonicalize: allow cross-testing from cygwin to mingw
24557         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
24558         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
24559         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
24560         Likewise.
24561         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
24562         target does not support symlinks.
24563         * tests/test-canonicalize-lgpl.sh: Likewise.
24564
24565         chown: avoid compilation warning on mingw
24566         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
24567         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
24568         mingw.
24569         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24570         * modules/chown (Depends-on): Add errno.
24571
24572 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24573
24574         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
24575         command.
24576
24577 2009-08-31  Jim Meyering  <meyering@redhat.com>
24578
24579         canonicalize: remove useless initialization
24580         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
24581         initialization of local, "end".
24582
24583 2009-08-30  Bruno Haible  <bruno@clisp.org>
24584
24585         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
24586         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
24587         ENOSYS.
24588
24589 2009-08-30  Bruno Haible  <bruno@clisp.org>
24590
24591         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
24592         /usr/xpg4/bin/tr when it exists.
24593         * tests/test-pipe-filter-gi1.sh: Likewise.
24594
24595 2009-08-30  Bruno Haible  <bruno@clisp.org>
24596
24597         Work around deficient /usr/bin/id program on Solaris.
24598         * tests/test-file-has-acl.sh (ID): New variable.
24599         * tests/test-set-mode-acl.sh (ID): Likewise.
24600         * tests/test-copy-acl.sh (ID): Likewise.
24601         * tests/test-copy-file.sh (ID): Likewise.
24602
24603 2009-08-30  Bruno Haible  <bruno@clisp.org>
24604
24605         New module 'xstriconveh'.
24606         * lib/xstriconveh.h: New file.
24607         * lib/xstriconveh.c: New file.
24608         * modules/xstriconveh: New file.
24609
24610 2009-08-30  Bruno Haible  <bruno@clisp.org>
24611
24612         Make it easier to use mem_cd_iconveh.
24613         * lib/striconveh.h (iconveh_t): New type.
24614         (iconveh_open, iconveh_close): New declarations.
24615         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24616         with a single 'const iconveh_t *' argument.
24617         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
24618         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24619         with a single 'const iconveh_t *' argument.
24620         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
24621         * tests/test-striconveh.c (main): Update.
24622         * NEWS: Mention the change.
24623
24624 2009-08-30  Bruno Haible  <bruno@clisp.org>
24625
24626         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
24627         problem.
24628
24629 2009-08-30  Bruno Haible  <bruno@clisp.org>
24630
24631         Work around iconv_open problem on Solaris.
24632         * lib/iconv_open-solaris.gperf: New file.
24633         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
24634         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
24635         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
24636         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
24637         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
24638         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
24639
24640 2009-08-29  Jim Meyering  <meyering@redhat.com>
24641
24642         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
24643         * top/maint.mk (cvs-check): Remove target; it was just an alias
24644         to the better-named vc-diff-check.
24645         (maintainer-distcheck): Remove rule.  It was used only from
24646         the (alpha/beta/major) target, and all of its commands but one
24647         were coreutils-specific.
24648         (vc-dist): Remove rule.
24649         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
24650         Run vc-diff-check, not vc-dist.
24651         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
24652
24653 2009-08-27  Bruno Haible  <bruno@clisp.org>
24654
24655         * tests/test-bitrotate.c (main): Remove test that uses a shift count
24656         of 0.
24657
24658 2009-08-27  Bruno Haible  <bruno@clisp.org>
24659
24660         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
24661         compilers.
24662         * doc/func.texi: Document the SunPRO C bug.
24663
24664 2009-08-27  Bruno Haible  <bruno@clisp.org>
24665
24666         Fix link error on Solaris.
24667         * tests/test-parse-duration.c (xstrdup): Remove function.
24668
24669 2009-08-26  Pádraig Brady  <P@draigbrady.com>
24670
24671         ignore-value: handle pointer types, too
24672         * lib/ignore-value.h (__attribute__): Remove definition.
24673         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
24674         of a more concise and more-often effective "(void) i" statement.
24675         (ignore_ptr): New function to suppress warnings from functions that
24676         return pointers, and to make it explicit that one function doesn't
24677         handle all cases.
24678
24679 2009-08-25  Bruno Haible  <bruno@clisp.org>
24680
24681         dup2: work around a Linux bug.
24682         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
24683         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
24684         * doc/posix-functions/dup2.texi: Mention the Linux bug.
24685         Reported by Simon Josefsson.
24686
24687 2009-08-25  Jim Meyering  <meyering@redhat.com>
24688
24689         libguestfs uses gnulib
24690         * users.txt: Add libguestfs.
24691
24692 2009-08-24  Eric Blake  <ebb9@byu.net>
24693
24694         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
24695         * lib/pipe2.c (includes): Add binary-io.h.
24696         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
24697
24698 2009-08-24  Bruno Haible  <bruno@clisp.org>
24699
24700         Tolerate declared but missing accept4 syscall.
24701         * lib/accept4.c (accept4): Invoke original accept4 function first, if
24702         available.
24703         * lib/sys_socket.in.h (accept4): If the function is already present,
24704         override it.
24705         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
24706         * modules/accept4 (Makefile.am): Compile accept4.c always.
24707         Reported by Paolo Bonzini and Eric Blake.
24708
24709 2009-08-23  Bruno Haible  <bruno@clisp.org>
24710
24711         New module 'accept4'.
24712         * lib/sys_socket.in.h (accept4): New declaration.
24713         * lib/accept4.c: New file.
24714         * m4/accept4.m4: New file.
24715         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24716         GNULIB_ACCEPT4, HAVE_ACCEPT4.
24717         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
24718         HAVE_ACCEPT4.
24719         * modules/accept4: New file.
24720         * doc/glibc-functions/accept4.texi: Mention the new module.
24721
24722 2009-08-24  Jim Meyering  <meyering@redhat.com>
24723
24724         progname: also set global program_invocation_name, when possible
24725         Before this change, a libtool-enabled program that calls glibc's
24726         error function would report the program name as
24727         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
24728         * modules/progname (configure.ac): Check for a declaration of
24729         program_invocation_name.
24730         * lib/progname.c:  Include <errno.h>.
24731         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
24732         Set program_invocation_name.
24733
24734 2009-08-23  Bruno Haible  <bruno@clisp.org>
24735
24736         * lib/dup3.c: Include <string.h>.
24737
24738 2009-08-23  Bruno Haible  <bruno@clisp.org>
24739
24740         * lib/dup3.c (dup3): Test only once whether the system actually exists.
24741         * lib/pipe2.c (pipe2): Likewise.
24742         Suggested by Eric Blake.
24743
24744 2009-08-23  Bruno Haible  <bruno@clisp.org>
24745
24746         Tolerate declared but missing dup3 syscall.
24747         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
24748         * lib/unistd.in.h (dup3): If the function is already present,
24749         override it.
24750         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
24751         * modules/dup3 (Makefile.am): Compile dup3.c always.
24752         Reported by Paolo Bonzini.
24753
24754 2009-08-23  Bruno Haible  <bruno@clisp.org>
24755
24756         Tolerate declared but missing pipe2 syscall.
24757         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
24758         available.
24759         * lib/unistd.in.h (pipe2): If the function is already present,
24760         override it.
24761         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
24762         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
24763         Reported by Paolo Bonzini.
24764
24765 2009-08-23  Bruno Haible  <bruno@clisp.org>
24766
24767         * lib/pipe2.c (pipe2): Move #ifs inside function.
24768
24769 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24770
24771         quotearg: document limitations of quote_these_too
24772         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
24773         those limitations are created.
24774         * lib/quotearg.h (set_char_quoting): Document that digits and
24775         letters that are special after backslash are not permitted.
24776         (quotearg_char): Cross-reference set_char_quoting documentation.
24777
24778 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
24779
24780         quotearg: implement custom_quoting_style
24781         * lib/quotearg.c: (struct quoting_options): Add left_quote and
24782         right_quote fields.
24783         (set_custom_quoting): New public function.
24784         (quotearg_buffer_restyled): Add left_quote and right_quote
24785         arguments, handle them very much like locale quoting, and update
24786         all uses.
24787         (quotearg_n_custom): New public function.
24788         (quotearg_n_custom_mem): New public function.
24789         (quotearg_custom): New public function.
24790         (quotearg_custom_mem): New public function.
24791         * lib/quotearg.h: Prototype and document new public functions.
24792         (enum quoting_style): For escape_quoting_style and
24793         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
24794         ignored even though they're otherwise like c_quoting_style.
24795         Add custom_quoting_style member and document with comparison to
24796         clocale_quoting_style.
24797         * tests/test-quotearg.c (custom_quotes): New array.
24798         (custom_results): New array.
24799         (main): Extend to test custom quoting.
24800
24801 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24802
24803         quotearg: fix right quote escaping when it's in quote_these_too
24804         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
24805         quote, be sure to prepend only one backslash.
24806         * tests/test-quotearg.c (use_quote_double_quotes): New function.
24807         (main): Test it.
24808
24809 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24810
24811         quotearg-tests: test escaping of embedded locale quotes
24812         * tests/test-quotearg.c (struct result_strings): Add member for
24813         new input.
24814         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
24815         (inputs): Add new input.
24816         (results_g): Add expected results.
24817         (flag_results): Likewise.
24818         (locale_results): Likewise.
24819         (compare_strings): Check those.
24820
24821 2009-08-23  Bruno Haible  <bruno@clisp.org>
24822
24823         Tests for module 'dup3'.
24824         * modules/dup3-tests: New file.
24825         * tests/test-dup3.c: New file.
24826
24827         New module 'dup3'.
24828         * lib/unistd.in.h (dup3): New declaration.
24829         * lib/dup3.c: New file.
24830         * m4/dup3.m4: New file.
24831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
24832         HAVE_DUP3.
24833         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
24834         * modules/dup3: New file.
24835         * doc/glibc-functions/dup3.texi: Mention the new module.
24836
24837 2009-08-23  Bruno Haible  <bruno@clisp.org>
24838
24839         Tweak the dup2 test.
24840         * tests/test-dup2.c (main): Create the test file empty. Verify that an
24841         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
24842         the test file is still empty. Fix argument order of lseek.
24843
24844 2009-08-23  Bruno Haible  <bruno@clisp.org>
24845
24846         Avoid test link errors when the modules getopt-gnu, gettext are used.
24847         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
24848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24849
24850 2009-08-23  Bruno Haible  <bruno@clisp.org>
24851
24852         Fix getdtablesize() on mingw.
24853         * lib/getdtablesize.c (getdtablesize): Implement differently.
24854         * lib/unistd.in.h (getdtablesize): Improve comment.
24855
24856 2009-08-23  Bruno Haible  <bruno@clisp.org>
24857
24858         New module 'mkostemp'.
24859         Based on Ulrich Drepper's 2007-08-10 change in glibc.
24860         * lib/stdlib.in.h (mksotemp): New declaration.
24861         * lib/mkostemp.c: New file, from glibc with modifications.
24862         * lib/tempname.h (GT_FILE): Remove outdated comment.
24863         (gen_tempname): Add flags argument.
24864         * lib/tempname.c (__GT_BIGFILE): Remove macro.
24865         (__GT_FILE): Map to 1.
24866         (small_open, large_open): Remove macros.
24867         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
24868         * lib/mkstemp.c (mkstemp): Update.
24869         * lib/mkdtemp.c (mkdtemp): Likewise.
24870         * m4/mkostemp.m4: New file.
24871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
24872         HAVE_MKOSTEMP.
24873         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
24874         HAVE_MKOSTEMP.
24875         * modules/mkostemp: New file, based on modules/mkstemp.
24876         * doc/glibc-functions/mkostemp.texi: Mention the new module.
24877         * NEWS: Mention the change.
24878
24879 2009-08-23  Bruno Haible  <bruno@clisp.org>
24880
24881         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
24882         Reported by Eric Blake.
24883
24884 2009-08-23  Bruno Haible  <bruno@clisp.org>
24885
24886         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
24887         Reported by Eric Blake.
24888
24889 2009-08-23  Bruno Haible  <bruno@clisp.org>
24890
24891         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
24892         * modules/pipe2 (Depends-on): Likewise.
24893
24894 2009-08-23  Eric Blake  <ebb9@byu.net>
24895
24896         fcntl-h: add O_TTY_INIT support
24897         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
24898         * tests/test-fcntl-h.c (o): Test it.
24899         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24900
24901         fcntl-h: rename from fcntl, in preparation for fcntl(2)
24902         * modules/fcntl: Move <fcntl.h> header replacement...
24903         * modules/fcntl-h: ...to new name, so as not to collide with
24904         like-named function.
24905         * tests/test-fcntl.c: Rename...
24906         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
24907         * modules/fcntl-tests: Rename...
24908         * modules/fcntl-h-tests: ...to this.  Update test file name.
24909         * modules/chdir-long (Depends-on): Update clients.
24910         * modules/chdir-safer (Depends-on): Likewise.
24911         * modules/fcntl-safer (Depends-on): Likewise.
24912         * modules/fts (Depends-on): Likewise.
24913         * modules/mkancesdirs (Depends-on): Likewise.
24914         * modules/mkdir-p (Depends-on): Likewise.
24915         * modules/open (Depends-on): Likewise.
24916         * modules/savewd (Depends-on): Likewise.
24917         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
24918         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24919
24920 2009-08-22  Bruno Haible  <bruno@clisp.org>
24921
24922         * modules/binary-io (License): Relicense under LGPL.
24923         * modules/pipe2 (License): Likewise.
24924
24925 2009-08-22  Bruno Haible  <bruno@clisp.org>
24926
24927         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
24928         return value.
24929         * lib/pipe-filter-gi.c (filter_init): Likewise.
24930         Reported by Eric Blake.
24931
24932 2009-08-22  Bruno Haible  <bruno@clisp.org>
24933
24934         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
24935         * modules/pipe (Depends-on): Add pipe2.
24936
24937 2009-08-22  Bruno Haible  <bruno@clisp.org>
24938
24939         Tests for module 'pipe2'.
24940         * modules/pipe2-tests: New file.
24941         * tests/test-pipe2.c: New file.
24942
24943         New module 'pipe2'.
24944         * lib/unistd.in.h (pipe2): New declaration.
24945         * lib/pipe2.c: New file.
24946         * m4/pipe2.m4: New file.
24947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
24948         HAVE_PIPE2.
24949         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
24950         * modules/pipe2: New file.
24951         * doc/glibc-functions/pipe2.texi: Mention the new module.
24952
24953 2009-08-22  Bruno Haible  <bruno@clisp.org>
24954
24955         Reference some new glibc functions.
24956         * doc/glibc-functions/accept4.texi: New file.
24957         * doc/glibc-functions/dup3.texi: New file.
24958         * doc/glibc-functions/mkostemp.texi: New file.
24959         * doc/glibc-functions/pipe2.texi: New file.
24960         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
24961         (Glibc sys/socket.h): Refer to accept4.
24962         (Glibc unistd.h): Refer to dup3, pipe2.
24963         Reported by Eric Blake.
24964
24965 2009-08-22  Jim Meyering  <meyering@redhat.com>
24966             Bruno Haible  <bruno@clisp.org>
24967
24968         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
24969         This makes it so packages using automake-1.11's silent-rules option
24970         can print e.g., a single "GEN    configmake.h" line, rather than
24971         the 30+ statements that perform the job.  If you want to see the
24972         actual commands, you can still run "make V=1".
24973         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
24974         so that make output is abbreviated when those variables are defined
24975         appropriately.
24976         * modules/argz: Likewise.
24977         * modules/arpa_inet: Likewise.
24978         * modules/byteswap: Likewise.
24979         * modules/configmake: Likewise.
24980         * modules/dirent: Likewise.
24981         * modules/errno: Likewise.
24982         * modules/fcntl: Likewise.
24983         * modules/float: Likewise.
24984         * modules/fnmatch: Likewise.
24985         * modules/getopt-posix: Likewise.
24986         * modules/glob: Likewise.
24987         * modules/iconv_open: Likewise.
24988         * modules/inttypes: Likewise.
24989         * modules/localcharset: Likewise.
24990         * modules/locale: Likewise.
24991         * modules/math: Likewise.
24992         * modules/netdb: Likewise.
24993         * modules/netinet_in: Likewise.
24994         * modules/poll: Likewise.
24995         * modules/posix_spawnp-tests: Likewise.
24996         * modules/sched: Likewise.
24997         * modules/search: Likewise.
24998         * modules/selinux-h: Likewise.
24999         * modules/signal: Likewise.
25000         * modules/spawn: Likewise.
25001         * modules/stdarg: Likewise.
25002         * modules/stdbool: Likewise.
25003         * modules/stddef: Likewise.
25004         * modules/stdint: Likewise.
25005         * modules/stdio: Likewise.
25006         * modules/stdlib: Likewise.
25007         * modules/string: Likewise.
25008         * modules/strings: Likewise.
25009         * modules/sys_file: Likewise.
25010         * modules/sys_ioctl: Likewise.
25011         * modules/sys_select: Likewise.
25012         * modules/sys_socket: Likewise.
25013         * modules/sys_stat: Likewise.
25014         * modules/sys_time: Likewise.
25015         * modules/sys_times: Likewise.
25016         * modules/sys_utsname: Likewise.
25017         * modules/sys_wait: Likewise.
25018         * modules/sysexits: Likewise.
25019         * modules/time: Likewise.
25020         * modules/unistd: Likewise.
25021         * modules/wchar: Likewise.
25022         * modules/wctype: Likewise.
25023
25024 2009-08-22  Jim Meyering  <meyering@redhat.com>
25025
25026         announce-gen: detect write failure
25027         * build-aux/announce-gen: Add Coda at end.
25028         Remove equivalent-but-more-verbose block at top.
25029
25030 2009-08-19  Akim Demaille  <demaille@gostai.com>
25031
25032         bootstrap: --help to stdout.
25033         * bootstrap (usage): Don't send --help to stderr.
25034         Use a here doc instead of a long string.
25035
25036 2009-08-21  Eric Blake  <ebb9@byu.net>
25037
25038         test-popen-safer: split from test-popen
25039         * tests/test-popen.c (main): Move...
25040         * tests/test-popen.h: ...into new file.
25041         * tests/test-popen-safer2.c: New file.
25042         * modules/popen-tests (Files): Add test-popen.h.
25043         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
25044         Suggested by Bruno Haible.
25045
25046         test-fcntl-safer: split from test-open
25047         * tests/test-open.c (main): Move...
25048         * tests/test-open.h: ...into new file.
25049         * tests/test-fcntl-safer.c: New file.
25050         * modules/open-tests (Files): Add test-open.h.
25051         * modules/fcntl-safer-tests: New file.
25052         Suggested by Bruno Haible.
25053
25054         test-fopen-safer: split from test-fopen
25055         * tests/test-fopen.c (main): Move...
25056         * tests/test-fopen.h: ...into new file.
25057         * tests/test-fopen-safer.c: New file.
25058         * modules/fopen-tests (Files): Add test-fopen.h.
25059         * modules/fopen-safer-tests: New file.
25060         Suggested by Bruno Haible.
25061
25062 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25063
25064         popen-safer: test O_CLOEXEC at run-time.
25065         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
25066
25067 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25068
25069         fcntl: move more flags to the header
25070         * lib/cloexec.c: Do not define FD_CLOEXEC here.
25071         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
25072         * lib/fcntl.in.h: Do both things here.
25073
25074 2009-08-21  Jim Meyering  <meyering@redhat.com>
25075
25076         consistently remove $@-t before redirecting to it
25077         * modules/argz: Remove $@-t and $@ before redirecting to the former.
25078         * modules/alloca-opt: Likewise.
25079         * modules/byteswap: Likewise.
25080         * modules/fnmatch: Likewise.
25081         * modules/getopt-posix: Likewise.
25082         * modules/glob: Likewise.
25083         * modules/poll: Likewise.
25084         * modules/posix_spawnp-tests: Likewise.
25085         * modules/sys_socket: Likewise.
25086         * modules/sysexits: Likewise.
25087
25088 2009-08-21  Eric Blake  <ebb9@byu.net>
25089
25090         popen: simplify access to original popen
25091         * lib/popen.c (rpl_popen): No need to worry about popen being a
25092         macro.
25093         Reported by Bruno Haible.
25094
25095 2009-08-20  Eric Blake  <ebb9@byu.net>
25096
25097         build: avoid some compiler warnings
25098         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
25099         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
25100         type.
25101         (new_exclude_segment, excluded_file_pattern_p)
25102         (excluded_file_name_p): Reduce scope.
25103         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
25104         old-style declaration.
25105
25106 2009-08-20  Simon Josefsson  <simon@josefsson.org>
25107
25108         * tests/test-exclude1.sh: Handle Windows EOL.
25109         * tests/test-exclude2.sh: Likewise.
25110         * tests/test-exclude3.sh: Likewise.
25111         * tests/test-exclude4.sh: Likewise.
25112         * tests/test-exclude5.sh: Likewise.
25113         * tests/test-exclude6.sh: Likewise.
25114         * tests/test-exclude7.sh: Likewise.
25115
25116 2009-08-19  Akim Demaille  <demaille@gostai.com>
25117
25118         bootstrap: find sha1sum when named gsha1sum.
25119         * bootstrap (find_tool): New.
25120         ($SHA1SUM): New.
25121         Use it.
25122
25123 2009-08-20  Jim Meyering  <meyering@redhat.com>
25124
25125         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
25126         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
25127         expression that converts "." in a file name to "\." in the resulting
25128         regexp.  Start with a dummy statement, so that prior shell variable
25129         definitions are expanded portably.  Reported by Simon Josefsson.
25130
25131 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
25132
25133         Fix polling for writeability of a screen buffer.
25134         * lib/poll.c: Distinguish input and screen buffers for the
25135         Win32 implementation.
25136         * lib/select.c: Likewise.
25137
25138 2009-08-19  Eric Blake  <ebb9@byu.net>
25139
25140         popen-safer: prevent popen from clobbering std descriptors
25141         * modules/popen-safer: New file.
25142         * lib/popen-safer.c: Likewise.
25143         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
25144         * lib/stdio--.h (popen): Provide override.
25145         * lib/stdio-safer.h (popen_safer): Provide declaration.
25146         * tests/test-popen.c (includes): Partially test this.
25147         * modules/popen-safer-tests: New file, for more tests.
25148         * tests/test-popen-safer.c: Likewise.
25149         * MODULES.html.sh (file stream based Input/Output): Mention it.
25150
25151         tests: test some of the *-safer modules
25152         * modules/fopen-safer (Depends-on): Add fopen.
25153         * modules/fcntl-safer (Depends-on): Add fcntl.
25154         * modules/stdlib-safer (Depends-on): Add stdlib.
25155         (configure.ac): Set indicator.
25156         * modules/unistd-safer (configure.ac): Likewise.
25157         * modules/tmpfile-safer (configure.ac): Likewise.
25158         (Depends-on): Add tmpfile.
25159         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
25160         active.
25161         * tests/test-fopen.c (includes): Test safer versions when they are
25162         in use.
25163         * tests/test-open.c (includes): Likewise.
25164
25165         popen: fix cygwin 1.5 bug when stdin closed
25166         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
25167         * modules/popen: New file.
25168         * modules/popen-tests: Likewise.
25169         * tests/test-popen.c: Likewise.
25170         * m4/popen.m4: Likewise.
25171         * lib/popen.c: Likewise.
25172         * lib/stdio.in.h (popen): New declaration.
25173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
25174         * modules/stdio (Makefile.am): Likewise.
25175         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
25176
25177 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
25178
25179         maint.mk: give full control over update-copyright exclusions
25180         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
25181         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
25182         (update-copyright): Don't force inclusion of top-level
25183         ChangeLog.  Don't force exclusion of all COPYING files, but make
25184         them the default exclusion instead.
25185
25186 2009-08-16  Bruno Haible  <bruno@clisp.org>
25187
25188         Fix test failures on Solaris 10.
25189         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
25190         tests when Solaris iconv() is used.
25191         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
25192         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
25193         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
25194         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
25195         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
25196
25197 2009-08-16  Bruno Haible  <bruno@clisp.org>
25198
25199         Fix test failures on Solaris 10.
25200         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
25201         'tr' program and pass it as first argument.
25202         * tests/test-pipe-filter-gi1.sh: Likewise.
25203         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
25204         program as first argument.
25205         * tests/test-pipe-filter-gi1.c (main): Likewise.
25206
25207 2009-08-16  Eric Blake  <ebb9@byu.net>
25208
25209         fpurge: fix previous commits
25210         * modules/fpurge (Makefile.am): Make replacement conditional,
25211         partially reverting 2007-04-29 change; missed in previous
25212         attempt.
25213         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
25214         is missing.
25215
25216 2009-08-16  Bruno Haible  <bruno@clisp.org>
25217
25218         Clarify fpurge's effect on the file position.
25219         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
25220         * tests/test-fpurge.c (main): Make a second pass for checking the file
25221         position.
25222
25223 2009-08-16  Bruno Haible  <bruno@clisp.org>
25224
25225         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
25226         declaration of fpurge is missing.
25227         * tests/test-fpurge.c (main): Check that the file has not more contents
25228         than expected. Close the file before removing it.
25229
25230 2009-08-15  Eric Blake  <ebb9@byu.net>
25231
25232         fpurge: don't wrap working cygwin implementation
25233         * lib/fpurge.c (fpurge): Fix comment typo.
25234         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
25235         1.7 to avoid replacement.
25236         * tests/test-fpurge.c (main): Enhance test.
25237
25238 2009-08-15  Eric Blake  <ebb9@byu.net>
25239         and Jim Meyering  <meyering@redhat.com>
25240
25241         test-update-copyright: skip if perl is insufficient
25242         * tests/test-update-copyright.sh: Failure to run maintainer tool
25243         should not cause testsuite failure on cygwin 1.5.
25244
25245 2009-08-14  Eric Blake  <ebb9@byu.net>
25246
25247         doc: mention more functions added in cygwin 1.7.0
25248         * doc/posix-headers/limits.texi (limits.h): Update for recent
25249         cygwin additions.
25250         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
25251         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
25252         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
25253         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
25254         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
25255
25256 2009-08-14  Eric Blake  <ebb9@byu.net>
25257
25258         maint.mk: simplify update-copyright rule
25259         * top/maint.mk (update-copyright-local): Delete, and document how
25260         to do it in cfg.mk instead.
25261         (update-copyright-exclude-regexp): Delete, and document how to do
25262         it in .x-update-copyright instead.
25263         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
25264         exclude ChangeLog.
25265
25266 2009-08-14  Bruno Haible  <bruno@clisp.org>
25267
25268         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
25269
25270 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25271
25272         maint.mk: support update-copyright-env
25273         * top/maint.mk (update-copyright-env): Define place-holder.
25274         (update-copyright): Expand $(update-copyright-env) before
25275         invoking update-copyright.
25276
25277 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25278
25279         update-copyright: implement forced reformatting
25280         * build-aux/update-copyright: Implement and document
25281         UPDATE_COPYRIGHT_FORCE.
25282         * tests/test-update-copyright.sh: Test it.
25283
25284 2009-08-14  Eric Blake  <ebb9@byu.net>
25285         and Bruno Haible  <bruno@clisp.org>
25286
25287         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
25288         * tests/test-locale.c: Revert previous patch related to NULL.
25289         * tests/test-stdio.c: Likewise.
25290         * tests/test-stdlib.c: Likewise.
25291         * tests/test-string.c: Likewise.
25292         * tests/test-unistd.c: Likewise.
25293         * modules/time-tests (Depends-on): Add verify.
25294         * modules/wchar-tests (Depends-on): Likewise.
25295         * tests/test-time.c: Test for NULL compliance.
25296         * tests/test-wchar.c: Likewise.
25297         * modules/locale (Depends-on): Add stddef.
25298         * modules/stdio (Depends-on): Likewise.
25299         * modules/stdlib (Depends-on): Likewise.
25300         * modules/string (Depends-on): Likewise.
25301         * modules/time (Depends-on): Likewise.
25302         * modules/unistd (Depends-on): Likewise.
25303         * modules/wchar (Depends-on): Likewise.
25304         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
25305         * lib/stdlib.in.h (includes): Likewise.
25306         * lib/string.in.h (includes): Likewise.
25307         * lib/time.in.h (includes): Likewise.
25308         * lib/unistd.in.h (includes): Likewise.
25309         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
25310         replaced.
25311         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25312         * m4/stddef_h.m4: New file.
25313         * modules/stddef: Likewise.
25314         * lib/stddef.in.h: Likewise.
25315         * modules/stddef-tests: Likewise.
25316         * tests/test-stddef.c: Likewise.
25317         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
25318         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
25319         * doc/posix-headers/locale.texi (locale.h): Likewise.
25320         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
25321         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25322         * doc/posix-headers/string.texi (string.h): Likewise.
25323         * doc/posix-headers/time.texi (time.h): Likewise.
25324         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
25325         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
25326
25327 2009-08-14  Eric Blake  <ebb9@byu.net>
25328
25329         doc: improve git diff of texinfo files
25330         * .gitattributes: Add rule for *.texi files, with hint on how to
25331         use it.
25332         Copied from m4, and based on a report by Bruno Haible.
25333
25334 2009-08-14  Bruno Haible  <bruno@clisp.org>
25335
25336         Disable multithread support by default on Cygwin 1.5.x for real.
25337         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
25338
25339 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25340
25341         update-copyright: much ado about intervals
25342         * build-aux/update-copyright: Implement and document
25343         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
25344         of copyright year intervals.
25345         Also, document UPDATE_COPYRIGHT_YEAR.
25346         * tests/test-update-copyright.sh: Test it.
25347
25348         update-copyright: convert 2-digit to 4-digit years
25349         * build-aux/update-copyright: Implement and document.
25350         * tests/test-update-copyright.sh: Update.
25351
25352 2009-08-14  Jim Meyering  <meyering@redhat.com>
25353
25354         test-exclude: avoid coreutils "make check" failure
25355         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
25356         just as in test-argmatch.c.
25357
25358 2009-08-13  Eric Blake  <ebb9@byu.net>
25359
25360         test-dup2: fix bad assumption
25361         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
25362         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
25363
25364         test-version-etc: fix CRLF portability issue
25365         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
25366         recognize \r.
25367         * tests/test-argp-version-etc-1.sh: Likewise.
25368
25369         getopt: update client modules
25370         * modules/argp (Depends-on): Use getopt-gnu.
25371         * modules/git-merge-changelog (Depends-on): Likewise.
25372         * modules/long-options (Depends-on): Likewise.
25373         * modules/xstrtol (Depends-on): Likewise.
25374
25375 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25376
25377         * tests/test-version-etc.sh: Don't fail on different
25378         project/version.  Don't fail on CRLF differences.  Rewrite to use
25379         multiple -e instead of multiple sed forks, suggested by Eric Blake
25380         <ebb9@byu.net>.
25381         * tests/test-argp-version-etc-1.sh: Likewise.
25382
25383 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25384
25385         * tests/test-version-etc.sh: Don't fail on different
25386         project/version.
25387
25388 2009-08-12  Bruno Haible  <bruno@clisp.org>
25389
25390         Tests for modules 'getopt-posix', 'getopt-gnu'.
25391         * modules/getopt-posix-tests: New file.
25392         * tests/test-getopt.c: New file.
25393         * tests/test-getopt.h: New file.
25394         * tests/test-getopt_long.h: New file.
25395
25396         New modules 'getopt-posix', 'getopt-gnu'.
25397         * modules/getopt-gnu: New file, renamed from modules/getopt.
25398         * modules/getopt-posix: New file.
25399         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
25400         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
25401         (gl_GETOPT): Remove macro.
25402         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
25403         Disable the test against BSD systems that declare optreset. Test
25404         against mingw bug. Test against lack of support of optional arguments
25405         on many platforms.
25406         * doc/glibc-headers/getopt.texi: Update module name and list of
25407         relevant platforms.
25408         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
25409         'getopt-gnu' and more portability problems.
25410         * NEWS: Mention the changes.
25411
25412 2009-08-12  Bruno Haible  <bruno@clisp.org>
25413
25414         Ensure that optarg etc. get declared by <unistd.h>.
25415         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
25416         AC_USE_SYSTEM_EXTENSIONS.
25417         * modules/getopt (Depends-on): Add 'extensions'.
25418
25419 2009-08-12  Bruno Haible  <bruno@clisp.org>
25420
25421         Avoid test link errors.
25422         * modules/pipe-filter-ii-tests (Makefile.am): Define
25423         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
25424         * modules/pipe-filter-gi-tests (Makefile.am): Define
25425         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
25426         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25427
25428 2009-08-12  Bruno Haible  <bruno@clisp.org>
25429
25430         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
25431         gl_GETOPT_SUBSTITUTE before.
25432         (gl_GETOPT): Use it.
25433         * m4/argp.m4 (gl_ARGP): Update.
25434         Reported by Sergey Poznyakoff.
25435
25436         * m4/getopt.m4: Reorder macros.
25437         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
25438         (gl_GETOPT_SUBSTITUTE): Remove macro.
25439
25440 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25441
25442         Minor improvement in gitlog-to-changelog
25443
25444         * build-aux/gitlog-to-changelog: New option `--format' makes
25445         output format string configurable.
25446
25447 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25448
25449         Optimize exclude: use hash tables for non-wildcard patterns.
25450
25451         * lib/exclude.c: Include hash.h and mbuiter.h
25452         (struct exclude_pattern, exclude_segment): New data types.
25453         (struct exclude): Rewrite.
25454         (fnmatch_pattern_has_wildcards): New function.
25455         (new_exclude_segment, free_exclude_segment): New functions.
25456         (excluded_file_pattern_p, excluded_file_name_p): New functions.
25457         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
25458         * lib/exclude.h (is_fnmatch_pattern): New prototype.
25459         * modules/exclude: Depend on hash and mbuiter.
25460
25461         * modules/exclude-tests: New file.
25462         * tests/test-exclude.c: New file.
25463         * tests/test-exclude1.sh: New file.
25464         * tests/test-exclude2.sh: New file.
25465         * tests/test-exclude3.sh: New file.
25466         * tests/test-exclude4.sh: New file.
25467         * tests/test-exclude5.sh: New file.
25468         * tests/test-exclude6.sh: New file.
25469         * tests/test-exclude7.sh: New file.
25470
25471 2009-08-12  Bruno Haible  <bruno@clisp.org>
25472
25473         Ensure that getopt() gets declared by <unistd.h>.
25474         * lib/unistd.in.h: Conditionally include getopt.h.
25475         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
25476         Set GNULIB_UNISTD_H_GETOPT.
25477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25478         GNULIB_UNISTD_H_GETOPT.
25479         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
25480
25481 2009-08-12  Bruno Haible  <bruno@clisp.org>
25482
25483         Clarify logic.
25484         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
25485         gl_replace_getopt instead of GETOPT_H.
25486
25487 2009-08-12  Bruno Haible  <bruno@clisp.org>
25488
25489         * m4/getopt.m4: Add comments.
25490
25491 2009-08-12  Bruno Haible  <bruno@clisp.org>
25492
25493         Disable multithread support by default on Cygwin 1.5.x.
25494         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
25495         set gl_use_threads=no if not specified otherwise.
25496
25497 2009-08-11  Bruno Haible  <bruno@clisp.org>
25498
25499         Avoid compilation error on NetBSD 5.0.
25500         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
25501         * tests/test-stdio.c: Likewise.
25502         * tests/test-stdlib.c: Likewise.
25503         * tests/test-string.c: Likewise.
25504         * tests/test-unistd.c: Likewise.
25505         Reported by Greg Troxel <gdt@ir.bbn.com>
25506         at <https://savannah.gnu.org/support/?106973>.
25507
25508 2009-08-11  Bruno Haible  <bruno@clisp.org>
25509
25510         * modules/dup2-tests (Depends-on): Remove close.
25511
25512         Undo 2009-07-19 commit.
25513         * modules/acl-tests (Depends-on): Remove close.
25514         * modules/binary-io-tests (Depends-on): Likewise.
25515         * modules/closein-tests (Depends-on): Likewise.
25516         * modules/flock-tests (Depends-on): Likewise.
25517         * modules/fsync-tests (Depends-on): Likewise.
25518         * modules/lseek-tests (Depends-on): Likewise.
25519         * modules/pipe-tests (Depends-on): Likewise.
25520         * modules/posix_spawn-tests (Depends-on): Likewise.
25521         * modules/posix_spawnp-tests (Depends-on): Likewise.
25522         * modules/stat-time-tests (Depends-on): Likewise.
25523         * modules/yesno-tests (Depends-on): Likewise.
25524
25525 2009-08-10  Bruno Haible  <bruno@clisp.org>
25526
25527         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
25528
25529 2009-08-10  Bruno Haible  <bruno@clisp.org>
25530
25531         Fix a gcc warning.
25532         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
25533
25534 2009-08-10  Bruno Haible  <bruno@clisp.org>
25535
25536         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
25537         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
25538         not only the first time.
25539         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
25540         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
25541         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
25542         is 1, not only the the first time.
25543
25544 2009-08-10  Bruno Haible  <bruno@clisp.org>
25545
25546         Make it possible to use module 'gethostname' without module 'close'.
25547         * lib/unistd.in.h (close): Evoke a link error only if
25548         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
25549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25550         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25551         * modules/unistd (Makefile.am): Substitute
25552         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25553         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
25554         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
25555         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25556         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25557         * modules/sys_ioctl (Makefile.am): Substitute
25558         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25559         * modules/socket (configure.ac): On native Windows, set
25560         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
25561         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25562         Reported by Sam Steingold <sds@gnu.org>.
25563
25564 2009-08-10  Bruno Haible  <bruno@clisp.org>
25565
25566         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
25567         * modules/ioctl (configure.ac): Likewise.
25568
25569 2009-08-10  Bruno Haible  <bruno@clisp.org>
25570
25571         Avoid collision between gnulib wrapper and libintl wrapper.
25572         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
25573         already defined in intl/printf.c.
25574         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
25575         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
25576
25577 2009-08-09  Bruno Haible  <bruno@clisp.org>
25578
25579         Make <sys/select.h> really self-contained, also on Solaris 10.
25580         * lib/sys_select.in.h: Include <string.h>.
25581         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
25582         Solaris 10 problem.
25583         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
25584         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
25585         Reported by Jim Meyering.
25586
25587 2009-08-09  Bruno Haible  <bruno@clisp.org>
25588
25589         Avoid warnings from 'aclocal' that are due to a use of macro name
25590         AM_XGETTEXT_OPTION that is not defined in automake.
25591         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
25592         automake.
25593         * modules/error (configure.ac): Likewise.
25594         * modules/propername (configure.ac): Likewise.
25595         * modules/vasprintf (configure.ac): Likewise.
25596         * modules/verror (configure.ac): Likewise.
25597         * modules/xprintf (configure.ac): Likewise.
25598         * modules/xvasprintf (configure.ac): Likewise.
25599
25600 2009-08-08  Bruno Haible  <bruno@clisp.org>
25601
25602         Avoid compilation error in C++ mode.
25603         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
25604         Reported by Sam Steingold <sds@gnu.org>.
25605
25606 2009-08-08  Bruno Haible  <bruno@clisp.org>
25607
25608         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
25609         for the various Unix platforms.
25610         * doc/posix-headers/limits.texi: Update platforms list regarding
25611         HOST_NAME_MAX.
25612         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25613
25614 2009-08-07  Jim Meyering  <meyering@redhat.com>
25615
25616         selinux-at: fix typo in a comment
25617         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
25618         Spotted by Paolo Bonzini.
25619
25620         selinux-at: remove redundant m4 code, add documentation
25621         * modules/selinux-at (configure.ac): Remove redundant code.
25622         LIB_SELINUX is already set via the dependent module, selinux-h.
25623         (Include): Add quotes around selinux-at.h.
25624         * lib/selinux-at.h: Add documentation.
25625         Reported by Bruno Haible in
25626         http://marc.info/?l=gnulib-bug&m=124958988300749
25627
25628 2009-08-07  Bruno Haible  <bruno@clisp.org>
25629
25630         Avoid link error on MacOS X 10.3 and 10.4.
25631         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
25632         on non-ELF systems.
25633         * lib/argp-pv.c (argp_program_version): Likewise.
25634         Reported by Simon Josefsson.
25635
25636 2009-08-07  Simon Josefsson  <simon@josefsson.org>
25637
25638         * tests/test-version-etc.sh: Use $EXEEXT.
25639
25640 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
25641
25642         update-copyright: update documentation to point to maint.mk
25643         * build-aux/update-copyright: Here.
25644
25645 2009-08-06  Jim Meyering  <meyering@redhat.com>
25646
25647         maint.mk: support update-copyright-local
25648         * top/maint.mk (update-copyright-local): Define place-holder.
25649         (update-copyright): Depend on $(update-copyright-local).
25650
25651 2009-08-06  Jim Meyering  <meyering@redhat.com>
25652
25653         selinux-at: new module
25654         Initially written for coreutils, this module will soon be
25655         used by findutils, too.
25656         * MODULES.html.sh [Misc]: Add selinux-at.
25657         * lib/selinux-at.h: New file, from coreutils.
25658         * lib/selinux-at.c: Likewise.
25659         * modules/selinux-at: Likewise.
25660         (License): Change from LGPL to GPL, since it depends
25661         on the GPL'd openat module.
25662
25663         doc: update README
25664         * README: Remove references to cogito.
25665         Remove cvs-repo-updating instructions from 2007.
25666         Don't imply that CVS is better if you have limited disk space.
25667
25668 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25669
25670         update-copyright: support C-style comments
25671         * build-aux/update-copyright: Implement and document.
25672         * tests/test-update-copyright.sh: Test.
25673
25674 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25675
25676         update-copyright: support omitted "(C)"
25677         * build-aux/update-copyright: Implement and document.  Also,
25678         allow variable whitespace before "(C)".
25679         * tests/test-update-copyright.sh: Test.
25680
25681 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25682
25683         update-copyright: don't trip on non-FSF copyright statements
25684         * build-aux/update-copyright: Fix so that the first correctly
25685         formatted FSF copyright statement is recognized no matter what
25686         appears before it.  Update documentation.
25687         * tests/test-update-copyright.sh: Test that.
25688
25689 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25690
25691         update-copyright: clean up code a little
25692         * build-aux/update-copyright: Append "_re" to the name of any
25693         variable holding a regular expression.
25694         Replace "old" and "new" with "stmt" in variable names.
25695         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
25696         handled correctly.
25697         Format code more consistently.
25698
25699 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25700
25701         update-copyright-tests: improve portability
25702         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
25703         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
25704
25705 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25706
25707         update-copyright: support @copyright{} and &copy;
25708         * build-aux/update-copyright: Implement and document.
25709         * tests/test-update-copyright.sh: Test.
25710
25711 2009-08-04  Jim Meyering  <meyering@redhat.com>
25712
25713         update-copyright-tests: correctly test EOL=\r\n handling
25714         * tests/test-update-copyright.sh: Put \r at the end of some lines
25715         for the dos-eol tests.  Based on a patch by Joel E. Denny.
25716
25717         maint.mk: make update-copyright exclusion list more configurable
25718         * top/maint.mk (update-copyright): Default to excluding COPYING,
25719         but allow an override, in case someone does want to update that file.
25720
25721         maint.mk: don't update copyright date in COPYING
25722         * top/maint.mk (update-copyright): Exclude COPYING.
25723
25724         maint.mk: add a copyright-updating rule
25725         * top/maint.mk (update-copyright): New rule.
25726         Derived from coreutils/Makefile.am.
25727
25728         update-copyright: rename some variables
25729         * build-aux/update-copyright: Rename a few variables for clarity.
25730         Tweak syntax.  List Joel E. Denny as coauthor.
25731
25732 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25733
25734         update-copyright: fix bug for 2-digit last year and add tests
25735         * build-aux/update-copyright: Fix bug.
25736         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
25737         specified.
25738         * modules/update-copyright-tests: New
25739         * tests/test-update-copyright.sh: New.
25740
25741 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25742
25743         update-copyright: handle leading tabs in line prefix
25744         * build-aux/update-copyright: Count leading tabs as 8 spaces
25745         when computing margin.  This helps with the formatting of
25746         ChangeLogs, for example.
25747         Fix documentation a little.
25748
25749 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25750
25751         update-copyright: support EOL=\r\n
25752         * build-aux/update-copyright: Implement that.
25753
25754 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25755
25756         update-copyright: automatically format copyright statements
25757         * build-aux/update-copyright: Implement that.
25758         Also, be a little more predictable and safer by always failing
25759         when the full copyright format is not perfectly recognized as an
25760         unbroken whole.  Discussed at
25761         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
25762         Rewrite documentation.
25763
25764 2009-08-03  Bruno Haible  <bruno@clisp.org>
25765
25766         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
25767
25768 2009-08-02  Bruno Haible  <bruno@clisp.org>
25769
25770         Tests for module 'uname'.
25771         * modules/uname-tests: New file.
25772         * tests/test-uname.c: New file.
25773
25774         New module 'uname'.
25775         * lib/uname.c: New file.
25776         * m4/uname.m4: New file.
25777         * modules/uname: New file.
25778         * doc/posix-functions/uname.texi: Mention the new module.
25779
25780 2009-08-02  Bruno Haible  <bruno@clisp.org>
25781
25782         Tests for module 'sys_utsname'.
25783         * modules/sys_utsname-tests: New file.
25784         * tests/test-sys_utsname.c: New file.
25785
25786         New module 'sys_utsname'.
25787         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
25788         * m4/sys_utsname_h.m4: New file.
25789         * modules/sys_utsname: New file.
25790         * doc/posix-headers/sys_utsname.texi: Mention the new module.
25791
25792 2009-08-02  Bruno Haible  <bruno@clisp.org>
25793
25794         Implicitly initialize the sockets library.
25795         * lib/gethostname.c: Include sockets.h.
25796         (rpl_gethostname): Invoke gl_sockets_startup.
25797         * lib/socket.c: Include sockets.h.
25798         (rpl_socket): Invoke gl_sockets_startup.
25799         * modules/gethostname (Depends-on): Add sockets.
25800         * modules/socket (Depends-on): Likewise.
25801         * tests/test-poll.c: Don't include sockets.h.
25802         (main): Don't invoke gl_sockets_startup.
25803         * tests/test-select.c: Don't include sockets.h.
25804         (main): Don't invoke gl_sockets_startup.
25805
25806 2009-08-02  Bruno Haible  <bruno@clisp.org>
25807
25808         Allow multiple calls to gl_sockets_startup.
25809         * lib/sockets.c (initialized_sockets_version): New variable.
25810         (gl_sockets_startup): Do nothing if already called for this or a higher
25811         version.
25812         (gl_sockets_cleanup): Reset initialized_sockets_version.
25813
25814 2009-08-03  Simon Josefsson  <simon@josefsson.org>
25815
25816         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
25817         different project/version.
25818
25819 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
25820             Bruno Haible  <bruno@clisp.org>
25821
25822         Tests for module 'pipe-filter-gi'.
25823         * modules/pipe-filter-gi-tests: New file.
25824         * tests/test-pipe-filter-gi1.sh: New file.
25825         * tests/test-pipe-filter-gi1.c: New file.
25826         * tests/test-pipe-filter-gi2.sh: New file.
25827         * tests/test-pipe-filter-gi2-main.c: New file.
25828         * tests/test-pipe-filter-gi2-child.c: New file.
25829
25830         New module 'pipe-filter-gi'.
25831         * lib/pipe-filter-gi.c: New file.
25832         * modules/pipe-filter-gi: New file.
25833
25834 2009-08-02  Bruno Haible  <bruno@clisp.org>
25835             Paolo Bonzini  <bonzini@gnu.org>
25836
25837         Tests for module 'pipe-filter-ii'.
25838         * modules/pipe-filter-ii-tests: New file.
25839         * tests/test-pipe-filter-ii1.sh: New file.
25840         * tests/test-pipe-filter-ii1.c: New file.
25841         * tests/test-pipe-filter-ii2.sh: New file.
25842         * tests/test-pipe-filter-ii2-main.c: New file.
25843         * tests/test-pipe-filter-ii2-child.c: New file.
25844
25845         New module 'pipe-filter-ii'.
25846         * lib/pipe-filter.h: New file.
25847         * lib/pipe-filter-ii.c: New file.
25848         * lib/pipe-filter-aux.h: New file.
25849         * modules/pipe-filter-ii: New file.
25850
25851 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25852
25853         * lib/gc-libgcrypt.c: Change copyright to FSF.
25854         * lib/gc-gnulib.c: Likewise.
25855
25856 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
25857
25858         * lib/gethostname.c: Include limits.h.
25859
25860 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25861             Bruno Haible  <bruno@clisp.org>
25862
25863         Ensure HOST_NAME_MAX as part of the gethostname module.
25864         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
25865         define also HOST_NAME_MAX.
25866         * tests/test-gethostname.c: Include <limits.h>.
25867         (main): Check also HOST_NAME_MAX.
25868         * doc/posix-headers/limits.texi: Document the mingw problem.
25869
25870 2009-08-02  Bruno Haible  <bruno@clisp.org>
25871
25872         * lib/gethostname.c (gethostname): Fix handling of large len argument.
25873         Add comments.
25874
25875 2009-03-31  Simon Josefsson  <simon@josefsson.org>
25876
25877         * lib/gethostname.c: Add Windows wrapper.
25878         * m4/gethostname.m4: Look for gethostname in -lws2_32.
25879         * modules/gethostname: Depend on sys_socket & errno, for also
25880         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
25881         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
25882
25883 2009-07-31  Jim Meyering  <meyering@redhat.com>
25884
25885         getloadavg: fix symbol name in comment
25886         * lib/getloadavg.c: Correct a typo I introduced when adding
25887         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
25888         Matt Kraai spotted the problem.
25889
25890 2009-07-29  Matt Kraai  <mkraai@beckman.com>
25891
25892         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
25893         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
25894         code also if ! defined N_NAME_POINTER.
25895         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
25896         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
25897         but the n_name member is a 12-byte array.
25898
25899 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
25900
25901         update-copyright: generalize comment handling
25902         * build-aux/update-copyright: Handle copyright statements
25903         within more comment styles.
25904         Document usage.
25905         Report any file with an external copyright holder or parse failure.
25906
25907 2009-07-29  Jim Meyering  <meyering@redhat.com>
25908
25909         mktime: correct setting of REPLACE_MKTIME
25910         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
25911
25912         update-copyright: new module
25913         * modules/update-copyright: New file.
25914         * build-aux/update-copyright: New file.
25915         * MODULES.html.sh (maint+release support): Add update-copyright.
25916
25917 2009-07-27  Bruno Haible  <bruno@clisp.org>
25918
25919         Fix compilation error when <ctime> is used and mktime is replaced.
25920         * lib/time.in.h (mktime): New declaration.
25921         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
25922         REPLACE_MKTIME instead of defining mktime in config.h.
25923         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
25924         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
25925         Reported by Ross McFarland <rwmcfa1@neces.com>.
25926
25927 2009-07-27  Bruno Haible  <bruno@clisp.org>
25928
25929         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
25930         Reported by Matt Kraai <mkraai@beckman.com>.
25931
25932 2009-07-25  Jim Meyering  <meyering@redhat.com>
25933
25934         maint.mk: avoid warnings about missing files
25935         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
25936         diagnostic when .prev-version does not exist.
25937         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
25938         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
25939         nonexistent cfg.mk.
25940         Suggestions from Simon Josefsson.
25941
25942 2009-07-25  Bruno Haible  <bruno@clisp.org>
25943
25944         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
25945         defined as macros. Needed on QNX 6.4.1.
25946         Reported by Matt Kraai <mkraai@beckman.com>.
25947
25948 2009-07-23  Jim Meyering  <meyering@redhat.com>
25949
25950         maint.mk: invoke "make dist" with a working value of XZ_OPT
25951         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
25952
25953 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
25954
25955         Make fseeko.c compile on QNX.
25956         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
25957
25958 2009-07-22  Peter Simons  <simons@cryp.to>
25959
25960         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
25961         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
25962         * lib/md4.h: Likewise.
25963         * lib/md5.h: Likewise.
25964         * lib/sha1.h: Likewise.
25965         * lib/sha256.h: Likewise.
25966         * lib/sha512.h: Likewise.
25967
25968         tests-sha1: don't assign literal string to 'char *' variable
25969         * tests/test-sha1.c (main): Declare locals with "const" to match
25970         attributes of the right hand side.
25971
25972 2009-07-21  Eric Blake  <ebb9@byu.net>
25973
25974         dup2: fix more mingw problems
25975         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
25976         fd to itself.
25977         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25978         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
25979         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
25980         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
25981         care of mingw bugs.
25982
25983 2009-07-21  Jim Meyering  <meyering@redhat.com>
25984
25985         vc-list-files: avoid failure when /bin/sh is dash
25986         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
25987         On some Debian based systems, /bin/sh is a symlink to dash, and running
25988         this command would omit the "/" following each 'tests' prefix:
25989           dash -x build-aux/vc-list-files -C . tests
25990         That is because bash and dash work differently:
25991           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
25992           bash ok
25993           dash odd
25994
25995 2009-07-21  Eric Blake  <ebb9@byu.net>
25996
25997         dup2-tests: test previous patch
25998         * modules/dup2-tests: New file.
25999         * tests/test-dup2.c: Likewise.
26000         * tests/test-open.c (main): Avoid unspecified behavior.
26001         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
26002         test.
26003
26004         dup2: work around mingw and cygwin 1.5 bug
26005         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
26006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26007         * modules/unistd (Makefile.am): Substitute it.
26008         * lib/unistd.in.h (dup2): Declare the replacement.
26009         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
26010         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
26011         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
26012         * modules/execute (Depends-on): Add dup2.
26013         * modules/fseterr (Depends-on): Likewise.
26014         * modules/pipe (Depends-on): Likewise.
26015         * modules/posix_spawn-internal (Depends-on): Likewise.
26016
26017 2009-07-21  Bruno Haible  <bruno@clisp.org>
26018
26019         * modules/.gitattributes: New file.
26020
26021 2009-07-20  Bruno Haible  <bruno@clisp.org>
26022
26023         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
26024         (main): Use it.
26025
26026 2009-07-20  Eric Blake  <ebb9@byu.net>
26027
26028         test-pipe: make a bit more robust.
26029         * tests/test-pipe.c (myerr): Allow error messages regardless of
26030         what we do to stderr.
26031         (test_pipe): Rearrange to avoid deadlock.
26032         (child_main): Try a larger read, to ensure we avoided deadlock.
26033         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
26034         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
26035         if misused.
26036
26037 2009-07-19  Jim Meyering  <meyering@redhat.com>
26038
26039         fts: avoid false-positive cycle-detection
26040         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
26041         for each new command line argument.
26042
26043 2009-07-19  Bruno Haible  <bruno@clisp.org>
26044
26045         Fix build error on mingw with the modules sys_select and unistd.
26046         * modules/acl-tests (Depends-on): Add close.
26047         * modules/binary-io-tests (Depends-on): Likewise.
26048         * modules/closein-tests (Depends-on): Likewise.
26049         * modules/flock-tests (Depends-on): Likewise.
26050         * modules/fsync-tests (Depends-on): Likewise.
26051         * modules/lseek-tests (Depends-on): Likewise.
26052         * modules/pipe-tests (Depends-on): Likewise.
26053         * modules/posix_spawn-tests (Depends-on): Likewise.
26054         * modules/posix_spawnp-tests (Depends-on): Likewise.
26055         * modules/stat-time-tests (Depends-on): Likewise.
26056         * modules/yesno-tests (Depends-on): Likewise.
26057
26058 2009-07-19  Bruno Haible  <bruno@clisp.org>
26059
26060         Unify conditionals.
26061         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
26062         macros, not at the compiler macros.
26063         * lib/pipe.c: Likewise.
26064         * lib/execute.c: Likewise.
26065         * lib/spawni.c: Likewise.
26066
26067 2009-07-19  Bruno Haible  <bruno@clisp.org>
26068
26069         Fix handling of closed stdin/stdout/stderr on mingw.
26070         * lib/w32spawn.h: Include unistd.h.
26071         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
26072         file descriptor with O_NOINHERIT flag.
26073         (fd_safer_noinherit): New function, based on fd-safer.c.
26074         (dup_safer_noinherit): New function, based on dup-safer.c.
26075         (undup_safer_noinherit): New function.
26076         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
26077         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
26078         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
26079         instead of fd_safer.
26080         * tests/test-pipe.c: Include <windows.h>.
26081         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
26082
26083         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
26084         from main.
26085         (test_pipe): Pass an extra argument for disambiguation.
26086         (main): Invoke parent_main or child_main.
26087
26088         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
26089         consistently.
26090
26091 2009-07-18  Eric Blake  <ebb9@byu.net>
26092
26093         test-pipe: fix mingw build
26094         * tests/test-pipe.c (main): Avoid fcntl on mingw.
26095
26096 2009-07-18  Bruno Haible  <bruno@clisp.org>
26097
26098         * modules/pipe-tests (Makefile.am): Fix typo.
26099
26100 2009-07-18  Eric Blake  <ebb9@byu.net>
26101
26102         error: fix mingw build
26103         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
26104         Reported by Bruno Haible.
26105
26106         error: avoid undefined use of stdout
26107         * lib/error.c (error, error_at_line): Check that fd 1 is open
26108         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
26109         is handling faults and the close_stdout module wants to report the
26110         detection of closed stdout as an error.
26111
26112 2009-07-17  Eric Blake  <ebb9@byu.net>
26113
26114         pipe: be robust in face of closed fds
26115         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
26116         should cause child to misbehave.
26117         * modules/pipe-tests: New module.
26118         * tests/test-pipe.c: New file.
26119         * tests/test-pipe.sh: New file.
26120         Reported by Akim Demaille.
26121
26122 2009-07-14  Bruno Haible  <bruno@clisp.org>
26123
26124         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
26125         Reported by anonymous kc.
26126
26127 2009-07-07  Jim Meyering  <meyering@redhat.com>
26128
26129         maint.mk: don't look for translatable strings in *.m4 or *.mk
26130         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
26131         when searching for translatable strings.
26132
26133 2009-07-05  Jim Meyering  <meyering@redhat.com>
26134
26135         remove superfluous parentheses in STREQ definition
26136         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
26137         * lib/getugroups.c (STREQ): Likewise.
26138         * lib/fnmatch.c (STREQ): Likewise.
26139         Spotted by Bruno Haible.
26140
26141 2009-07-04  Jim Meyering  <meyering@redhat.com>
26142
26143         argv-iter: new module
26144         * MODULES.html.sh: Add argv-iter.
26145         * lib/argv-iter.c, lib/argv-iter.h: New files.
26146         * modules/argv-iter: New file.
26147         * modules/argv-iter-tests: New file.
26148         * tests/test-argv-iter.c: Test it.
26149
26150 2009-07-04  Bruno Haible  <bruno@clisp.org>
26151
26152         Fix assertion.
26153         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
26154         contains more exact copies of a given entry than file2, leave the extra
26155         copies unpaired rather than aborting.
26156         Reported by Eric Blake.
26157
26158 2009-07-02  Bruno Haible  <bruno@clisp.org>
26159
26160         Speedup git-merge-changelog for git cherry-pick.
26161         * lib/git-merge-changelog.c (struct entries_mapping): New type.
26162         (entries_mapping_get): New function, extracted from compute_mapping.
26163         (entries_mapping_reverse_get): New function.
26164         (compute_mapping): Add a 'full' argument. Return the result in a
26165         'struct entries_mapping'.
26166         (main): Update. Access the mappings through entries_mapping_get.
26167         Reported by Eric Blake.
26168
26169 2009-07-02  Bruno Haible  <bruno@clisp.org>
26170
26171         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
26172         best_i.
26173
26174 2009-07-02  Bruno Haible  <bruno@clisp.org>
26175
26176         Speed up approximate search for matching ChangeLog entries.
26177         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
26178         argument. Call fstrcmp_bounded instead of fstrcmp.
26179         (compute_mapping, try_split_merged_entry, main): Update callers.
26180
26181 2009-07-02  Bruno Haible  <bruno@clisp.org>
26182
26183         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
26184
26185 2009-06-30  Bruno Haible  <bruno@clisp.org>
26186
26187         Reduce the number of uc_is_cased calls.
26188         * lib/unicase.h (casing_suffix_context_t): Add
26189         'first_char_except_ignorable' field.
26190         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
26191         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
26192         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
26193         Update initializer.
26194         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
26195         case-ignorable characters.
26196         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
26197         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
26198         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
26199         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
26200         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
26201
26202 2009-06-30  Bruno Haible  <bruno@clisp.org>
26203
26204         Tests for module 'unicase/ignorable'.
26205         * modules/unicase/ignorable-tests: New file.
26206         * tests/unicase/test-ignorable.c: New file, generated by
26207         gen-uni-tables.
26208
26209         Tests for module 'unicase/cased'.
26210         * modules/unicase/cased-tests: New file.
26211         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
26212         * tests/unicase/test-predicate-part1.h: New file, derived from
26213         tests/unictype/test-predicate-part1.h.
26214         * tests/unicase/test-predicate-part2.h: New file, same as
26215         tests/unictype/test-predicate-part2.h.
26216
26217         Fix evaluation of "Before C" condition of FINAL_SIGMA.
26218         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
26219         (output_casing_properties): New function.
26220         (main): Call it.
26221         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
26222         * lib/unicase/cased.c: Include unictype/bitmap.h.
26223         (uc_is_cased): Define through a bitmap lookup.
26224         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
26225         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
26226         (uc_is_case_ignorable): Define through a bitmap lookup.
26227         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
26228         lib/unictype/bitmap.h.
26229         (Depends-on): Add inline. Clean up.
26230         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
26231         lib/unictype/bitmap.h.
26232         (Depends-on): Add inline. Clean up.
26233         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
26234         recognition.
26235         * tests/unicase/test-u16-tolower.c (main): Likewise.
26236         * tests/unicase/test-u32-tolower.c (main): Likewise.
26237
26238 2009-06-30  Bruno Haible  <bruno@clisp.org>
26239
26240         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
26241         * lib/unicase/u16-casemap.c: Likewise.
26242         * lib/unicase/u32-casemap.c: Likewise.
26243
26244 2009-06-29  Bruno Haible  <bruno@clisp.org>
26245
26246         Define u32_casefold as a wrapper around u32_ct_casefold.
26247         * lib/unicase/u32-casefold.c: Update.
26248         * modules/unicase/u32-casefold (Depends-on): Add
26249         unicase/u32-ct-casefold, unicase/empty-prefix-context,
26250         unicase/empty-suffix-context. Clean up.
26251
26252         Define u16_casefold as a wrapper around u16_ct_casefold.
26253         * lib/unicase/u16-casefold.c: Update.
26254         * modules/unicase/u16-casefold (Depends-on): Add
26255         unicase/u16-ct-casefold, unicase/empty-prefix-context,
26256         unicase/empty-suffix-context. Clean up.
26257
26258         Define u8_casefold as a wrapper around u8_ct_casefold.
26259         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
26260         * lib/unicase/u8-casefold.c: Update.
26261         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
26262         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26263
26264         Define u32_totitle as a wrapper around u32_ct_totitle.
26265         * lib/unicase/u32-totitle.c: Update.
26266         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
26267         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26268
26269         Define u16_totitle as a wrapper around u16_ct_totitle.
26270         * lib/unicase/u16-totitle.c: Update.
26271         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
26272         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26273
26274         Define u8_totitle as a wrapper around u8_ct_totitle.
26275         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
26276         functions.
26277         (FUNC): Delegate to U_CT_TOTITLE.
26278         * lib/unicase/u8-totitle.c: Update.
26279         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
26280         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26281
26282         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
26283         invocation.
26284         * modules/unicase/u32-tolower (Depends-on): Add
26285         unicase/empty-prefix-context, unicase/empty-suffix-context.
26286
26287         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
26288         invocation.
26289         * modules/unicase/u16-tolower (Depends-on): Add
26290         unicase/empty-prefix-context, unicase/empty-suffix-context.
26291
26292         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
26293         * modules/unicase/u8-tolower (Depends-on): Add
26294         unicase/empty-prefix-context, unicase/empty-suffix-context.
26295
26296         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
26297         invocation.
26298         * modules/unicase/u32-toupper (Depends-on): Add
26299         unicase/empty-prefix-context, unicase/empty-suffix-context.
26300
26301         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
26302         invocation.
26303         * modules/unicase/u16-toupper (Depends-on): Add
26304         unicase/empty-prefix-context, unicase/empty-suffix-context.
26305
26306         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
26307         * modules/unicase/u8-toupper (Depends-on): Add
26308         unicase/empty-prefix-context, unicase/empty-suffix-context.
26309
26310         New module 'unicase/u32-ct-casefold'.
26311         * lib/unicase/u32-ct-casefold.c: New file.
26312         * modules/unicase/u32-ct-casefold: New file.
26313
26314         New module 'unicase/u16-ct-casefold'.
26315         * lib/unicase/u16-ct-casefold.c: New file.
26316         * modules/unicase/u16-ct-casefold: New file.
26317
26318         New module 'unicase/u8-ct-casefold'.
26319         * lib/unicase/u8-ct-casefold.c: New file.
26320         * lib/unicase/u-ct-casefold.h: New file, derived from
26321         lib/unicase/u-casefold.h.
26322         * modules/unicase/u8-ct-casefold: New file.
26323
26324         New module 'unicase/u32-ct-totitle'.
26325         * lib/unicase/u32-ct-totitle.c: New file.
26326         * modules/unicase/u32-ct-totitle: New file.
26327
26328         New module 'unicase/u16-ct-totitle'.
26329         * lib/unicase/u16-ct-totitle.c: New file.
26330         * modules/unicase/u16-ct-totitle: New file.
26331
26332         New module 'unicase/u8-ct-totitle'.
26333         * lib/unicase/u8-ct-totitle.c: New file.
26334         * lib/unicase/u-ct-totitle.h: New file, derived from
26335         lib/unicase/u-totitle.h.
26336         * modules/unicase/u8-ct-totitle: New file.
26337
26338         New module 'unicase/u32-ct-tolower'.
26339         * lib/unicase/u32-ct-tolower.c: New file.
26340         * modules/unicase/u32-ct-tolower: New file.
26341
26342         New module 'unicase/u16-ct-tolower'.
26343         * lib/unicase/u16-ct-tolower.c: New file.
26344         * modules/unicase/u16-ct-tolower: New file.
26345
26346         New module 'unicase/u8-ct-tolower'.
26347         * lib/unicase/u8-ct-tolower.c: New file.
26348         * modules/unicase/u8-ct-tolower: New file.
26349
26350         New module 'unicase/u32-ct-toupper'.
26351         * lib/unicase/u32-ct-toupper.c: New file.
26352         * modules/unicase/u32-ct-toupper: New file.
26353
26354         New module 'unicase/u16-ct-toupper'.
26355         * lib/unicase/u16-ct-toupper.c: New file.
26356         * modules/unicase/u16-ct-toupper: New file.
26357
26358         New module 'unicase/u8-ct-toupper'.
26359         * lib/unicase/u8-ct-toupper.c: New file.
26360         * modules/unicase/u8-ct-toupper: New file.
26361
26362         Add context arguments to u*_casemap functions.
26363         * lib/unicase/unicasemap.h: Include unicase.h.
26364         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
26365         suffix_context arguments.
26366         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
26367         functions.
26368         (FUNC): Add prefix_context and suffix_context arguments. Use
26369         uc_is_cased and uc_is_case_ignorable.
26370         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
26371         * lib/unicase/u16-casemap.c: Likewise.
26372         * lib/unicase/u32-casemap.c: Likewise.
26373         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
26374         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26375         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
26376         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26377         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
26378         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26379
26380         New module 'unicase/u32-suffix-context'.
26381         * lib/unicase/u32-suffix-context.c: New file.
26382         * modules/unicase/u32-suffix-context: New file.
26383
26384         New module 'unicase/u16-suffix-context'.
26385         * lib/unicase/u16-suffix-context.c: New file.
26386         * modules/unicase/u16-suffix-context: New file.
26387
26388         New module 'unicase/u8-suffix-context'.
26389         * lib/unicase/u8-suffix-context.c: New file.
26390         * lib/unicase/u-suffix-context.h: New file.
26391         * modules/unicase/u8-suffix-context: New file.
26392
26393         New module 'unicase/empty-suffix-context'.
26394         * lib/unicase/empty-suffix-context.c: New file.
26395         * modules/unicase/empty-suffix-context: New file.
26396
26397         New module 'unicase/u32-prefix-context'.
26398         * lib/unicase/u32-prefix-context.c: New file.
26399         * modules/unicase/u32-prefix-context: New file.
26400
26401         New module 'unicase/u16-prefix-context'.
26402         * lib/unicase/u16-prefix-context.c: New file.
26403         * modules/unicase/u16-prefix-context: New file.
26404
26405         New module 'unicase/u8-prefix-context'.
26406         * lib/unicase/u8-prefix-context.c: New file.
26407         * lib/unicase/u-prefix-context.h: New file.
26408         * lib/unicase/context.h: New file.
26409         * modules/unicase/u8-prefix-context: New file.
26410
26411         New module 'unicase/empty-prefix-context'.
26412         * lib/unicase/empty-prefix-context.c: New file.
26413         * modules/unicase/empty-prefix-context: New file.
26414
26415         New module 'unicase/ignorable'.
26416         * lib/unicase/ignorable.c: New file.
26417         * modules/unicase/ignorable: New file.
26418
26419         New module 'unicase/cased'.
26420         * lib/unicase/caseprop.h: New file.
26421         * lib/unicase/cased.c: New file.
26422         * modules/unicase/cased: New file.
26423
26424         New functions for case mapping of substrings.
26425         * lib/unicase.h (casing_prefix_context_t): New type.
26426         (unicase_empty_prefix_context): New variable.
26427         (u8_casing_prefix_context, u16_casing_prefix_context,
26428         u32_casing_prefix_context, u8_casing_prefixes_context,
26429         u16_casing_prefixes_context, u32_casing_prefixes_context): New
26430         declarations.
26431         (casing_suffix_context_t): New type.
26432         (unicase_empty_suffix_context): New variable.
26433         (u8_casing_suffix_context, u16_casing_suffix_context,
26434         u32_casing_suffix_context, u8_casing_suffixes_context,
26435         u16_casing_suffixes_context, u32_casing_suffixes_context,
26436         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
26437         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
26438         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
26439         declarations.
26440
26441 2009-06-28  Jim Meyering  <meyering@redhat.com>
26442
26443         boostrap: indent only with spaces
26444         * build-aux/bootstrap: Indent only with spaces, never TABs.
26445
26446         bootstrap: split long lines
26447         * build-aux/bootstrap: Keep line length < 80.
26448
26449         bootstrap: sync from coreutils
26450         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
26451         just as autoreconf does.  Verify a list of prerequisite
26452         package-name,version-number pairs if defined in bootstrap.conf.
26453         Refer to README-prereq, if prerequisites are not satisfied.
26454
26455 2009-06-27  Eric Blake  <ebb9@byu.net>
26456
26457         tests: add test for bogus NULL definition
26458         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
26459         * tests/test-stdlib.c: Likewise.
26460         * tests/test-string.c: Likewise.
26461         * tests/test-locale.c: Likewise.
26462         * tests/test-unistd.c: Likewise.
26463         * modules/stdio-tests (Depends-on): Add verify.
26464         * modules/stdlib-tests (Depends-on): Likewise.
26465         * modules/string-tests (Depends-on): Likewise.
26466         * modules/locale-tests (Depends-on): Likewise.
26467         * modules/unistd-tests (Depends-on): Likewise.
26468
26469 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
26470
26471         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
26472         self-explaining comment.
26473         * m4/selinux-selinux-h: Update serial.
26474         (gl_LIBSELINUX): New macro, adding a warning for missing development
26475         packages to code extracted from...
26476         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
26477         Add warning for missing development packages here, too.
26478
26479 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
26480
26481         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
26482
26483 2009-06-25  Eric Blake  <ebb9@byu.net>
26484
26485         version-etc: fix regression
26486         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
26487         gcc.
26488         (version_etc): Use it, to catch bugs with trailing NULL.
26489         * lib/version-etc.c (version_etc_arn): Delete unused argument.
26490         (version_etc_va): Fix logic bug.
26491         * modules/version-etc-tests: Add test.
26492         * tests/test-version-etc.c: New file.
26493         * tests/test-version-etc.sh: Likewise.
26494
26495 2009-06-25  Sam Steingold  <sds@gnu.org>
26496
26497         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
26498         mbtowc declaration.
26499
26500 2009-06-25  Eric Blake  <ebb9@byu.net>
26501
26502         fpurge: migrate into <stdio.h>
26503         * lib/fpurge.h: Delete...
26504         * lib/stdio.in.h (fpurge): ...and declare here, instead.
26505         * lib/fpurge.c (fpurge): Change declaring header.
26506         * modules/fpurge (Files): Drop deleted file.
26507         (Depends-on): Add stdio.
26508         (configure.ac): Set witness.
26509         * modules/stdio (Makefile.am): Support fpurge macros.
26510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26511         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
26512         * lib/fflush.c: Update client.
26513         * tests/test-fpurge.c: Likewise.
26514         * NEWS: Mention the change.
26515
26516 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26517
26518         * lib/argp-version-etc.c (program_authors): Add const
26519         qualifier.
26520         * lib/version-etc.c: Fix typos in the comments.
26521         * modules/argp-version-etc: Depends on version-etc.
26522
26523 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26524
26525         argp-version-etc: new module.
26526
26527         * lib/argp-version-etc.c: New file.
26528         * lib/argp-version-etc.h: New file.
26529         * modules/argp-version-etc: New file.
26530         * modules/argp-version-etc-tests: New file.
26531         * tests/test-argp-version-etc.c: New test.
26532         * tests/test-argp-version-etc-1.sh: New test.
26533
26534 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26535
26536         Provide additional interfaces and documentation for version-etc
26537         module.
26538
26539         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
26540         interfaces.
26541         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
26542         prototypes.
26543
26544 2009-06-24  Bruno Haible  <bruno@clisp.org>
26545
26546         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
26547         HAVE_LIB${NAME} macro.
26548         Reported by Sam Steingold <sds@gnu.org>.
26549
26550 2009-06-23  Simon Josefsson  <simon@josefsson.org>
26551
26552         * modules/hash-tests (test_hash_LDADD): Link to libintl when
26553         needed.
26554
26555 2009-06-21  Bruno Haible  <bruno@clisp.org>
26556
26557         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
26558         work.
26559         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
26560         together with LIB${NAME}, LTLIB${NAME}.
26561         Reported by Sam Steingold <sds@gnu.org>.
26562
26563 2009-06-20  Jim Meyering  <meyering@redhat.com>
26564
26565         tests: make sc_require_test_exit_idiom more generic
26566         * top/maint.mk (Exit_witness_file): New overridable variable.
26567         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
26568         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
26569
26570 2009-06-19  Jim Meyering  <meyering@redhat.com>
26571
26572         hash: reverse order of src/dst parameters in an internal interface
26573         * lib/hash.c (transfer_entries): Reverse order of parameters to
26574         put DST before SRC.  Adjust callers.
26575
26576         tests: test-hash: avoid wholesale duplication
26577         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
26578         Instead, use a loop and add a single conditional.
26579
26580         tests: test-hash: allow seed selection via a command line argument
26581         * tests/test-hash.c (get_seed): New function.
26582         (main): Use it.
26583
26584 2009-06-19  Eric Blake  <ebb9@byu.net>
26585
26586         hash: avoid memory leak on allocation failure
26587         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
26588         failure.  Factor repeated algorithm...
26589         (transfer_entries): ...into new helper routine.
26590         (hash_delete): React to hash_rehash return value.
26591
26592         hash: reduce memory pressure in hash_rehash no-op case
26593         * lib/hash.c (next_prime): Avoid overflow.
26594         (hash_initialize): Factor bucket size computation...
26595         (compute_bucket_size): ...into new helper function.
26596         (hash_rehash): Use new function and open coding to reduce memory
26597         pressure, and avoid a memory leak in USE_OBSTACK code.
26598         Reported by Jim Meyering.
26599
26600 2009-06-18  Eric Blake  <ebb9@byu.net>
26601
26602         hash: make rotation more obvious
26603         * modules/hash (Depends-on): Add bitrotate and stdint.
26604         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
26605         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
26606         (SIZE_MAX): Rely on headers for definition.
26607         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
26608         (raw_hasher): Use rotr_sz.
26609         Suggested by Jim Meyering.
26610
26611         hash: fix memory leak in last patch
26612         * lib/hash.c (hash_rehash): Avoid memory leak.
26613
26614         hash: avoid no-op rehashing
26615         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
26616
26617         hash: provide default callback functions
26618         * lib/hash.c (raw_hasher, raw_comparator): New functions.
26619         (hash_initialize): Use them as defaults.
26620         * tests/test-hash.c (main): Test this.
26621
26622         hash: minor optimization
26623         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
26624         when possible.
26625         (hash_initialize): Document this promise.
26626         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
26627         * tests/test-hash.c (hash_compare_strings): Test this.
26628
26629 2009-06-18  Bruno Haible  <bruno@clisp.org>
26630
26631         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
26632         going to be replaced anyway.
26633
26634 2009-06-18  Bruno Haible  <bruno@clisp.org>
26635
26636         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
26637         in one place.
26638         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
26639         be replaced anyway.
26640
26641 2009-06-18  Eric Blake  <ebb9@byu.net>
26642
26643         hash: check for resize before insertion
26644         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
26645         threshold before insertion, so that a pathological hash_rehash
26646         that fills every bucket can still trigger another rehash.
26647
26648 2009-06-18  Jim Meyering  <meyering@redhat.com>
26649
26650         hash-tests: add a loop around the small tests
26651         * tests/test-hash.c (main): Repeat small tests with selected
26652         small initial table sizes.
26653
26654 2009-06-17  Eric Blake  <ebb9@byu.net>
26655
26656         hash: minor cleanups
26657         * lib/hash.h (hash_entry): Make opaque, by moving...
26658         * lib/hash.c (hash_entry): ...here.
26659         (hash_insert): Clarify restrictions on what can be inserted.
26660         (hash_get_next): Clarify when it is safe to remove an element
26661         during traversal.
26662         (check_tuning): Skip verification when tuning is known safe.
26663         (hash_initialize): Clarify restrictions on tuning.
26664
26665 2009-06-17  Jim Meyering  <jim@meyering.net>
26666         and Eric Blake  <ebb9@byu.net>
26667
26668         hash-tests: new module
26669         * modules/hash-tests: New file.
26670         * tests/test-hash.c: New file.
26671
26672 2009-06-17  Eric Blake  <ebb9@byu.net>
26673
26674         strstr-simple: document new module
26675         * MODULES.html.sh: Document new module.
26676
26677         strstr, strcasestr: replace on platforms with broken memchr
26678         * modules/strstr: Split into...
26679         * modules/strstr-simple: ...new module that does not care about
26680         performance, but does care about glibc bug.
26681         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
26682         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
26683         if platform memchr is broken, per Debian bug 521737.
26684         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
26685         memchr.
26686         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
26687         * doc/posix-functions/strstr.texi (strstr): Document the fix.
26688         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26689         * modules/mountlist (Depends-on): Add strstr-simple.
26690         * modules/gen-uni-tables (Depends-on): Likewise.
26691         * modules/argz (Depends-on): Add strstr.
26692
26693 2009-06-17  Bruno Haible  <bruno@clisp.org>
26694
26695         * modules/posix_spawn-internal (Depends-on): Add errno.
26696
26697 2009-06-17  Bruno Haible  <bruno@clisp.org>
26698
26699         Define missing ESTALE on Interix 3.5.
26700         * lib/errno.in.h (ESTALE): Assign a value if missing.
26701         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
26702         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
26703         missing.
26704         * doc/posix-headers/errno.texi: Mention the Interix bug.
26705         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
26706
26707 2009-06-15  Eric Blake  <ebb9@byu.net>
26708
26709         memchr, memchr2: add valgrind exception
26710         * lib/memchr.valgrind: New file.
26711         * lib/memchr2.valgrind: New file.
26712         * modules/memchr (Files): Distribute valgrind file.
26713         * modules/memchr2 (Files): Likewise.
26714
26715         docs: memchr is no longer obsolete
26716         * MODULES.html.sh: Move memchr from obsolete to string.h section.
26717         * lib/string.in.h (memchr): Simplify logic.
26718
26719 2009-06-14  Jim Meyering  <meyering@redhat.com>
26720
26721         link-follow: fix the "checking..." message to not mention trailing slash
26722         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
26723         never considered trailing slashes.
26724
26725 2009-06-14  Bruno Haible  <bruno@clisp.org>
26726
26727         * m4/memchr.m4: Mention also the bug on IA-64.
26728         * doc/posix-functions/memchr.texi: Likewise.
26729
26730 2009-06-12  Eric Blake  <ebb9@byu.net>
26731
26732         memchr: detect broken x86_64 and alpha implementations
26733         * modules/memchr-tests (Depends-on): Move mmap detection...
26734         * modules/memchr (Depends-on): ...here.
26735         (configure.ac): Set indicator.
26736         * lib/string.in.h (memchr): Declare replacement.
26737         * modules/string (Makefile.am): Trigger replacement.
26738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26739         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
26740         bugs.
26741         * doc/posix-functions/memchr.texi (memchr): Document the bug.
26742         * modules/getpagesize (License): Relax license.
26743
26744 2009-06-11  Bruno Haible  <bruno@clisp.org>
26745
26746         * lib/idpriv.h: Add more references.
26747
26748 2009-06-08  Bruno Haible  <bruno@clisp.org>
26749
26750         Tests for module 'idpriv-droptemp'.
26751         * modules/idpriv-droptemp-tests: New file.
26752         * tests/test-idpriv-droptemp.sh: New file.
26753         * tests/test-idpriv-droptemp.su.sh: New file.
26754         * tests/test-idpriv-droptemp.c: New file.
26755
26756         New module 'idpriv-droptemp'.
26757         * lib/idpriv-droptemp.c: New file.
26758         * modules/idpriv-droptemp: New file.
26759
26760 2009-06-08  Bruno Haible  <bruno@clisp.org>
26761
26762         Tests for module 'idpriv-drop'.
26763         * modules/idpriv-drop-tests: New file.
26764         * tests/test-idpriv-drop.sh: New file.
26765         * tests/test-idpriv-drop.su.sh: New file.
26766         * tests/test-idpriv-drop.c: New file.
26767
26768         New module 'idpriv-drop'.
26769         * lib/idpriv.h: New file.
26770         * lib-idpriv-drop.c: New file.
26771         * m4/idpriv.m4: New file.
26772         * modules/idpriv-drop: New file.
26773
26774 2009-06-08  Bruno Haible  <bruno@clisp.org>
26775
26776         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
26777         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26778         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26779         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26780         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26781         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26782         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26783
26784 2009-06-08  Eric Blake  <ebb9@byu.net>
26785
26786         test-strstr: use memory fence, when possible
26787         * tests/test-strstr.c (main): Use memory fence, in order to be
26788         more likely to trigger Debian bug 521737.
26789         * modules/strstr-tests (Files): Pull in additional files.
26790
26791         memchr: no longer obsolete, for wider field testing
26792         * modules/memchr (Status, Notice): Delete, this module is no
26793         longer obsolete.
26794         * modules/vasnprintf (Depends-on): Add memchr.
26795
26796 2009-06-07  Jim Meyering  <meyering@redhat.com>
26797
26798         hash: declare some functions with the warn_unused_result attribute
26799         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
26800
26801 2009-06-07  Bruno Haible  <bruno@clisp.org>
26802
26803         * tests/test-alignof.c: Don't test int64_t if it does not exist.
26804         Reported by Eric Blake.
26805
26806 2009-06-06  Eric Blake  <ebb9@byu.net>
26807
26808         test-alignof: fix typo with long double
26809         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
26810         compiler error.
26811
26812 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
26813
26814         Escape non-texinfo { and }s.
26815         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
26816         markup error.
26817
26818 2009-06-04  Jim Meyering  <meyering@redhat.com>
26819
26820         gitlog-to-changelog: don't infloop on an empty commit log
26821         * build-aux/gitlog-to-changelog: Warn about an empty log message.
26822         Reported by Boris Petersen <transacid@centerim.org>.
26823
26824 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
26825
26826         version-etc: extend for packagers
26827         Add three new configure options, intended for packagers:
26828           --with-packager="packager name"
26829           --with-packager-version="packager-specific version"
26830           --with-packager-bug-reports="packager bug reporting"
26831         An example with coreutils:
26832           $ ./configure \
26833             --with-packager=Gentoo \
26834             --with-packager-bug-report=http://bugs.gentoo.org/ \
26835             --with-packager-version="patchset 1.6"
26836           $ ./src/ls --version | head -n2
26837           ls (GNU coreutils) 7.1-dirty
26838           Packaged by Gentoo (patchset 1.6)
26839         Note that the bug reporting info via --help doesn't show up because
26840         coreutils uses its own custom emit_bug_reporting_address() implementation
26841         in src/system.h.  If it didn't, it'd look like:
26842           $ ./src/ls --help | tail -n4
26843           Report bugs to <bug-coreutils@gnu.org>.
26844           Report Gentoo bugs to <http://bugs.gentoo.org/>.
26845           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
26846           General help using GNU software: <http://www.gnu.org/gethelp/>.
26847         * lib/version-etc.c: Print new information, if provided.
26848         * m4/version-etc.m4: New file.
26849         * modules/version-etc (Files): Add m4/version-etc.m4.
26850         (configure.ac): Add gl_VERSION_ETC.
26851
26852 2009-05-31  Bruno Haible  <bruno@clisp.org>
26853
26854         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
26855         and 'int64_t'.
26856         * modules/alignof-tests (Dependencies): Add stdint.
26857         Reported by Eric Blake.
26858
26859 2009-05-31  Bruno Haible  <bruno@clisp.org>
26860
26861         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
26862         restriction due to compiler bugs.
26863         Reported by Eric Blake.
26864
26865 2009-05-31  Simon Josefsson  <simon@josefsson.org>
26866             Bruno Haible  <bruno@clisp.org>
26867
26868         Fix test-alignof failure.
26869         * lib/alignof.h (alignof_slot): New macro.
26870         (alignof_type): New macro, with the same semantics as the previous
26871         'alignof'.
26872         (alignof): Alias to alignof_slot.
26873         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
26874         check that the results are usable as constant expressions.
26875
26876 2009-05-31  Bruno Haible  <bruno@clisp.org>
26877
26878         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
26879         * tests/test-memchr.c (main): Check that memchr does not read past the
26880         first occurrence of the byte.
26881         * tests/test-strstr.c (main): Update comment.
26882         Suggested by Eric Blake.
26883
26884 2009-05-30  Bruno Haible  <bruno@clisp.org>
26885
26886         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
26887         detail how to use dumpbin.
26888         Reported by David Byron <dbyron@dbyron.com>.
26889
26890 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26891
26892         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
26893
26894 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26895
26896         * m4/manywarnings.m4: Add GCC 4.4 warnings.
26897
26898 2009-05-28  Bruno Haible  <bruno@clisp.org>
26899
26900         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
26901         build-aux/ files.
26902
26903 2009-05-28  Simon Josefsson  <simon@josefsson.org>
26904
26905         * gnulib-tool (func_import): Transform license on build-aux/ files too.
26906
26907 2009-05-27  Simon Josefsson  <simon@josefsson.org>
26908
26909         * gnulib-tool (sed_transform_main_lib_file)
26910         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
26911         regexps.
26912
26913 2009-05-26  Simon Josefsson  <simon@josefsson.org>
26914
26915         * tests/test-strstr.c: Add another self-test.
26916         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
26917         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
26918
26919 2009-05-23  Bruno Haible  <bruno@clisp.org>
26920
26921         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
26922         change.
26923
26924 2009-05-21  Bruno Haible  <bruno@clisp.org>
26925
26926         Simplify use of mode_t varargs.
26927         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
26928         uses 'mode_t' or 'int'.
26929         * lib/openat.c (openat): Likewise.
26930         * lib/open-safer.c (open_safer): Likewise.
26931         * m4/mode_t.m4: New file.
26932         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
26933         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
26934         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
26935         * modules/open (Files): Add m4/mode_t.m4.
26936         * modules/openat (Files): Likewise.
26937         * modules/fcntl-safer (Files): Likewise.
26938         Suggested by Eric Blake.
26939
26940 2009-05-21  Pádraig Brady  <P@draigbrady.com>
26941
26942         * doc/glibc-functions/fallocate.texi: New file.
26943         * doc/gnulib.texi: Include it.
26944
26945 2009-05-21  Eric Blake  <ebb9@byu.net>
26946             Bruno Haible  <bruno@clisp.org>
26947
26948         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
26949         invocations.
26950         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26951
26952 2009-05-21  Eric Blake  <ebb9@byu.net>
26953             Bruno Haible  <bruno@clisp.org>
26954
26955         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
26956         include_next. Fix of 2008-11-20 commit.
26957         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
26958         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
26959         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
26960         NEXT_MATH_H.
26961         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
26962         instead of NEXT_MATH_H.
26963
26964 2009-05-21  Bruno Haible  <bruno@clisp.org>
26965
26966         Avoid redefinition warnings for SIZE_MAX.
26967         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
26968         Reported by Simon Josefsson.
26969
26970 2009-05-21  Bruno Haible  <bruno@clisp.org>
26971
26972         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
26973         AC_CACHE_VAL.
26974
26975 2009-05-20  Bruno Haible  <bruno@clisp.org>
26976
26977         Make zeroptr.h work on mingw.
26978         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
26979         mprotect.
26980         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
26981         * modules/memchr2-tests (configure.ac): Likewise.
26982         * modules/memcmp-tests (configure.ac): Likewise.
26983         * modules/memmem-tests (configure.ac): Likewise.
26984         * modules/memrchr-tests (configure.ac): Likewise.
26985         Reported by Simon Josefsson.
26986
26987 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26988
26989         * tests/test-glob.c: Include string.h for strcmp prototype.
26990
26991 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26992
26993         * modules/getdelim (Depends-on): Add explicit stdint, although it
26994         was implicitly already pulled in via realloc-posix.
26995         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
26996
26997 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26998
26999         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
27000         G. Christensen" <tgc@jupiterrise.com>.
27001         * m4/sys_socket_h.m4: Check for sa_family_t.
27002         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
27003         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
27004         * tests/test-sys_socket.c: Check that sa_family_t works.
27005
27006 2009-05-18  Eric Blake  <ebb9@byu.net>
27007
27008         maint.mk: allow gnulib_dir in VPATH build
27009         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
27010
27011 2009-05-15  Jim Meyering  <meyering@redhat.com>
27012
27013         maint.mk: Give gnulib_dir a default definition.
27014         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
27015         Thus, most packages no longer need to specify this variable in cfg.mk
27016
27017 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
27018
27019         rename.m4: fix typos that would make non-mingw cross-configure fail
27020         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
27021
27022 2009-05-13  Eric Blake  <ebb9@byu.net>
27023
27024         mmap-anon: avoid out-of-order autoconf expansion
27025         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
27026         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
27027         * modules/memchr-tests (Depends-on): Add extensions.
27028         * modules/memchr2-tests (Depends-on): Add extensions.
27029         * modules/memcmp-tests (Depends-on): Add extensions.
27030         * modules/memmem-tests (Depends-on): Add extensions.
27031         * modules/memrchr-tests (Depends-on): Add extensions.
27032
27033 2009-05-13  Bruno Haible  <bruno@clisp.org>
27034
27035         Make some tests ISO C 99 compliant.
27036         * tests/zerosize-ptr.h: New file.
27037         * tests/test-memchr.c: Include zerosize-ptr.h.
27038         (main): Use a zero-size object pointer instead of NULL.
27039         * tests/test-memchr2.c: Include zerosize-ptr.h.
27040         (main): Use a zero-size object pointer instead of NULL.
27041         * tests/test-memcmp.c: Include zerosize-ptr.h.
27042         (main): Use a zero-size object pointer instead of NULL.
27043         * tests/test-memmem.c: Include zerosize-ptr.h.
27044         (main): Use a zero-size object pointer instead of NULL.
27045         * tests/test-memrchr.c: Include zerosize-ptr.h.
27046         (main): Use a zero-size object pointer instead of NULL.
27047         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
27048         m4/mmap-anon.m4.
27049         (Depends-on): Add getpagesize.
27050         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27051         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
27052         m4/mmap-anon.m4.
27053         (Depends-on): Add getpagesize.
27054         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27055         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
27056         m4/mmap-anon.m4.
27057         (Depends-on): Add getpagesize.
27058         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27059         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
27060         m4/mmap-anon.m4.
27061         (Depends-on): Add getpagesize.
27062         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27063         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
27064         m4/mmap-anon.m4.
27065         (Depends-on): Add getpagesize.
27066         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27067
27068 2009-05-12  Bruno Haible  <bruno@clisp.org>
27069
27070         Tests for module 'alignof'.
27071         * modules/alignof-tests: New file.
27072         * tests/test-alignof.c: New file.
27073
27074 2009-05-12  Bruno Haible  <bruno@clisp.org>
27075
27076         Fix alignof macro.
27077         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
27078         vendor compilers that are always correct.
27079
27080 2009-05-12  Bruno Haible  <bruno@clisp.org>
27081
27082         Make the MAP_ANONYMOUS detection work on HP-UX 11.
27083         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
27084         not whether its fully works.
27085
27086 2009-05-12  Bruno Haible  <bruno@clisp.org>
27087
27088         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
27089
27090 2009-05-12  Jim Meyering  <meyering@redhat.com>
27091
27092         * top/maint.mk: Adjust backslash alignment.
27093
27094 2009-05-11  Simon Josefsson  <simon@josefsson.org>
27095
27096         * top/maint.mk: Make $(srcdir)/build-aux configurable.
27097
27098 2009-05-11  Eric Blake  <ebb9@byu.net>
27099
27100         argp: avoid undefined behavior
27101         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
27102         macros.
27103
27104 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27105
27106         * tests/test-vc-list-files-git.sh: Do git config of user.email and
27107         user.name to prevent git commit from complaining.
27108
27109 2009-05-10  Bruno Haible  <bruno@clisp.org>
27110
27111         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
27112         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
27113         it rewrites every file name only once.
27114         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
27115
27116 2009-05-08  Bruno Haible  <bruno@clisp.org>
27117
27118         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
27119         instead of 'max'.
27120
27121 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27122
27123         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
27124         sockaddr_storage test.
27125
27126 2009-05-07  Simon Josefsson  <simon@josefsson.org>
27127
27128         * modules/sys_socket (Makefile.am): Substitute
27129         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
27130         * m4/sys_socket_h.m4: Check for sockaddr_storage.
27131         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
27132         * tests/test-sys_socket.c: Check sockaddr_storage.
27133
27134 2009-05-08  Bruno Haible  <bruno@clisp.org>
27135
27136         New module 'alignof'.
27137         * lib/alignof.h: New file.
27138         * modules/alignof: New file.
27139
27140 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27141             Bruno Haible  <bruno@clisp.org>
27142
27143         Fix test-file-has-acl on FreeBSD.
27144         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
27145         mask is implicitly added.
27146         * tests/test-file-has-acl.c: Include <signal.h>.
27147         (main): Terminate the test after 5 seconds.
27148         * modules/acl-tests (configure.ac): Check for alarm function.
27149
27150 2009-05-04  Bruno Haible  <bruno@clisp.org>
27151
27152         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
27153         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
27154         * modules/errno (configure.ac): Drop AC_REQUIRE.
27155         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
27156         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
27157
27158 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27159
27160         * modules/glob-tests: New module.
27161         * tests/test-glob.c: Add.
27162
27163 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27164
27165         * modules/fnmatch-tests: New module.
27166         * tests/test-fnmatch.c: Add.
27167
27168 2009-05-04  Eric Blake  <ebb9@byu.net>
27169
27170         maint: make the new no-submodule-changes rule VPATH-safe
27171         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
27172
27173 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27174             Bruno Haible  <bruno@clisp.org>
27175
27176         acl: Fix infinite loop on FreeBSD.
27177         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
27178         of return value from acl_get_entry.
27179         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
27180         Likewise.
27181
27182 2009-05-03  Bruno Haible  <bruno@clisp.org>
27183
27184         * lib/acl-internal.h (acl_entries): Clarify return value.
27185         * lib/acl_entries.c (acl_entries): Likewise.
27186
27187 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27188
27189         Bug fix in acl module.
27190         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
27191
27192 2009-05-03  Bruno Haible  <bruno@clisp.org>
27193
27194         Create gperf-generated file in the source dir, not in the build dir.
27195         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
27196         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
27197         * modules/unicase/locale-language (unicase/locale-languages.h):
27198         Likewise.
27199         * modules/unicase/special-casing (unicase/special-casing-table.h):
27200         Likewise.
27201         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
27202         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
27203         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
27204         Reported by Ralf Wildenhues.
27205
27206 2009-05-03  Bruno Haible  <bruno@clisp.org>
27207
27208         * modules/fnmatch (Description, configure.ac): Taken from
27209         fnmatch-posix.
27210         * modules/fnmatch-posix: Turn into a symbolic reference to the
27211         'fnmatch' module, and deprecate.
27212         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
27213
27214 2009-05-03  Bruno Haible  <bruno@clisp.org>
27215
27216         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
27217         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
27218         Reported by Ralf Wildenhues.
27219
27220 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27221
27222         * m4/fnmatch.m4: Fix fnmatch re-define.
27223
27224 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27225
27226         priv-set: new module and tests; adapt write-any-file
27227         * lib/priv-set.c: New file.
27228         * lib/priv-set.h: New file.
27229         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
27230         * lib/write-any-file.c: Simplify by using priv-set module.
27231         * m4/priv-set.m4: New file.
27232         * modules/priv-set: New file.
27233         * modules/unlinkdir: Add dependency on priv-set module.
27234         * modules/write-any-file: Likewise.
27235
27236         Tests for module 'priv-set'.
27237         * modules/priv-set-tests: New file.
27238         * tests/test-priv-set.c: New file.
27239
27240 2009-05-03  Jim Meyering  <meyering@redhat.com>
27241             Bruno Haible  <bruno@clisp.org>
27242
27243         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
27244         use the converted UTF-8 variant of the name instead.
27245
27246 2009-05-03  Jim Meyering  <meyering@redhat.com>
27247
27248         tests: tighten some getdate tests
27249         * tests/test-getdate.c (main): Tighten tests: require equality,
27250         not just greater than.  Set TZ envvar to UTC0.
27251
27252 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27253
27254         getdate: correctly interpret "next monday" when run on a Monday
27255         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
27256         that e.g., "next tues" (when run on a tuesday) results in a date
27257         that is one week in the future, and not today's date.
27258         I.e., add a week when the wday is the same as the current one.
27259         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
27260         and earlier by Martin Bernreuther and Jan Minář.
27261         * tests/test-getdate.c (main): Check that "next DAY" is always in
27262         the future and that "last DAY" is always in the past.
27263
27264 2009-05-02  Jim Meyering  <meyering@redhat.com>
27265
27266         build: ensure that a release build fails when a submodule is unclean
27267         * top/maint.mk (no-submodule-changes): New rule.
27268         (alpha beta major): Depend on it.
27269
27270 2009-05-02  Bruno Haible  <bruno@clisp.org>
27271
27272         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
27273         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
27274         shell variable gl_fnmatch_required to detect which variant is
27275         requested.
27276         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
27277         gl_FUNC_FNMATCH_POSIX.
27278         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
27279         exclude fnmatch-posix.
27280
27281 2009-05-02  Bruno Haible  <bruno@clisp.org>
27282
27283         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
27284         * modules/mbsrtowcs (License): Change to LGPLv2+.
27285         * modules/strnlen1 (License): Likewise.
27286         Reported by Simon Josefsson.
27287
27288 2009-05-02  Bruno Haible  <bruno@clisp.org>
27289
27290         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
27291         "cross".
27292         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
27293         gnulib-tool was called with option --source-base=lib.
27294
27295 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27296
27297         Use automake *-local hooks without commands, for extensibility.
27298         * modules/localcharset (Makefile.am): Rename install-exec-local
27299         rule to install-exec-localcharset, and make it a prerequisite of
27300         install-exec-local.  Likewise, rename the uninstall-local rule to
27301         uninstall-localcharset, and make it a prerequisite of the former.
27302
27303 2009-05-01  Bruno Haible  <bruno@clisp.org>
27304
27305         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
27306         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27307         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
27308         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
27309         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
27310         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27311         m4/locale-zh.m4, m4/codeset.m4.
27312
27313         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27314         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
27315         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27316         m4/locale-zh.m4.
27317
27318         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
27319         REPLACE_WCRTOMB if mbstate_t must be replaced.
27320         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
27321         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
27322
27323 2009-05-01  Bruno Haible  <bruno@clisp.org>
27324
27325         Avoid compiler warnings when redefining macros defined by <libintl.h>.
27326         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
27327         dngettext, dcngettext, textdomain, bindtextdomain,
27328         bind_textdomain_codeset): Undefine before redefining.
27329
27330 2009-04-30  Bruno Haible  <bruno@clisp.org>
27331
27332         Fix bug introduced on 2009-04-25.
27333         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
27334         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
27335         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
27336         is defined.
27337         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
27338         is defined.
27339         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
27340         is defined.
27341         Reported by Elbert_Pol <elbert.pol@gmail.com>.
27342
27343 2009-04-28  Bruno Haible  <bruno@clisp.org>
27344
27345         Comment tweaks.
27346         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
27347         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
27348         * lib/unicase.h (u*_casexfrm): Likewise.
27349         Reported by Paolo Bonzini.
27350
27351 2009-04-28  Bruno Haible  <bruno@clisp.org>
27352
27353         Fix a compilation error.
27354         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
27355         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27356         Reported by Jim Meyering.
27357
27358 2009-04-27  Bruno Haible  <bruno@clisp.org>
27359
27360         New module 'libunistring'.
27361         * modules/libunistring: New file.
27362         * m4/libunistring.m4: New file.
27363         * MODULES.html.sh (Unicode string functions): Add it.
27364
27365 2009-04-27  Eric Blake  <ebb9@byu.net>
27366
27367         maint.mk: allow package-specific header to provide <config.h>
27368         * top/maint.mk (sc_require_config_h): New variable.
27369         (sc_require_config_h, sc_require_config_h_first): Use it.
27370
27371 2009-04-27  Simon Josefsson  <simon@josefsson.org>
27372
27373         * top/maint.mk (sc_avoid_if_before_free): Except
27374         useless-if-before-free script.
27375
27376 2009-04-27  Eric Blake  <ebb9@byu.net>
27377
27378         maintainer-makefile: depend on all required helper scripts
27379         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
27380         useless-if-before-free.
27381         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
27382         version, rather than assuming gnulib checkout is available.
27383         Reported by Simen Josefsson.
27384
27385 2009-04-26  Bruno Haible  <bruno@clisp.org>
27386
27387         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
27388         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
27389         "../" or "..".
27390
27391 2009-04-26  Bruno Haible  <bruno@clisp.org>
27392
27393         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
27394         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
27395         AC_LIB_HAVE_LINKFLAGS.
27396
27397 2009-04-26  Bruno Haible  <bruno@clisp.org>
27398
27399         Simplify calling convention of u*_conv_from_encoding.
27400         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
27401         u32_conv_from_encoding): Expect a resultbuf argument and return the
27402         result directly as a pointer.
27403         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
27404         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
27405         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
27406         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
27407         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
27408         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27409         Update.
27410         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
27411         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
27412         * lib/vasnprintf.c (VASNPRINTF): Update.
27413         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
27414         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
27415         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
27416         * NEWS: Mention the change.
27417
27418 2009-04-26  Bruno Haible  <bruno@clisp.org>
27419
27420         Simplify calling convention of u*_conv_to_encoding.
27421         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
27422         u32_conv_to_encoding): Expect a resultbuf argument and return the
27423         result directly as a pointer.
27424         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27425         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
27426         freeing scaled_offsets if mem_iconveha failed.
27427         * lib/unicase/u-casexfrm.h (FUNC): Update.
27428         * lib/uninorm/u-normxfrm.h (FUNC): Update.
27429         * lib/vasnprintf.c (VASNPRINTF): Update.
27430         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
27431         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
27432         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
27433         * NEWS: Mention the change.
27434
27435 2009-04-26  Bruno Haible  <bruno@clisp.org>
27436
27437         Avoid test failures on AIX and OSF/1.
27438         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
27439         malloc(0).
27440         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27441         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27442         Likewise.
27443         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
27444         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
27445         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
27446         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
27447         * doc/posix-functions/malloc.texi: Document the portability problem
27448         related to malloc(0).
27449
27450 2009-04-26  Bruno Haible  <bruno@clisp.org>
27451
27452         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
27453         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
27454         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
27455
27456 2009-04-25  Bruno Haible  <bruno@clisp.org>
27457
27458         Avoid link error when creating a namespace clean library.
27459         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
27460         as macro with arguments if already defined as an alias.
27461         * lib/signbitf.c (gl_signbitf): Don't undefine.
27462         * lib/signbitd.c (gl_signbitd): Don't undefine.
27463         * lib/signbitl.c (gl_signbitl): Don't undefine.
27464
27465 2009-04-25  Jim Meyering  <meyering@redhat.com>
27466
27467         vc-list-files: fix another quoting bug
27468         * build-aux/vc-list-files: Avoid sed backslash expansion
27469         of pathological directory names.
27470
27471 2009-04-25  Eric Blake  <ebb9@byu.net>
27472
27473         vc-list-files: fix shell quoting error
27474         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
27475         timestamp.
27476
27477 2009-04-25  Jim Meyering  <meyering@redhat.com>
27478
27479         vc-list-files: restore lost functionality with subdir argument
27480         * build-aux/vc-list-files: When given a non-"." sub-directory
27481         argument, substitute the $dir/ prefix back onto each resulting name.
27482         Otherwise, coreutils' root_tests check would fail.
27483
27484 2009-04-24  Eric Blake  <ebb9@byu.net>
27485
27486         vc-list-files: ignore git symlinks
27487         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
27488         than ls-files, to ignore git symlinks.
27489
27490         maint.mk: import improvements from m4
27491         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
27492         (move_if_change): Delete unused macro.
27493         (news-date-check, vc-diff-check): Support VPATH builds.
27494         (announcement): Likewise.  Split --bootstrap-tools list...
27495         (boostrap-tools): ...into separate list, which can be overridden
27496         in cfg.mk.
27497         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
27498         requiring dependency on useless-if-before-free module.
27499         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
27500         Support VPATH builds.
27501
27502 2009-04-24  Jim Meyering  <meyering@redhat.com>
27503
27504         maint.mk: remove coreutils-specific rules and variables
27505         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
27506         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
27507         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
27508
27509         maint.mk: remove obsolete rule
27510         * top/maint.mk (rel-check): Remove rule.
27511         (WGET, WGETFLAGS): Remove now-unused variables.
27512
27513 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27514
27515         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
27516         consistency.
27517
27518         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
27519         '$(PATH_SEPARATOR)' instead of ':'.
27520
27521 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27522
27523         * lib/getopt1.c (main): Use 'const' for static array.
27524
27525 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27526
27527         * top/maint.mk: Sync with coreutils.
27528         * NEWS: Explain incompatibilities.
27529
27530 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27531             Bruno Haible  <bruno@clisp.org>
27532
27533         Fix cross-compilation results.
27534         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
27535         statement, as third argument of AC_TRY_RUN.
27536         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27537         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27538         Likewise.
27539         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27540         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27541         Likewise.
27542         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27543         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
27544         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
27545
27546 2009-04-20  Bruno Haible  <bruno@clisp.org>
27547
27548         Avoid test failure on mingw.
27549         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
27550
27551 2009-04-20  Bruno Haible  <bruno@clisp.org>
27552
27553         Avoid compilation error on mingw.
27554         * modules/localename-tests (Depends-on): Add locale.
27555
27556 2009-04-19  Bruno Haible  <bruno@clisp.org>
27557
27558         Support for building a shared library on Windows platforms.
27559         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
27560         (main): Test the presence of UNINORM_NFC here.
27561         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
27562         (main): Test the presence of UNINORM_NFD here.
27563         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
27564         (main): Test the presence of UNINORM_NFKC here.
27565         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
27566         (main): Test the presence of UNINORM_NFKD here.
27567
27568 2009-04-19  Bruno Haible  <bruno@clisp.org>
27569
27570         Avoid a compiler warning.
27571         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
27572         Change type of variable 'sequence'.
27573
27574 2009-04-19  Bruno Haible  <bruno@clisp.org>
27575
27576         * modules/configmake (Makefile.am): When the contents of configmake.h
27577         does not change, arrange to preserve its modification time.
27578
27579 2009-04-17  Simon Josefsson  <simon@josefsson.org>
27580
27581         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
27582         gettext domain.
27583
27584 2009-04-16  Jim Meyering  <meyering@redhat.com>
27585
27586         useless-if-before-free: improve conversion code
27587         * build-aux/useless-if-before-free: Adjust code-in-comment to match
27588         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
27589
27590 2009-04-14  Bruno Haible  <bruno@clisp.org>
27591
27592         * modules/fcntl (Depends-on): Add extensions.
27593         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
27594
27595 2009-04-12  Ben Pfaff  <blp@gnu.org>
27596
27597         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
27598         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
27599
27600 2009-03-20  Ben Pfaff  <blp@gnu.org>
27601
27602         Make rename replace existing destinations on Windows.
27603         * m4/rename.m4: Add test for Mingw.
27604         * lib/rename.c: Add rename replacement that uses MoveFileEx with
27605         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
27606         * doc/posix-functions/rename.texi: Document.
27607
27608 2009-04-10  Bruno Haible  <bruno@clisp.org>
27609
27610         New include file "iconveh.h".
27611         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
27612         * lib/striconveh.h: Include it.
27613         (enum iconv_ilseq_handler): Remove definition.
27614         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
27615         striconveh.h.
27616         * lib/striconveha.c: Include striconveh.h.
27617         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
27618         * modules/striconveh (Files): Add lib/iconveh.h.
27619         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
27620         lib/striconveh.h.
27621
27622 2009-04-10  Bruno Haible  <bruno@clisp.org>
27623
27624         * lib/uniconv.h: Update comment.
27625
27626 2009-04-10  Bruno Haible  <bruno@clisp.org>
27627
27628         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
27629         always.
27630         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
27631         * lib/unistr/u16-mbtouc-aux.c: Likewise.
27632         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
27633         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
27634         "unistring-notinline.h", so that the function gets defined always.
27635         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
27636         * lib/unistr/u8-uctomb.c: Likewise.
27637         * lib/unistr/u16-mbtouc.c: Likewise.
27638         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
27639         * lib/unistr/u16-uctomb.c: Likewise.
27640         * lib/unistr/u32-mbtouc.c: Likewise.
27641         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
27642         * lib/unistr/u32-uctomb.c: Likewise.
27643
27644 2009-04-10  Bruno Haible  <bruno@clisp.org>
27645
27646         Mark 'utime' obsolete.
27647         * modules/utime (Status, Notice): New sections.
27648         Suggested by Jim Meyering.
27649
27650         Fix cross-compile guess for utime test.
27651         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
27652         autoconf.
27653         * doc/posix-functions/utime.texi: Give more precisions.
27654         Reported by Jan <ipif@ymail.com>.
27655
27656 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
27657
27658         filevercmp: correct today's change
27659         * lib/filevercmp.c: Also handle coreutils' test inputs.
27660         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
27661
27662         Fix regression in 'filevercmp' module. Thanks Sven Joachim
27663         for reporting it.
27664         * lib/filevercmp.c: Special handle for "", "." and "..".
27665         * tests/test-filevercmp.c: Enlarge the set suite.
27666
27667 2009-04-07  Jim Meyering  <meyering@redhat.com>
27668
27669         useless-if-before-free: show how to remove braced useless free, too
27670         * build-aux/useless-if-before-free: still only in a comment, though.
27671
27672 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
27673
27674         maint.mk: import changes to syntax-check macros from coreutils
27675         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
27676         Use them in the relevant macros.
27677
27678 2009-04-06  Bruno Haible  <bruno@clisp.org>
27679
27680         Fix unportable use of bit-fields.
27681         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
27682         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
27683         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
27684
27685 2009-04-06  Bruno Haible  <bruno@clisp.org>
27686
27687         Avoid test failures on AIX and OSF/1.
27688         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
27689         that malloc(0) = NULL.
27690         * tests/unicase/test-u8-tolower.c (check): Likewise.
27691         * tests/unicase/test-u8-totitle.c (check): Likewise.
27692         * tests/unicase/test-u8-toupper.c (check): Likewise.
27693         * tests/unicase/test-u16-casefold.c (check): Likewise.
27694         * tests/unicase/test-u16-tolower.c (check): Likewise.
27695         * tests/unicase/test-u16-totitle.c (check): Likewise.
27696         * tests/unicase/test-u16-toupper.c (check): Likewise.
27697         * tests/unicase/test-u32-casefold.c (check): Likewise.
27698         * tests/unicase/test-u32-tolower.c (check): Likewise.
27699         * tests/unicase/test-u32-totitle.c (check): Likewise.
27700         * tests/unicase/test-u32-toupper.c (check): Likewise.
27701         * tests/uninorm/test-u8-nfc.c (check): Likewise.
27702         * tests/uninorm/test-u8-nfd.c (check): Likewise.
27703         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
27704         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
27705         * tests/uninorm/test-u16-nfc.c (check): Likewise.
27706         * tests/uninorm/test-u16-nfd.c (check): Likewise.
27707         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
27708         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
27709         * tests/uninorm/test-u32-nfc.c (check): Likewise.
27710         * tests/uninorm/test-u32-nfd.c (check): Likewise.
27711         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
27712         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
27713
27714 2009-04-05  Bruno Haible  <bruno@clisp.org>
27715
27716         Work around an autoconf limitation.
27717         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
27718         comment line if it would be longer than 3 KB.
27719
27720 2009-04-05  Bruno Haible  <bruno@clisp.org>
27721
27722         Avoid test failure with libiconv-1.13.
27723         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
27724         of the expected test results.
27725
27726 2009-04-05  Bruno Haible  <bruno@clisp.org>
27727
27728         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
27729         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
27730         that it should be installed.
27731
27732 2009-04-05  Bruno Haible  <bruno@clisp.org>
27733
27734         * gnulib-tool: New option --copy-file.
27735         (func_usage): Document it.
27736         (func_dest_tmpfilename): Moved out of func_import.
27737         (func_add_file, func_update_file): New functions, extracted from
27738         func_import.
27739         (func_import): Update.
27740
27741 2009-04-05  Karl Berry  <karl@gnu.org>
27742
27743         * README: prominently mention gnulib-tool.
27744         Rearrange sections so getting the code is near the top.
27745
27746 2009-04-05  Bruno Haible  <bruno@clisp.org>
27747
27748         * lib/unicase.h: Mention u*_cmp2.
27749         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27750         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
27751         * lib/unicase/ulc-casecmp.c: Likewise.
27752         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
27753         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
27754         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
27755         unistr/u8-cmp.
27756         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
27757         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
27758         unistr/u16-cmp.
27759         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
27760         unistr/u32-cmp.
27761
27762         * lib/uninorm.h: Mention u*_cmp2.
27763         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27764         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
27765         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
27766         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
27767         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
27768         unistr/u8-cmp.
27769         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
27770         unistr/u16-cmp.
27771         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
27772         unistr/u32-cmp.
27773
27774         New module 'unistr/u32-cmp2'.
27775         * lib/unistr/u32-cmp2.c: New file.
27776         * modules/unistr/u32-cmp2: New file.
27777
27778         New module 'unistr/u16-cmp2'.
27779         * lib/unistr/u16-cmp2.c: New file.
27780         * modules/unistr/u16-cmp2: New file.
27781
27782         New module 'unistr/u8-cmp2'.
27783         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
27784         * lib/unistr/u8-cmp2.c: New file.
27785         * lib/unistr/u-cmp2.h: New file.
27786         * modules/unistr/u8-cmp2: New file.
27787
27788 2009-04-05  Bruno Haible  <bruno@clisp.org>
27789
27790         * lib/unictype.h (uc_property_is_valid): New macro.
27791         * tests/unictype/test-pr_byname.c (main): Use it.
27792
27793         * lib/unistr.h: Doc fixes.
27794         * lib/uniconv.h: Doc fixes.
27795         * lib/unictype.h: Doc fixes.
27796
27797 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27798
27799         Port coreutils 7.2 to Solaris 8.
27800
27801         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
27802         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
27803         for Solaris 8.  This is a bit of a hack, as it means it's the
27804         caller's responsibility to add -lnsl if needed, but most likely it
27805         won't be needed since only getaddrinfo uses this and getaddrinfo
27806         isn't needed on Solaris 8.
27807
27808         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
27809         problem to Solaris 8 encountered with coreutils 7.2, which
27810         resulted in a message "fnmatch.c:292: warning: passing argument 4
27811         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
27812         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
27813
27814 2009-04-03  Simon Josefsson  <simon@josefsson.org>
27815
27816         * m4/ld-version-script.m4: Add FIXME comment.
27817
27818 2009-04-02  Simon Josefsson  <simon@josefsson.org>
27819
27820         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
27821         SOVERSION variable.
27822
27823 2009-04-02  Bruno Haible  <bruno@clisp.org>
27824
27825         * Makefile (info, html, dvi, pdf): Combine the rules.
27826         Suggested by Jim Meyering.
27827
27828 2009-04-01  Bruno Haible  <bruno@clisp.org>
27829
27830         * Makefile (info, html, dvi, pdf): New targets.
27831         Reported by Reuben Thomas <rrt@sc3d.org>.
27832
27833 2009-04-01  Bruno Haible  <bruno@clisp.org>
27834
27835         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
27836         can be put into PATH.
27837         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
27838
27839 2009-04-01  Bruno Haible  <bruno@clisp.org>
27840
27841         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
27842
27843 2009-04-01  Bruno Haible  <bruno@clisp.org>
27844
27845         Rename module 'visibility'.
27846         * modules/lib-symbol-visibility: Renamed from modules/visibility.
27847         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
27848         * doc/gnulib.texi: Update.
27849         * MODULES.html.sh (Misc): Update.
27850         * NEWS: Mention the change.
27851
27852 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27853
27854         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
27855         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
27856         Eric Blake <ebb9@byu.net> for review.
27857         * MODULES.html.sh: Add lib-msvc-compat.
27858         * doc/gnulib.texi: Link to new section.
27859         * m4/ld-output-def.m4: New file.
27860         * doc/ld-output-def.texi: New file.
27861
27862 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27863
27864         Rename ld-version-script to lib-symbol-versions.  Suggested by
27865         Bruno Haible <bruno@clisp.org>.
27866         * modules/ld-version-script: Renamed to lib-symbol-versions.
27867         * doc/ld-version-script.texi: Fix module name.
27868         * MODULES.html.sh: Add lib-symbol-versions.
27869
27870 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27871
27872         * modules/u64-tests: New file.
27873         * tests/test-u64.c: New file.
27874
27875 2009-03-04  Simon Josefsson  <simon@josefsson.org>
27876
27877         * MODULES.html.sh: Mention u64.
27878         * modules/u64: New module.
27879         * modules/crypto/sha512: Depend on u64 module instead of providing
27880         u64.h.
27881
27882 2009-03-27  Eric Blake  <ebb9@byu.net>
27883
27884         test-strerror: make debugging EAI_SYSTEM easier
27885         * modules/getaddrinfo-tests (Depends-on): Add strerror.
27886         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
27887         failure was EAI_SYSTEM.
27888
27889 2009-03-25  Bruno Haible  <bruno@clisp.org>
27890
27891         Fix a problem with --enable-relocatable on Solaris 7.
27892         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
27893         since 2008-02-24.
27894
27895 2009-03-25  Eric Blake  <ebb9@byu.net>
27896
27897         test-sockets: avoid gcc warning
27898         * tests/test-sockets.c (main): Silence compiler warning.
27899
27900 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27901
27902         New modules nproc, pthread, contributed by Glen Lenker.
27903
27904         * MODULES.html.sh: Add pthread, nproc.
27905         * lib/nproc.c: New file.
27906         * lib/nproc.h: New file.
27907         * lib/pthread.in.h: New file.
27908         * m4/pthread.m4: New file.
27909         * modules/nproc: New file.
27910         * modules/pthread: New file.
27911
27912 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27913
27914         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
27915         New variable.
27916
27917 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
27918
27919         filevercmp: handle simple~ and numbered.~3~ backup suffixes
27920         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
27921         * tests/test-filevercmp.c: Add tests for backup suffixes.
27922
27923 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27924
27925         * modules/stdlib (Depends-on): Add stdint, needed when defining
27926         struct random_data on, for example, HP-UX 10.20.  Reported by
27927         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27928
27929 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27930
27931         * lib/readline.c (readline): Call fflush on stdout after printing
27932         prompt.
27933
27934 2009-03-20  Bruno Haible  <bruno@clisp.org>
27935
27936         Remove dependency from 'close' module to -lws2_32 on native Windows.
27937         * lib/close-hook.h: New file.
27938         * lib/close-hook.c: New file.
27939         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
27940         w32sock.h.
27941         (_gl_close_fd_maybe_socket): Remove function.
27942         (rpl_close): Invoke execute_all_close_hooks instead of
27943         _gl_close_fd_maybe_socket.
27944         * lib/sockets.c: Include close-hook.h, w32sock.h.
27945         (close_fd_maybe_socket): New function, essentially from lib/close.c.
27946         (close_sockets_hook): New variable.
27947         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
27948         (gl_sockets_cleanup): Unregister it.
27949         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
27950         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
27951         * modules/close-hook: New file.
27952         * modules/close (Files): Remove lib/w32sock.h.
27953         (Depends-on): Add close-hook.
27954         (Link): Remove section.
27955         * modules/sockets (Files): Add lib/w32sock.h.
27956         (Depends-on): Add close-hook.
27957         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
27958         invocation.
27959         * NEWS: Mention that LIB_CLOSE is gone.
27960
27961 2009-03-23  Eric Blake  <ebb9@byu.net>
27962
27963         signal-tests: test previous patch
27964         * tests/test-signal.c: New file.
27965         * modules/signal-tests: Likewise.
27966
27967         signal.h: always support 'volatile sig_atomic_t'
27968         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
27969         (gl_SIGNAL_H_DEFAULTS): Add a default.
27970         * modules/signal (Makefile.am): Substitute if needed.
27971         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
27972         users can blindly add volatile.
27973         * doc/posix-headers/signal.texi (signal.h): Document it.
27974         Reported by Matthew Woehlke.
27975
27976 2009-03-23  Jim Meyering  <meyering@redhat.com>
27977
27978         pathmax: PATH_MAX: use pathconf only when available
27979         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
27980         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
27981         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
27982         This avoids a link failure in a PSP cross-compilation environment
27983         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
27984
27985         * lib/vasnprintf.c (divide): Fix typo in comment.
27986
27987 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27988
27989         * gnulib-tool (func_filter_filelist): Fix comment.
27990
27991 2009-03-20  Bruno Haible  <bruno@clisp.org>
27992
27993         Make sockets.h self-contained.
27994         * lib/sockets.c: Include sockets.h first.
27995         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
27996
27997 2009-03-19  Eric Blake  <ebb9@byu.net>
27998
27999         doc: mention more functions added in cygwin 1.7.0
28000         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
28001         addition.
28002         * doc/posix-functions/log2f.texi: Likewise.
28003
28004 2009-03-19  Jim Meyering  <meyering@redhat.com>
28005
28006         fsusage: avoid syntax error due to statement-before-declaration
28007         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
28008         after all declarations.  Reported by Matthew Woehlke in
28009         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
28010
28011 2009-03-18  Eric Blake  <ebb9@byu.net>
28012
28013         build-aux/compile: sync from automake
28014         * build-aux/compile: New file, from automake.
28015         * config/srclist.txt: Mention build-aux/compile.
28016
28017 2009-03-17  Bruno Haible  <bruno@clisp.org>
28018
28019         * lib/git-merge-changelog.c: Fix typo in comment.
28020         Reported by Reuben Thomas <rrt@sc3d.org>.
28021
28022 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
28023
28024         * m4/regex.m4: update and improve help for
28025         --without-included-regex.
28026
28027 2009-03-17  Simon Josefsson  <simon@josefsson.org>
28028
28029         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
28030         failure on missing include files.
28031
28032 2009-03-17  Eric Blake  <ebb9@byu.net>
28033
28034         doc: mention more functions added in cygwin 1.7.0
28035         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
28036         addition.
28037         * doc/posix-functions/fwscanf.texi: Likewise.
28038         * doc/posix-functions/swprintf.texi: Likewise.
28039         * doc/posix-functions/swscanf.texi: Likewise.
28040         * doc/posix-functions/vfwprintf.texi: Likewise.
28041         * doc/posix-functions/vfwscanf.texi: Likewise.
28042         * doc/posix-functions/vswprintf.texi: Likewise.
28043         * doc/posix-functions/vswscanf.texi: Likewise.
28044         * doc/posix-functions/vwprintf.texi: Likewise.
28045         * doc/posix-functions/vwscanf.texi: Likewise.
28046         * doc/posix-functions/wcscasecmp.texi: Likewise.
28047         * doc/posix-functions/wcsdup.texi: Likewise.
28048         * doc/posix-functions/wcsftime.texi: Likewise.
28049         * doc/posix-functions/wcsncasecmp.texi: Likewise.
28050         * doc/posix-functions/wprintf.texi: Likewise.
28051         * doc/posix-functions/wscanf.texi: Likewise.
28052         * doc/glibc-functions/gethostbyname2.texi: Likewise.
28053
28054 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28055
28056         maint.mk: really add $(AM_MAKEFLAGS)
28057         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
28058         was inadvertently omitted in the last commit.
28059         Spotted by Bruno Haible.
28060
28061         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
28062         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
28063         $(AM_MAKEFLAGS)' rather than plain `make'.
28064
28065         gnulib-tool: execute $MAKE not make
28066         * gnulib-tool: Default $MAKE to 'make'.
28067         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
28068         than make.  Initialize $MAKE in the do-autobuild script.
28069
28070         gnulib-tool: use $MAKE not make in generated files
28071         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
28072         make, in generated files.  Initialize $MAKE in the do-autobuild
28073         script.
28074
28075         * top/GNUmakefile (_have-git-version-gen): Fix typo.
28076
28077         GNUmakefile: disable parallelism only for multiple, recursive targets
28078         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
28079         additions in the Makefile.
28080         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
28081         by Automake.
28082         (.NOTPARALLEL): Only disable parallel builds if multiple targets
28083         are listed on the command line and at least one of them is
28084         listed in $(ALL_RECURSIVE_TARGETS).
28085
28086 2009-03-14  Bruno Haible  <bruno@clisp.org>
28087
28088         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
28089         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
28090         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
28091         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
28092         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
28093         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
28094         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
28095         unistr/u8-uctomb.
28096         * modules/unistr/u8-strchr (Depends-on): Likewise.
28097         * modules/unistr/u8-strrchr (Depends-on): Likewise.
28098         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
28099         unistr/u16-uctomb.
28100         * modules/unistr/u16-strchr (Depends-on): Likewise.
28101         * modules/unistr/u16-strrchr (Depends-on): Likewise.
28102
28103 2009-03-12  Bruno Haible  <bruno@clisp.org>
28104
28105         Work around select() bug on Interix 3.5.
28106         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
28107         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
28108         * m4/select.m4: New file.
28109         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
28110         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
28111         * modules/select (Files): Add m4/select.m4.
28112         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
28113         * modules/nanosleep (Depends-on): Add select.
28114         * modules/poll (Depends-on): Likewise.
28115         * doc/posix-functions/select.texi: Mention the Interix bug.
28116         Reported by Markus Duft <mduft@gentoo.org>.
28117
28118         * lib/select.c: Renamed from lib/winsock-select.c.
28119         * modules/select (Files): Add lib/select.c, remove
28120         lib/winsock-select.c.
28121         (configure.ac): Update.
28122
28123 2009-03-12  Jim Meyering  <meyering@redhat.com>
28124
28125         avoid gcc warnings about unused macro definitions
28126         * lib/readtokens.c (STREQ): Remove unused definition.
28127         * lib/xmalloc.c (SIZE_MAX): Likewise.
28128         * lib/openat-die.c (N_): Likewise.
28129         * lib/mountlist.c (SIZE_MAX): Remove definition.
28130         Instead, include <stdint.h>.
28131         * lib/readutmp.c: Likewise.
28132         * modules/readutmp (Depends-on): Add stdint.
28133         * modules/mountlist (Depends-on): Add stdint.
28134         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
28135
28136 2009-03-10  Bruno Haible  <bruno@clisp.org>
28137
28138         Tests for module 'mbmemcasecoll'.
28139         * modules/mbmemcasecoll-tests: New file.
28140         * tests/test-mbmemcasecoll1.sh: New file.
28141         * tests/test-mbmemcasecoll2.sh: New file.
28142         * tests/test-mbmemcasecoll3.sh: New file.
28143         * tests/test-mbmemcasecoll.c: New file.
28144
28145         New module 'mbmemcasecoll'.
28146         * lib/mbmemcasecoll.h: New file.
28147         * lib/mbmemcasecoll.c: New file.
28148         * modules/mbmemcasecoll: New file.
28149
28150         * tests/test-mbmemcasecmp.h: New file, extracted from
28151         tests/test-mbmemcasecmp.c.
28152         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
28153         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
28154         (main): Update.
28155         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
28156
28157 2009-03-09  Bruno Haible  <bruno@clisp.org>
28158
28159         Tests for module 'mbmemcasecmp'.
28160         * modules/mbmemcasecmp-tests: New file.
28161         * tests/test-mbmemcasecmp1.sh: New file.
28162         * tests/test-mbmemcasecmp2.sh: New file.
28163         * tests/test-mbmemcasecmp3.sh: New file.
28164         * tests/test-mbmemcasecmp.c: New file.
28165
28166         New module 'mbmemcasecmp'.
28167         * lib/mbmemcasecmp.h: New file.
28168         * lib/mbmemcasecmp.c: New file.
28169         * modules/mbmemcasecmp: New file.
28170
28171 2009-03-09  Bruno Haible  <bruno@clisp.org>
28172
28173         Tests for module 'unicase/ulc-casecoll'.
28174         * modules/unicase/ulc-casecoll-tests: New file.
28175         * tests/unicase/test-ulc-casecoll1.sh: New file.
28176         * tests/unicase/test-ulc-casecoll2.sh: New file.
28177         * tests/unicase/test-ulc-casecoll.c: New file.
28178
28179         New module 'unicase/ulc-casecoll'.
28180         * lib/unicase.h (ulc_casecoll): New declaration.
28181         * lib/unicase/ulc-casecoll.c: New file.
28182         * modules/unicase/ulc-casecoll: New file.
28183
28184         New module 'unicase/ulc-casexfrm'.
28185         * lib/unicase.h (ulc_casexfrm): New declaration.
28186         * lib/unicase/ulc-casexfrm.c: New file.
28187         * modules/unicase/ulc-casexfrm: New file.
28188
28189 2009-03-09  Bruno Haible  <bruno@clisp.org>
28190
28191         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
28192         invocations.
28193
28194         * m4/mbscasecmp.m4: Remove file.
28195         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
28196         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
28197
28198         * m4/mbscasestr.m4: Remove file.
28199         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
28200         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
28201
28202         * m4/mbschr.m4: Remove file.
28203         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
28204         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
28205
28206         * m4/mbscspn.m4: Remove file.
28207         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
28208         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
28209
28210         * m4/mbslen.m4: Remove file.
28211         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
28212         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
28213
28214         * m4/mbsncasecmp.m4: Remove file.
28215         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
28216         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
28217
28218         * m4/mbsnlen.m4: Remove file.
28219         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
28220         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
28221
28222         * m4/mbspbrk.m4: Remove file.
28223         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
28224         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
28225
28226         * m4/mbspcasecmp.m4: Remove file.
28227         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
28228         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
28229
28230         * m4/mbsrchr.m4: Remove file.
28231         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
28232         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
28233
28234         * m4/mbssep.m4: Remove file.
28235         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
28236         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
28237
28238         * m4/mbsspn.m4: Remove file.
28239         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
28240         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
28241
28242         * m4/mbsstr.m4: Remove file.
28243         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
28244         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
28245
28246         * m4/mbstok_r.m4: Remove file.
28247         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
28248         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
28249
28250         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
28251
28252         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
28253         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
28254
28255         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
28256
28257 2009-03-08  Bruno Haible  <bruno@clisp.org>
28258
28259         Tests for module 'unicase/ulc-casecmp'.
28260         * modules/unicase/ulc-casecmp-tests: New file.
28261         * tests/unicase/test-ulc-casecmp1.sh: New file.
28262         * tests/unicase/test-ulc-casecmp2.sh: New file.
28263         * tests/unicase/test-ulc-casecmp.c: New file.
28264
28265         New module 'unicase/ulc-casecmp'.
28266         * lib/unicase.h (ulc_casecmp): New declaration.
28267         * lib/unicase/ulc-casecmp.c: New file.
28268         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
28269         'const SRC_UNIT *'.
28270         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
28271         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
28272         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
28273         * modules/unicase/ulc-casecmp: New file.
28274
28275         Tests for module 'unicase/u32-is-cased'.
28276         * modules/unicase/u32-is-cased-tests: New file.
28277         * tests/unicase/test-u32-is-cased.c: New file.
28278
28279         Tests for module 'unicase/u16-is-cased'.
28280         * modules/unicase/u16-is-cased-tests: New file.
28281         * tests/unicase/test-u16-is-cased.c: New file.
28282
28283         Tests for module 'unicase/u8-is-cased'.
28284         * modules/unicase/u8-is-cased-tests: New file.
28285         * tests/unicase/test-u8-is-cased.c: New file.
28286         * tests/unicase/test-is-cased.h: New file.
28287
28288         New module 'unicase/u32-is-cased'.
28289         * lib/unicase/u32-is-cased.c: New file.
28290         * modules/unicase/u32-is-cased: New file.
28291
28292         New module 'unicase/u16-is-cased'.
28293         * lib/unicase/u16-is-cased.c: New file.
28294         * modules/unicase/u16-is-cased: New file.
28295
28296         New module 'unicase/u8-is-cased'.
28297         * lib/unicase/u8-is-cased.c: New file.
28298         * lib/unicase/u-is-cased.h: New file.
28299         * modules/unicase/u8-is-cased: New file.
28300
28301         Tests for module 'unicase/u32-is-casefolded'.
28302         * modules/unicase/u32-is-casefolded-tests: New file.
28303         * tests/unicase/test-u32-is-casefolded.c: New file.
28304
28305         Tests for module 'unicase/u16-is-casefolded'.
28306         * modules/unicase/u16-is-casefolded-tests: New file.
28307         * tests/unicase/test-u16-is-casefolded.c: New file.
28308
28309         Tests for module 'unicase/u8-is-casefolded'.
28310         * modules/unicase/u8-is-casefolded-tests: New file.
28311         * tests/unicase/test-u8-is-casefolded.c: New file.
28312         * tests/unicase/test-is-casefolded.h: New file.
28313
28314         New module 'unicase/u32-is-casefolded'.
28315         * lib/unicase/u32-is-casefolded.c: New file.
28316         * modules/unicase/u32-is-casefolded: New file.
28317
28318         New module 'unicase/u16-is-casefolded'.
28319         * lib/unicase/u16-is-casefolded.c: New file.
28320         * modules/unicase/u16-is-casefolded: New file.
28321
28322         New module 'unicase/u8-is-casefolded'.
28323         * lib/unicase/u8-is-casefolded.c: New file.
28324         * modules/unicase/u8-is-casefolded: New file.
28325
28326         Tests for module 'unicase/u32-is-titlecase'.
28327         * modules/unicase/u32-is-titlecase-tests: New file.
28328         * tests/unicase/test-u32-is-titlecase.c: New file.
28329
28330         Tests for module 'unicase/u16-is-titlecase'.
28331         * modules/unicase/u16-is-titlecase-tests: New file.
28332         * tests/unicase/test-u16-is-titlecase.c: New file.
28333
28334         Tests for module 'unicase/u8-is-titlecase'.
28335         * modules/unicase/u8-is-titlecase-tests: New file.
28336         * tests/unicase/test-u8-is-titlecase.c: New file.
28337         * tests/unicase/test-is-titlecase.h: New file.
28338
28339         New module 'unicase/u32-is-titlecase'.
28340         * lib/unicase/u32-is-titlecase.c: New file.
28341         * modules/unicase/u32-is-titlecase: New file.
28342
28343         New module 'unicase/u16-is-titlecase'.
28344         * lib/unicase/u16-is-titlecase.c: New file.
28345         * modules/unicase/u16-is-titlecase: New file.
28346
28347         New module 'unicase/u8-is-titlecase'.
28348         * lib/unicase/u8-is-titlecase.c: New file.
28349         * modules/unicase/u8-is-titlecase: New file.
28350
28351         Tests for module 'unicase/u32-is-lowercase'.
28352         * modules/unicase/u32-is-lowercase-tests: New file.
28353         * tests/unicase/test-u32-is-lowercase.c: New file.
28354
28355         Tests for module 'unicase/u16-is-lowercase'.
28356         * modules/unicase/u16-is-lowercase-tests: New file.
28357         * tests/unicase/test-u16-is-lowercase.c: New file.
28358
28359         Tests for module 'unicase/u8-is-lowercase'.
28360         * modules/unicase/u8-is-lowercase-tests: New file.
28361         * tests/unicase/test-u8-is-lowercase.c: New file.
28362         * tests/unicase/test-is-lowercase.h: New file.
28363
28364         New module 'unicase/u32-is-lowercase'.
28365         * lib/unicase/u32-is-lowercase.c: New file.
28366         * modules/unicase/u32-is-lowercase: New file.
28367
28368         New module 'unicase/u16-is-lowercase'.
28369         * lib/unicase/u16-is-lowercase.c: New file.
28370         * modules/unicase/u16-is-lowercase: New file.
28371
28372         New module 'unicase/u8-is-lowercase'.
28373         * lib/unicase/u8-is-lowercase.c: New file.
28374         * modules/unicase/u8-is-lowercase: New file.
28375
28376         Tests for module 'unicase/u32-is-uppercase'.
28377         * modules/unicase/u32-is-uppercase-tests: New file.
28378         * tests/unicase/test-u32-is-uppercase.c: New file.
28379
28380         Tests for module 'unicase/u16-is-uppercase'.
28381         * modules/unicase/u16-is-uppercase-tests: New file.
28382         * tests/unicase/test-u16-is-uppercase.c: New file.
28383
28384         Tests for module 'unicase/u8-is-uppercase'.
28385         * modules/unicase/u8-is-uppercase-tests: New file.
28386         * tests/unicase/test-u8-is-uppercase.c: New file.
28387         * tests/unicase/test-is-uppercase.h: New file.
28388
28389         New module 'unicase/u32-is-uppercase'.
28390         * lib/unicase/u32-is-uppercase.c: New file.
28391         * modules/unicase/u32-is-uppercase: New file.
28392
28393         New module 'unicase/u16-is-uppercase'.
28394         * lib/unicase/u16-is-uppercase.c: New file.
28395         * modules/unicase/u16-is-uppercase: New file.
28396
28397         New module 'unicase/u8-is-uppercase'.
28398         * lib/unicase/u8-is-uppercase.c: New file.
28399         * modules/unicase/u8-is-uppercase: New file.
28400
28401         New module 'unicase/u32-is-invariant'.
28402         * lib/unicase/u32-is-invariant.c: New file.
28403         * modules/unicase/u32-is-invariant: New file.
28404
28405         New module 'unicase/u16-is-invariant'.
28406         * lib/unicase/u16-is-invariant.c: New file.
28407         * modules/unicase/u16-is-invariant: New file.
28408
28409         New module 'unicase/u8-is-invariant'.
28410         * lib/unicase/u8-is-invariant.c: New file.
28411         * lib/unicase/invariant.h: New file.
28412         * lib/unicase/u-is-invariant.h: New file.
28413         * modules/unicase/u8-is-invariant: New file.
28414
28415         Tests for module 'unicase/u32-casecoll'.
28416         * modules/unicase/u32-casecoll-tests: New file.
28417         * tests/unicase/test-u32-casecoll.c: New file.
28418
28419         Tests for module 'unicase/u16-casecoll'.
28420         * modules/unicase/u16-casecoll-tests: New file.
28421         * tests/unicase/test-u16-casecoll.c: New file.
28422
28423         Tests for module 'unicase/u8-casecoll'.
28424         * modules/unicase/u8-casecoll-tests: New file.
28425         * tests/unicase/test-u8-casecoll.c: New file.
28426
28427         New module 'unicase/u32-casecoll'.
28428         * lib/unicase/u32-casecoll.c: New file.
28429         * modules/unicase/u32-casecoll: New file.
28430
28431         New module 'unicase/u16-casecoll'.
28432         * lib/unicase/u16-casecoll.c: New file.
28433         * modules/unicase/u16-casecoll: New file.
28434
28435         New module 'unicase/u8-casecoll'.
28436         * lib/unicase/u8-casecoll.c: New file.
28437         * lib/unicase/u-casecoll.h: New file.
28438         * modules/unicase/u8-casecoll: New file.
28439
28440         New module 'unicase/u32-casexfrm'.
28441         * lib/unicase/u32-casexfrm.c: New file.
28442         * modules/unicase/u32-casexfrm: New file.
28443
28444         New module 'unicase/u16-casexfrm'.
28445         * lib/unicase/u16-casexfrm.c: New file.
28446         * modules/unicase/u16-casexfrm: New file.
28447
28448         New module 'unicase/u8-casexfrm'.
28449         * lib/unicase/u8-casexfrm.c: New file.
28450         * lib/unicase/u-casexfrm.h: New file.
28451         * modules/unicase/u8-casexfrm: New file.
28452
28453         Tests for module 'unicase/u32-casecmp'.
28454         * modules/unicase/u32-casecmp-tests: New file.
28455         * tests/unicase/test-u32-casecmp.c: New file.
28456
28457         Tests for module 'unicase/u16-casecmp'.
28458         * modules/unicase/u16-casecmp-tests: New file.
28459         * tests/unicase/test-u16-casecmp.c: New file.
28460
28461         Tests for module 'unicase/u8-casecmp'.
28462         * modules/unicase/u8-casecmp-tests: New file.
28463         * tests/unicase/test-u8-casecmp.c: New file.
28464         * tests/unicase/test-casecmp.h: New file.
28465
28466         New module 'unicase/u32-casecmp'.
28467         * lib/unicase/u32-casecmp.c: New file.
28468         * modules/unicase/u32-casecmp: New file.
28469
28470         New module 'unicase/u16-casecmp'.
28471         * lib/unicase/u16-casecmp.c: New file.
28472         * modules/unicase/u16-casecmp: New file.
28473
28474         New module 'unicase/u8-casecmp'.
28475         * lib/unicase/u8-casecmp.c: New file.
28476         * lib/unicase/u-casecmp.h: New file.
28477         * modules/unicase/u8-casecmp: New file.
28478
28479         Tests for module 'unicase/u32-casefold'.
28480         * modules/unicase/u32-casefold-tests: New file.
28481         * tests/unicase/test-u32-casefold.c: New file.
28482
28483         Tests for module 'unicase/u16-casefold'.
28484         * modules/unicase/u16-casefold-tests: New file.
28485         * tests/unicase/test-u16-casefold.c: New file.
28486
28487         Tests for module 'unicase/u8-casefold'.
28488         * modules/unicase/u8-casefold-tests: New file.
28489         * tests/unicase/test-u8-casefold.c: New file.
28490
28491         New module 'unicase/u32-casefold'.
28492         * lib/unicase/u32-casefold.c: New file.
28493         * modules/unicase/u32-casefold: New file.
28494
28495         New module 'unicase/u16-casefold'.
28496         * lib/unicase/u16-casefold.c: New file.
28497         * modules/unicase/u16-casefold: New file.
28498
28499         New module 'unicase/u8-casefold'.
28500         * lib/unicase/u8-casefold.c: New file.
28501         * lib/unicase/u-casefold.h: New file.
28502         * modules/unicase/u8-casefold: New file.
28503
28504         New module 'unicase/tocasefold'.
28505         * lib/unicase/casefold.h: New file.
28506         * lib/unicase/tocasefold.c: New file.
28507         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
28508         * modules/unicase/tocasefold: New file.
28509
28510         Tests for module 'unicase/u32-totitle'.
28511         * modules/unicase/u32-totitle-tests: New file.
28512         * tests/unicase/test-u32-totitle.c: New file.
28513
28514         Tests for module 'unicase/u16-totitle'.
28515         * modules/unicase/u16-totitle-tests: New file.
28516         * tests/unicase/test-u16-totitle.c: New file.
28517
28518         Tests for module 'unicase/u8-totitle'.
28519         * modules/unicase/u8-totitle-tests: New file.
28520         * tests/unicase/test-u8-totitle.c: New file.
28521
28522         New module 'unicase/u32-totitle'.
28523         * lib/unicase/u32-totitle.c: New file.
28524         * modules/unicase/u32-totitle: New file.
28525
28526         New module 'unicase/u16-totitle'.
28527         * lib/unicase/u16-totitle.c: New file.
28528         * modules/unicase/u16-totitle: New file.
28529
28530         New module 'unicase/u8-totitle'.
28531         * lib/unicase/u8-totitle.c: New file.
28532         * lib/unicase/u-totitle.h: New file.
28533         * modules/unicase/u8-totitle: New file.
28534
28535         Tests for module 'unicase/u32-tolower'.
28536         * modules/unicase/u32-tolower-tests: New file.
28537         * tests/unicase/test-u32-tolower.c: New file.
28538
28539         Tests for module 'unicase/u16-tolower'.
28540         * modules/unicase/u16-tolower-tests: New file.
28541         * tests/unicase/test-u16-tolower.c: New file.
28542
28543         Tests for module 'unicase/u8-tolower'.
28544         * modules/unicase/u8-tolower-tests: New file.
28545         * tests/unicase/test-u8-tolower.c: New file.
28546
28547         New module 'unicase/u32-tolower'.
28548         * lib/unicase/u32-tolower.c: New file.
28549         * modules/unicase/u32-tolower: New file.
28550
28551         New module 'unicase/u16-tolower'.
28552         * lib/unicase/u16-tolower.c: New file.
28553         * modules/unicase/u16-tolower: New file.
28554
28555         New module 'unicase/u8-tolower'.
28556         * lib/unicase/u8-tolower.c: New file.
28557         * modules/unicase/u8-tolower: New file.
28558
28559         Tests for module 'unicase/u32-toupper'.
28560         * modules/unicase/u32-toupper-tests: New file.
28561         * tests/unicase/test-u32-toupper.c: New file.
28562
28563         Tests for module 'unicase/u16-toupper'.
28564         * modules/unicase/u16-toupper-tests: New file.
28565         * tests/unicase/test-u16-toupper.c: New file.
28566
28567         Tests for module 'unicase/u8-toupper'.
28568         * modules/unicase/u8-toupper-tests: New file.
28569         * tests/unicase/test-u8-toupper.c: New file.
28570
28571         New module 'unicase/u32-toupper'.
28572         * lib/unicase/u32-toupper.c: New file.
28573         * modules/unicase/u32-toupper: New file.
28574
28575         New module 'unicase/u16-toupper'.
28576         * lib/unicase/u16-toupper.c: New file.
28577         * modules/unicase/u16-toupper: New file.
28578
28579         New module 'unicase/u8-toupper'.
28580         * lib/unicase/u8-toupper.c: New file.
28581         * modules/unicase/u8-toupper: New file.
28582
28583         New module 'unicase/u32-casemap'.
28584         * lib/unicase/u32-casemap.c: New file.
28585         * modules/unicase/u32-casemap: New file.
28586
28587         New module 'unicase/u16-casemap'.
28588         * lib/unicase/u16-casemap.c: New file.
28589         * modules/unicase/u16-casemap: New file.
28590
28591         New module 'unicase/u8-casemap'.
28592         * lib/unicase/unicasemap.h: New file.
28593         * lib/unicase/u8-casemap.c: New file.
28594         * lib/unicase/u-casemap.h: New file.
28595         * modules/unicase/u8-casemap: New file.
28596
28597         New module 'unicase/special-casing'.
28598         * lib/unicase/special-casing.h: New file.
28599         * lib/unicase/special-casing.c: New file.
28600         * lib/unicase/special-casing-table.gperf: New file, generated by
28601         gen-uni-tables.c.
28602         * modules/unicase/special-casing: New file.
28603
28604         Tests for module 'unicase/locale-language'.
28605         * modules/unicase/locale-language-tests: New file.
28606         * tests/unicase/test-locale-language.sh: New file.
28607         * tests/unicase/test-locale-language.c: New file.
28608
28609         New module 'unicase/locale-language'.
28610         * lib/unicase/locale-language.c: New file.
28611         * lib/unicase/locale-languages.gperf: New file.
28612         * modules/unicase/locale-language: New file.
28613
28614         Generate more tables for case conversion and case folding.
28615         * lib/gen-uni-tables.c (SCC_*): New enum items.
28616         (struct special_casing_rule): New type.
28617         (casing_rules, num_casing_rules, allocated_casing_rules): New
28618         variables.
28619         (add_casing_rule, fill_casing_rules): New functions.
28620         (struct casefold_rule): New type.
28621         (casefolding_rules, num_casefolding_rules,
28622         allocated_casefolding_rules): New variables.
28623         (fill_casefolding_rules): New function.
28624         (unicode_casefold): New variable.
28625         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
28626         sort_casing_rules, output_casing_rules): New functions.
28627         (main): Accept to more arguments: SpecialCasing.txt and
28628         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
28629         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
28630         Output mapping for casefolding.
28631
28632         * lib/unicase.h: Include stdbool.h, uninorm.h.
28633         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
28634         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
28635         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
28636         arguments.
28637         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
28638         resultp arguments.
28639         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
28640         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
28641         resultp arguments.
28642         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
28643         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
28644         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
28645         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
28646         declarations.
28647         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
28648
28649 2009-03-08  Bruno Haible  <bruno@clisp.org>
28650
28651         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28652         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
28653         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
28654         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28655
28656 2009-03-07  Bruno Haible  <bruno@clisp.org>
28657
28658         Adjust u*_normcmp, u*_normcoll API.
28659         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28660         u16_normcoll, u32_normcoll): Change failure conventions.
28661         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
28662         errno and return -1.
28663         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28664
28665 2009-03-07  Bruno Haible  <bruno@clisp.org>
28666
28667         Tests for module 'uninorm/u32-normcoll'.
28668         * modules/uninorm/u32-normcoll-tests: New file.
28669         * tests/uninorm/test-u32-normcoll.c: New file.
28670
28671         Tests for module 'uninorm/u16-normcoll'.
28672         * modules/uninorm/u16-normcoll-tests: New file.
28673         * tests/uninorm/test-u16-normcoll.c: New file.
28674
28675         Tests for module 'uninorm/u8-normcoll'.
28676         * modules/uninorm/u8-normcoll-tests: New file.
28677         * tests/uninorm/test-u8-normcoll.c: New file.
28678
28679 2009-03-07  Bruno Haible  <bruno@clisp.org>
28680
28681         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
28682         tests/uninorm/test-u32-normcmp.c.
28683         * tests/uninorm/test-u32-normcmp.c: Include it.
28684         (test_nonascii): New function, extracted from main. Add some more
28685         tests.
28686         (main): Invoke test_ascii and test_nonascii.
28687         * modules/uninorm/u32-normcmp-tests (Files): Add
28688         tests/uninorm/test-u32-normcmp.h.
28689         (Depends-on): Remove uninorm/u32-normcmp.
28690
28691         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
28692         tests/uninorm/test-u16-normcmp.c.
28693         * tests/uninorm/test-u16-normcmp.c: Include it.
28694         (test_nonascii): New function, extracted from main. Add some more
28695         tests.
28696         (main): Invoke test_ascii and test_nonascii.
28697         * modules/uninorm/u16-normcmp-tests (Files): Add
28698         tests/uninorm/test-u16-normcmp.h.
28699         (Depends-on): Remove uninorm/u16-normcmp.
28700
28701         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
28702         tests/uninorm/test-u8-normcmp.c.
28703         * tests/uninorm/test-u8-normcmp.c: Include it.
28704         (test_nonascii): New function, extracted from main. Add some more
28705         tests.
28706         (main): Invoke test_ascii and test_nonascii.
28707         * modules/uninorm/u8-normcmp-tests (Files): Add
28708         tests/uninorm/test-u8-normcmp.h.
28709         (Depends-on): Remove uninorm/u8-normcmp.
28710
28711 2009-03-07  Bruno Haible  <bruno@clisp.org>
28712
28713         New module 'uninorm/u32-normcoll'.
28714         * lib/uninorm/u32-normcoll.c: New file.
28715         * modules/uninorm/u32-normcoll: New file.
28716
28717         New module 'uninorm/u16-normcoll'.
28718         * lib/uninorm/u16-normcoll.c: New file.
28719         * modules/uninorm/u16-normcoll: New file.
28720
28721         New module 'uninorm/u8-normcoll'.
28722         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
28723         declarations.
28724         * lib/uninorm/u8-normcoll.c: New file.
28725         * lib/uninorm/u-normcoll.h: New file.
28726         * modules/uninorm/u8-normcoll: New file.
28727
28728         New module 'uninorm/u32-normxfrm'.
28729         * lib/uninorm/u32-normxfrm.c: New file.
28730         * modules/uninorm/u32-normxfrm: New file.
28731
28732         New module 'uninorm/u16-normxfrm'.
28733         * lib/uninorm/u16-normxfrm.c: New file.
28734         * modules/uninorm/u16-normxfrm: New file.
28735
28736         New module 'uninorm/u8-normxfrm'.
28737         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
28738         declarations.
28739         * lib/uninorm/u8-normxfrm.c: New file.
28740         * lib/uninorm/u-normxfrm.h: New file.
28741         * modules/uninorm/u8-normxfrm: New file.
28742
28743 2009-03-07  Bruno Haible  <bruno@clisp.org>
28744
28745         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
28746         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
28747         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
28748
28749 2009-03-07  Bruno Haible  <bruno@clisp.org>
28750
28751         New module 'memxfrm'.
28752         * lib/memxfrm.h: New file.
28753         * lib/memxfrm.c: New file.
28754         * modules/memxfrm: New file.
28755
28756 2009-03-07  Bruno Haible  <bruno@clisp.org>
28757
28758         New module 'memcmp2'.
28759         * lib/memcmp2.h: New file.
28760         * lib/memcmp2.c: New file.
28761         * modules/memcmp2: New file.
28762
28763 2009-03-07  Bruno Haible  <bruno@clisp.org>
28764
28765         Tests for module 'uninorm/decomposing-form'.
28766         * modules/uninorm/decomposing-form-tests: New file.
28767         * tests/uninorm/test-decomposing-form.c: New file.
28768
28769         New module 'uninorm/decomposing-form'.
28770         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
28771         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
28772         Add 'decomposing_variant' field.
28773         * lib/uninorm/decomposing-form.c: New file.
28774         * lib/uninorm/nfc.c (uninorm_nfc): Update.
28775         * lib/uninorm/nfd.c (uninorm_nfd): Update.
28776         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
28777         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
28778         * modules/uninorm/decomposing-form: New file.
28779         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
28780         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
28781
28782 2009-03-07  Bruno Haible  <bruno@clisp.org>
28783
28784         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
28785         strings.
28786
28787 2009-03-06  Bruno Haible  <bruno@clisp.org>
28788
28789         Tests for module 'uninorm/u32-normcmp'.
28790         * tests/uninorm/test-u32-normcmp.c: New file.
28791         * modules/uninorm/u32-normcmp-tests: New file.
28792
28793         Tests for module 'uninorm/u16-normcmp'.
28794         * tests/uninorm/test-u16-normcmp.c: New file.
28795         * modules/uninorm/u16-normcmp-tests: New file.
28796
28797         Tests for module 'uninorm/u8-normcmp'.
28798         * tests/uninorm/test-u8-normcmp.c: New file.
28799         * modules/uninorm/u8-normcmp-tests: New file.
28800
28801         New module 'uninorm/u32-normcmp'.
28802         * lib/uninorm/u32-normcmp.c: New file.
28803         * modules/uninorm/u32-normcmp: New file.
28804
28805         New module 'uninorm/u16-normcmp'.
28806         * lib/uninorm/u16-normcmp.c: New file.
28807         * modules/uninorm/u16-normcmp: New file.
28808
28809         New module 'uninorm/u8-normcmp'.
28810         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
28811         declarations.
28812         * lib/uninorm/u8-normcmp.c: New file.
28813         * lib/uninorm/u-normcmp.h: New file.
28814         * modules/uninorm/u8-normcmp: New file.
28815
28816 2009-03-06  Bruno Haible  <bruno@clisp.org>
28817
28818         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
28819         Reported by Eric Blake.
28820
28821 2009-03-06  Eric Blake  <ebb9@byu.net>
28822             Bruno Haible  <bruno@clisp.org>
28823
28824         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
28825         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
28826         condition.
28827         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28828         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
28829         condition.
28830         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28831
28832 2009-03-06  Eric Blake  <ebb9@byu.net>
28833
28834         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
28835         to avoid compiler warnings.
28836         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
28837
28838 2009-03-05  Bruno Haible  <bruno@clisp.org>
28839
28840         * tests/test-ftell.c (main): Disable test beyond end of file on
28841         FreeMiNT.
28842         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28843
28844 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
28845
28846         * lib/filevercmp.c: Move hidden files up in ordering.
28847         * tests/test-filevercmp.c: Add tests for hidden files.
28848
28849 2009-03-04  Bruno Haible  <bruno@clisp.org>
28850
28851         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
28852         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
28853         AM_CFLAGS.
28854         Reported by Simon Josefsson.
28855
28856 2009-03-03  Bruno Haible  <bruno@clisp.org>
28857
28858         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
28859         Reported by Simon Josefsson.
28860
28861         * doc/ld-version-script.texi: Update node reference.
28862
28863 2009-03-03  Bruno Haible  <bruno@clisp.org>
28864
28865         * modules/visibility (License): Change to 'unlimited'.
28866         Suggested by Simon Josefsson.
28867
28868 2009-03-03  Jim Meyering  <meyering@redhat.com>
28869
28870         unlinkdir: cannot_unlink_dir may modify process state
28871         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
28872         it's neither thread-safe nor appropriate for use in a library.
28873
28874 2009-03-03  Eric Blake  <ebb9@byu.net>
28875
28876         test-closein: silence test under Darwin
28877         * tests/test-closein.sh: Ignore stderr from cat, since we don't
28878         care if it dies from EPIPE or EBADF.
28879
28880 2009-03-03  Bruno Haible  <bruno@clisp.org>
28881
28882         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
28883         earlier.
28884         * doc/visibility.texi: Fix @node and @section.
28885
28886 2009-03-03  Simon Josefsson  <simon@josefsson.org>
28887
28888         * doc/gnulib.texi: Link to sections for ld version script and
28889         visibility.
28890         * doc/visibility.texi: Add @node and @section.
28891         * modules/ld-version-script: New module.
28892         * m4/ld-version-script.m4: New file.
28893         * doc/ld-version-script.texi: New file.
28894
28895 2009-03-02  David Lutterkort  <lutter@redhat.com>
28896
28897         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
28898         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28899
28900 2009-03-02  Bruno Haible  <bruno@clisp.org>
28901
28902         * doc/visibility.texi: Mention libtool's -export-symbols option.
28903
28904 2009-03-02  Jim Meyering  <meyering@redhat.com>
28905
28906         announce-gen: new option: --no-print-checksums
28907         * build-aux/announce-gen (usage): Describe it.
28908         (print_checksums): Print a newline here, not in the [*] footnote.
28909         (main): Honor it.
28910
28911 2009-03-01  Bruno Haible  <bruno@clisp.org>
28912
28913         Use socklen_t in the native Windows replacements prototypes.
28914         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
28915         instead of 'int'.
28916         * lib/getsockopt.c (rpl_getsockopt): Likewise.
28917         * lib/setsockopt.c (rpl_setsockopt): Likewise.
28918         * modules/getsockopt (Depends-on): Add socklen.
28919         * modules/setsockopt (Depends-on): Add socklen.
28920
28921 2009-03-01  Bruno Haible  <bruno@clisp.org>
28922
28923         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
28924         least 4.2.
28925
28926 2009-03-01  Eric Blake  <ebb9@byu.net>
28927             Bruno Haible  <bruno@clisp.org>
28928
28929         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
28930         error messages.
28931         * lib/wait-process.c (wait_subprocess): Omit error message about
28932         deadly signal sent to the child of termsigp != NULL.
28933
28934 2009-03-01  Eric Blake  <ebb9@byu.net>
28935
28936         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
28937
28938 2009-03-01  Bruno Haible  <bruno@clisp.org>
28939
28940         Avoid a gcc warning.
28941         * tests/test-sched.c (b): Make global.
28942         Reported by Eric Blake.
28943
28944 2009-01-19  Martin Lambers  <marlam@marlam.de>
28945
28946         Provide POSIX semantics for socket timeout options on W32.
28947         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
28948         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
28949         * modules/setsockopt: Depend on sys_time module for struct timeval.
28950         * modules/getsockopt: Depend on sys_time module for struct timeval.
28951
28952 2009-03-01  Simon Josefsson  <simon@josefsson.org>
28953
28954         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
28955         __USE_GNU, for consistency with netdb.in.h.
28956         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28957
28958 2009-03-01  Bruno Haible  <bruno@clisp.org>
28959
28960         More support for FreeMiNT.
28961         * lib/fseeko.c (rpl_fseeko): Complete last commit.
28962         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28963
28964 2009-03-01  Bruno Haible  <bruno@clisp.org>
28965
28966         More support for FreeMiNT.
28967         * lib/fpurge.c (fpurge): Correct last commit.
28968         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28969
28970 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28971
28972         Fix unportable awk script in vc-list-files.
28973         * build-aux/vc-list-files: In the replacement awk script, use
28974         substr with a second argument of 1, not zero.
28975         Report by Simon Josefsson.
28976
28977 2009-02-28  Bruno Haible  <bruno@clisp.org>
28978
28979         More support for FreeMiNT.
28980         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
28981         to FreeMiNT today.
28982         * lib/fwriting.c (fwriting): Likewise.
28983         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
28984
28985 2009-02-28  Bruno Haible  <bruno@clisp.org>
28986
28987         * tests/test-freadseek.c (main): Disable test beyond end of file on
28988         FreeMiNT.
28989         * tests/test-ftello.c (main): Likewise.
28990         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28991
28992 2009-02-28  Bruno Haible  <bruno@clisp.org>
28993
28994         Add tentative support for FreeMiNT.
28995         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
28996         * lib/fpurge.c (fpurge): Likewise.
28997         * lib/freadable.c (freadable): Likewise.
28998         * lib/freading.c (freading): Likewise.
28999         * lib/freadptr.c (freadptr): Likewise.
29000         * lib/freadseek.c (freadptrinc): Likewise.
29001         * lib/fseeko.c (rpl_fseeko): Likewise.
29002         * lib/fseterr.c (fseterr): Likewise.
29003         * lib/fwritable.c (fwritable): Likewise.
29004         * lib/fwriting.c (fwriting): Likewise.
29005         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
29006         Hourihane.
29007         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29008
29009 2009-02-28  Bruno Haible  <bruno@clisp.org>
29010
29011         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
29012         SIGCHLD.
29013         Reported by Jim Meyering.
29014
29015 2009-02-28  Bruno Haible  <bruno@clisp.org>
29016
29017         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
29018         Mention the results of these tests on various platforms.
29019         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
29020         order.
29021         * doc/posix-functions/printf.texi: Likewise.
29022         * doc/posix-functions/snprintf.texi: Likewise.
29023         * doc/posix-functions/sprintf.texi: Likewise.
29024         * doc/posix-functions/vfprintf.texi: Likewise.
29025         * doc/posix-functions/vprintf.texi: Likewise.
29026         * doc/posix-functions/vsnprintf.texi: Likewise.
29027         * doc/posix-functions/vsprintf.texi: Likewise.
29028         * doc/glibc-functions/obstack_printf.texi: Likewise.
29029         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29030
29031 2009-02-28  Bruno Haible  <bruno@clisp.org>
29032
29033         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
29034         Reported by Loïc Minier <lool@dooz.org>.
29035
29036 2009-02-27  Bruno Haible  <bruno@clisp.org>
29037
29038         * gnulib-tool (func_import): Make the sed expression used to create the
29039         sed script for updating the .gitignore file POSIX compliant.
29040         Reported by Eric Blake.
29041
29042 2009-02-27  Bruno Haible  <bruno@clisp.org>
29043
29044         * gnulib-tool (sed): Don't alias as "sed --posix".
29045         Reported by Eric Blake.
29046
29047 2009-02-27  Bruno Haible  <bruno@clisp.org>
29048
29049         Avoid test link errors.
29050         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
29051         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
29052         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
29053         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
29054         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29055
29056 2009-02-27  Bruno Haible  <bruno@clisp.org>
29057
29058         Avoid spurious "(cached)" in configure output.
29059         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
29060         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
29061         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29062         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29063         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29064         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29065         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29066         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29067         Reported by Eric Blake.
29068
29069 2009-02-27  Eric Blake  <ebb9@byu.net>
29070
29071         printf: fix regression in previous patch
29072         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
29073
29074 2009-02-27  Bruno Haible  <bruno@clisp.org>
29075
29076         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
29077         value.
29078         * lib/stdint.in.h: Likewise.
29079         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
29080
29081 2009-02-27  Eric Blake  <ebb9@byu.net>
29082
29083         doc: mention more functions added in cygwin 1.7.0
29084         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
29085         addition.
29086         * doc/posix-functions/open_wmemstream.texi: Likewise.
29087         * doc/posix-functions/wcsnlen.texi: Likewise.
29088         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29089         * doc/posix-functions/wcstod.texi: Likewise.
29090         * doc/posix-functions/wcstof.texi: Likewise.
29091         * doc/posix-functions/wcstoimax.texi: Likewise.
29092         * doc/posix-functions/wcstok.texi: Likewise.
29093         * doc/posix-functions/wcstoumax.texi: Likewise.
29094
29095         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
29096         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
29097         * doc/posix-functions/fprintf.texi: Update.
29098         * doc/posix-functions/printf.texi: Update.
29099         * doc/posix-functions/snprintf.texi: Update.
29100         * doc/posix-functions/sprintf.texi: Update.
29101         * doc/posix-functions/vfprintf.texi: Update.
29102         * doc/posix-functions/vprintf.texi: Update.
29103         * doc/posix-functions/vsnprintf.texi: Update.
29104         * doc/posix-functions/vsprintf.texi: Update.
29105         * doc/glibc-functions/obstack_printf.texi: Update.
29106         * doc/glibc-functions/obstack_vprintf.texi: Update.
29107
29108 2009-02-26  Eric Blake  <ebb9@byu.net>
29109
29110         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
29111         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
29112         compilation bug by using runtime conversion.
29113         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29114         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
29115         * modules/ceill-tests (Files): Use nan.h.
29116         * modules/floorl-tests (Files): Likewise.
29117         * modules/frexpl-tests (Files): Likewise.
29118         * modules/isnanl-tests (Files): Likewise.
29119         * modules/ldexpl-tests (Files): Likewise.
29120         * modules/roundl-tests (Files): Likewise.
29121         * modules/truncl-tests (Files): Likewise.
29122         * tests/test-ceill.c (main): Use a working NaN.
29123         * tests/test-floorl.c (main): Likewise.
29124         * tests/test-frexpl.c (main): Likewise.
29125         * tests/test-isnan.c (test_long_double): Likewise.
29126         * tests/test-isnanl.h (main): Likewise.
29127         * tests/test-ldexpl.h (main): Likewise.
29128         * tests/test-roundl.h (main): Likewise.
29129         * tests/test-truncl.h (main): Likewise.
29130         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
29131
29132 2009-02-26  Eric Blake  <ebb9@byu.net>
29133             Bruno Haible  <bruno@clisp.org>
29134
29135         Work around a *printf bug with %ls on Solaris.
29136         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
29137         precision is specified, sprintf stops converting the wide string
29138         argument when the number of bytes that have been produced by this
29139         conversion equals or exceeds the precision.
29140         * doc/posix-functions/fprintf.texi: Update.
29141         * doc/posix-functions/printf.texi: Update.
29142         * doc/posix-functions/snprintf.texi: Update.
29143         * doc/posix-functions/sprintf.texi: Update.
29144         * doc/posix-functions/vfprintf.texi: Update.
29145         * doc/posix-functions/vprintf.texi: Update.
29146         * doc/posix-functions/vsnprintf.texi: Update.
29147         * doc/posix-functions/vsprintf.texi: Update.
29148         * doc/glibc-functions/obstack_printf.texi: Update.
29149         * doc/glibc-functions/obstack_vprintf.texi: Update.
29150
29151 2009-02-26  Eric Blake  <ebb9@byu.net>
29152
29153         stdlib: favor compiler check of random.h
29154         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
29155         to avoid an ObjC random.h installed by Swarm.
29156
29157 2009-02-26  Bruno Haible  <bruno@clisp.org>
29158
29159         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
29160         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
29161         Reported by Gary V. Vaughan <gary@gnu.org>.
29162
29163 2009-02-26  Bruno Haible  <bruno@clisp.org>
29164
29165         Fix *printf behaviour regarding the %ls directive.
29166         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
29167         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
29168         NEED_PRINTF_DIRECTIVE_LS.
29169         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
29170         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29171         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29172         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
29173         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
29174         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
29175         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29176         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29177         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29178         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29179         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29180         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
29181         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29182         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29183         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29184         * doc/posix-functions/fprintf.texi: Update.
29185         * doc/posix-functions/printf.texi: Update.
29186         * doc/posix-functions/snprintf.texi: Update.
29187         * doc/posix-functions/sprintf.texi: Update.
29188         * doc/posix-functions/vfprintf.texi: Update.
29189         * doc/posix-functions/vprintf.texi: Update.
29190         * doc/posix-functions/vsnprintf.texi: Update.
29191         * doc/posix-functions/vsprintf.texi: Update.
29192         * doc/glibc-functions/obstack_printf.texi: Update.
29193         * doc/glibc-functions/obstack_vprintf.texi: Update.
29194         Reported by Eric Blake.
29195
29196 2009-02-25  Bruno Haible  <bruno@clisp.org>
29197
29198         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
29199         with known value.
29200         Reported by Gary V. Vaughan <gary@gnu.org>.
29201
29202 2009-02-25  Bruno Haible  <bruno@clisp.org>
29203
29204         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
29205         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
29206         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
29207         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
29208         Reported by Gary V. Vaughan <gary@gnu.org>.
29209
29210 2009-02-25  Bruno Haible  <bruno@clisp.org>
29211
29212         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
29213         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
29214         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
29215         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
29216         Reported by Gary V. Vaughan <gary@gnu.org>.
29217
29218 2009-02-25  Eric Blake  <ebb9@byu.net>
29219
29220         tests: skip fseek/ftell tests if ungetc is broken
29221         * m4/ungetc.m4: New file.
29222         * modules/fseek-tests: Split test, so ungetc dependency is
29223         separate from rest of test.
29224         * modules/fseeko-tests: Likewise.
29225         * modules/ftell-tests: Likewise.
29226         * modules/ftello-tests: Likewise.
29227         * tests/test-fseek.c (main): Isolate ungetc dependency.
29228         * tests/test-fseeko.c (main): Likewise.
29229         * tests/test-ftell.c (main): Likewise.
29230         * tests/test-ftello.c (main): Likewise.
29231         * tests/test-fseek2.sh: New file.
29232         * tests/test-fseeko2.sh: Likewise.
29233         * tests/test-ftell2.sh: Likewise.
29234         * tests/test-ftello2.sh: Likewise.
29235
29236 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
29237
29238         test-getaddrinfo: fix usage of skip return code 77
29239         * tests/test-gettaddrinfo.c: Return skip code 77 only
29240         for first occurance of skip (4x77 is not 77)
29241
29242 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
29243
29244         strtod: avoid C99 decl-after-statement
29245         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
29246
29247 2009-02-24  Eric Blake  <ebb9@byu.net>
29248
29249         strtod: detect HP-UX 11.31 bug
29250         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
29251         Reported by Gary V. Vaughan.
29252
29253 2009-02-23  Bruno Haible  <bruno@clisp.org>
29254
29255         Fix invalid read past end of memory block.
29256         * lib/vasnprintf.c (DCHAR_SET): Define.
29257         (local_wcslen): Define only when needed.
29258         (local_strnlen, local_wcsnlen): New functions.
29259         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
29260         directives that involve a conversion ourselves.
29261         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
29262         wcsnlen, mbrtowc, wcrtomb.
29263         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
29264         * tests/test-vasprintf-posix.c (test_function): Likewise.
29265         * tests/test-snprintf-posix.h (test_function): Likewise.
29266         * tests/test-sprintf-posix.h (test_function): Likewise.
29267         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29268
29269 2009-02-22  Bruno Haible  <bruno@clisp.org>
29270
29271         Implement new clarified decomposition of Hangul syllables.
29272         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
29273         of type LTV, return only a pairwise decomposition.
29274         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
29275         Likewise.
29276         * tests/uninorm/test-decomposition.c (main): Updated expected result.
29277         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
29278         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
29279
29280 2009-02-22  Bruno Haible  <bruno@clisp.org>
29281
29282         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
29283         zero-length results and shrink excess allocated memory.
29284         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
29285         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
29286         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
29287         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
29288         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
29289         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
29290         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
29291         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
29292         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
29293         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
29294         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
29295         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
29296
29297 2009-02-21  Bruno Haible  <bruno@clisp.org>
29298
29299         * doc/gnulib.texi: Include safe-alloc.texi earlier.
29300         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
29301         spaces after a period. Put a space between a macro name and its
29302         argument list. Trivial rewordings.
29303         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
29304         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
29305         (main): Return 0 explicitly.
29306
29307 2009-02-21  Bruno Haible  <bruno@clisp.org>
29308
29309         Tests for module 'uninorm/filter'.
29310         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
29311         * modules/uninorm/filter-tests: New file.
29312
29313         New module 'uninorm/filter'.
29314         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
29315         uninorm_filter_flush, uninorm_filter_free): New declarations.
29316         * lib/uninorm/uninorm-filter.c: New file.
29317         * modules/uninorm/filter: New file.
29318
29319 2009-02-21  Bruno Haible  <bruno@clisp.org>
29320
29321         Tests for module 'uninorm/nfkc'.
29322         * tests/uninorm/test-nfkc.c: New file.
29323         * tests/uninorm/test-u8-nfkc.c: New file.
29324         * tests/uninorm/test-u16-nfkc.c: New file.
29325         * tests/uninorm/test-u32-nfkc.c: New file.
29326         * tests/uninorm/test-u32-nfkc-big.sh: New file.
29327         * tests/uninorm/test-u32-nfkc-big.c: New file.
29328         * modules/uninorm/nfkc-tests: New file.
29329
29330         New module 'uninorm/nfkc'.
29331         * lib/uninorm/nfkc.c: New file.
29332         * modules/uninorm/nfkc: New file.
29333
29334         Tests for module 'uninorm/nfkd'.
29335         * tests/uninorm/test-nfkd.c: New file.
29336         * tests/uninorm/test-u8-nfkd.c: New file.
29337         * tests/uninorm/test-u16-nfkd.c: New file.
29338         * tests/uninorm/test-u32-nfkd.c: New file.
29339         * tests/uninorm/test-u32-nfkd-big.sh: New file.
29340         * tests/uninorm/test-u32-nfkd-big.c: New file.
29341         * modules/uninorm/nfkd-tests: New file.
29342
29343         New module 'uninorm/nfkd'.
29344         * lib/uninorm/nfkd.c: New file.
29345         * modules/uninorm/nfkd: New file.
29346
29347         Tests for module 'uninorm/nfc'.
29348         * tests/uninorm/test-nfc.c: New file.
29349         * tests/uninorm/test-u8-nfc.c: New file.
29350         * tests/uninorm/test-u16-nfc.c: New file.
29351         * tests/uninorm/test-u32-nfc.c: New file.
29352         * tests/uninorm/test-u32-nfc-big.sh: New file.
29353         * tests/uninorm/test-u32-nfc-big.c: New file.
29354         * modules/uninorm/nfc-tests: New file.
29355
29356         New module 'uninorm/nfc'.
29357         * lib/uninorm/nfc.c: New file.
29358         * modules/uninorm/nfc: New file.
29359
29360         Tests for module 'uninorm/nfd'.
29361         * tests/uninorm/test-nfd.c: New file.
29362         * tests/uninorm/test-u8-nfd.c: New file.
29363         * tests/uninorm/test-u16-nfd.c: New file.
29364         * tests/uninorm/test-u32-nfd.c: New file.
29365         * tests/uninorm/test-u32-nfd-big.sh: New file.
29366         * tests/uninorm/test-u32-nfd-big.c: New file.
29367         * tests/uninorm/test-u32-normalize-big.h: New file.
29368         * tests/uninorm/test-u32-normalize-big.c: New file.
29369         * tests/uninorm/NormalizationTest.txt: New file, created from
29370         Unicode 5.1.0 NormalizationTest.txt.
29371         * modules/uninorm/nfd-tests: New file.
29372
29373         New module 'uninorm/nfd'.
29374         * lib/uninorm/nfd.c: New file.
29375         * modules/uninorm/nfd: New file.
29376
29377         New module 'uninorm/u32-normalize'.
29378         * lib/uninorm/u32-normalize.c: New file.
29379         * modules/uninorm/u32-normalize: New file.
29380
29381         New module 'uninorm/u16-normalize'.
29382         * lib/uninorm/u16-normalize.c: New file.
29383         * modules/uninorm/u16-normalize: New file.
29384
29385         New module 'uninorm/u8-normalize'.
29386         * lib/uninorm/u8-normalize.c: New file.
29387         * lib/uninorm/normalize-internal.h: New file.
29388         * lib/uninorm/u-normalize-internal.h: New file.
29389         * modules/uninorm/u8-normalize: New file.
29390
29391         New module 'uninorm/decompose-internal'.
29392         * lib/uninorm/decompose-internal.c: New file.
29393         * modules/uninorm/decompose-internal: New file.
29394
29395         Tests for module 'uninorm/composition'.
29396         * tests/uninorm/test-composition.c: New file.
29397         * modules/uninorm/composition-tests: New file.
29398
29399         New module 'uninorm/composition'.
29400         * lib/uninorm/composition.c: New file.
29401         * lib/uninorm/composition-table.gperf: New file, generated by
29402         gen-uni-tables.
29403         * modules/uninorm/composition: New file.
29404
29405         Tests for module 'uninorm/compat-decomposition'.
29406         * tests/uninorm/test-compat-decomposition.c: New file.
29407         * modules/uninorm/compat-decomposition-tests: New file.
29408
29409         New module 'uninorm/compat-decomposition'.
29410         * lib/uninorm/decompose-internal.h: New file.
29411         * lib/uninorm/compat-decomposition.c: New file.
29412         * modules/uninorm/compat-decomposition: New file.
29413
29414         Tests for module 'uninorm/canonical-decomposition'.
29415         * tests/uninorm/test-canonical-decomposition.c: New file.
29416         * modules/uninorm/canonical-decomposition-tests: New file.
29417
29418         New module 'uninorm/canonical-decomposition'.
29419         * lib/uninorm/canonical-decomposition.c: New file.
29420         * modules/uninorm/canonical-decomposition: New file.
29421
29422         Tests for module 'uninorm/decomposition'.
29423         * tests/uninorm/test-decomposition.c: New file.
29424         * modules/uninorm/decomposition-tests: New file.
29425
29426         New module 'uninorm/decomposition'.
29427         * lib/uninorm/decomposition.c: New file.
29428         * modules/uninorm/decomposition: New file.
29429
29430         New module 'uninorm/decomposition-table'.
29431         * lib/uninorm/decomposition-table.h: New file.
29432         * lib/uninorm/decomposition-table.c: New file.
29433         * lib/uninorm/decomposition-table1.h: New file, generated by
29434         gen-uni-tables.
29435         * lib/uninorm/decomposition-table2.h: New file, generated by
29436         gen-uni-tables.
29437         * modules/uninorm/decomposition-table: New file.
29438
29439         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
29440         (UC_DECOMP_*): New enumeration items.
29441         (get_decomposition): New function.
29442         (struct decomp_table): New type.
29443         (output_decomposition, output_decomposition_tables): New functions.
29444         (unicode_composition_exclusions): New variable.
29445         (fill_composition_exclusions, debug_output_composition_tables): New
29446         functions.
29447         (main): Accept one more argument. Invoke fill_composition_exclusions.
29448         Output decomposition and composition tables.
29449
29450         New module 'uninorm/base'.
29451         * lib/uninorm.h: New file.
29452         * lib/unictype.h: Update comment.
29453         * modules/uninorm/base: New file.
29454
29455 2009-02-21  David Lutterkort  <lutter@redhat.com>
29456
29457         Tests for module 'safe-alloc'.
29458         * tests/test-safe-alloc.c: New file.
29459         * modules/safe-alloc-tests: New file.
29460
29461         New module 'safe-alloc'.
29462         * lib/safe-alloc.h: New file.
29463         * lib/safe-alloc.c: New file.
29464         * m4/safe-alloc.m4: New file.
29465         * modules/safe-alloc: New file.
29466         * doc/safe-alloc.texi: New file.
29467         * doc/gnulib.texi: Include it.
29468         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29469         safe-alloc.
29470
29471 2009-02-18  Bruno Haible  <bruno@clisp.org>
29472
29473         Fix link error on non-glibc systems.
29474         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
29475         variable.
29476         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29477
29478 2009-02-18  Jim Meyering  <meyering@redhat.com>
29479
29480         fts: avoid used-uninitialized error due to recent change
29481         * lib/fts.c (fts_read): Guard uses of the new member,
29482         parent->fts_n_dirs_remaining, since it's not relevant for
29483         the parent of a directory specified on the command-line.
29484
29485 2009-02-17  James Youngman  <jay@gnu.org>
29486             Bruno Haible  <bruno@clisp.org>
29487
29488         * m4/include_next.m4: Reformulate comment.
29489
29490 2009-02-16  Jim Meyering  <meyering@redhat.com>
29491
29492         fts: add #if guards so that the fts_lgpl module still builds
29493         * lib/fts.c: Guard just-added hash-table-using parts with
29494         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
29495         Reported by Simon Josefsson.
29496
29497 2009-02-15  Bruno Haible  <bruno@clisp.org>
29498
29499         * modules/array-mergesort-tests: New file.
29500         * tests/test-array-mergesort.c: New file.
29501
29502         New module 'array-mergesort'.
29503         * modules/array-mergesort: New file.
29504         * lib/array-mergesort.h: New file.
29505
29506 2009-02-15  Bruno Haible  <bruno@clisp.org>
29507
29508         Fix 2009-02-07 commit.
29509         * lib/gen-uni-tables.c (output_predicate, output_category,
29510         output_combclass, output_bidi_category, output_decimal_digit,
29511         output_digit, output_numeric, output_mirror, output_scripts,
29512         output_ident_category, output_simple_mapping): Fix format directives.
29513         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
29514
29515 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
29516
29517         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
29518         fixes are available from IBM.
29519
29520 2009-02-13  Jim Meyering  <meyering@redhat.com>
29521
29522         fts: arrange not to stat non-directories in more cases
29523         This makes GNU find (when it doesn't need to stat each file)
29524         *much* more efficient at traversing reiserfs file systems.
29525         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
29526         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
29527         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
29528         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
29529         (leaf_optimization_applies): New function.
29530         (LCO_hash, LCO_compare): New helper functions.
29531         (link_count_optimize_ok): New function.
29532         (fts_stat): Initialize new member (if dir).
29533         (fts_read): Decrement parent's fts_n_dirs_remaining count if
29534         we've just stat'ed a directory.  Skip the stat call when possible.
29535         ---
29536         Note this AFS-related exchange:
29537         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
29538         and note find's pioctl call in find/fstype.c.
29539         But that is necessary only if you want to enable the
29540         optimization for AFS, and for now, I don't.
29541
29542         fts: move a function definition "up" (no semantic change)
29543         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
29544         "up" to precede upcoming use of a related function.
29545
29546 2009-02-11  Jim Meyering  <meyering@redhat.com>
29547
29548         fts: correct internal computation of nlinks (optimization-related)
29549         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
29550         whether the current entry is a directory, so don't test it.
29551
29552 2009-02-10  Bruno Haible  <bruno@clisp.org>
29553
29554         Tests for module 'uniwbrk/ulc-wordbreaks'.
29555         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
29556         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
29557         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
29558
29559         Tests for module 'uniwbrk/u32-wordbreaks'.
29560         * modules/uniwbrk/u32-wordbreaks-tests: New file.
29561         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
29562
29563         Tests for module 'uniwbrk/u16-wordbreaks'.
29564         * modules/uniwbrk/u16-wordbreaks-tests: New file.
29565         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
29566
29567         Tests for module 'uniwbrk/u8-wordbreaks'.
29568         * modules/uniwbrk/u8-wordbreaks-tests: New file.
29569         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
29570
29571 2009-02-10  Bruno Haible  <bruno@clisp.org>
29572
29573         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
29574         property.
29575         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
29576         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
29577         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
29578
29579 2009-02-10  Simon Josefsson  <simon@josefsson.org>
29580
29581         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
29582         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
29583
29584 2009-02-10  Bruno Haible  <bruno@clisp.org>
29585
29586         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
29587         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
29588         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
29589         * lib/unilbrk/u8-possible-linebreaks.c: Update.
29590         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
29591         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
29592
29593 2009-02-09  Simon Josefsson  <simon@josefsson.org>
29594
29595         * lib/sockets.h (gl_fd_to_handle): New function.
29596
29597         * tests/test-sockets.c: Call gl_fd_to_handle.
29598
29599 2009-02-09  Bruno Haible  <bruno@clisp.org>
29600
29601         * doc/havelib.texi: Document the conventions on bi-arch systems.
29602
29603 2009-02-08  Bruno Haible  <bruno@clisp.org>
29604
29605         Document the AC_LIB_LINKFLAGS macro.
29606         * doc/havelib.texi: New file, mostly written on 2005-05-24.
29607         * doc/gnulib.texi: Include it.
29608
29609 2009-02-08  Bruno Haible  <bruno@clisp.org>
29610
29611         Fix wrong order of sections, compared to TOC.
29612         * doc/gnulib.texi: Include relocatable-maint.texi after the
29613         "Regular expressions" node, not before.
29614
29615 2009-02-08  Bruno Haible  <bruno@clisp.org>
29616
29617         Tests for module 'unicase/totitle'.
29618         * modules/unicase/totitle-tests: New file.
29619
29620         Tests for module 'unicase/tolower'.
29621         * modules/unicase/tolower-tests: New file.
29622
29623         Tests for module 'unicase/toupper'.
29624         * modules/unicase/toupper-tests: New file.
29625         * tests/unicase/test-mapping-part1.h: New file.
29626         * tests/unicase/test-mapping-part2.h: New file.
29627
29628         New module 'unicase/totitle'.
29629         * modules/unicase/totitle: New file.
29630         * lib/unicase/totitle.c: New file.
29631
29632         New module 'unicase/tolower'.
29633         * modules/unicase/tolower: New file.
29634         * lib/unicase/tolower.c: New file.
29635
29636         New module 'unicase/toupper'.
29637         * modules/unicase/toupper: New file.
29638         * lib/unicase/toupper.c: New file.
29639         * lib/unicase/simple-mapping.h: New file.
29640
29641         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
29642         (mapping_table): New structure.
29643         (output_simple_mapping): New function.
29644         (main): Invoke output_simple_mapping_test and output_simple_mapping.
29645         * modules/gen-uni-tables (Description): Update.
29646         * lib/unicase/toupper.h: New file, automatically generated by
29647         gen-uni-tables.
29648         * lib/unicase/tolower.h: New file, automatically generated by
29649         gen-uni-tables.
29650         * lib/unicase/totitle.h: New file, automatically generated by
29651         gen-uni-tables.
29652         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
29653         gen-uni-tables.
29654         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
29655         gen-uni-tables.
29656         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
29657         gen-uni-tables.
29658
29659         New module 'unicase/base'.
29660         * modules/unicase/base: New file.
29661         * lib/unicase.h: New file.
29662
29663 2009-02-08  Bruno Haible  <bruno@clisp.org>
29664
29665         New module 'uniwbrk/ulc-wordbreaks'.
29666         * modules/uniwbrk/ulc-wordbreaks: New file.
29667         * lib/uniwbrk/ulc-wordbreaks.c: New file.
29668
29669         New module 'uniwbrk/u32-wordbreaks'.
29670         * modules/uniwbrk/u32-wordbreaks: New file.
29671         * lib/uniwbrk/u32-wordbreaks.c: New file.
29672
29673         New module 'uniwbrk/u16-wordbreaks'.
29674         * modules/uniwbrk/u16-wordbreaks: New file.
29675         * lib/uniwbrk/u16-wordbreaks.c: New file.
29676
29677         New module 'uniwbrk/u8-wordbreaks'.
29678         * modules/uniwbrk/u8-wordbreaks: New file.
29679         * lib/uniwbrk/u8-wordbreaks.c: New file.
29680         * lib/uniwbrk/u-wordbreaks.h: New file.
29681
29682         New module 'uniwbrk/table'.
29683         * modules/uniwbrk/table: New file.
29684         * lib/uniwbrk/wbrktable.h: New file.
29685         * lib/uniwbrk/wbrktable.c: New file.
29686
29687         New module 'uniwbrk/wordbreak-property'.
29688         * modules/uniwbrk/wordbreak-property: New file.
29689         * lib/uniwbrk/wordbreak-property.c: New file.
29690
29691         * lib/gen-uni-tables.c (WBP_*): New enum items.
29692         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
29693         (unicode_org_wbp): New variable.
29694         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
29695         New functions.
29696         (wbp_table): New structure.
29697         (output_wbp, output_wbrk_tables): New functions.
29698         (main): Accept additional argument. Invoke fill_org_wbp,
29699         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
29700         output_wbrk_tables.
29701         * modules/gen-uni-tables (Description): Update.
29702         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
29703         gen-uni-tables.
29704
29705         New module 'uniwbrk/base'.
29706         * modules/uniwbrk/base: New file.
29707         * lib/uniwbrk.h: New file.
29708
29709 2009-02-08  Bruno Haible  <bruno@clisp.org>
29710
29711         Update to Unicode 5.1.0.
29712         * lib/gen-uni-tables.c (is_property_alphabetic): Include
29713         U+2185..U+2188.
29714         (is_property_default_ignorable_code_point): Don't include characters
29715         of category Cc or Cs and not-a-characters.
29716         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
29717         U+0D79, U+109E, U+109F, U+A60C.
29718         * lib/unictype/bidi_of.h: Regenerated.
29719         * lib/unictype/blocks.h: Regenerated.
29720         * lib/unictype/categ_C.h: Regenerated.
29721         * lib/unictype/categ_Cf.h: Regenerated.
29722         * lib/unictype/categ_Cn.h: Regenerated.
29723         * lib/unictype/categ_L.h: Regenerated.
29724         * lib/unictype/categ_Ll.h: Regenerated.
29725         * lib/unictype/categ_Lm.h: Regenerated.
29726         * lib/unictype/categ_Lo.h: Regenerated.
29727         * lib/unictype/categ_Lu.h: Regenerated.
29728         * lib/unictype/categ_M.h: Regenerated.
29729         * lib/unictype/categ_Mc.h: Regenerated.
29730         * lib/unictype/categ_Me.h: Regenerated.
29731         * lib/unictype/categ_Mn.h: Regenerated.
29732         * lib/unictype/categ_N.h: Regenerated.
29733         * lib/unictype/categ_Nd.h: Regenerated.
29734         * lib/unictype/categ_Nl.h: Regenerated.
29735         * lib/unictype/categ_No.h: Regenerated.
29736         * lib/unictype/categ_P.h: Regenerated.
29737         * lib/unictype/categ_Pd.h: Regenerated.
29738         * lib/unictype/categ_Pe.h: Regenerated.
29739         * lib/unictype/categ_Pf.h: Regenerated.
29740         * lib/unictype/categ_Pi.h: Regenerated.
29741         * lib/unictype/categ_Po.h: Regenerated.
29742         * lib/unictype/categ_Ps.h: Regenerated.
29743         * lib/unictype/categ_S.h: Regenerated.
29744         * lib/unictype/categ_Sk.h: Regenerated.
29745         * lib/unictype/categ_Sm.h: Regenerated.
29746         * lib/unictype/categ_So.h: Regenerated.
29747         * lib/unictype/categ_of.h: Regenerated.
29748         * lib/unictype/combining.h: Regenerated.
29749         * lib/unictype/ctype_alnum.h: Regenerated.
29750         * lib/unictype/ctype_alpha.h: Regenerated.
29751         * lib/unictype/ctype_graph.h: Regenerated.
29752         * lib/unictype/ctype_lower.h: Regenerated.
29753         * lib/unictype/ctype_print.h: Regenerated.
29754         * lib/unictype/ctype_punct.h: Regenerated.
29755         * lib/unictype/ctype_upper.h: Regenerated.
29756         * lib/unictype/decdigit.h: Regenerated.
29757         * lib/unictype/digit.h: Regenerated.
29758         * lib/unictype/mirror.h: Regenerated.
29759         * lib/unictype/numeric.h: Regenerated.
29760         * lib/unictype/pr_alphabetic.h: Regenerated.
29761         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
29762         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
29763         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
29764         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
29765         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
29766         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
29767         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
29768         * lib/unictype/pr_combining.h: Regenerated.
29769         * lib/unictype/pr_dash.h: Regenerated.
29770         * lib/unictype/pr_decimal_digit.h: Regenerated.
29771         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
29772         * lib/unictype/pr_deprecated.h: Regenerated.
29773         * lib/unictype/pr_diacritic.h: Regenerated.
29774         * lib/unictype/pr_extender.h: Regenerated.
29775         * lib/unictype/pr_format_control.h: Regenerated.
29776         * lib/unictype/pr_grapheme_base.h: Regenerated.
29777         * lib/unictype/pr_grapheme_extend.h: Regenerated.
29778         * lib/unictype/pr_grapheme_link.h: Regenerated.
29779         * lib/unictype/pr_id_continue.h: Regenerated.
29780         * lib/unictype/pr_id_start.h: Regenerated.
29781         * lib/unictype/pr_ideographic.h: Regenerated.
29782         * lib/unictype/pr_ignorable_control.h: Regenerated.
29783         * lib/unictype/pr_lowercase.h: Regenerated.
29784         * lib/unictype/pr_math.h: Regenerated.
29785         * lib/unictype/pr_numeric.h: Regenerated.
29786         * lib/unictype/pr_other_alphabetic.h: Regenerated.
29787         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
29788         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
29789         * lib/unictype/pr_other_id_continue.h: Regenerated.
29790         * lib/unictype/pr_other_lowercase.h: Regenerated.
29791         * lib/unictype/pr_other_math.h: Regenerated.
29792         * lib/unictype/pr_punctuation.h: Regenerated.
29793         * lib/unictype/pr_sentence_terminal.h: Regenerated.
29794         * lib/unictype/pr_soft_dotted.h: Regenerated.
29795         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
29796         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
29797         * lib/unictype/pr_unified_ideograph.h: Regenerated.
29798         * lib/unictype/pr_uppercase.h: Regenerated.
29799         * lib/unictype/pr_xid_continue.h: Regenerated.
29800         * lib/unictype/pr_xid_start.h: Regenerated.
29801         * lib/unictype/pr_zero_width.h: Regenerated.
29802         * lib/unictype/scripts.h: Regenerated.
29803         * lib/unictype/scripts_byname.gperf: Regenerated.
29804         * lib/unictype/sy_java_ident.h: Regenerated.
29805         * lib/unilbrk/lbrkprop1.h: Regenerated.
29806         * lib/unilbrk/lbrkprop2.h: Regenerated.
29807         * tests/unictype/test-categ_C.c: Regenerated.
29808         * tests/unictype/test-categ_Cf.c: Regenerated.
29809         * tests/unictype/test-categ_Cn.c: Regenerated.
29810         * tests/unictype/test-categ_L.c: Regenerated.
29811         * tests/unictype/test-categ_Ll.c: Regenerated.
29812         * tests/unictype/test-categ_Lm.c: Regenerated.
29813         * tests/unictype/test-categ_Lo.c: Regenerated.
29814         * tests/unictype/test-categ_Lu.c: Regenerated.
29815         * tests/unictype/test-categ_M.c: Regenerated.
29816         * tests/unictype/test-categ_Mc.c: Regenerated.
29817         * tests/unictype/test-categ_Me.c: Regenerated.
29818         * tests/unictype/test-categ_Mn.c: Regenerated.
29819         * tests/unictype/test-categ_N.c: Regenerated.
29820         * tests/unictype/test-categ_Nd.c: Regenerated.
29821         * tests/unictype/test-categ_Nl.c: Regenerated.
29822         * tests/unictype/test-categ_No.c: Regenerated.
29823         * tests/unictype/test-categ_P.c: Regenerated.
29824         * tests/unictype/test-categ_Pd.c: Regenerated.
29825         * tests/unictype/test-categ_Pe.c: Regenerated.
29826         * tests/unictype/test-categ_Pf.c: Regenerated.
29827         * tests/unictype/test-categ_Pi.c: Regenerated.
29828         * tests/unictype/test-categ_Po.c: Regenerated.
29829         * tests/unictype/test-categ_Ps.c: Regenerated.
29830         * tests/unictype/test-categ_S.c: Regenerated.
29831         * tests/unictype/test-categ_Sk.c: Regenerated.
29832         * tests/unictype/test-categ_Sm.c: Regenerated.
29833         * tests/unictype/test-categ_So.c: Regenerated.
29834         * tests/unictype/test-ctype_alnum.c: Regenerated.
29835         * tests/unictype/test-ctype_alpha.c: Regenerated.
29836         * tests/unictype/test-ctype_graph.c: Regenerated.
29837         * tests/unictype/test-ctype_lower.c: Regenerated.
29838         * tests/unictype/test-ctype_print.c: Regenerated.
29839         * tests/unictype/test-ctype_punct.c: Regenerated.
29840         * tests/unictype/test-ctype_upper.c: Regenerated.
29841         * tests/unictype/test-decdigit.h: Regenerated.
29842         * tests/unictype/test-digit.h: Regenerated.
29843         * tests/unictype/test-numeric.h: Regenerated.
29844         * tests/unictype/test-pr_alphabetic.c: Regenerated.
29845         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
29846         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
29847         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
29848         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
29849         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
29850         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
29851         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
29852         * tests/unictype/test-pr_combining.c: Regenerated.
29853         * tests/unictype/test-pr_dash.c: Regenerated.
29854         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
29855         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
29856         * tests/unictype/test-pr_deprecated.c: Regenerated.
29857         * tests/unictype/test-pr_diacritic.c: Regenerated.
29858         * tests/unictype/test-pr_extender.c: Regenerated.
29859         * tests/unictype/test-pr_format_control.c: Regenerated.
29860         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
29861         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
29862         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
29863         * tests/unictype/test-pr_id_continue.c: Regenerated.
29864         * tests/unictype/test-pr_id_start.c: Regenerated.
29865         * tests/unictype/test-pr_ideographic.c: Regenerated.
29866         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
29867         * tests/unictype/test-pr_lowercase.c: Regenerated.
29868         * tests/unictype/test-pr_math.c: Regenerated.
29869         * tests/unictype/test-pr_numeric.c: Regenerated.
29870         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
29871         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
29872         Regenerated.
29873         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
29874         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
29875         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
29876         * tests/unictype/test-pr_other_math.c: Regenerated.
29877         * tests/unictype/test-pr_punctuation.c: Regenerated.
29878         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
29879         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
29880         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
29881         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
29882         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
29883         * tests/unictype/test-pr_uppercase.c: Regenerated.
29884         * tests/unictype/test-pr_xid_continue.c: Regenerated.
29885         * tests/unictype/test-pr_xid_start.c: Regenerated.
29886         * tests/unictype/test-pr_zero_width.c: Regenerated.
29887
29888         Update to Unicode 5.1.0.
29889         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
29890         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
29891         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
29892         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
29893         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
29894         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
29895         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
29896         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
29897         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
29898         (nonspacing_table_ind): Update.
29899         * tests/uniwidth/test-uc_width2.sh: Update expected result.
29900
29901         Update to Unicode 5.1.0.
29902         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
29903         code transform.
29904         * lib/uniname/uniname.c (unicode_character_name,
29905         unicode_name_character): Add the range 0x1Fxxx to the code transform.
29906         * lib/uniname/uninames.h: Regenerated.
29907         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
29908
29909 2009-02-07  Bruno Haible  <bruno@clisp.org>
29910
29911         Merge gen-ctype and gen-lbrk into a single program.
29912         * lib/gen-uni-tables.c: New file, incorporating
29913         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
29914         Add directory prefixes to the names of the generated files.
29915         * lib/unictype/gen-ctype.c: Remove file.
29916         * lib/unilbrk/gen-lbrk.c: Remove file.
29917         * modules/gen-uni-tables: New file.
29918         * modules/unictype/gen-ctype: Remove file.
29919         * modules/unilbrk/gen-lbrk: Remove file.
29920
29921 2009-02-07  Bruno Haible  <bruno@clisp.org>
29922
29923         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
29924
29925         New module 'unistr/u32-strcoll'.
29926         * modules/unistr/u32-strcoll: New file.
29927         * lib/unistr/u32-strcoll.c: New file.
29928
29929         New module 'unistr/u16-strcoll'.
29930         * modules/unistr/u16-strcoll: New file.
29931         * lib/unistr/u16-strcoll.c: New file.
29932
29933         New module 'unistr/u8-strcoll'.
29934         * modules/unistr/u8-strcoll: New file.
29935         * lib/unistr/u8-strcoll.c: New file.
29936         * lib/unistr/u-strcoll.h: New file.
29937
29938 2009-02-07  Bruno Haible  <bruno@clisp.org>
29939
29940         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
29941         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29942         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29943         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
29944         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
29945         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
29946
29947 2009-02-07  Bruno Haible  <bruno@clisp.org>
29948
29949         Make 64-bit clean.
29950         * lib/unictype/gen-ctype.c (output_predicate, output_category,
29951         output_combclass, output_bidi_category, output_decimal_digit,
29952         output_digit, output_numeric, output_mirror, output_scripts,
29953         output_ident_category): Use proper width specifier in format strings.
29954
29955 2009-02-07  Bruno Haible  <bruno@clisp.org>
29956
29957         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
29958         failure behaviour.
29959
29960 2009-02-07  Jim Meyering  <meyering@redhat.com>
29961
29962         regex: avoid compilation failure with upcoming gcc-4.4
29963         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
29964         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
29965         "... error: integer overflow in preprocessor expression".
29966
29967 2009-02-05  Ben Pfaff  <blp@gnu.org>
29968
29969         Fix link errors on Windows when close module is used.
29970         * modules/close: Add $(LIB_CLOSE) to Link section.
29971         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
29972         $(LIB_CLOSE) on Windows.
29973
29974 2009-02-05  Jim Meyering  <meyering@redhat.com>
29975
29976         still avoid unused-parameter warnings, but do it cleanly
29977         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
29978         (get_fs_usage): Cast to void instead.
29979         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
29980         (dev_from_mount_options, read_file_system_list): Cast to void.
29981         Prompted by Bruno Haible.
29982
29983 2009-02-04  Jim Meyering  <meyering@redhat.com>
29984
29985         fsusage.c: correct copyright year
29986         * lib/fsusage.c: Reflect year in which the change is pushed into
29987
29988         avoid misc. warnings
29989         * lib/fsusage.c (UNUSED_PARAM): Define.
29990         (get_fs_usage): Mark parameter "disk" as unused.
29991         * lib/getugroups.c (getgrent): Use "void" in prototype.
29992         * lib/mountlist.c: Mark unused parameters.
29993         (read_file_system_list): Declare a local with "const".
29994         * lib/nanosleep.c (getnow): Declare static.
29995         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
29996
29997         dirfd: set errno upon failure
29998         * lib/dirfd.c: Include <errno.h>.
29999         Set errno to ENOTSUP when returning -1.
30000         * modules/dirfd (Depends-on): Add errno.
30001         Suggested by John Kodis <kodis@comcast.net>.
30002
30003 2009-02-01  Bruno Haible  <bruno@clisp.org>
30004
30005         Don't assume sizeof (long) >= sizeof (void *).
30006         * lib/memcmp.c: Include stdint.h.
30007         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
30008         srcp2 to 'const byte *'.
30009         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
30010         types to uintptr_t.
30011         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
30012         * modules/memcmp (Depends-on): Add stdint.
30013         Reported by Ozkan Sezer <sezeroz@gmail.com>.
30014
30015 2009-01-30  Eric Blake  <ebb9@byu.net>
30016
30017         fix more require-before-expand issues
30018         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
30019         expand, AC_PROG_AWK.
30020         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
30021
30022 2009-01-28  Eric Blake  <ebb9@byu.net>
30023
30024         version-etc: use consistent URL formatting
30025         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
30026         Improve formatting.  Use fputs for string without %.
30027
30028 2009-01-28  Jim Meyering  <meyering@redhat.com>
30029
30030         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
30031         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
30032         "underquoted definition of NAME" from autoconf-2.59.
30033
30034 2009-01-28  Bruno Haible  <bruno@clisp.org>
30035
30036         * doc/gnulib.texi: Add "Obsolete modules" to index.
30037
30038 2009-01-28  Jim Meyering  <meyering@redhat.com>
30039
30040         useless-if-before-free: recognize more variants
30041         * build-aux/useless-if-before-free: Also recognize e.g.,
30042         if (NULL != p) free (p);
30043
30044 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
30045
30046         test-getaddrinfo: skip (don't fail) this test when there's no network
30047         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
30048         on the presumption that it means you lack network access.
30049
30050 2009-01-26  Jim Meyering  <meyering@redhat.com>
30051
30052         fflush: avoid warnings on modern systems
30053         * lib/fflush.c (rpl_fflush): Move declarations of locals,
30054         pos and result, into scopes where they're used.
30055
30056 2009-01-26  Eric Blake  <ebb9@byu.net>
30057
30058         Silence warning reintroduced by recent extensions patch.
30059         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
30060         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
30061         autoconf.
30062
30063         Backport improved autoconf semantics of AC_DEFUN_ONCE.
30064         * m4/00gnulib.m4: New file.
30065         * gnulib-tool (func_get_filelist): Always use it.
30066         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
30067         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
30068
30069 2009-01-25  Bruno Haible  <bruno@clisp.org>
30070
30071         Make test-quotearg work on MacOS X and AIX.
30072         * tests/test-quotearg.sh: New file.
30073         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
30074         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
30075         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
30076         include <libintl.h>.
30077         (fake_locale): Remove variable.
30078         (gettext, dgettext, dcgettext): Remove functions.
30079         (main): Instead of setting a fake locale, set a real locale. Call
30080         textdomain and bindtextdomain.
30081         * modules/quotearg-tests (Files): Add the new files.
30082         (Depends-on): Add gettext, setenv, unsetenv.
30083         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
30084         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
30085         Augment TESTS_ENVIRONMENT.
30086
30087 2009-01-25  Bruno Haible  <bruno@clisp.org>
30088
30089         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
30090         fr_FR.ISO8859-1 locale on MacOS X.
30091         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
30092         ja_JP.eucJP locale on MacOS X.
30093         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
30094         zh_CN.GB18030 locale on MacOS X.
30095
30096 2009-01-25  Bruno Haible  <bruno@clisp.org>
30097
30098         Avoid link errors on MacOS X 10.3.
30099         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
30100         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30101
30102 2009-01-25  Bruno Haible  <bruno@clisp.org>
30103
30104         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30105         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
30106         * modules/pipe (Files): Remove m4/posix_spawn.m4.
30107         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30108         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
30109         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30110         posix_spawnattr_init, posix_spawnattr_setsigmask,
30111         posix_spawnattr_setflags, posix_spawnattr_destroy.
30112
30113         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30114         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
30115         * modules/execute (Files): Remove m4/posix_spawn.m4.
30116         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30117         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30118         posix_spawnattr_init, posix_spawnattr_setsigmask,
30119         posix_spawnattr_setflags, posix_spawnattr_destroy.
30120
30121 2009-01-25  Bruno Haible  <bruno@clisp.org>
30122
30123         * lib/glthread/threadlib.c: Include <stdlib.h>.
30124
30125 2009-01-25  Bruno Haible  <bruno@clisp.org>
30126
30127         * lib/glthread/threadlib.c (dummy): New declaration.
30128
30129 2009-01-25  Bruno Haible  <bruno@clisp.org>
30130
30131         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
30132         multibyte characters also for the GB18030 encoding. Don't crash when
30133         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
30134
30135 2009-01-25  Bruno Haible  <bruno@clisp.org>
30136
30137         Avoid redefining 'struct random_data' on OSF/1 5.1.
30138         * lib/stdlib.in.h: Include <random.h> if it exists.
30139         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
30140         HAVE_RANDOM_H. Include <random.h> when testing whether
30141         'struct random_data' exists.
30142         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
30143
30144 2009-01-25  Bruno Haible  <bruno@clisp.org>
30145
30146         Don't install charset.alias on MacOS X >= 10.3.
30147         * lib/localcharset.c (DARWIN7): New macro.
30148         (get_charset_aliases): Hardcode the result for Darwin7.
30149         * modules/localcharset (install-exec-local): Don't install
30150         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
30151
30152 2009-01-25  Bruno Haible  <bruno@clisp.org>
30153
30154         Don't install charset.alias on mingw and Cygwin.
30155         * modules/localcharset (install-exec-local): Don't install
30156         charset.alias on mingw and Cygwin, if the file does not yet exist.
30157         The result for these platforms is hardcoded in localcharset.c.
30158
30159 2009-01-25  Bruno Haible  <bruno@clisp.org>
30160
30161         Make it possible again to use AC_GNU_SOURCE together with gnulib.
30162         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
30163         before requiring AC_USE_SYSTEM_EXTENSIONS.
30164
30165 2009-01-25  Jim Meyering  <meyering@redhat.com>
30166
30167         c-strtod: avoid warnings
30168         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
30169         "assignment discards qualifiers from pointer target type" warnings.
30170
30171 2009-01-24  Bruno Haible  <bruno@clisp.org>
30172
30173         Add support for non-UTF-8 locales on MacOS X.
30174         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
30175         canonical encodings. For Darwin 7 and newer, don't map traditional
30176         encodings to UTF-8.
30177         Reported by Vincent Lefevre <vincent@vinc17.org>
30178         at <http://savannah.gnu.org/bugs/?25235>.
30179
30180 2009-01-24  Bruno Haible  <bruno@clisp.org>
30181
30182         * doc/gnulib.texi (Obsolete modules): New section.
30183         Reported by Mike Frysinger <vapier@gentoo.org>.
30184
30185 2009-01-24  Bruno Haible  <bruno@clisp.org>
30186
30187         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
30188         (%.dvi): New rule.
30189
30190 2009-01-24  Bruno Haible  <bruno@clisp.org>
30191
30192         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
30193         Reported by Eric Blake.
30194
30195 2009-01-24  Bruno Haible  <bruno@clisp.org>
30196
30197         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
30198         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
30199         Reported by Gary V. Vaughan <gary@gnu.org>.
30200
30201 2009-01-24  Bruno Haible  <bruno@clisp.org>
30202
30203         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
30204
30205 2009-01-23  Bruno Haible  <bruno@clisp.org>
30206
30207         Make c-strtod, c-strtold usable in libraries.
30208         * lib/c-strtod.c: Include string.h instead of xalloc.h.
30209         (C_STRTOD): Call strdup instead of xstrdup.
30210         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
30211         * modules/c-strtold (Depends-on): Likewise.
30212         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
30213         * NEWS: Mention the change.
30214         Reported by Michael Gold <mgold@ncf.ca>.
30215
30216 2009-01-23  Jim Meyering  <meyering@redhat.com>
30217
30218         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
30219         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
30220         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
30221
30222 2009-01-23  Simon Josefsson  <simon@josefsson.org>
30223
30224         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
30225         GNU CoreUtils.
30226         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
30227         * modules/version-etc (Description): Update.
30228
30229 2009-01-22  Bruno Haible  <bruno@clisp.org>
30230
30231         Cache the C locale object.
30232         * lib/c-strtod.c (c_locale_cache): New variable.
30233         (c_locale): New function.
30234         (C_STRTOD): Use it, and don't call freelocale.
30235         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
30236         Suggested by Paolo Bonzini.
30237
30238 2009-01-21  Bruno Haible  <bruno@clisp.org>
30239
30240         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
30241         conditions other than overflow.
30242
30243 2009-01-21  Bruno Haible  <bruno@clisp.org>
30244
30245         * lib/c-strtod.c: Include errno.h.
30246         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
30247         value from STRTOD_L and STRTOD.
30248
30249 2009-01-21  Bruno Haible  <bruno@clisp.org>
30250         and Jim Meyering  <meyering@redhat.com>
30251
30252         nanosleep: skip configure test (fail it) for apple universal builds
30253         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
30254         universal builds, assume that nanosleep does not work.
30255         * modules/nanosleep (Depends-on): Add multiarch.
30256
30257         mktime: skip configure test (fail it) for apple universal builds
30258         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
30259         universal builds, assume that mktime does not work.
30260         * modules/mktime (Depends-on): Add multiarch.
30261
30262 2009-01-21  Eric Blake  <ebb9@byu.net>
30263
30264         multiarch: avoid expand-before-require warning
30265         * modules/multiarch (configure.ac): Require, rather than expand,
30266         gl_MULTIARCH.
30267         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
30268         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
30269         enforce that all clients require it.  Partial reversion of
30270         2008-12-29 patch.
30271
30272         error: avoid expand-before-require warning
30273         * modules/errno (configure.ac): Require, rather than expand,
30274         gl_HEADER_ERRNO_H.
30275         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
30276         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
30277         enforce that all clients require it.
30278
30279         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
30280         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
30281         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
30282         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
30283
30284 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
30285
30286         Revert:
30287         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30288
30289         regex: do not depend on obsolete modules.
30290         * modules/regex: Remove memcmp and memmove.
30291
30292 2009-01-20  Bruno Haible  <bruno@clisp.org>
30293
30294         Make the 'link' module link on Windows NT 4.
30295         * lib/link.c (_WIN32_WINNT): Don't define.
30296         (CreateHardLinkFuncType): New type.
30297         (CreateHardLinkFunc, initialized): New variables.
30298         (initialize): New function.
30299         (link): Invoke CreateHardLink indirectly through the function pointer.
30300
30301 2009-01-20  Bruno Haible  <bruno@clisp.org>
30302
30303         Fix compilation failure on mingw.
30304         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
30305
30306 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
30307
30308         * doc/c-strtod.texi: Mention a couple of restrictions.
30309
30310 2009-01-20  Jim Meyering  <meyering@redhat.com>
30311
30312         gettimeofday: move more declarations out of functions
30313         * lib/gettimeofday.c: Move extern declarations of tzset and
30314         gmtime out of containing functions.  Prompted by Bruno Haible.
30315
30316 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30317
30318         regex: do not depend on obsolete modules.
30319         * modules/regex: Remove memcmp and memmove.
30320
30321 2009-01-19  Bruno Haible  <bruno@clisp.org>
30322
30323         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30324         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
30325         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30326         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
30327         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
30328
30329 2009-01-19  Bruno Haible  <bruno@clisp.org>
30330
30331         * tests/test-link.c: Include <errno.h>.
30332         (main): Exit with code 77 when a hard link cannot be created due to
30333         the file system.
30334         * tests/test-link.sh: Skip test when a hard link cannot be created due
30335         to the file system.
30336         Suggested by Eric Blake.
30337
30338 2009-01-19  Martin Lambers  <marlam@marlam.de>
30339
30340         * modules/link-tests: New file.
30341         * tests/test-link.sh: New file.
30342         * tests/test-link.c: New file.
30343
30344 2009-01-19  Eric Blake  <ebb9@byu.net>
30345
30346         doc: mention another function added in cygwin 1.7.0
30347         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
30348         Another new function in cygwin 1.7.
30349
30350 2009-01-19  Bruno Haible  <bruno@clisp.org>
30351
30352         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30353         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
30354         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
30355         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30356         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30357         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30358         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30359         * m4/md4.m4 (gl_MD4): Likewise.
30360         * m4/md5.m4 (gl_MD5): Likewise.
30361         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
30362         * m4/sha1.m4 (gl_SHA1): Likewise.
30363         * m4/sha256.m4 (gl_SHA256): Likewise.
30364         * m4/sha512.m4 (gl_SHA512): Likewise.
30365
30366 2009-01-19  Bruno Haible  <bruno@clisp.org>
30367
30368         * modules/uniname/uniname-tests (Depends-on): Add progname.
30369         * tests/uniname/test-uninames.c: Include progname.h.
30370         (main): Call set_program_name.
30371
30372         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
30373         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
30374         (main): Call set_program_name.
30375
30376         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
30377         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
30378         (main): Call set_program_name.
30379
30380         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
30381         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
30382         (main): Call set_program_name.
30383
30384         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
30385         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
30386         (main): Call set_program_name.
30387
30388         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
30389         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
30390         (main): Call set_program_name.
30391
30392         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
30393         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
30394         (main): Call set_program_name.
30395
30396         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
30397         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
30398         (main): Call set_program_name.
30399
30400         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
30401         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
30402         (main): Call set_program_name.
30403
30404 2009-01-19  Eric Blake  <ebb9@byu.net>
30405
30406         test-unistd: test previous patch
30407         * tests/test-unistd.c: Test *_FILENO macros.
30408
30409         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
30410         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30411         Guarantee a definition.
30412         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
30413         * modules/unistd-safer (Depends-on): Add dependency on unistd.
30414         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
30415         * lib/dup-safer.c (STDERR_FILENO): Likewise.
30416         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30417         Likewise.
30418         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
30419         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
30420         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30421         Likewise.
30422         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
30423         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
30424         (STDERR_FILENO): Likewise.
30425         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
30426         (STDERR_FILENO): Likewise.
30427         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
30428         (STDERR_FILENO): Likewise.
30429         Reported by Elbert Pol.
30430
30431 2009-01-19  Eric Blake  <ebb9@byu.net>
30432
30433         doc: mention more functions added in cygwin 1.7.0
30434         * doc/posix-functions/abort.texi (abort): Update wording related
30435         to cygwin.
30436         * doc/posix-functions/daylight.texi (daylight): Likewise.
30437         * doc/posix-functions/optarg.texi (optarg): Likewise.
30438         * doc/posix-functions/optarg.texi (opterr): Likewise.
30439         * doc/posix-functions/optarg.texi (optind): Likewise.
30440         * doc/posix-functions/optarg.texi (optopt): Likewise.
30441         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
30442         worked in 1.5.x, and was withdrawn in 1.7.
30443         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
30444         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
30445         cygwin versions.
30446         * doc/posix-functions/perror.texi (perror): Likewise.
30447         * doc/posix-functions/printf.texi (printf): Likewise.
30448         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
30449         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
30450         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
30451         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
30452         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
30453         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
30454         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30455         Likewise.
30456         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30457         Likewise.
30458         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
30459         this function.
30460         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
30461         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
30462         Likewise.
30463         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
30464         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
30465         * doc/posix-functions/confstr.texi (confstr): Likewise.
30466         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
30467         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
30468         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
30469         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
30470         * doc/posix-functions/fputws.texi (fputws): Likewise.
30471         * doc/posix-functions/fwide.texi (fwide): Likewise.
30472         * doc/posix-functions/getwc.texi (getwc): Likewise.
30473         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
30474         * doc/posix-functions/putwc.texi (putwc): Likewise.
30475         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
30476         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
30477         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
30478         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
30479         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
30480         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
30481         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
30482         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
30483         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
30484         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
30485         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
30486
30487 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30488
30489         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
30490         * lib/ioctl.c: Include <sys/ioctl.h>.
30491
30492 2009-01-19  Simon Josefsson  <simon@josefsson.org>
30493
30494         * modules/getdate-tests (Depends-on): Add progname.
30495         * tests/test-getdate.c: Use progname module, to avoid link errors
30496         on non-glibc systems.
30497
30498 2009-01-18  Simon Josefsson  <simon@josefsson.org>
30499
30500         * modules/filenamecat-tests (Depends-on): Add progname.
30501         * modules/fstrcmp-tests (Depends-on): Likewise.
30502
30503         * tests/test-filenamecat.c: Use progname module, to avoid link
30504         errors on non-glibc systems.
30505         * tests/test-fstrcmp.c: Likewise.
30506
30507 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30508
30509         gettimeofday: avoid warning: nested extern declaration of 'localtime'
30510         * lib/gettimeofday.c: Move extern declaration out of function.
30511
30512 2009-01-18  Bruno Haible  <bruno@clisp.org>
30513
30514         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
30515         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
30516         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
30517
30518 2009-01-18  Bruno Haible  <bruno@clisp.org>
30519
30520         * lib/strftime.c (MEMPCPY): Remove unused macro.
30521         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
30522
30523 2009-01-18  Martin Lambers  <marlam@marlam.de>
30524
30525         New module 'link'.
30526         * lib/unistd.in.h (link): New declaration.
30527         * lib/link.c: New file.
30528         * m4/link.m4: New file.
30529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
30530         HAVE_LINK.
30531         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
30532         * modules/link: New file.
30533         * doc/posix-functions/link.texi: Mention the new module.
30534
30535 2009-01-18  Bruno Haible  <bruno@clisp.org>
30536
30537         * tests/test-avltree_list.c (main): Call set_program_name.
30538         * tests/test-avltree_oset.c (main): Likewise.
30539         * tests/test-obstack-printf.c: Include progname.h.
30540         (main): Call set_program_name.
30541         * tests/test-quotearg.c: Include progname.h.
30542         (main): Call set_program_name.
30543         * tests/test-xmemdup0.c: Include progname.h.
30544         (main): Call set_program_name.
30545
30546 2009-01-18  Bruno Haible  <bruno@clisp.org>
30547
30548         New module 'alphasort'.
30549         * lib/dirent.in.h (alphasort): New declaration.
30550         * lib/alphasort.c: New file, from glibc with modifications.
30551         * m4/alphasort.m4: New file.
30552         * modules/alphasort: New file.
30553         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
30554         HAVE_ALPHASORT.
30555         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
30556         HAVE_ALPHASORT.
30557         * doc/posix-functions/alphasort.texi: Mention the new module and the
30558         portability problems.
30559
30560 2009-01-18  Bruno Haible  <bruno@clisp.org>
30561
30562         New module 'scandir'.
30563         * lib/dirent.in.h (scandir): New declaration.
30564         * lib/scandir.c: New file, from glibc with modifications.
30565         * m4/scandir.m4: New file.
30566         * modules/scandir: New file.
30567         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
30568         HAVE_SCANDIR.
30569         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
30570         HAVE_SCANDIR.
30571         * doc/posix-functions/scandir.texi: Mention the new module and the
30572         portability problems.
30573
30574 2009-01-17  Bruno Haible  <bruno@clisp.org>
30575
30576         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
30577         Update documentation.
30578         (func_remove_suffix): Escape all dots in the suffix. Update
30579         documentation.
30580         (func_filter_filelist): Update documentation.
30581         Reported by Ralf Wildenhues.
30582
30583 2009-01-17  Bruno Haible  <bruno@clisp.org>
30584
30585         * modules/dprintf-posix-tests: New file.
30586         * tests/test-dprintf-posix.sh: New file.
30587         * tests/test-dprintf-posix.c: New file.
30588
30589         New modules 'dprintf', 'dprintf-posix'.
30590         * lib/stdio.in.h (dprintf): New declaration.
30591         * lib/dprintf.c: New file.
30592         * m4/dprintf.m4: New file.
30593         * m4/dprintf-posix.m4: New file.
30594         * modules/dprintf: New file.
30595         * modules/dprintf-posix: New file.
30596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
30597         HAVE_DPRINTF, REPLACE_DPRINTF.
30598         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
30599         HAVE_DPRINTF, REPLACE_DPRINTF.
30600         * doc/posix-functions/dprintf.texi: Mention the new modules.
30601
30602 2009-01-17  Bruno Haible  <bruno@clisp.org>
30603
30604         * modules/vdprintf-posix-tests: New file.
30605         * tests/test-vdprintf-posix.sh: New file.
30606         * tests/test-vdprintf-posix.c: New file.
30607
30608         New modules 'vdprintf', 'vdprintf-posix'.
30609         * lib/stdio.in.h (vdprintf): New declaration.
30610         * lib/vdprintf.c: New file.
30611         * m4/vdprintf.m4: New file.
30612         * m4/vdprintf-posix.m4: New file.
30613         * modules/vdprintf: New file.
30614         * modules/vdprintf-posix: New file.
30615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
30616         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30617         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
30618         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30619         * doc/posix-functions/vdprintf.texi: Mention the new modules.
30620
30621 2009-01-17  Bruno Haible  <bruno@clisp.org>
30622
30623         Fix replacement of fopen on mingw.
30624         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
30625         mingw.
30626
30627 2009-01-17  Bruno Haible  <bruno@clisp.org>
30628
30629         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
30630         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
30631
30632 2009-01-17  Bruno Haible  <bruno@clisp.org>
30633
30634         Avoid test-fflush2.sh failure on mingw.
30635         * tests/test-fflush2.c: Include binary-io.h.
30636         (main): Put standard input into binary mode.
30637         * modules/fflush-tests (Depends-on): Add binary-io.
30638
30639 2009-01-17  Bruno Haible  <bruno@clisp.org>
30640
30641         * lib/wchar.in.h: In another particular situation, include only the
30642         system's <wchar.h> file.
30643         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
30644         Reported by Albert Chin-A-Young <china@thewrittenword.com>
30645         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
30646
30647 2009-01-17  Bruno Haible  <bruno@clisp.org>
30648
30649         Support for stripping executables in --enable-relocatable.
30650         * build-aux/install-reloc: Expect one more argument, or an environment
30651         variable RELOC_STRIP_PROG. If set, strip the destination program and
30652         its wrapper.
30653         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
30654         RELOC_STRIP_PROG.
30655         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
30656         to set RELOCATABLE_STRIP.
30657         * NEWS: Mention the new Makefile requirement.
30658
30659 2009-01-17  Bruno Haible  <bruno@clisp.org>
30660
30661         * build-aux/install-reloc: Remove debugging information left over by
30662         C compiler on MacOS X.
30663
30664 2009-01-17  Bruno Haible  <bruno@clisp.org>
30665
30666         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
30667         * lib/progreloc.c (find_executable): Fix type of pointer passed to
30668         _NSGetExecutablePath.
30669
30670 2009-01-16  Jim Meyering  <meyering@redhat.com>
30671
30672         strerror: avoid warnings about discarding "const"
30673         * lib/strerror.c (rpl_strerror): Instead of returning a const
30674         string from each and every "case", use a variable, and add a single
30675         cast after the switch.
30676
30677 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
30678
30679         * lib/arpa_inet.in.h: Add extern "C" block for C++.
30680
30681 2009-01-16  Bruno Haible  <bruno@clisp.org>
30682
30683         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
30684         array initializer syntax that also works in C++ mode.
30685         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30686
30687 2009-01-16  Jim Meyering  <meyering@redhat.com>
30688
30689         poll: suppress a warning
30690         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
30691         to ignore "...unsigned expression < 0 is always false" warnings.
30692
30693 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
30694
30695         poll: remove declarations of unused variables
30696         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
30697         sockbuf and optlen.
30698
30699 2009-01-15  Bruno Haible  <bruno@clisp.org>
30700
30701         Make fflush-after-ungetc POSIX compliant on BSD systems.
30702         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
30703         (clear_ungetc_buffer): Implement also for other systems.
30704         (rpl_fflush): On glibc systems, invoke
30705         clear_ungetc_buffer_preserving_position. Otherwise, invoke
30706         clear_ungetc_buffer after fetching the stream's position, not before.
30707
30708 2009-01-15  Bruno Haible  <bruno@clisp.org>
30709
30710         Make fflush-after-ungetc POSIX compliant on glibc systems.
30711         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
30712         after ungetc.
30713         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
30714         (rpl_fflush): On glibc systems, simply call the system's fflush
30715         function after clearing the ungetc buffer.
30716         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
30717         Instead, lseek only to the end of file, then use the system's fseeko
30718         for the rest. On glibc systems, reset the EOF indicator bit.
30719
30720 2009-01-15  Jim Meyering  <meyering@redhat.com>
30721
30722         openmp.m4: revert quote-adding change, for portability to older autoconf
30723         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
30724         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
30725         Simon Josefsson noticed the problem when using autoconf-2.61.
30726
30727 2009-01-15  Bruno Haible  <bruno@clisp.org>
30728
30729         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
30730         * tests/test-fflush2.c (ASSERT): Always fail.
30731         (main): Add two tests for fflush() after ungetc(), taking into account
30732         the Austin Group's clarification.
30733         Suggested by Eric Blake.
30734
30735 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
30736
30737         mktime.m4: remove K&R-style function prototypes
30738         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
30739         for the Sun C++ compiler.
30740
30741 2009-01-14  Bruno Haible  <bruno@clisp.org>
30742
30743         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
30744         while including <wchar.h>.
30745         * lib/wchar.in.h: In two particular situations on HP-UX, include only
30746         the system's <wchar.h> file.
30747         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30748
30749 2009-01-14  Bruno Haible  <bruno@clisp.org>
30750
30751         * m4/csharp.m4: Don't mention gettext on the serial number line.
30752         * m4/csharpexec.m4: Likewise.
30753         * m4/eaccess.m4: Likewise.
30754         * m4/javaexec.m4: Likewise.
30755         * m4/sig_atomic_t.m4: Likewise.
30756         * m4/tmpdir.m4: Likewise.
30757         * m4/intldir.m4: Bump gettext version.
30758         * m4/lib-ld.m4: Likewise.
30759
30760 2009-01-14  Bruno Haible  <bruno@clisp.org>
30761
30762         * lib/progname.c (set_program_name): Add more comments.
30763         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30764
30765 2009-01-14  Simon Josefsson  <simon@josefsson.org>
30766
30767         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
30768         were sys/stat.h does not define it.
30769
30770 2009-01-14  Jim Meyering  <meyering@redhat.com>
30771
30772         many *.m4 files: improve m4 quoting
30773         99% of this change was performed by running the following commands:
30774         git ls-files | grep '\.m4$' | xargs perl -pi \
30775           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
30776           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30777           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30778           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
30779         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
30780         The remainder were to add Copyright dates, increment serial numbers,
30781         undo some changes in comments, exclude m4/intl.m4, and add quotes
30782         around the "1" in ",1" where the unusual spacing prohibited the
30783         above regexps from doing the job.  For more details, see
30784         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
30785         * m4/acl.m4: Modified.
30786         * m4/afs.m4: Likewise.
30787         * m4/alloca.m4: Likewise.
30788         * m4/argp.m4: Likewise.
30789         * m4/argz.m4: Likewise.
30790         * m4/atexit.m4: Likewise.
30791         * m4/bison-i18n.m4: Likewise.
30792         * m4/bison.m4: Likewise.
30793         * m4/byteswap.m4: Likewise.
30794         * m4/c-stack.m4: Likewise.
30795         * m4/c-strtod.m4: Likewise.
30796         * m4/calloc.m4: Likewise.
30797         * m4/canonicalize-lgpl.m4: Likewise.
30798         * m4/chown.m4: Likewise.
30799         * m4/clock_time.m4: Likewise.
30800         * m4/codeset.m4: Likewise.
30801         * m4/copy-file.m4: Likewise.
30802         * m4/csharp.m4: Likewise.
30803         * m4/csharpcomp.m4: Likewise.
30804         * m4/csharpexec.m4: Likewise.
30805         * m4/d-ino.m4: Likewise.
30806         * m4/d-type.m4: Likewise.
30807         * m4/dirfd.m4: Likewise.
30808         * m4/double-slash-root.m4: Likewise.
30809         * m4/eaccess.m4: Likewise.
30810         * m4/eealloc.m4: Likewise.
30811         * m4/environ.m4: Likewise.
30812         * m4/errno_h.m4: Likewise.
30813         * m4/euidaccess.m4: Likewise.
30814         * m4/execute.m4: Likewise.
30815         * m4/fatal-signal.m4: Likewise.
30816         * m4/fchdir.m4: Likewise.
30817         * m4/fcntl_h.m4: Likewise.
30818         * m4/fileblocks.m4: Likewise.
30819         * m4/filenamecat.m4: Likewise.
30820         * m4/findprog.m4: Likewise.
30821         * m4/flexmember.m4: Likewise.
30822         * m4/fnmatch.m4: Likewise.
30823         * m4/fopen.m4: Likewise.
30824         * m4/fpending.m4: Likewise.
30825         * m4/fprintf-posix.m4: Likewise.
30826         * m4/free.m4: Likewise.
30827         * m4/frexp.m4: Likewise.
30828         * m4/frexpl.m4: Likewise.
30829         * m4/fsusage.m4: Likewise.
30830         * m4/ftruncate.m4: Likewise.
30831         * m4/gc-camellia.m4: Likewise.
30832         * m4/gc-random.m4: Likewise.
30833         * m4/gc.m4: Likewise.
30834         * m4/getaddrinfo.m4: Likewise.
30835         * m4/getcwd-abort-bug.m4: Likewise.
30836         * m4/getcwd-path-max.m4: Likewise.
30837         * m4/getdate.m4: Likewise.
30838         * m4/getdomainname.m4: Likewise.
30839         * m4/getgroups.m4: Likewise.
30840         * m4/gethostname.m4: Likewise.
30841         * m4/gethrxtime.m4: Likewise.
30842         * m4/getline.m4: Likewise.
30843         * m4/getloadavg.m4: Likewise.
30844         * m4/getndelim2.m4: Likewise.
30845         * m4/getpass.m4: Likewise.
30846         * m4/gettext.m4: Likewise.
30847         * m4/gettime.m4: Likewise.
30848         * m4/gettimeofday.m4: Likewise.
30849         * m4/gnulib-common.m4: Likewise.
30850         * m4/group-member.m4: Likewise.
30851         * m4/host-os.m4: Likewise.
30852         * m4/iconv.m4: Likewise.
30853         * m4/iconv_open.m4: Likewise.
30854         * m4/inet_ntop.m4: Likewise.
30855         * m4/inet_pton.m4: Likewise.
30856         * m4/inline.m4: Likewise.
30857         * m4/intldir.m4: Likewise.
30858         * m4/intlmacosx.m4: Likewise.
30859         * m4/intmax.m4: Likewise.
30860         * m4/intmax_t.m4: Likewise.
30861         * m4/inttypes.m4: Likewise.
30862         * m4/inttypes_h.m4: Likewise.
30863         * m4/inttypes-pri.m4: Likewise.
30864         * m4/isapipe.m4: Likewise.
30865         * m4/isnand.m4: Likewise.
30866         * m4/isnanf.m4: Likewise.
30867         * m4/isnanl.m4: Likewise.
30868         * m4/javacomp.m4: Likewise.
30869         * m4/javaexec.m4: Likewise.
30870         * m4/jm-winsz1.m4: Likewise.
30871         * m4/jm-winsz2.m4: Likewise.
30872         * m4/lchown.m4: Likewise.
30873         * m4/lcmessage.m4: Likewise.
30874         * m4/ldexpl.m4: Likewise.
30875         * m4/lib-ld.m4: Likewise.
30876         * m4/lib-link.m4: Likewise.
30877         * m4/libsigsegv.m4: Likewise.
30878         * m4/link-follow.m4: Likewise.
30879         * m4/localcharset.m4: Likewise.
30880         * m4/locale-fr.m4: Likewise.
30881         * m4/locale-ja.m4: Likewise.
30882         * m4/locale-tr.m4: Likewise.
30883         * m4/locale-zh.m4: Likewise.
30884         * m4/lock.m4: Likewise.
30885         * m4/longlong.m4: Likewise.
30886         * m4/ls-mntd-fs.m4: Likewise.
30887         * m4/lstat.m4: Likewise.
30888         * m4/malloc.m4: Likewise.
30889         * m4/mathl.m4: Likewise.
30890         * m4/mbrtowc.m4: Likewise.
30891         * m4/mbstate_t.m4: Likewise.
30892         * m4/mbswidth.m4: Likewise.
30893         * m4/memchr.m4: Likewise.
30894         * m4/memcmp.m4: Likewise.
30895         * m4/memcpy.m4: Likewise.
30896         * m4/memmem.m4: Likewise.
30897         * m4/memmove.m4: Likewise.
30898         * m4/mempcpy.m4: Likewise.
30899         * m4/memrchr.m4: Likewise.
30900         * m4/memset.m4: Likewise.
30901         * m4/minmax.m4: Likewise.
30902         * m4/mkdir-slash.m4: Likewise.
30903         * m4/mkdtemp.m4: Likewise.
30904         * m4/mktime.m4: Likewise.
30905         * m4/mmap-anon.m4: Likewise.
30906         * m4/mountlist.m4: Likewise.
30907         * m4/nanosleep.m4: Likewise.
30908         * m4/nls.m4: Likewise.
30909         * m4/nocrash.m4: Likewise.
30910         * m4/open.m4: Likewise.
30911         * m4/openat.m4: Likewise.
30912         * m4/openmp.m4: Likewise.
30913         * m4/pathmax.m4: Likewise.
30914         * m4/perl.m4: Likewise.
30915         * m4/physmem.m4: Likewise.
30916         * m4/pipe.m4: Likewise.
30917         * m4/po.m4: Likewise.
30918         * m4/poll.m4: Likewise.
30919         * m4/posixtm.m4: Likewise.
30920         * m4/posixver.m4: Likewise.
30921         * m4/printf-frexp.m4: Likewise.
30922         * m4/printf-frexpl.m4: Likewise.
30923         * m4/printf-posix.m4: Likewise.
30924         * m4/printf-posix-rpl.m4: Likewise.
30925         * m4/printf.m4: Likewise.
30926         * m4/progtest.m4: Likewise.
30927         * m4/putenv.m4: Likewise.
30928         * m4/readline.m4: Likewise.
30929         * m4/readlink.m4: Likewise.
30930         * m4/readutmp.m4: Likewise.
30931         * m4/realloc.m4: Likewise.
30932         * m4/regex.m4: Likewise.
30933         * m4/relocatable.m4: Likewise.
30934         * m4/relocatable-lib.m4: Likewise.
30935         * m4/rename-dest-slash.m4: Likewise.
30936         * m4/rename.m4: Likewise.
30937         * m4/rmdir-errno.m4: Likewise.
30938         * m4/rmdir.m4: Likewise.
30939         * m4/roundf.m4: Likewise.
30940         * m4/roundl.m4: Likewise.
30941         * m4/rpmatch.m4: Likewise.
30942         * m4/save-cwd.m4: Likewise.
30943         * m4/selinux-selinux-h.m4: Likewise.
30944         * m4/setenv.m4: Likewise.
30945         * m4/settime.m4: Likewise.
30946         * m4/sig2str.m4: Likewise.
30947         * m4/sig_atomic_t.m4: Likewise.
30948         * m4/signalblocking.m4: Likewise.
30949         * m4/signbit.m4: Likewise.
30950         * m4/sigpipe.m4: Likewise.
30951         * m4/sockets.m4: Likewise.
30952         * m4/sockpfaf.m4: Likewise.
30953         * m4/st_dm_mode.m4: Likewise.
30954         * m4/stat-time.m4: Likewise.
30955         * m4/stdbool.m4: Likewise.
30956         * m4/stdint.m4: Likewise.
30957         * m4/stdint_h.m4: Likewise.
30958         * m4/stpcpy.m4: Likewise.
30959         * m4/stpncpy.m4: Likewise.
30960         * m4/strcase.m4: Likewise.
30961         * m4/strchrnul.m4: Likewise.
30962         * m4/strcspn.m4: Likewise.
30963         * m4/strdup.m4: Likewise.
30964         * m4/strftime.m4: Likewise.
30965         * m4/strndup.m4: Likewise.
30966         * m4/strnlen.m4: Likewise.
30967         * m4/strpbrk.m4: Likewise.
30968         * m4/strptime.m4: Likewise.
30969         * m4/strsep.m4: Likewise.
30970         * m4/strtod.m4: Likewise.
30971         * m4/strtoimax.m4: Likewise.
30972         * m4/strtok_r.m4: Likewise.
30973         * m4/strtol.m4: Likewise.
30974         * m4/strtoll.m4: Likewise.
30975         * m4/strtoul.m4: Likewise.
30976         * m4/strtoull.m4: Likewise.
30977         * m4/strtoumax.m4: Likewise.
30978         * m4/strverscmp.m4: Likewise.
30979         * m4/threadlib.m4: Likewise.
30980         * m4/timegm.m4: Likewise.
30981         * m4/tm_gmtoff.m4: Likewise.
30982         * m4/tmpdir.m4: Likewise.
30983         * m4/tmpfile.m4: Likewise.
30984         * m4/tzset.m4: Likewise.
30985         * m4/uintmax_t.m4: Likewise.
30986         * m4/unlinkdir.m4: Likewise.
30987         * m4/unlocked-io.m4: Likewise.
30988         * m4/uptime.m4: Likewise.
30989         * m4/userspec.m4: Likewise.
30990         * m4/utimbuf.m4: Likewise.
30991         * m4/utime.m4: Likewise.
30992         * m4/utimes-null.m4: Likewise.
30993         * m4/utimes.m4: Likewise.
30994         * m4/vararrays.m4: Likewise.
30995         * m4/vasnprintf.m4: Likewise.
30996         * m4/vfprintf-posix.m4: Likewise.
30997         * m4/vprintf-posix.m4: Likewise.
30998         * m4/wait-process.m4: Likewise.
30999         * m4/wchar_t.m4: Likewise.
31000         * m4/wint_t.m4: Likewise.
31001         * m4/write-any-file.m4: Likewise.
31002         * m4/yield.m4: Likewise.
31003
31004 2009-01-13  Bruno Haible  <bruno@clisp.org>
31005
31006         Avoid test-copy-file.sh failures when ACL support insufficient.
31007         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
31008         TESTS_ENVIRONMENT.
31009         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
31010         Reported by Jim Meyering.
31011
31012 2009-01-13  Bruno Haible  <bruno@clisp.org>
31013
31014         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
31015         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
31016         * modules/unistdio/u8-printf-parse (Files): Likewise.
31017         * modules/unistdio/u32-printf-parse (Files): Likewise.
31018         * modules/unistdio/ulc-printf-parse (Files): Likewise.
31019
31020 2009-01-13  Simon Josefsson  <simon@josefsson.org>
31021
31022         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
31023         and m4/inttypes_h.m4 too.
31024
31025 2009-01-12  Eric Blake  <ebb9@byu.net>
31026
31027         tests: IRIX 6.2 cc can't compile -0.0 into .data
31028         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
31029         rather than at compile-time.
31030         * tests/test-floorl.c (minus_zero): Likewise.
31031         * tests/test-frexpl.c (minus_zero): Likewise.
31032         * tests/test-isnan.c (minus_zerol): Likewise.
31033         * tests/test-isnanl.h (minus_zero): Likewise.
31034         * tests/test-ldexpl.c (minus_zero): Likewise.
31035         * tests/test-roundl.c (minus_zero): Likewise.
31036         * tests/test-signbit.c (minus_zerol): Likewise.
31037         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
31038         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
31039         * tests/test-truncl.c (minus_zero): Likewise.
31040         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
31041         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
31042         Reported by Tom G. Christensen and Nelson H. F. Beebe.
31043
31044 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31045
31046         regex: fix glibc bug 9697
31047         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
31048         handling.
31049
31050 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31051
31052         regex: fix glibc bug 697
31053         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
31054         being NULL also if there are no backreferences.
31055
31056 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31057
31058         regex: merge glibc changes
31059         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
31060         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
31061         re_string_skip_chars, re_string_reconstruct): Likewise.
31062         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
31063
31064 2009-01-07  Jim Meyering  <meyering@redhat.com>
31065
31066         poll: filter through cppi
31067         * lib/poll.c: Indent cpp directives to reflect nesting.
31068
31069 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
31070
31071         poll: don't return uninitialized
31072         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
31073
31074 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
31075
31076         avoid compile failure on AIX 6.1
31077         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
31078         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
31079
31080 2009-01-04  Jim Meyering  <meyering@redhat.com>
31081
31082         remove duplicate inclusion of <stdio.h>
31083         * tests/test-fprintf-posix.c: Likewise.
31084         * tests/test-printf-posix.c: Likewise.
31085         * tests/test-snprintf-posix.c: Likewise.
31086         * tests/test-sprintf-posix.c: Likewise.
31087         * tests/test-vasprintf-posix.c: Likewise.
31088         * tests/test-vfprintf-posix.c: Likewise.
31089         * tests/test-vprintf-posix.c: Likewise.
31090         * tests/test-vsnprintf-posix.c: Likewise.
31091         * tests/test-vsprintf-posix.c: Likewise.
31092
31093 2009-01-03  Jim Meyering  <meyering@redhat.com>
31094
31095         gnulib-tool: fix sed-based filtering
31096         * gnulib-tool (func_filter_filelist): Remove extra backslash
31097         in sed_fff_filter definition.
31098
31099 2009-01-02  Jim Meyering  <meyering@redhat.com>
31100
31101         strftime: avoid compilation failure on Solaris 2.6
31102         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
31103         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
31104         Don't #define mbrlen or mbsinit, since now they're guaranteed to
31105         be available.  Reported by Tom G. Christensen.  Details in
31106         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
31107
31108 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31109             Bruno Haible  <bruno@clisp.org>
31110
31111         Speed up gnulib-tool by doing more string processing through shell
31112         built-ins.
31113         * gnulib-tool (fast_func_append): New variable.
31114         (func_remove_prefix, func_remove_suffix): New functions.
31115         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
31116         (func_filter_filelist): New function.
31117         (func_get_dependencies): Use func_remove_suffix instead of sed.
31118         (func_get_automake_snippet): Use func_filter_filelist instead of a
31119         subshell and sed invocation.
31120
31121 2009-01-01  Bruno Haible  <bruno@clisp.org>
31122
31123         Fix a security bug.
31124         * gnulib-tool (func_import, import, update): Don't allow the characters
31125         '"', '$', '`', '\' in macro arguments that become part of commands that
31126         are evaluated.
31127
31128 2009-01-01  Bruno Haible  <bruno@clisp.org>
31129
31130         * gnulib-tool (func_reset_sigpipe): Add more comments.
31131
31132 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31133
31134         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
31135         func_emit_tests_Makefile_am, func_import): Abort loops early if we
31136         already know the answer.
31137
31138 2009-01-01  Jim Meyering  <meyering@redhat.com>
31139
31140         * lib/version-etc.c (version_etc_va): Update copyright year.
31141
31142 2008-12-30  Bruno Haible  <bruno@clisp.org>
31143
31144         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
31145         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
31146         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
31147
31148 2008-12-29  Eric Blake  <ebb9@byu.net>
31149
31150         multiarch: avoid autoconf AC_REQUIRE bug
31151         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
31152         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
31153         2.63 and older.
31154         Reported by Bruno Haible, and analyzed in
31155         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
31156
31157 2008-12-29  Bruno Haible  <bruno@clisp.org>
31158
31159         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
31160         files in subdirectories correctly.
31161         Reported by Ralf Wildenhues.
31162
31163 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31164
31165         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
31166         rather than 'join FILE -', for Solaris join.
31167
31168 2008-12-29  Bruno Haible  <bruno@clisp.org>
31169
31170         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
31171         quoting.
31172         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31173         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
31174         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
31175         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
31176         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31177         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31178         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31179         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31180         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31181         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31182         * m4/nls.m4 (AM_NLS): Likewise.
31183         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
31184         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31185         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31186         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31187         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31188         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31189         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
31190         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31191         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31192         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31193         * m4/xsize.m4 (gl_XSIZE): Likewise.
31194         Suggested by Jim Meyering.
31195
31196 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31197
31198         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
31199         * lib/parse-duration.c: use a switch instead of cascading if's.
31200
31201 2008-12-29  Eric Blake  <ebb9@byu.net>
31202
31203         wchar.h: supply WEOF on Irix 5.3
31204         * lib/wchar.in.h (wint_t): Also supply WEOF.
31205         * lib/wctype.in.h (wint_t): Likewise.
31206         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
31207         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
31208         Reported by Tom G. Christensen.
31209
31210 2008-12-26  Bruno Haible  <bruno@clisp.org>
31211
31212         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
31213         i486, i586, i686.
31214
31215 2008-12-26  Bruno Haible  <bruno@clisp.org>
31216
31217         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
31218
31219 2008-12-26  Bruno Haible  <bruno@clisp.org>
31220
31221         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
31222         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
31223         not __STDC_CONSTANT_MACROS.
31224         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
31225
31226 2008-12-25  Bruno Haible  <bruno@clisp.org>
31227
31228         Add support for universal builds to vasnprintf.
31229         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
31230         universal builds, guess no.
31231         * modules/vasnprintf-posix (Depends-on): Add multiarch.
31232         * modules/vasprintf-posix (Depends-on): Likewise.
31233         * modules/fprintf-posix (Depends-on): Likewise.
31234         * modules/vfprintf-posix (Depends-on): Likewise.
31235         * modules/snprintf-posix (Depends-on): Likewise.
31236         * modules/vsnprintf-posix (Depends-on): Likewise.
31237         * modules/sprintf-posix (Depends-on): Likewise.
31238         * modules/vsprintf-posix (Depends-on): Likewise.
31239         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31240         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31241         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31242         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31243         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31244         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31245         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31246
31247         Add support for universal builds to <inttypes.h>.
31248         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
31249         _SCNu64_PREFIX): In Apple
31250         universal builds, define directly, using _LP64.
31251         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
31252         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
31253         * modules/inttypes (Depends-on): Add multiarch.
31254         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31255
31256         Add support for universal builds to <stdint.h>.
31257         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
31258         universal builds, define directly, using _LP64.
31259         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
31260         Apple universal builds, don't test for the size and suffix of ptrdiff_t
31261         and size_t.
31262         * modules/stdint (Depends-on): Add multiarch.
31263         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31264
31265         New module 'multiarch'.
31266         * modules/multiarch: New file.
31267         * m4/multiarch.m4: New file.
31268
31269 2008-12-25  Bruno Haible  <bruno@clisp.org>
31270
31271         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
31272
31273 2008-12-25  Bruno Haible  <bruno@clisp.org>
31274
31275         * modules/btowc (License): Relicense under LGPLv2+.
31276         * modules/mbsinit (License): Likewise.
31277         * modules/mbrtowc (License): Likewise.
31278         * modules/wcrtomb (License): Likewise.
31279         * modules/streq (License): Likewise.
31280         Reported by David Lutterkort <lutter@redhat.com>.
31281
31282 2008-12-23  Bruno Haible  <bruno@clisp.org>
31283
31284         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
31285
31286 2008-12-23  Bruno Haible  <bruno@clisp.org>
31287
31288         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
31289         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
31290         GETADDRINFO_LIB, not in LIBS.
31291         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
31292         * modules/canon-host (Link): Likewise.
31293         * NEWS: Mention the change.
31294         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
31295         GETADDRINFO_LIB.
31296
31297 2008-12-22  Bruno Haible  <bruno@clisp.org>
31298
31299         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
31300         * doc/posix-functions/iswalpha_l.texi: Likewise.
31301         * doc/posix-functions/iswblank_l.texi: Likewise.
31302         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31303         * doc/posix-functions/iswctype_l.texi: Likewise.
31304         * doc/posix-functions/iswdigit_l.texi: Likewise.
31305         * doc/posix-functions/iswgraph_l.texi: Likewise.
31306         * doc/posix-functions/iswlower_l.texi: Likewise.
31307         * doc/posix-functions/iswprint_l.texi: Likewise.
31308         * doc/posix-functions/iswpunct_l.texi: Likewise.
31309         * doc/posix-functions/iswspace_l.texi: Likewise.
31310         * doc/posix-functions/iswupper_l.texi: Likewise.
31311         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31312         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
31313         * doc/posix-functions/open_wmemstream.texi: Likewise.
31314         * doc/posix-functions/swscanf.texi: Likewise.
31315         * doc/posix-functions/towctrans_l.texi: Likewise.
31316         * doc/posix-functions/towlower.texi: Likewise.
31317         * doc/posix-functions/towlower_l.texi: Likewise.
31318         * doc/posix-functions/towupper.texi: Likewise.
31319         * doc/posix-functions/towupper_l.texi: Likewise.
31320         * doc/posix-functions/vfwprintf.texi: Likewise.
31321         * doc/posix-functions/vfwscanf.texi: Likewise.
31322         * doc/posix-functions/vswscanf.texi: Likewise.
31323         * doc/posix-functions/vwprintf.texi: Likewise.
31324         * doc/posix-functions/vwscanf.texi: Likewise.
31325         * doc/posix-functions/wcpcpy.texi: Likewise.
31326         * doc/posix-functions/wcpncpy.texi: Likewise.
31327         * doc/posix-functions/wcscasecmp.texi: Likewise.
31328         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
31329         * doc/posix-functions/wcscoll_l.texi: Likewise.
31330         * doc/posix-functions/wcsdup.texi: Likewise.
31331         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31332         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
31333         * doc/posix-functions/wcsnlen.texi: Likewise.
31334         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31335         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31336         * doc/posix-functions/wctrans_l.texi: Likewise.
31337         * doc/posix-functions/wctype_l.texi: Likewise.
31338         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
31339         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
31340         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
31341         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
31342         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
31343         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
31344         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
31345         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
31346         * doc/glibc-functions/wcschrnul.texi: Likewise.
31347         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31348         * doc/glibc-functions/wcstod_l.texi: Likewise.
31349         * doc/glibc-functions/wcstof_l.texi: Likewise.
31350         * doc/glibc-functions/wcstol_l.texi: Likewise.
31351         * doc/glibc-functions/wcstold_l.texi: Likewise.
31352         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31353         * doc/glibc-functions/wcstoq.texi: Likewise.
31354         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31355         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31356         * doc/glibc-functions/wcstouq.texi: Likewise.
31357         * doc/glibc-functions/wmempcpy.texi: Likewise.
31358
31359 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
31360             Eric Blake  <ebb9@byu.net>
31361             Paolo Bonzini  <bonzini@gnu.org>
31362             Bruno Haible  <bruno@clisp.org>
31363
31364         Make c-stack work on Haiku.
31365         * lib/c-stack.c (SA_ONSTACK): Define fallback.
31366         (c_stack_action): Use SA_ONSTACK flag.
31367
31368 2008-12-22  Bruno Haible  <bruno@clisp.org>
31369
31370         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
31371
31372 2008-12-22  Bruno Haible  <bruno@clisp.org>
31373
31374         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
31375         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
31376         being overridden.
31377         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
31378         New macros.
31379         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
31380         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
31381         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
31382         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
31383
31384 2008-12-22  Bruno Haible  <bruno@clisp.org>
31385
31386         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
31387         from test code.
31388
31389 2008-12-22  Eric Blake  <ebb9@byu.net>
31390
31391         Avoid gcc warnings on cygwin.
31392         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
31393         Avoid unused variable.
31394         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
31395         Likewise.
31396
31397 2008-12-22  Bruno Haible  <bruno@clisp.org>
31398
31399         Remove HAVE_MBRTOWC conditionals.
31400         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
31401         (mbscasecmp): Assume mbrtowc function.
31402         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
31403         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
31404         * lib/mbschr.c: Include mbuiter.h unconditionally.
31405         (mbschr): Assume mbrtowc function.
31406         * lib/mbscspn.c: Include mbuiter.h unconditionally.
31407         (mbscspn): Assume mbrtowc function.
31408         * lib/mbslen.c: Include mbuiter.h unconditionally.
31409         (mbslen): Assume mbrtowc function.
31410         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
31411         (mbsncasecmp): Assume mbrtowc function.
31412         * lib/mbsnlen.c: Include mbiter.h unconditionally.
31413         (mbsnlen): Assume mbrtowc function.
31414         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
31415         (mbspbrk): Assume mbrtowc function.
31416         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
31417         (mbspcasecmp): Assume mbrtowc function.
31418         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
31419         (mbsrchr): Assume mbrtowc function.
31420         * lib/mbssep.c: Include mbuiter.h unconditionally.
31421         (mbssep): Assume mbrtowc function.
31422         * lib/mbsspn.c: Include mbuiter.h unconditionally.
31423         (mbsspn): Assume mbrtowc function.
31424         * lib/mbsstr.c: Include mbuiter.h unconditionally.
31425         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
31426         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
31427         (mbstok_r): Assume mbrtowc function.
31428         * lib/propername.c: Include mbuiter.h unconditionally.
31429         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
31430         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
31431         (trim2): Assume mbrtowc function.
31432         * lib/mbswidth.c (mbsinit): Remove fallback definition.
31433         (mbsnwidth): Assume mbrtowc function.
31434         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
31435         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
31436         fallback definitions.
31437         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
31438
31439 2008-12-22  Bruno Haible  <bruno@clisp.org>
31440
31441         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
31442
31443 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
31444
31445         * modules/regex: Request emulations for the mb*/wc* functions we need.
31446         * m4/regex.m4: Don't look for those functions here.
31447         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
31448
31449 2008-12-22  Bruno Haible  <bruno@clisp.org>
31450
31451         * modules/fnmatch (Depends-on): Remove duplicated dependency.
31452
31453 2008-12-21  Bruno Haible  <bruno@clisp.org>
31454
31455         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
31456         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
31457         (Include): Remove conditionalization.
31458         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
31459         (Include): Remove conditionalization.
31460         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
31461         (Include): Remove conditionalization.
31462         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
31463         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31464         * NEWS: Mention the change.
31465         Reported by Alan Hourihane <alanh@fairlite.co.uk>
31466         via Sergey Poznyakoff <gray@gnu.org.ua>.
31467
31468 2008-12-21  Bruno Haible  <bruno@clisp.org>
31469
31470         * MODULES.html.sh (Extended multibyte and wide character utilities
31471         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
31472         wcrtomb, wcsrtombs.
31473         (Support for systems lacking POSIX:2008): Add accept, bind, close,
31474         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
31475         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
31476         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
31477
31478 2008-12-21  Bruno Haible  <bruno@clisp.org>
31479
31480         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
31481
31482 2008-12-21  Bruno Haible  <bruno@clisp.org>
31483
31484         * modules/wcsnrtombs-tests: New file.
31485         * tests/test-wcsnrtombs1.sh: New file.
31486         * tests/test-wcsnrtombs2.sh: New file.
31487         * tests/test-wcsnrtombs3.sh: New file.
31488         * tests/test-wcsnrtombs4.sh: New file.
31489         * tests/test-wcsnrtombs.c: New file.
31490
31491         New module 'wcsnrtombs'.
31492         * lib/wchar.in.h (wcsnrtombs): New declaration.
31493         * lib/wcsnrtombs.c: New file.
31494         * lib/wcsrtombs-state.c: New file.
31495         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
31496         (internal_state): Remove variable.
31497         * m4/wcsnrtombs.m4: New file.
31498         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
31499         compilation units.
31500         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
31501         HAVE_WCSNRTOMBS.
31502         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
31503         HAVE_WCSNRTOMBS.
31504         * modules/wcsnrtombs: New file.
31505         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
31506         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
31507
31508 2008-12-21  Bruno Haible  <bruno@clisp.org>
31509
31510         * modules/wcsrtombs-tests: New file.
31511         * tests/test-wcsrtombs1.sh: New file.
31512         * tests/test-wcsrtombs2.sh: New file.
31513         * tests/test-wcsrtombs3.sh: New file.
31514         * tests/test-wcsrtombs4.sh: New file.
31515         * tests/test-wcsrtombs.c: New file.
31516
31517         New module 'wcsrtombs'.
31518         * lib/wchar.in.h (wcsrtombs): New declaration.
31519         * lib/wcsrtombs.c: New file.
31520         * m4/wcsrtombs.m4: New file.
31521         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
31522         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
31523         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
31524         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
31525         * modules/wcsrtombs: New file.
31526         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
31527         bugs.
31528
31529 2008-12-21  Bruno Haible  <bruno@clisp.org>
31530
31531         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
31532         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
31533         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
31534         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
31535         if not correct.
31536         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
31537         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
31538         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31539         m4/locale-zh.m4, m4/codeset.m4.
31540         * doc/posix-functions/wcrtomb.texi: Document the bug.
31541
31542 2008-12-21  Bruno Haible  <bruno@clisp.org>
31543
31544         Work around a btowc() bug on IRIX 6.5.
31545         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
31546         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
31547         REPLACE_WTOBC if not.
31548         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
31549         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
31550         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
31551
31552 2008-12-21  Bruno Haible  <bruno@clisp.org>
31553
31554         * modules/wcrtomb-tests: New file.
31555         * tests/test-wcrtomb.sh: New file.
31556         * tests/test-wcrtomb.c: New file.
31557
31558         New module 'wcrtomb'.
31559         * lib/wchar.in.h (wcrtomb): New declaration.
31560         * lib/wcrtomb.c: New file.
31561         * m4/wcrtomb.m4: New file.
31562         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
31563         HAVE_WCRTOMB.
31564         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
31565         HAVE_WCRTOMB.
31566         * modules/wcrtomb: New file.
31567         * doc/posix-functions/wcrtomb.texi: Mention the new module.
31568
31569 2008-12-21  Bruno Haible  <bruno@clisp.org>
31570
31571         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
31572         * modules/mbsrtowcs (Files): Likewise.
31573         * modules/wctob (Files): Likewise.
31574         * modules/c-strcase-tests (Files): Likewise.
31575         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31576         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31577         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31578         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31579         * modules/vasnprintf-posix-tests (Files): Likewise.
31580
31581 2008-12-21  William Pursell  <bill.pursell@gmail.com>
31582
31583         gitlog-to-changelog: pass all command-line arguments to git-log
31584         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
31585         it is sometimes convenient to filter the commits in various ways.
31586         gitlog-to-changelog only allows --since to specify a start date,
31587         but git-log itself supports many other filtering mechanisms.
31588         At the moment, I want to filter by branch name.  Rather than
31589         adding a --branch option to gitlog-to-changelog, it seems more
31590         flexible to simply pass all options directly to git-log and let
31591         git do the work.  Notice that this effectively makes --since a
31592         redundant option for gitlog-to-changelog, but removing it would
31593         require current usage to change since calls would then require
31594         an additional '--'.
31595
31596 2008-12-21  Bruno Haible  <bruno@clisp.org>
31597
31598         * modules/mbsnrtowcs-tests: New file.
31599         * tests/test-mbsnrtowcs1.sh: New file.
31600         * tests/test-mbsnrtowcs2.sh: New file.
31601         * tests/test-mbsnrtowcs3.sh: New file.
31602         * tests/test-mbsnrtowcs4.sh: New file.
31603         * tests/test-mbsnrtowcs.c: New file.
31604
31605         New module 'mbsnrtowcs'.
31606         * lib/wchar.in.h (mbsnrtowcs): New declaration.
31607         * lib/mbsnrtowcs.c: New file.
31608         * lib/mbsrtowcs-state.c: New file.
31609         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
31610         (internal_state): Remove variable.
31611         * m4/mbsnrtowcs.m4: New file.
31612         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
31613         compilation units.
31614         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
31615         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31616         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
31617         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31618         * modules/mbsnrtowcs: New file.
31619         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
31620         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
31621         portability problem.
31622
31623 2008-12-21  Bruno Haible  <bruno@clisp.org>
31624
31625         Work around mbsrtowcs bug.
31626         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
31627         (gl_FUNC_MBSRTOWCS): Invoke it.
31628         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31629         m4/locale-zh.m4.
31630         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
31631
31632 2008-12-21  Bruno Haible  <bruno@clisp.org>
31633
31634         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
31635
31636 2008-12-21  Bruno Haible  <bruno@clisp.org>
31637
31638         Update doc for AIX.
31639         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
31640         16-bit wchar_t type.
31641         * doc/posix-functions/btowc.texi: Likewise.
31642         * doc/posix-functions/fgetwc.texi: Likewise.
31643         * doc/posix-functions/fgetws.texi: Likewise.
31644         * doc/posix-functions/fputwc.texi: Likewise.
31645         * doc/posix-functions/fputws.texi: Likewise.
31646         * doc/posix-functions/fwide.texi: Likewise.
31647         * doc/posix-functions/fwprintf.texi: Likewise.
31648         * doc/posix-functions/fwscanf.texi: Likewise.
31649         * doc/posix-functions/getwchar.texi: Likewise.
31650         * doc/posix-functions/getwc.texi: Likewise.
31651         * doc/posix-functions/iswalnum.texi: Likewise.
31652         * doc/posix-functions/iswalpha.texi: Likewise.
31653         * doc/posix-functions/iswblank.texi: Likewise.
31654         * doc/posix-functions/iswcntrl.texi: Likewise.
31655         * doc/posix-functions/iswctype.texi: Likewise.
31656         * doc/posix-functions/iswdigit.texi: Likewise.
31657         * doc/posix-functions/iswgraph.texi: Likewise.
31658         * doc/posix-functions/iswlower.texi: Likewise.
31659         * doc/posix-functions/iswprint.texi: Likewise.
31660         * doc/posix-functions/iswpunct.texi: Likewise.
31661         * doc/posix-functions/iswspace.texi: Likewise.
31662         * doc/posix-functions/iswupper.texi: Likewise.
31663         * doc/posix-functions/iswxdigit.texi: Likewise.
31664         * doc/posix-functions/mbrtowc.texi: Likewise.
31665         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31666         * doc/posix-functions/mbstowcs.texi: Likewise.
31667         * doc/posix-functions/mbtowc.texi: Likewise.
31668         * doc/posix-functions/putwchar.texi: Likewise.
31669         * doc/posix-functions/putwc.texi: Likewise.
31670         * doc/posix-functions/swprintf.texi: Likewise.
31671         * doc/posix-functions/tolower.texi: Likewise.
31672         * doc/posix-functions/toupper.texi: Likewise.
31673         * doc/posix-functions/towctrans.texi: Likewise.
31674         * doc/posix-functions/ungetwc.texi: Likewise.
31675         * doc/posix-functions/vswprintf.texi: Likewise.
31676         * doc/posix-functions/wcrtomb.texi: Likewise.
31677         * doc/posix-functions/wcscat.texi: Likewise.
31678         * doc/posix-functions/wcschr.texi: Likewise.
31679         * doc/posix-functions/wcscmp.texi: Likewise.
31680         * doc/posix-functions/wcscoll.texi: Likewise.
31681         * doc/posix-functions/wcscpy.texi: Likewise.
31682         * doc/posix-functions/wcscspn.texi: Likewise.
31683         * doc/posix-functions/wcsftime.texi: Likewise.
31684         * doc/posix-functions/wcslen.texi: Likewise.
31685         * doc/posix-functions/wcsncat.texi: Likewise.
31686         * doc/posix-functions/wcsncmp.texi: Likewise.
31687         * doc/posix-functions/wcsncpy.texi: Likewise.
31688         * doc/posix-functions/wcspbrk.texi: Likewise.
31689         * doc/posix-functions/wcsrchr.texi: Likewise.
31690         * doc/posix-functions/wcsrtombs.texi: Likewise.
31691         * doc/posix-functions/wcsspn.texi: Likewise.
31692         * doc/posix-functions/wcsstr.texi: Likewise.
31693         * doc/posix-functions/wcstod.texi: Likewise.
31694         * doc/posix-functions/wcstof.texi: Likewise.
31695         * doc/posix-functions/wcstoimax.texi: Likewise.
31696         * doc/posix-functions/wcstok.texi: Likewise.
31697         * doc/posix-functions/wcstold.texi: Likewise.
31698         * doc/posix-functions/wcstoll.texi: Likewise.
31699         * doc/posix-functions/wcstol.texi: Likewise.
31700         * doc/posix-functions/wcstombs.texi: Likewise.
31701         * doc/posix-functions/wcstoull.texi: Likewise.
31702         * doc/posix-functions/wcstoul.texi: Likewise.
31703         * doc/posix-functions/wcstoumax.texi: Likewise.
31704         * doc/posix-functions/wcswidth.texi: Likewise.
31705         * doc/posix-functions/wcsxfrm.texi: Likewise.
31706         * doc/posix-functions/wctob.texi: Likewise.
31707         * doc/posix-functions/wctomb.texi: Likewise.
31708         * doc/posix-functions/wctrans.texi: Likewise.
31709         * doc/posix-functions/wctype.texi: Likewise.
31710         * doc/posix-functions/wcwidth.texi: Likewise.
31711         * doc/posix-functions/wmemchr.texi: Likewise.
31712         * doc/posix-functions/wmemcmp.texi: Likewise.
31713         * doc/posix-functions/wmemcpy.texi: Likewise.
31714         * doc/posix-functions/wmemmove.texi: Likewise.
31715         * doc/posix-functions/wmemset.texi: Likewise.
31716         * doc/posix-functions/wprintf.texi: Likewise.
31717         * doc/posix-functions/wscanf.texi: Likewise.
31718
31719 2008-12-21  Bruno Haible  <bruno@clisp.org>
31720
31721         Update doc for HP-UX 11.11.
31722         * doc/posix-functions/btowc.texi: Clarify that the function is missing
31723         in HP-UX version 11.00, not in all versions of HP-UX 11.
31724         * doc/posix-functions/fwide.texi: Likewise.
31725         * doc/posix-functions/fwprintf.texi: Likewise.
31726         * doc/posix-functions/fwscanf.texi: Likewise.
31727         * doc/posix-functions/inet_ntop.texi: Likewise.
31728         * doc/posix-functions/inet_pton.texi: Likewise.
31729         * doc/posix-functions/mbrlen.texi: Likewise.
31730         * doc/posix-functions/mbrtowc.texi: Likewise.
31731         * doc/posix-functions/mbsinit.texi: Likewise.
31732         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31733         * doc/posix-functions/swprintf.texi: Likewise.
31734         * doc/posix-functions/swscanf.texi: Likewise.
31735         * doc/posix-functions/towctrans.texi: Likewise.
31736         * doc/posix-functions/vfwprintf.texi: Likewise.
31737         * doc/posix-functions/vswprintf.texi: Likewise.
31738         * doc/posix-functions/vwprintf.texi: Likewise.
31739         * doc/posix-functions/wcrtomb.texi: Likewise.
31740         * doc/posix-functions/wcsrtombs.texi: Likewise.
31741         * doc/posix-functions/wcsstr.texi: Likewise.
31742         * doc/posix-functions/wctob.texi: Likewise.
31743         * doc/posix-functions/wctrans.texi: Likewise.
31744         * doc/posix-functions/wmemchr.texi: Likewise.
31745         * doc/posix-functions/wmemcmp.texi: Likewise.
31746         * doc/posix-functions/wmemcpy.texi: Likewise.
31747         * doc/posix-functions/wmemmove.texi: Likewise.
31748         * doc/posix-functions/wmemset.texi: Likewise.
31749         * doc/posix-functions/wprintf.texi: Likewise.
31750         * doc/posix-functions/wscanf.texi: Likewise.
31751
31752 2008-12-21  Bruno Haible  <bruno@clisp.org>
31753
31754         Work around a portability problem.
31755         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
31756         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
31757
31758 2008-12-20  Bruno Haible  <bruno@clisp.org>
31759
31760         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
31761         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
31762         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
31763         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
31764         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
31765
31766         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
31767         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
31768         set.
31769         (GNULIB_defined_mbstate_t): New macro.
31770         (mbsinit): Redefine if REPLACE_MBSINIT is set.
31771         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
31772         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
31773         reuses the system's mbrtowc function but works around the bugs.
31774         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
31775         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
31776         macros.
31777         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
31778         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
31779         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
31780         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
31781         REPLACE_MBSINIT if mbsinit needs to be overridden.
31782         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
31783         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31784         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
31785         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31786         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31787         m4/locale-zh.m4.
31788         (Depends): Add mbsinit.
31789         * modules/mbsinit (Depends): Add mbrtowc.
31790         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
31791
31792 2008-12-20  Bruno Haible  <bruno@clisp.org>
31793
31794         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
31795         so that there are no conversion errors on AIX.
31796         * tests/test-mbsrtowcs.c (main): LIkewise.
31797
31798 2008-12-20  Bruno Haible  <bruno@clisp.org>
31799
31800         Work around wctob bug on Solaris <= 9.
31801         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
31802         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
31803         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
31804         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
31805         * modules/wctob (Files): Add m4/locale-fr.m4.
31806         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
31807
31808 2008-12-20  Bruno Haible  <bruno@clisp.org>
31809
31810         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
31811         /dev/null.
31812         * tests/test-select-in.sh: Likewise.
31813         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31814
31815 2008-12-20  Bruno Haible  <bruno@clisp.org>
31816
31817         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
31818         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
31819         Cygwin 1.5.x.
31820
31821 2008-12-20  Bruno Haible  <bruno@clisp.org>
31822
31823         Ensure mbstate_t is defined on HP-UX 11.11.
31824         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
31825         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
31826         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
31827         AC_USE_SYSTEM_EXTENSIONS.
31828         * modules/fnmatch (Depends-on): Add extensions.
31829         * modules/mbrlen (Depends-on): Likewise.
31830         * modules/mbrtowc (Depends-on): Likewise.
31831         * modules/mbsinit (Depends-on): Likewise.
31832         * modules/mbsrtowcs (Depends-on): Likewise.
31833         * modules/mbswidth (Depends-on): Likewise.
31834         * modules/quotearg (Depends-on): Likewise.
31835         * modules/strftime (Depends-on): Likewise.
31836
31837 2008-12-20  Bruno Haible  <bruno@clisp.org>
31838
31839         Ensure wctob is declared on IRIX 6.5.
31840         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
31841         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
31842         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
31843         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
31844         of HAVE_WCTOB.
31845         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
31846         HAVE_WCTOB.
31847         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
31848
31849 2008-12-19  Bruno Haible  <bruno@clisp.org>
31850
31851         * modules/mbsrtowcs-tests: New file.
31852         * tests/test-mbsrtowcs1.sh: New file.
31853         * tests/test-mbsrtowcs2.sh: New file.
31854         * tests/test-mbsrtowcs3.sh: New file.
31855         * tests/test-mbsrtowcs4.sh: New file.
31856         * tests/test-mbsrtowcs.c: New file.
31857
31858         New module 'mbsrtowcs'.
31859         * lib/wchar.in.h (mbsrtowcs): New declaration.
31860         * lib/mbsrtowcs.c: New file.
31861         * m4/mbsrtowcs.m4: New file.
31862         * modules/mbsrtowcs: New file.
31863         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
31864         HAVE_MBSRTOWCS.
31865         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
31866         HAVE_MBSRTOWCS.
31867         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
31868
31869 2008-12-19  Bruno Haible  <bruno@clisp.org>
31870
31871         New module 'mbrlen'.
31872         * lib/wchar.in.h (mbrlen): New declaration.
31873         * lib/mbrlen.c: New file.
31874         * m4/mbrlen.m4: New file.
31875         * modules/mbrlen: New file.
31876         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
31877         HAVE_MBRLEN.
31878         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
31879         HAVE_MBRLEN.
31880         * doc/posix-functions/mbrlen.texi: Document the new module.
31881
31882 2008-12-19  Bruno Haible  <bruno@clisp.org>
31883
31884         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
31885         * modules/mbrtowc (Depends-on): Add verify.
31886         Suggested by Paul Eggert.
31887
31888 2008-12-18  Bruno Haible  <bruno@clisp.org>
31889
31890         * modules/mbsinit-tests: New file.
31891         * tests/test-mbsinit.sh: New file.
31892         * tests/test-mbsinit.c: New file.
31893
31894 2008-12-18  Bruno Haible  <bruno@clisp.org>
31895
31896         * modules/mbrtowc-tests: New file.
31897         * tests/test-mbrtowc1.sh: New file.
31898         * tests/test-mbrtowc2.sh: New file.
31899         * tests/test-mbrtowc3.sh: New file.
31900         * tests/test-mbrtowc4.sh: New file.
31901         * tests/test-mbrtowc.c: New file.
31902
31903         New module 'mbrtowc'.
31904         * lib/wchar.in.h (mbstate_t): Override when the system does not have
31905         mbsinit and mbrtowc.
31906         (mbrtowc): New declaration.
31907         * lib/mbrtowc.c: New file.
31908         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
31909         * modules/mbrtowc: New file.
31910         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
31911         HAVE_MBRTOWC.
31912         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
31913         HAVE_MBRTOWC.
31914         * doc/posix-functions/mbrtowc.texi: Document the new module.
31915
31916 2008-12-18  Bruno Haible  <bruno@clisp.org>
31917
31918         New module 'wctob'.
31919         * lib/wchar.in.h (wctob): New declaration.
31920         * lib/wctob.c: New file.
31921         * m4/wctob.m4: New file.
31922         * modules/wctob: New file.
31923         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
31924         HAVE_WCTOB.
31925         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
31926         * doc/posix-functions/wctob.texi: Document the new module.
31927
31928 2008-12-18  Bruno Haible  <bruno@clisp.org>
31929
31930         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
31931         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
31932
31933 2008-12-18  Simon Josefsson  <simon@josefsson.org>
31934
31935         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
31936         G. Christensen" <tgc@jupiterrise.com>.
31937
31938         * lib/flock.c: Need to include errno.h.  Reported by "Tom
31939         G. Christensen" <tgc@jupiterrise.com>.
31940
31941         * lib/flock.c: Need to include string.h.  Reported by "Tom
31942         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
31943         <ebb9@byu.net>.
31944
31945 2008-12-18  Bruno Haible  <bruno@clisp.org>
31946
31947         * m4/locale-ja.m4: New file, from GNU gettext.
31948
31949 2008-12-17  Bruno Haible  <bruno@clisp.org>
31950
31951         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
31952         Suggested by Eric Blake.
31953
31954 2008-12-17  Bruno Haible  <bruno@clisp.org>
31955
31956         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
31957
31958 2008-12-17  Bruno Haible  <bruno@clisp.org>
31959
31960         * lib/mbsinit.c: Include verify.h. Verify an assumption.
31961         * modules/mbsinit (Depends-on): Add verify.
31962         Suggested by Paul Eggert.
31963
31964 2008-12-17  Bruno Haible  <bruno@clisp.org>
31965
31966         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
31967         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
31968         gl_FUNC_MBRTOWC.
31969         * m4/mbiter.m4 (gl_MBITER): LIkewise.
31970         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
31971         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
31972         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
31973         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
31974         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
31975         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
31976         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
31977         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
31978         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
31979         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
31980         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
31981         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
31982         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
31983         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
31984         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31985         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
31986         * modules/trim (configure.ac): Likewise.
31987
31988 2008-12-17  Bruno Haible  <bruno@clisp.org>
31989
31990         * modules/btowc-tests: New file.
31991         * tests/test-btowc1.sh: New file.
31992         * tests/test-btowc2.sh: New file.
31993         * tests/test-btowc.c: New file.
31994
31995         New module 'btowc'.
31996         * lib/wchar.in.h (btowc): New declaration.
31997         * lib/btowc.c: New file.
31998         * m4/btowc.m4: New file.
31999         * modules/btowc: New file.
32000         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
32001         HAVE_BTOWC.
32002         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
32003         * doc/posix-functions/btowc.texi: Document the new module.
32004
32005 2008-12-17  Bruno Haible  <bruno@clisp.org>
32006
32007         New module 'mbsinit'.
32008         * lib/wchar.in.h (mbsinit): New declaration.
32009         * lib/mbsinit.c: New file.
32010         * m4/mbsinit.m4: New file.
32011         * modules/mbsinit: New file.
32012         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
32013         HAVE_MBSINIT.
32014         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
32015         HAVE_MBSINIT.
32016         * doc/posix-functions/mbsinit.texi: Document the new module.
32017
32018 2008-12-16  Bruno Haible  <bruno@clisp.org>
32019
32020         * lib/unistd.in.h: Add comment.
32021         * tests/test-environ.c: Don't include <stdlib.h>.
32022
32023 2008-12-16  Bruno Haible  <bruno@clisp.org>
32024
32025         * lib/parse-duration.h (parse_duration): Document return value
32026         convention.
32027         * lib/parse-duration.c: Include specification header first. Add
32028         comments.
32029         (_): Remove macro.
32030         (parse_year_month_day, parse_hour_minute_second): Move side effects
32031         outside of strchr call.
32032         (parse_non_iso8601): Move side effects outside of isspace call.
32033         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
32034         call.
32035
32036 2008-12-16  Bruno Haible  <bruno@clisp.org>
32037
32038         * tests/test-parse-duration.sh: Produce no output when the test
32039         succeeds.
32040
32041 2008-12-16  Bruno Haible  <bruno@clisp.org>
32042
32043         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
32044         expressions.
32045
32046 2008-12-15  Bruno Haible  <bruno@clisp.org>
32047
32048         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
32049         * doc/glibc-functions/flistxattr.texi: Likewise.
32050         * doc/glibc-functions/fopencookie.texi: Likewise.
32051         * doc/glibc-functions/fremovexattr.texi: Likewise.
32052         * doc/glibc-functions/fsetxattr.texi: Likewise.
32053         * doc/glibc-functions/getxattr.texi: Likewise.
32054         * doc/glibc-functions/lgetxattr.texi: Likewise.
32055         * doc/glibc-functions/listxattr.texi: Likewise.
32056         * doc/glibc-functions/llistxattr.texi: Likewise.
32057         * doc/glibc-functions/lremovexattr.texi: Likewise.
32058         * doc/glibc-functions/lsetxattr.texi: Likewise.
32059         * doc/glibc-functions/removexattr.texi: Likewise.
32060         * doc/glibc-functions/setxattr.texi: Likewise.
32061         * doc/posix-functions/open_memstream.texi: Likewise.
32062
32063 2008-12-15  Eric Blake  <ebb9@byu.net>
32064
32065         Update doc for cygwin 1.7.
32066         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
32067         functions.
32068         * doc/posix-functions/fchmodat.texi: Likewise.
32069         * doc/posix-functions/fchownat.texi: Likewise.
32070         * doc/posix-functions/fdopendir.texi: Likewise.
32071         * doc/posix-functions/fmemopen.texi: Likewise.
32072         * doc/posix-functions/freeaddrinfo.texi: Likewise.
32073         * doc/posix-functions/fstatat.texi: Likewise.
32074         * doc/posix-functions/futimens.texi: Likewise.
32075         * doc/posix-functions/gai_strerror.texi: Likewise.
32076         * doc/posix-functions/getaddrinfo.texi: Likewise.
32077         * doc/posix-functions/getnameinfo.texi: Likewise.
32078         * doc/posix-functions/if_freenameindex.texi: Likewise.
32079         * doc/posix-functions/if_indextoname.texi: Likewise.
32080         * doc/posix-functions/if_nameindex.texi: Likewise.
32081         * doc/posix-functions/if_nametoindex.texi: Likewise.
32082         * doc/posix-functions/insque.texi: Likewise.
32083         * doc/posix-functions/linkat.texi: Likewise.
32084         * doc/posix-functions/llrint.texi: Likewise.
32085         * doc/posix-functions/llrintf.texi: Likewise.
32086         * doc/posix-functions/llrintl.texi: Likewise.
32087         * doc/posix-functions/lockf.texi: Likewise.
32088         * doc/posix-functions/lrintl.texi: Likewise.
32089         * doc/posix-functions/mkdirat.texi: Likewise.
32090         * doc/posix-functions/mkfifoat.texi: Likewise.
32091         * doc/posix-functions/mknodat.texi: Likewise.
32092         * doc/posix-functions/mq_close.texi: Likewise.
32093         * doc/posix-functions/mq_getattr.texi: Likewise.
32094         * doc/posix-functions/mq_notify.texi: Likewise.
32095         * doc/posix-functions/mq_open.texi: Likewise.
32096         * doc/posix-functions/mq_receive.texi: Likewise.
32097         * doc/posix-functions/mq_send.texi: Likewise.
32098         * doc/posix-functions/mq_setattr.texi: Likewise.
32099         * doc/posix-functions/mq_timedreceive.texi: Likewise.
32100         * doc/posix-functions/mq_timedsend.texi: Likewise.
32101         * doc/posix-functions/mq_unlink.texi: Likewise.
32102         * doc/posix-functions/open_memstream.texi: Likewise.
32103         * doc/posix-functions/openat.texi: Likewise.
32104         * doc/posix-functions/posix_fadvise.texi: Likewise.
32105         * doc/posix-functions/posix_fallocate.texi: Likewise.
32106         * doc/posix-functions/posix_madvise.texi: Likewise.
32107         * doc/posix-functions/posix_memalign.texi: Likewise.
32108         * doc/posix-functions/posix_openpt.texi: Likewise.
32109         * doc/posix-functions/readlinkat.texi: Likewise.
32110         * doc/posix-functions/remque.texi: Likewise.
32111         * doc/posix-functions/renameat.texi: Likewise.
32112         * doc/posix-functions/rintl.texi: Likewise.
32113         * doc/posix-functions/sem_unlink.texi: Likewise.
32114         * doc/posix-functions/shm_open.texi: Likewise.
32115         * doc/posix-functions/shm_unlink.texi: Likewise.
32116         * doc/posix-functions/signgam.texi: Likewise.
32117         * doc/posix-functions/sigset.texi: Likewise.
32118         * doc/posix-functions/stpcpy.texi: Likewise.
32119         * doc/posix-functions/stpncpy.texi: Likewise.
32120         * doc/posix-functions/strerror.texi: Likewise.
32121         * doc/posix-functions/strtod.texi: Likewise.
32122         * doc/posix-functions/symlinkat.texi: Likewise.
32123         * doc/posix-functions/unlinkat.texi: Likewise.
32124         * doc/posix-functions/utimensat.texi: Likewise.
32125         * doc/glibc-functions/bindresvport.texi: Likewise.
32126         * doc/glibc-functions/dn_expand.texi: Likewise.
32127         * doc/glibc-functions/exp10.texi: Likewise.
32128         * doc/glibc-functions/exp10f.texi: Likewise.
32129         * doc/glibc-functions/fgetxattr.texi: Likewise.
32130         * doc/glibc-functions/flistxattr.texi: Likewise.
32131         * doc/glibc-functions/fopencookie.texi: Likewise.
32132         * doc/glibc-functions/freeifaddrs.texi: Likewise.
32133         * doc/glibc-functions/fremovexattr.texi: Likewise.
32134         * doc/glibc-functions/fsetxattr.texi: Likewise.
32135         * doc/glibc-functions/getifaddrs.texi: Likewise.
32136         * doc/glibc-functions/getxattr.texi: Likewise.
32137         * doc/glibc-functions/lgetxattr.texi: Likewise.
32138         * doc/glibc-functions/listxattr.texi: Likewise.
32139         * doc/glibc-functions/llistxattr.texi: Likewise.
32140         * doc/glibc-functions/lremovexattr.texi: Likewise.
32141         * doc/glibc-functions/lsetxattr.texi: Likewise.
32142         * doc/glibc-functions/pow10.texi: Likewise.
32143         * doc/glibc-functions/pow10f.texi: Likewise.
32144         * doc/glibc-functions/rcmd_af.texi: Likewise.
32145         * doc/glibc-functions/removexattr.texi: Likewise.
32146         * doc/glibc-functions/res_init.texi: Likewise.
32147         * doc/glibc-functions/res_mkquery.texi: Likewise.
32148         * doc/glibc-functions/res_query.texi: Likewise.
32149         * doc/glibc-functions/res_querydomain.texi: Likewise.
32150         * doc/glibc-functions/res_send.texi: Likewise.
32151         * doc/glibc-functions/rresvport_af.texi: Likewise.
32152         * doc/glibc-functions/setxattr.texi: Likewise.
32153         * doc/glibc-functions/strcasestr.texi: Likewise.
32154
32155 2008-12-15  Bruno Haible  <bruno@clisp.org>
32156
32157         Fix compilation error on OSF/1 4.0.
32158         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
32159         <sys/time.h>, simply delegate to the system header.
32160         Reported by Daniel Richard G. <oss@teragram.com>.
32161
32162 2008-12-15  Bruno Haible  <bruno@clisp.org>
32163
32164         * doc/posix-functions/openat.texi: Mention the 'openat' module.
32165         * doc/posix-functions/fchmodat.texi: Likewise.
32166         * doc/posix-functions/fchownat.texi: Likewise.
32167         * doc/posix-functions/fdopendir.texi: Likewise.
32168         * doc/posix-functions/fstatat.texi: Likewise.
32169         * doc/posix-functions/mkdirat.texi: Likewise.
32170         * doc/posix-functions/unlinkat.texi: Likewise.
32171
32172 2008-12-14  Bruno Haible  <bruno@clisp.org>
32173
32174         Update doc for POSIX:2008.
32175         * doc/posix-functions/faccessat.texi: New file.
32176         * doc/posix-functions/fchmodat.texi: New file.
32177         * doc/posix-functions/fchownat.texi: New file.
32178         * doc/posix-functions/fdopendir.texi: New file.
32179         * doc/posix-functions/fstatat.texi: New file.
32180         * doc/posix-functions/futimens.texi: New file.
32181         * doc/posix-functions/linkat.texi: New file.
32182         * doc/posix-functions/mkdirat.texi: New file.
32183         * doc/posix-functions/mkfifoat.texi: New file.
32184         * doc/posix-functions/mknodat.texi: New file.
32185         * doc/posix-functions/open_wmemstream.texi: New file.
32186         * doc/posix-functions/openat.texi: New file.
32187         * doc/posix-functions/psiginfo.texi: New file.
32188         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
32189         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
32190         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
32191         * doc/posix-functions/readlinkat.texi: New file.
32192         * doc/posix-functions/renameat.texi: New file.
32193         * doc/posix-functions/strerror_l.texi: New file.
32194         * doc/posix-functions/symlinkat.texi: New file.
32195         * doc/posix-functions/unlinkat.texi: New file.
32196         * doc/posix-functions/utimensat.texi: New file.
32197         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32198
32199 2008-12-14  Bruno Haible  <bruno@clisp.org>
32200
32201         Update doc for POSIX:2008.
32202         * doc/posix-functions/alphasort.texi: Renamed from
32203         doc/glibc-functions/alphasort.texi.
32204         * doc/posix-functions/dirfd.texi: Renamed from
32205         doc/glibc-functions/dirfd.texi.
32206         * doc/posix-functions/dprintf.texi: Renamed from
32207         doc/glibc-functions/dprintf.texi.
32208         * doc/posix-functions/duplocale.texi: Renamed from
32209         doc/glibc-functions/duplocale.texi.
32210         * doc/posix-functions/fexecve.texi: Renamed from
32211         doc/glibc-functions/fexecve.texi.
32212         * doc/posix-functions/fmemopen.texi: Renamed from
32213         doc/glibc-functions/fmemopen.texi.
32214         * doc/posix-functions/freelocale.texi: Renamed from
32215         doc/glibc-functions/freelocale.texi.
32216         * doc/posix-functions/getdate_err.texi: Renamed from
32217         doc/glibc-functions/getdate_err.texi.
32218         * doc/posix-functions/isalnum_l.texi: Renamed from
32219         doc/glibc-functions/isalnum_l.texi.
32220         * doc/posix-functions/isalpha_l.texi: Renamed from
32221         doc/glibc-functions/isalpha_l.texi.
32222         * doc/posix-functions/isblank_l.texi: Renamed from
32223         doc/glibc-functions/isblank_l.texi.
32224         * doc/posix-functions/iscntrl_l.texi: Renamed from
32225         doc/glibc-functions/iscntrl_l.texi.
32226         * doc/posix-functions/isdigit_l.texi: Renamed from
32227         doc/glibc-functions/isdigit_l.texi.
32228         * doc/posix-functions/isgraph_l.texi: Renamed from
32229         doc/glibc-functions/isgraph_l.texi.
32230         * doc/posix-functions/islower_l.texi: Renamed from
32231         doc/glibc-functions/islower_l.texi.
32232         * doc/posix-functions/isprint_l.texi: Renamed from
32233         doc/glibc-functions/isprint_l.texi.
32234         * doc/posix-functions/ispunct_l.texi: Renamed from
32235         doc/glibc-functions/ispunct_l.texi.
32236         * doc/posix-functions/isspace_l.texi: Renamed from
32237         doc/glibc-functions/isspace_l.texi.
32238         * doc/posix-functions/isupper_l.texi: Renamed from
32239         doc/glibc-functions/isupper_l.texi.
32240         * doc/posix-functions/iswalnum_l.texi: Renamed from
32241         doc/glibc-functions/iswalnum_l.texi.
32242         * doc/posix-functions/iswalpha_l.texi: Renamed from
32243         doc/glibc-functions/iswalpha_l.texi.
32244         * doc/posix-functions/iswblank_l.texi: Renamed from
32245         doc/glibc-functions/iswblank_l.texi.
32246         * doc/posix-functions/iswcntrl_l.texi: Renamed from
32247         doc/glibc-functions/iswcntrl_l.texi.
32248         * doc/posix-functions/iswctype_l.texi: Renamed from
32249         doc/glibc-functions/iswctype_l.texi.
32250         * doc/posix-functions/iswdigit_l.texi: Renamed from
32251         doc/glibc-functions/iswdigit_l.texi.
32252         * doc/posix-functions/iswgraph_l.texi: Renamed from
32253         doc/glibc-functions/iswgraph_l.texi.
32254         * doc/posix-functions/iswlower_l.texi: Renamed from
32255         doc/glibc-functions/iswlower_l.texi.
32256         * doc/posix-functions/iswprint_l.texi: Renamed from
32257         doc/glibc-functions/iswprint_l.texi.
32258         * doc/posix-functions/iswpunct_l.texi: Renamed from
32259         doc/glibc-functions/iswpunct_l.texi.
32260         * doc/posix-functions/iswspace_l.texi: Renamed from
32261         doc/glibc-functions/iswspace_l.texi.
32262         * doc/posix-functions/iswupper_l.texi: Renamed from
32263         doc/glibc-functions/iswupper_l.texi.
32264         * doc/posix-functions/iswxdigit_l.texi: Renamed from
32265         doc/glibc-functions/iswxdigit_l.texi.
32266         * doc/posix-functions/isxdigit_l.texi: Renamed from
32267         doc/glibc-functions/isxdigit_l.texi.
32268         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
32269         doc/glibc-functions/mbsnrtowcs.texi.
32270         * doc/posix-functions/mkdtemp.texi: Renamed from
32271         doc/glibc-functions/mkdtemp.texi.
32272         * doc/posix-functions/newlocale.texi: Renamed from
32273         doc/glibc-functions/newlocale.texi.
32274         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
32275         doc/glibc-functions/nl_langinfo_l.texi.
32276         * doc/posix-functions/open_memstream.texi: Renamed from
32277         doc/glibc-functions/open_memstream.texi.
32278         * doc/posix-functions/opterr.texi: Renamed from
32279         doc/glibc-functions/opterr.texi.
32280         * doc/posix-functions/optind.texi: Renamed from
32281         doc/glibc-functions/optind.texi.
32282         * doc/posix-functions/optopt.texi: Renamed from
32283         doc/glibc-functions/optopt.texi.
32284         * doc/posix-functions/psignal.texi: Renamed from
32285         doc/glibc-functions/psignal.texi.
32286         * doc/posix-functions/scandir.texi: Renamed from
32287         doc/glibc-functions/scandir.texi.
32288         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
32289         doc/glibc-functions/sched_get_priority_min.texi.
32290         * doc/posix-functions/signgam.texi: Renamed from
32291         doc/glibc-functions/signgam.texi.
32292         * doc/posix-functions/stpcpy.texi: Renamed from
32293         doc/glibc-functions/stpcpy.texi.
32294         * doc/posix-functions/stpncpy.texi: Renamed from
32295         doc/glibc-functions/stpncpy.texi.
32296         * doc/posix-functions/strcasecmp_l.texi: Renamed from
32297         doc/glibc-functions/strcasecmp_l.texi.
32298         * doc/posix-functions/strcoll_l.texi: Renamed from
32299         doc/glibc-functions/strcoll_l.texi.
32300         * doc/posix-functions/strfmon_l.texi: Renamed from
32301         doc/glibc-functions/strfmon_l.texi.
32302         * doc/posix-functions/strftime_l.texi: Renamed from
32303         doc/glibc-functions/strftime_l.texi.
32304         * doc/posix-functions/strncasecmp_l.texi: Renamed from
32305         doc/glibc-functions/strncasecmp_l.texi.
32306         * doc/posix-functions/strndup.texi: Renamed from
32307         doc/glibc-functions/strndup.texi.
32308         * doc/posix-functions/strnlen.texi: Renamed from
32309         doc/glibc-functions/strnlen.texi.
32310         * doc/posix-functions/strsignal.texi: Renamed from
32311         doc/glibc-functions/strsignal.texi.
32312         * doc/posix-functions/strxfrm_l.texi: Renamed from
32313         doc/glibc-functions/strxfrm_l.texi.
32314         * doc/posix-functions/timer_gettime.texi: Renamed from
32315         doc/glibc-functions/timer_gettime.texi.
32316         * doc/posix-functions/tolower_l.texi: Renamed from
32317         doc/glibc-functions/tolower_l.texi.
32318         * doc/posix-functions/toupper_l.texi: Renamed from
32319         doc/glibc-functions/toupper_l.texi.
32320         * doc/posix-functions/towctrans_l.texi: Renamed from
32321         doc/glibc-functions/towctrans_l.texi.
32322         * doc/posix-functions/towlower_l.texi: Renamed from
32323         doc/glibc-functions/towlower_l.texi.
32324         * doc/posix-functions/towupper_l.texi: Renamed from
32325         doc/glibc-functions/towupper_l.texi.
32326         * doc/posix-functions/uselocale.texi: Renamed from
32327         doc/glibc-functions/uselocale.texi.
32328         * doc/posix-functions/vdprintf.texi: Renamed from
32329         doc/glibc-functions/vdprintf.texi.
32330         * doc/posix-functions/wcpcpy.texi:
32331         Renamed from doc/glibc-functions/wcpcpy.texi.
32332         * doc/posix-functions/wcpncpy.texi: Renamed from
32333         doc/glibc-functions/wcpncpy.texi.
32334         * doc/posix-functions/wcscasecmp.texi: Renamed from
32335         doc/glibc-functions/wcscasecmp.texi.
32336         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
32337         doc/glibc-functions/wcscasecmp_l.texi.
32338         * doc/posix-functions/wcscoll_l.texi: Renamed from
32339         doc/glibc-functions/wcscoll_l.texi.
32340         * doc/posix-functions/wcsdup.texi: Renamed from
32341         doc/glibc-functions/wcsdup.texi.
32342         * doc/posix-functions/wcsncasecmp.texi: Renamed from
32343         doc/glibc-functions/wcsncasecmp.texi.
32344         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
32345         doc/glibc-functions/wcsncasecmp_l.texi.
32346         * doc/posix-functions/wcsnlen.texi: Renamed from
32347         doc/glibc-functions/wcsnlen.texi.
32348         * doc/posix-functions/wcsnrtombs.texi: Renamed from
32349         doc/glibc-functions/wcsnrtombs.texi.
32350         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
32351         doc/glibc-functions/wcsxfrm_l.texi.
32352         * doc/posix-functions/wctrans_l.texi: Renamed from
32353         doc/glibc-functions/wctrans_l.texi.
32354         * doc/posix-functions/wctype_l.texi: Renamed from
32355         doc/glibc-functions/wctype_l.texi.
32356         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32357         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
32358         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
32359         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
32360         these subsections.
32361         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
32362         Remove sections.
32363
32364 2008-12-14  Bruno Haible  <bruno@clisp.org>
32365
32366         Update doc for POSIX:2008.
32367         * doc/posix-functions/*.texi: Update URL of POSIX specification.
32368
32369 2008-12-14  Bruno Haible  <bruno@clisp.org>
32370
32371         Update doc for POSIX:2008.
32372         * doc/pastposix-functions/bcmp.texi: Renamed from
32373         doc/posix-functions/bcmp.texi.
32374         * doc/pastposix-functions/bcopy.texi: Renamed from
32375         doc/posix-functions/bcopy.texi.
32376         * doc/pastposix-functions/bsd_signal.texi: Renamed from
32377         doc/posix-functions/bsd_signal.texi.
32378         * doc/pastposix-functions/bzero.texi: Renamed from
32379         doc/posix-functions/bzero.texi.
32380         * doc/pastposix-functions/ecvt.texi: Renamed from
32381         doc/posix-functions/ecvt.texi.
32382         * doc/pastposix-functions/fcvt.texi: Renamed from
32383         doc/posix-functions/fcvt.texi.
32384         * doc/pastposix-functions/ftime.texi: Renamed from
32385         doc/posix-functions/ftime.texi.
32386         * doc/pastposix-functions/gcvt.texi: Renamed from
32387         doc/posix-functions/gcvt.texi.
32388         * doc/pastposix-functions/getcontext.texi: Renamed from
32389         doc/posix-functions/getcontext.texi.
32390         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
32391         doc/posix-functions/gethostbyaddr.texi.
32392         * doc/pastposix-functions/gethostbyname.texi: Renamed from
32393         doc/posix-functions/gethostbyname.texi.
32394         * doc/pastposix-functions/getwd.texi: Renamed from
32395         doc/posix-functions/getwd.texi.
32396         * doc/pastposix-functions/h_errno.texi: Renamed from
32397         doc/posix-functions/h_errno.texi.
32398         * doc/pastposix-functions/index.texi: Renamed from
32399         doc/posix-functions/index.texi.
32400         * doc/pastposix-functions/makecontext.texi: Renamed from
32401         doc/posix-functions/makecontext.texi.
32402         * doc/pastposix-functions/mktemp.texi: Renamed from
32403         doc/posix-functions/mktemp.texi.
32404         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
32405         doc/posix-functions/pthread_attr_getstackaddr.texi.
32406         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
32407         doc/posix-functions/pthread_attr_setstackaddr.texi.
32408         * doc/pastposix-functions/rindex.texi: Renamed from
32409         doc/posix-functions/rindex.texi.
32410         * doc/pastposix-functions/scalb.texi: Renamed from
32411         doc/posix-functions/scalb.texi.
32412         * doc/pastposix-functions/setcontext.texi: Renamed from
32413         doc/posix-functions/setcontext.texi.
32414         * doc/pastposix-functions/swapcontext.texi: Renamed from
32415         doc/posix-functions/swapcontext.texi.
32416         * doc/pastposix-functions/ualarm.texi: Renamed from
32417         doc/posix-functions/ualarm.texi.
32418         * doc/pastposix-functions/usleep.texi: Renamed from
32419         doc/posix-functions/usleep.texi.
32420         * doc/pastposix-functions/vfork.texi: Renamed from
32421         doc/posix-functions/vfork.texi.
32422         * doc/pastposix-functions/wcswcs.texi: Renamed from
32423         doc/posix-functions/wcswcs.texi.
32424         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
32425         (Function Substitutes): Update.
32426
32427 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32428
32429         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
32430         m4/strerror.m4.
32431
32432 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32433             Bruno Haible  <bruno@clisp.org>
32434
32435         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
32436
32437 2008-12-13  Bruno Haible  <bruno@clisp.org>
32438
32439         * modules/strtoull (Depends-on): Remove unistd.
32440
32441 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32442
32443         * modules/strtoull (Depends-on): Add stdlib.
32444
32445 2008-12-11  Simon Josefsson  <simon@josefsson.org>
32446
32447         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
32448
32449 2008-12-10  Jim Meyering  <meyering@redhat.com>
32450
32451         gl_ASSERT: don't say assertions are disabled when they're not
32452         * m4/assert.m4 (gl_ASSERT): Do not make configure report
32453         "checking whether to enable assertions... no", when they are in
32454         fact enabled.  This is solely a bug in the output of configure.
32455         In spite of saying "no", NDEBUG was not defined in that case.
32456         Also, as noted by Eric Blake, leave assertions enabled upon
32457         --enable-assert=INVALID.
32458
32459 2008-12-10  Bruno Haible  <bruno@clisp.org>
32460
32461         Change MODULES.html to refer to POSIX:2008 where possible.
32462         * MODULES.html.sh (POSIX2008_URL): New variable.
32463         (posix_headers): Remove sys/timeb, ucontext.
32464         (posix2001_headers): New variable.
32465         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
32466         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
32467         index, makecontext, mktemp, pthread_attr_getstackaddr,
32468         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
32469         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
32470         (posix2001_functions): New variable.
32471         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
32472         otherwise.
32473
32474 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32475
32476         add missing include to parse-duration.c
32477         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
32478         * modules/parse-duration (Depends-on): Add xalloc.
32479
32480         fix sed script reading maint.mk
32481         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
32482         (syntax-check-rules): Use it.
32483
32484 2008-12-09  Bruno Haible  <bruno@clisp.org>
32485
32486         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
32487         MacOS X 10.4/PowerPC.
32488         Reported by Simon Josefsson.
32489
32490 2008-12-08  Jim Meyering  <meyering@redhat.com>
32491
32492         work around mingw's lack of some S_IF definitions
32493         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
32494         Reported by Simon Josefsson.
32495
32496 2008-12-08  Bruno Haible  <bruno@clisp.org>
32497
32498         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
32499         applied to variables. Needed on MacOS X 10.4/PowerPC.
32500         Reported by Simon Josefsson.
32501
32502 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
32503         and Eric Blake  <ebb9@byu.net>
32504
32505         assert: honor --enable-assert
32506         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
32507         order to honor --enable-assert, rather than treating it as a
32508         synonym for --disable-assert.
32509
32510 2008-12-08  Jim Meyering  <meyering@redhat.com>
32511
32512         * lib/posixtm.c: Remove now-useless declaration of mktime.
32513
32514         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
32515
32516 2008-12-07  Bruno Haible  <bruno@clisp.org>
32517
32518         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
32519         test_once): Mark functions as static.
32520         * tests/test-tls.c (test_tls): Likewise.
32521
32522 2008-12-07  Bruno Haible  <bruno@clisp.org>
32523
32524         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
32525         iconv_register_autodetect.
32526
32527 2008-12-07  Jim Meyering  <meyering@redhat.com>
32528
32529         posixtm.c: avoid a warning
32530         * lib/posixtm.c (posixtime): Don't initialize tm0.
32531         It's no longer needed to placate gcc4's -Wuninitialized,
32532         and the attempt to placate would elicit a new warning.
32533
32534         unicodeio.c: mark unused parameters
32535         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
32536         (fallback_failure_callback): Likewise.
32537
32538 2008-12-07  Bruno Haible  <bruno@clisp.org>
32539
32540         * gnulib-tool (func_create_testdir): When building the tests
32541         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
32542         Reported by Simon Josefsson.
32543
32544 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32545
32546         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
32547
32548 2008-12-06  Bruno Haible  <bruno@clisp.org>
32549
32550         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
32551         Suggested by Eric Blake.
32552
32553 2008-12-06  Bruno Haible  <bruno@clisp.org>
32554
32555         Fix a c-stack test failure on MacOS X.
32556         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
32557         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
32558         handler for SIGBUS as well.
32559         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
32560         install a signal handler for SIGBUS as well.
32561         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
32562
32563 2008-12-06  Bruno Haible  <bruno@clisp.org>
32564
32565         Advocacy documentation.
32566         * doc/gnulib-intro.texi (Benefits): New section.
32567         * doc/gnulib.texi: Update.
32568
32569 2008-12-06  Bruno Haible  <bruno@clisp.org>
32570
32571         Document the 'manywarnings' module.
32572         * doc/manywarnings.texi: New file.
32573         * doc/gnulib.texi: Include it.
32574
32575 2008-12-05  Eric Blake  <ebb9@byu.net>
32576
32577         tests: silence some gcc warnings
32578         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
32579         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
32580         type mismatches.
32581
32582 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32583             Bruno Haible  <bruno@clisp.org>
32584
32585         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
32586
32587 2008-11-29  Jim Meyering  <meyering@redhat.com>
32588
32589         unicodeio.c: mark unused parameters
32590         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
32591         (fallback_failure_callback): Likewise.
32592
32593         fts: fix a thinko
32594         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
32595         (set_stat_type): Return S_IF*-valued "type" directly.
32596         Prompted by James Youngman's spotting a related bug.
32597         Confirmed by further testing through find.
32598
32599         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
32600         * lib/fts.c (D_TYPE): Define.
32601         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
32602         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
32603         (s_ifmt_shift_bits): New function.
32604         (set_stat_type): New function.
32605         (fts_build): When not calling fts_stat, call set_stat_type
32606         to propagate dirent.d_type info to fts_read caller.
32607         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
32608         fts_statp->st_mode type information may be valid.
32609
32610 2008-11-28  Simon Josefsson  <simon@josefsson.org>
32611
32612         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
32613         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
32614         <sds@gnu.org>.
32615
32616 2008-11-20  Bruno Haible  <bruno@clisp.org>
32617
32618         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
32619         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
32620         INCLUDE_NEXT.
32621         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
32622         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
32623         * modules/math (Makefile.am): Substitute
32624         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
32625         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32626
32627 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32628             Bruno Haible  <bruno@clisp.org>
32629
32630         * lib/stdint.in.h: Define all type macros so that their expansion is
32631         a single typedef'ed token. Fixes a compilation failure in Boost which
32632         does "using ::int8_t;".
32633
32634 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32635
32636         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
32637         gl_MANYWARN_ALL_GCC.
32638         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
32639         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
32640         * modules/manywarnings: New file.
32641         * MODULES.html.sh: Mention manywarnings module.
32642
32643 2008-11-18  Bruno Haible  <bruno@clisp.org>
32644
32645         * doc/gnulib-tool.texi (Unit tests): New section.
32646
32647 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32648
32649         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
32650         paths like 'lib/po/foo.po'.
32651
32652 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32653
32654         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
32655         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
32656
32657 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32658
32659         * m4/warnings.m4: Use CPPFLAGS to really check whether the
32660         parameter works.
32661
32662 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32663
32664         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
32665
32666 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32667
32668         * modules/parse-duration-tests: New file.
32669         * tests/test-parse-duration.sh: New file.
32670         * tests/test-parse-duration.c: New file.
32671
32672         New module 'parse-duration'.
32673         * lib/parse-duration.h: New file.
32674         * lib/parse-duration.c: New file.
32675         * modules/parse-duration: New file.
32676
32677 2008-11-17  Bruno Haible  <bruno@clisp.org>
32678
32679         * tests/test-select-out.sh: Comment out the first pipe test.
32680         Reported by Simon Josefsson.
32681
32682 2008-11-17  Bruno Haible  <bruno@clisp.org>
32683
32684         * modules/getaddrinfo (Depends-on): Add servent, hostent.
32685         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
32686         gl_HOSTENT.
32687
32688 2008-11-17  Bruno Haible  <bruno@clisp.org>
32689
32690         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
32691         -lnetwork and -lnet. Needed for Haiku and BeOS.
32692
32693 2008-11-16  Bruno Haible  <bruno@clisp.org>
32694
32695         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
32696
32697 2008-11-16  Bruno Haible  <bruno@clisp.org>
32698
32699         Avoid test failure on Haiku.
32700         * tests/test-fsync.c: Include <errno.h>.
32701         (main): Don't require that fsync (0) fails.
32702
32703 2008-11-15  Bruno Haible  <bruno@clisp.org>
32704
32705         New module 'hostent'.
32706         * modules/hostent: New file.
32707         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
32708
32709 2008-11-15  Bruno Haible  <bruno@clisp.org>
32710
32711         New module 'servent'.
32712         * modules/servent: New file.
32713         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
32714
32715 2008-11-15  Bruno Haible  <bruno@clisp.org>
32716
32717         Avoid generating same test program with two different rules.
32718         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
32719         test-frexp to test-frexp-nolibm.
32720         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
32721         test-frexpl to test-frexpl-nolibm.
32722
32723 2008-11-15  Bruno Haible  <bruno@clisp.org>
32724
32725         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
32726         $(FREXPL_LIBM).
32727
32728 2008-11-15  Bruno Haible  <bruno@clisp.org>
32729
32730         * lib/netdb.in.h: Activate the definitions also when the system's
32731         <netdb.h> has 'struct addrinfo'.
32732         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
32733         EAI_OVERFLOW or AI_NUMERICSERV.
32734         * doc/posix-headers/netdb.texi: Document the problem.
32735
32736 2008-11-15  Bruno Haible  <bruno@clisp.org>
32737
32738         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
32739
32740         Make the 'sched' module work on platforms where <sched.h> exists but
32741         is incomplete (such as Haiku).
32742         * lib/sched.in.h; Include the system's <sched.h> if it exists.
32743         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
32744         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
32745         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
32746         HAVE_STRUCT_SCHED_PARAM.
32747         * modules/sched (Depends-on): Add include_next.
32748         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
32749         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
32750         * doc/posix-headers/sched.texi: Document the issue.
32751
32752 2008-11-13  Jim Meyering  <meyering@redhat.com>
32753
32754         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
32755         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
32756         test would fail due to the difference in the Report bugs to ...
32757         line.  The expected address is empty, "<>", while the actual
32758         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
32759
32760 2008-11-12  Bruno Haible  <bruno@clisp.org>
32761
32762         lstat: don't compile lstat.c on systems lacking lstat
32763         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
32764         which don't have lstat; this is handled by lib/sys_stat.in.h already.
32765         Reported by Daniel P. Berrange via Jim Meyering.
32766
32767 2008-11-12  Jim Meyering  <meyering@redhat.com>
32768
32769         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
32770
32771 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32772
32773         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
32774         instead.
32775
32776 2008-11-12  Bruno Haible  <bruno@clisp.org>
32777
32778         * lib/unicodeio.c: Include unistr.h.
32779         (utf8_wctomb): Remove function.
32780         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
32781
32782 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32783
32784         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
32785         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
32786         <bruno@clisp.org>.
32787         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
32788
32789 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32790
32791         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
32792         * doc/gnulib.texi: Add section for warnings.
32793
32794 2008-11-11  Bruno Haible  <bruno@clisp.org>
32795
32796         * lib/sockets.h: Add a comment.
32797
32798 2008-11-11  Karl Berry  <karl@gnu.org>
32799
32800         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
32801
32802 2008-11-11  Eric Blake  <ebb9@byu.net>
32803
32804         fdl.texi: avoid git symlinks
32805         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
32806
32807 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32808
32809         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
32810
32811 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32812
32813         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
32814         (gl_WARN_ADD): Substitute $2 if literal.
32815
32816 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32817
32818         * m4/warning.m4: Remove.
32819
32820 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32821
32822         * m4/warnings.m4: Almost complete rewrite. :-)
32823
32824 2008-11-10  Simon Josefsson  <simon@josefsson.org>
32825
32826         * modules/warnings: New module.
32827         * m4/warnings.m4: New file.
32828         * MODULES.html.sh: Mention warnings module.
32829         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
32830         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32831
32832 2008-11-10  Eric Blake  <ebb9@byu.net>
32833
32834         fdl.texi: make a symlink to the latest version
32835         * doc/standards.texi: Revert today's earlier change.
32836         * doc/fdl-1.2.texi: Rename from old fdl.texi...
32837         * doc/fdl.texi: ...and replace this with a symlink to the newer
32838         fdl-1.3.texi.
32839
32840 2008-11-10  Bruno Haible  <bruno@clisp.org>
32841
32842         * tests/test-select-fd.c (main): Accept the result file name as fourth
32843         argument.
32844         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
32845         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
32846
32847 2008-11-10  Bruno Haible  <bruno@clisp.org>
32848
32849         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
32850         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
32851         as autoconf-substituted macros.
32852         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
32853         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
32854         gl_NETDB_H_DEFAULTS. Set these variables.
32855         * modules/netdb (Makefile.am): Substitute these variables.
32856
32857 2008-11-10  Eric Blake  <ebb9@byu.net>
32858
32859         standards.texi: include correct file for FDL 1.3
32860         * doc/standards.texi (GNU Free Documentation License): Change
32861         include file to pull in FDL 1.3, not 1.2.
32862
32863         fdl.texi: revert accidental change to license
32864         * doc/fdl.texi: This is FDL 1.2, not 1.3.
32865
32866 2008-11-10  Bruno Haible  <bruno@clisp.org>
32867
32868         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
32869         cross-compiling guesses also when the native compile gives no result.
32870
32871 2008-11-10  Bruno Haible  <bruno@clisp.org>
32872
32873         * lib/spawni.c (__spawni): Force variable into the stack.
32874
32875 2008-11-10  Bruno Haible  <bruno@clisp.org>
32876
32877         Add support for Haiku.
32878         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
32879         glibc and BeOS, but also on Haiku.
32880         * lib/fpurge.c (fpurge): Likewise.
32881         * lib/freadable.c (freadable): Likewise.
32882         * lib/freadahead.c (freadahead): Likewise.
32883         * lib/freading.c (freading): Likewise.
32884         * lib/freadptr.c (freadptr): Likewise.
32885         * lib/freadseek.c (freadptrinc): Likewise.
32886         * lib/fseeko.c (rpl_fseeko): Likewise.
32887         * lib/fseterr.c (fseterr): Likewise.
32888         * lib/fwritable.c (fwritable): Likewise.
32889         * lib/fwriting.c (fwriting): Likewise.
32890         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
32891
32892 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32893
32894         * lib/config.charset: Treat Haiku like BeOS.
32895
32896 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32897
32898         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
32899         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
32900
32901 2008-11-08  Bruno Haible  <bruno@clisp.org>
32902
32903         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
32904         AC_CACHE_CHECK.
32905
32906 2008-11-08  Bruno Haible  <bruno@clisp.org>
32907
32908         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
32909
32910 2008-11-08  Bruno Haible  <bruno@clisp.org>
32911
32912         * tests/test-select-fd.c: New file.
32913         * tests/test-select-in.sh: New file.
32914         * tests/test-select-out.sh: New file.
32915         * tests/test-select-stdin.c: New file.
32916         * modules/select-tests (Files): Add the new files.
32917         (Depends-on): Add gettimeofday.
32918         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
32919         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
32920         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
32921
32922 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
32923             Bruno Haible  <bruno@clisp.org>
32924
32925         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
32926
32927 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
32928
32929         * build-aux/pmccabe2html: Added support for C++ source files.
32930
32931 2008-11-05  Ben Pfaff  <blp@gnu.org>
32932
32933         Fix lib/close.c build on Windows.
32934         * modules/close (Files): Add lib/w32sock.h.
32935
32936 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
32937
32938         Accept Bison's NEWS format.
32939         * build-aux/announce-gen (print_news_deltas): Tweak
32940         $re_prefix.
32941
32942 2008-11-04  Bruno Haible  <bruno@clisp.org>
32943
32944         * modules/random_r (Maintainer): Add glibc.
32945
32946 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32947
32948         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
32949         by karl@freefriends.org (Karl Berry).
32950         * doc/alloca.texi: Likewise.
32951         * doc/c-ctype.texi: Likewise.
32952         * doc/c-strcase.texi: Likewise.
32953         * doc/c-strcaseeq.texi: Likewise.
32954         * doc/c-strcasestr.texi: Likewise.
32955         * doc/c-strstr.texi: Likewise.
32956         * doc/c-strtod.texi: Likewise.
32957         * doc/c-strtold.texi: Likewise.
32958         * doc/ctime.texi: Likewise.
32959         * doc/error.texi: Likewise.
32960         * doc/fdl.texi: Likewise.
32961         * doc/gcd.texi: Likewise.
32962         * doc/getdate.texi: Likewise.
32963         * doc/gnulib-intro.texi: Likewise.
32964         * doc/gnulib-tool.texi: Likewise.
32965         * doc/gnulib.texi: Likewise.
32966         * doc/inet_ntoa.texi: Likewise.
32967         * doc/maintain.texi: Likewise.
32968         * doc/make-stds.texi: Likewise.
32969         * doc/quote.texi: Likewise.
32970         * doc/regexprops-generic.texi: Likewise.
32971         * doc/standards.texi: Likewise.
32972         * doc/verify.texi: Likewise.
32973         * doc/visibility.texi: Likewise.
32974         * doc/gnulib.texi (GNU Free Documentation License): Include
32975         fdl-1.3.texi instead of fdl.texi.
32976
32977 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32978
32979         * doc/fdl-1.3.texi: New file, from
32980         <http://www.gnu.org/licenses/fdl-1.3.texi>.
32981         * modules/fdl-1.3: Add.
32982         * MODULES.html.sh: Add fdl-1.3.
32983
32984 2008-11-03  Bruno Haible  <bruno@clisp.org>
32985
32986         Make determination of absolute name of header file work with AIX xlc.
32987         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
32988         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
32989         preprocessing.
32990         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32991         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32992
32993 2008-11-03  Simon Josefsson  <simon@josefsson.org>
32994
32995         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
32996         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
32997         <ludo@gnu.org>.
32998
32999 2008-11-02  Bruno Haible  <bruno@clisp.org>
33000
33001         Mark 'strpbrk' obsolete.
33002         * modules/strpbrk (Status, Notice): New sections.
33003         * modules/strtok_r (Depends-on): Add strpbrk.
33004
33005 2008-11-02  Bruno Haible  <bruno@clisp.org>
33006
33007         Mark 'strdup' obsolete.
33008         * modules/strdup (Status, Notice): New sections.
33009         * modules/findprog (Depends-on): Add strdup.
33010         * modules/getaddrinfo (Depends-on): Likewise.
33011         * modules/localename (Depends-on): Likewise.
33012         * modules/relocatable-lib (Depends-on): Likewise.
33013         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
33014         * modules/relocatable-prog (Depends-on): Likewise.
33015         * modules/trim (Depends-on): Likewise.
33016         * modules/unictype/gen-ctype (Depends-on): Likewise.
33017         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33018
33019 2008-11-02  Bruno Haible  <bruno@clisp.org>
33020
33021         Mark 'strcspn' obsolete.
33022         * modules/strcspn (Status, Notice): New sections.
33023
33024 2008-11-02  Bruno Haible  <bruno@clisp.org>
33025
33026         Mark 'rmdir' obsolete.
33027         * modules/rmdir (Status, Notice): New sections.
33028         * modules/clean-temp (Depends-on): Add rmdir.
33029         * modules/openat (Depends-on): Likewise.
33030
33031 2008-11-02  Bruno Haible  <bruno@clisp.org>
33032
33033         Mark 'raise' obsolete.
33034         * modules/raise (Status, Notice): New sections.
33035         (Include): Specify <signal.h>.
33036         * modules/stdio (Depends-on): Add raise.
33037         * modules/write (Depends-on): Likewise.
33038
33039 2008-11-02  Bruno Haible  <bruno@clisp.org>
33040
33041         Mark 'memset' obsolete.
33042         * modules/memset (Status, Notice): New sections.
33043
33044 2008-11-02  Bruno Haible  <bruno@clisp.org>
33045
33046         Mark 'memmove' obsolete.
33047         * modules/memmove (Status, Notice): New sections.
33048         * modules/argp (Depends-on): Add memmove.
33049         * modules/argz (Depends-on): Likewise.
33050         * modules/canonicalize (Depends-on): Likewise.
33051         * modules/canonicalize-lgpl (Depends-on): Likewise.
33052         * modules/fts (Depends-on): Likewise.
33053         * modules/getcwd (Depends-on): Likewise.
33054         * modules/human (Depends-on): Likewise.
33055         * modules/regex (Depends-on): Likewise.
33056         * modules/striconveh (Depends-on): Likewise.
33057         * modules/trim (Depends-on): Likewise.
33058         * modules/unistr/u8-move (Depends-on): Likewise.
33059         * modules/unistr/u16-move (Depends-on): Likewise.
33060         * modules/unistr/u32-move (Depends-on): Likewise.
33061
33062 2008-11-02  Bruno Haible  <bruno@clisp.org>
33063
33064         Mark 'memcpy' obsolete.
33065         * modules/memcpy (Status, Notice): New sections.
33066
33067 2008-11-02  Bruno Haible  <bruno@clisp.org>
33068
33069         Mark 'memcmp' obsolete.
33070         * modules/memcmp (Status, Notice): New sections.
33071         * modules/argmatch (Depends-on): Add memchr.
33072         * modules/backupfile (Depends-on): Likewise.
33073         * modules/c-strcasestr (Depends-on): Likewise.
33074         * modules/crypto/des (Depends-on): Likewise.
33075         * modules/csharpcomp (Depends-on): Likewise.
33076         * modules/fnmatch (Depends-on): Likewise.
33077         * modules/git-merge-changelog (Depends-on): Likewise.
33078         * modules/isnand (Depends-on): Likewise.
33079         * modules/isnand-nolibm (Depends-on): Likewise.
33080         * modules/isnanf (Depends-on): Likewise.
33081         * modules/isnanf-nolibm (Depends-on): Likewise.
33082         * modules/isnanl (Depends-on): Likewise.
33083         * modules/isnanl-nolibm (Depends-on): Likewise.
33084         * modules/mbchar (Depends-on): Likewise.
33085         * modules/memcoll (Depends-on): Likewise.
33086         * modules/quotearg (Depends-on): Likewise.
33087         * modules/regex (Depends-on): Likewise.
33088         * modules/relocatable-prog (Depends-on): Likewise.
33089         * modules/same (Depends-on): Likewise.
33090         * modules/signbit (Depends-on): Likewise.
33091         * modules/strcasestr-simple (Depends-on): Likewise.
33092         * modules/unictype/gen-ctype (Depends-on): Likewise.
33093         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33094         * modules/uniname/uniname (Depends-on): Likewise.
33095         * modules/unistr/u8-cmp (Depends-on): Likewise.
33096
33097 2008-11-02  Bruno Haible  <bruno@clisp.org>
33098
33099         Mark 'memchr' obsolete.
33100         * modules/memchr (Status, Notice): New sections.
33101         * modules/argp (Depends-on): Add memchr.
33102         * modules/base64 (Depends-on): Likewise.
33103         * modules/c-strcasestr (Depends-on): Likewise.
33104         * modules/chdir-long (Depends-on): Likewise.
33105         * modules/fnmatch (Depends-on): Likewise.
33106         * modules/getsubopt (Depends-on): Likewise.
33107         * modules/git-merge-changelog (Depends-on): Likewise.
33108         * modules/glob (Depends-on): Likewise.
33109         * modules/strcasestr-simple (Depends-on): Likewise.
33110         * modules/strnlen (Depends-on): Likewise.
33111
33112 2008-11-02  Bruno Haible  <bruno@clisp.org>
33113
33114         Mark 'atexit' obsolete.
33115         * modules/atexit (Status, Notice): New sections.
33116         * modules/chdir-long (Depends-on): Add atexit.
33117         * modules/wait-process (Depends-on): Likewise.
33118
33119 2008-11-02  Bruno Haible  <bruno@clisp.org>
33120
33121         * gnulib-tool: New option --with-obsolete.
33122         (func_usage): Document it.
33123         (func_modules_transitive_closure): Drop obsolete dependencies if
33124         incobsolete is not true.
33125         (func_import): Read and save the incobsolete variable to the cache.
33126
33127 2008-11-02  Bruno Haible  <bruno@clisp.org>
33128
33129         * modules/TEMPLATE-EXTENDED: New field 'Status'.
33130         * gnulib-tool: New option --extract-status.
33131         (func_usage): Document it.
33132         (sed_extract_prog): Recognize it.
33133         (func_get_status): New function.
33134
33135 2008-10-30  Simon Josefsson  <simon@josefsson.org>
33136
33137         * modules/sockets (License): Change from LGPL to LGPLv2+.
33138
33139 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33140
33141         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
33142
33143 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33144
33145         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33146         Mention times and sys_times.
33147         * modules/sys_times, modules/sys_times-tests: New modules.
33148         * modules/times, modules/times-tests: Likewise
33149         * m4/sys_times_h.m4: New file.
33150         * lib/sys_times.in.h: Likewise
33151         * lib/times.c: Likewise.
33152         * tests/test-sys_times.c: Likewise.
33153         * tests/test-times.c: Likewise.
33154         * doc/posix-headers/sys_times.texi: Update.
33155         * doc/posix-functions/times.texi: Update.
33156
33157 2008-10-28  Jim Meyering  <meyering@redhat.com>
33158
33159         * modules/tempname (Depends-on): Add lstat.
33160
33161         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
33162
33163 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33164
33165         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
33166         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
33167         using idiom used elsewhere in gnulib.
33168
33169 2008-10-27  Jim Meyering  <meyering@redhat.com>
33170
33171         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
33172
33173 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33174
33175         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
33176         TESTS_ENVIRONMENT, for shell scripts that needs to call built
33177         programs.
33178         * tests/test-argp-2.sh: Use $EXEEXT when needed.
33179
33180 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33181
33182         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
33183
33184 2008-10-27  Bruno Haible  <bruno@clisp.org>
33185
33186         * tests/test-lstat.c: Include <stdio.h>.
33187
33188 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33189
33190         * modules/lstat-tests: New module.
33191         * tests/test-lstat.c: New file.
33192
33193 2008-10-26  Jim Meyering  <meyering@redhat.com>
33194
33195         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
33196
33197 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33198             Bruno Haible  <bruno@clisp.org>
33199
33200         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
33201         * modules/configmake (Include): Add a note that the include must come
33202         after all system headers.
33203         * lib/javaversion.c: Include configmake.h after all other includes.
33204
33205 2008-10-26  Bruno Haible  <bruno@clisp.org>
33206
33207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
33208         HAVE_STRUCT_RANDOM_DATA to 1.
33209         (gl_STDLIB_H): Simplify.
33210
33211 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33212
33213         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
33214         substitute HAVE_STRUCT_RANDOM_DATA.
33215         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
33216         random_data.
33217         * modules/stdlib (Makefile.am): Substitute
33218         HAVE_STRUCT_RANDOM_DATA.
33219
33220 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33221
33222         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
33223         * doc/gnulib-intro.texi (Copyright): Likewise.
33224
33225 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33226
33227         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
33228         findings.
33229
33230 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
33231             Bruno Haible  <bruno@clisp.org>
33232
33233         * lib/unistd.in.h: Include <winsock2.h>.
33234         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
33235         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
33236         Provide dummy declarations.
33237         (gethostname): Override.
33238         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
33239         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
33240         gl_PREREQ_SYS_H_WINSOCK2.
33241         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
33242         * doc/posix-functions/gethostname.texi: More details.
33243
33244 2008-10-25  Bruno Haible  <bruno@clisp.org>
33245
33246         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33247         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
33248         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
33249
33250         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
33251         here ...
33252         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
33253         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
33254         gl_UNISTD_H_DEFAULTS.
33255
33256 2008-10-25  Eric Blake  <ebb9@byu.net>
33257
33258         signbit: avoid spurious compiler failure
33259         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
33260         declarations inside function.
33261
33262 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33263             Bruno Haible  <bruno@clisp.org>
33264
33265         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
33266         * modules/random_r (Depends-on): Add stdint.
33267
33268 2008-10-24  Bruno Haible  <bruno@clisp.org>
33269
33270         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
33271         Eggert.
33272         * modules/strerror (License): Likewise.
33273
33274 2008-10-24  Jim Meyering  <meyering@redhat.com>
33275
33276         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
33277         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
33278
33279 2008-10-24  Eric Blake  <ebb9@byu.net>
33280
33281         getgroups: fix compilation when getgroups is available
33282         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
33283         but with <config.h> override of getgroups disabled.
33284
33285 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33286
33287         * doc/gnulib.texi (Header files): Add note about C++ problems.
33288         Explained by Bruno Haible <bruno@clisp.org>.
33289
33290 2008-10-23  Bruno Haible  <bruno@clisp.org>
33291
33292         Define a dummy SA_NODEFER macro on Interix.
33293         * lib/signal.in.h (SA_NODEFER): Define fallback.
33294         Reported by Aleksey Cheusov <cheusov@tut.by> via
33295         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
33296
33297 2008-10-23  Bruno Haible  <bruno@clisp.org>
33298
33299         * modules/freadahead (License): Change to LGPLv2+.
33300         Suggested by Simon Josefsson.
33301
33302 2008-10-23  Jim Meyering  <meyering@redhat.com>
33303
33304         random_r: new module
33305         * modules/random_r: New file.
33306         * m4/random_r.m4: New file.
33307         * lib/random_r.c: New file, from glibc.
33308         * modules/random_r-tests: New file.
33309         * tests/test-random_r.c: New file.
33310         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
33311          Declare.
33312         (RAND_MAX): Define.
33313         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
33314         * modules/stdlib: Substitute them, too.
33315         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
33316         * doc/glibc-functions/initstate_r.texi: Mention the new module.
33317         * doc/glibc-functions/random_r.texi: Likewise.
33318         * doc/glibc-functions/setstate_r.texi: Likewise.
33319         * doc/glibc-functions/srandom_r.texi: Likewise.
33320         * config/srclist.txt: Mention it.
33321
33322 2008-10-23  David Lutterkort  <lutter@redhat.com>
33323
33324         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
33325         link requirement
33326
33327 2008-10-23  Jim Meyering  <meyering@redhat.com>
33328
33329         selinux-h: mark parameters of stub functions as intentionally unused
33330         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
33331         * lib/se-context.in.h: Likewise.
33332
33333 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33334
33335         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
33336
33337 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33338
33339         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
33340
33341 2008-10-22  Eric Blake  <ebb9@byu.net>
33342
33343         glthread/thread: avoid compiler warning
33344         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
33345         Add unreachable abort to silence compiler.
33346
33347 2008-10-22  Eric Blake  <ebb9@byu.net>
33348
33349         netdb: also supply struct addrinfo for cygwin 1.5.x
33350         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
33351         older cygwin.
33352         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
33353         cygwin.
33354         * doc/posix-headers/netdb.texi (netdb.h): Document this.
33355
33356 2008-10-22  Bruno Haible  <bruno@clisp.org>
33357
33358         * users.txt: Update entry about pspp.
33359
33360 2008-10-21  Bruno Haible  <bruno@clisp.org>
33361
33362         Simplification.
33363         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
33364         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
33365
33366         Simplification.
33367         * lib/ioctl.c (ioctl): Don't undefine.
33368         * lib/socket.c (socket): Don't undefine.
33369
33370         Remove unused module indicator macros.
33371         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
33372         GNULIB_$1 as a C macro.
33373
33374         * doc/posix-functions/close.texi: Undo last change.
33375         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
33376         Windows platforms.
33377
33378 2008-10-21  Bruno Haible  <bruno@clisp.org>
33379
33380         Add gethostname() declaration to <unistd.h>.
33381         * lib/unistd.in.h (gethostname): New declaration.
33382         * lib/gethostname.c: Include <unistd.h>.
33383         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
33384         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
33385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
33386         and HAVE_GETHOSTNAME.
33387         * modules/gethostname (Depends-on): Add unistd.
33388         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33389         (Include): Specify <unistd.h>.
33390         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
33391         HAVE_GETHOSTNAME.
33392         * tests/test-gethostname.c: Include <unistd.h> first.
33393
33394 2008-10-21  Bruno Haible  <bruno@clisp.org>
33395
33396         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
33397         * modules/select-tests (Depends-on): Likewise.
33398         Reported by Simon Josefsson.
33399
33400 2008-10-21  Simon Josefsson  <simon@josefsson.org>
33401
33402         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
33403         * lib/accept.c: New file, based on winsock.c.
33404         * lib/bind.c: New file, based on winsock.c.
33405         * lib/connect.c: New file, based on winsock.c.
33406         * lib/getpeername.c: New file, based on winsock.c.
33407         * lib/getsockname.c: New file, based on winsock.c.
33408         * lib/getsockopt.c: New file, based on winsock.c.
33409         * lib/ioctl.c: New file, based on winsock.c.
33410         * lib/listen.c: New file, based on winsock.c.
33411         * lib/recv.c: New file, based on winsock.c.
33412         * lib/recvfrom.c: New file, based on winsock.c.
33413         * lib/send.c: New file, based on winsock.c.
33414         * lib/sendto.c: New file, based on winsock.c.
33415         * lib/setsockopt.c: New file, based on winsock.c.
33416         * lib/shutdown.c: New file, based on winsock.c.
33417         * lib/socket.c: New file, based on winsock.c.
33418         * lib/w32sock.h: New file, based on winsock.c.
33419         * lib/winsock.c: Remove file.
33420         * modules/accept: Likewise.
33421         * modules/bind: Likewise.
33422         * modules/connect: Likewise.
33423         * modules/getpeername: Likewise.
33424         * modules/getsockname: Likewise.
33425         * modules/getsockopt: Likewise.
33426         * modules/ioctl: Likewise.
33427         * modules/listen: Likewise.
33428         * modules/recv: Likewise.
33429         * modules/recvfrom: Likewise.
33430         * modules/send: Likewise.
33431         * modules/sendto: Likewise.
33432         * modules/setsockopt: Likewise.
33433         * modules/shutdown: Likewise.
33434         * modules/socket: Use socket.c instead of winsock.c.
33435         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
33436         * doc/posix-functions/accept.texi: Doc fix.
33437         * doc/posix-functions/bind.texi: Doc fix.
33438         * doc/posix-functions/close.texi: Doc fix.
33439         * doc/posix-functions/connect.texi: Doc fix.
33440         * doc/posix-functions/getpeername.texi: Doc fix.
33441         * doc/posix-functions/getsockname.texi: Doc fix.
33442         * doc/posix-functions/getsockopt.texi: Doc fix.
33443         * doc/posix-functions/ioctl.texi: Doc fix.
33444         * doc/posix-functions/listen.texi: Doc fix.
33445         * doc/posix-functions/recv.texi: Doc fix.
33446         * doc/posix-functions/recvfrom.texi: Doc fix.
33447         * doc/posix-functions/send.texi: Doc fix.
33448         * doc/posix-functions/sendto.texi: Doc fix.
33449         * doc/posix-functions/setsockopt.texi: Doc fix.
33450         * doc/posix-functions/shutdown.texi: Doc fix.
33451         * doc/posix-functions/socket.texi: Doc fix.
33452
33453 2008-10-20  Bruno Haible  <bruno@clisp.org>
33454
33455         Take into account the role of SIGABRT_COMPAT on Windows 2008.
33456         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
33457         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
33458         as an alias for SIGABRT.
33459         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
33460         (sigaction): Map it to SIGABRT.
33461         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
33462
33463 2008-10-20  Bruno Haible  <bruno@clisp.org>
33464
33465         * lib/fts.c: Don't include lstat.h.
33466         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
33467
33468         Move the lstat() declaration to <sys/stat.h>.
33469         * lib/lstat.h: Remove file.
33470         * lib/sys_stat.in.h: Add special invocation convention.
33471         (lstat): New declaration.
33472         * lib/lstat.c (orig_lstat): New function.
33473         (rpl_lstat): Use orig_lstat instead of lstat.
33474         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
33475         AC_C_INLINE. Set REPLACE_LSTAT.
33476         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
33477         and REPLACE_LSTAT.
33478         * modules/lstat (Files): Remove lib/lstat.h.
33479         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33480         (Include): Specify <sys/stat.h> instead of lstat.h.
33481         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
33482         REPLACE_LSTAT.
33483         * NEWS: Mention the change.
33484
33485 2008-10-20  Bruno Haible  <bruno@clisp.org>
33486
33487         * modules/posix_spawn-tests: New file.
33488         * tests/test-posix_spawn3.c: New file.
33489
33490 2008-10-20  Bruno Haible  <bruno@clisp.org>
33491
33492         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
33493         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33494         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
33495         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33496         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
33497
33498 2008-10-20  Bruno Haible  <bruno@clisp.org>
33499
33500         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
33501         of posix_spawn on AIX 5.3.
33502
33503 2008-10-20  Bruno Haible  <bruno@clisp.org>
33504
33505         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
33506
33507 2008-10-20  Bruno Haible  <bruno@clisp.org>
33508
33509         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
33510         of AC_LANG_PROGRAM.
33511
33512 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33513
33514         * lib/netdb.in.h: Don't define GNU specific constants until they
33515         are supported or needed.  Reported by Bruno Haible
33516         <bruno@clisp.org>.
33517
33518 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33519
33520         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
33521
33522 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33523
33524         * lib/getaddrinfo.h: Remove file.
33525         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
33526         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
33527         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
33528         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
33529         * modules/netdb: Substitute GNULIB_GETADDRINFO.
33530         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
33531         * tests/test-getaddrinfo.c: Likewise.
33532         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
33533         * NEWS: Mention change.
33534
33535 2008-10-19  Bruno Haible  <bruno@clisp.org>
33536
33537         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
33538
33539 2008-10-19  Bruno Haible  <bruno@clisp.org>
33540
33541         * lib/wait-process.c: Include simply <sys/wait.h>.
33542         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
33543         WIFSTOPPED): Remove fallback definitions.
33544         * modules/wait-process (Depends-on): Add sys_wait.
33545
33546         New module 'sys_wait'.
33547         * modules/sys_wait: New file.
33548         * lib/sys_wait.in.h: New file, partially copied from
33549         lib/wait-process.c.
33550         * m4/sys_wait_h.m4: New file.
33551         * doc/posix-headers/sys_wait.texi: Mention the new module.
33552
33553 2008-10-19  Bruno Haible  <bruno@clisp.org>
33554
33555         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
33556
33557 2008-10-19  Bruno Haible  <bruno@clisp.org>
33558
33559         Assume that waitpid() fills an 'int' status, not a 'union wait'.
33560         * lib/wait-process.c (WAIT_T): Remove type.
33561         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
33562         (wait_subprocess): Update.
33563
33564 2008-10-19  Bruno Haible  <bruno@clisp.org>
33565
33566         New module 'atoll'.
33567         * modules/atoll: New file.
33568         * lib/stdlib.in.h (atoll): New declaration.
33569         * lib/atoll.c: New file, from glibc with modifications.
33570         * m4/atoll.m4: New file.
33571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
33572         HAVE_ATOLL.
33573         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
33574         * doc/posix-functions/atoll.texi: Mention the new module.
33575
33576 2008-10-19  Bruno Haible  <bruno@clisp.org>
33577
33578         Add strtoull() declaration to <stdlib.h>.
33579         * lib/stdlib.in.h (strtoull): New declaration.
33580         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
33581         Set HAVE_STRTOULL.
33582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
33583         HAVE_STRTOULL.
33584         * modules/strtoull (Depends-on): Add stdlib.
33585         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33586         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
33587         HAVE_STRTOULL.
33588
33589 2008-10-19  Bruno Haible  <bruno@clisp.org>
33590
33591         Add strtoll() declaration to <stdlib.h>.
33592         * lib/stdlib.in.h (strtoll): New declaration.
33593         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
33594         Set HAVE_STRTOLL.
33595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
33596         HAVE_STRTOLL.
33597         * modules/strtoll (Depends-on): Add stdlib.
33598         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33599         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
33600
33601 2008-10-19  Bruno Haible  <bruno@clisp.org>
33602
33603         * modules/bcopy (Depends-on): Add strings.
33604         (Include): Specify <strings.h>.
33605
33606 2008-10-19  Bruno Haible  <bruno@clisp.org>
33607
33608         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
33609
33610 2008-10-19  Bruno Haible  <bruno@clisp.org>
33611
33612         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
33613         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
33614         mingw.
33615
33616 2008-10-19  Bruno Haible  <bruno@clisp.org>
33617
33618         * lib/atanl.c: Don't include isnanl.h.
33619         * lib/cosl.c: Likewise.
33620         * lib/ldexpl.c: Likewise.
33621         * lib/logl.c: Likewise.
33622         * lib/sinl.c: Likewise.
33623         * lib/sqrtl.c: Likewise.
33624         * lib/tanl.c: Likewise.
33625
33626         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
33627         * lib/isnanf.h: Remove file.
33628         * lib/isnand.h: Remove file.
33629         * lib/isnanl.h: Remove file.
33630         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
33631         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
33632         macros.
33633         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
33634         HAVE_ISNANF, don't define it as a C macro.
33635         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
33636         HAVE_ISNAND, don't define it as a C macro.
33637         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
33638         HAVE_ISNANL, don't define it as a C macro.
33639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
33640         HAVE_ISNAN[FDL].
33641         * modules/isnanf (Files): Remove lib/isnanf.h.
33642         (Depends-on): Add math.
33643         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33644         (Include): Specify <math.h> instead of isnanf.h.
33645         * modules/isnand (Files): Remove lib/isnand.h.
33646         (Depends-on): Add math.
33647         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33648         (Include): Specify <math.h> instead of isnand.h.
33649         * modules/isnanl (Files): Remove lib/isnanl.h.
33650         (Depends-on): Add math.
33651         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33652         (Include): Specify <math.h> instead of isnanl.h.
33653         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
33654         HAVE_ISNAN[FDL].
33655         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
33656         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
33657         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
33658         * NEWS: Mention the change.
33659
33660 2008-10-18  Bruno Haible  <bruno@clisp.org>
33661
33662         Add getusershell(), setusershell(), endusershell() declarations to
33663         <unistd.h>.
33664         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
33665         declarations.
33666         * lib/getusershell.c: Include unistd.h.
33667         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
33668         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33669         HAVE_GETUSERSHELL.
33670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
33671         and HAVE_GETUSERSHELL.
33672         * modules/getusershell (Depends-on): Add unistd, extensions.
33673         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33674         (Include): Specify <unistd.h>.
33675         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
33676         HAVE_GETUSERSHELL.
33677
33678 2008-10-18  Bruno Haible  <bruno@clisp.org>
33679
33680         Add a getloadavg() declaration to <stdlib.h>.
33681         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
33682         getloadavg declaration.
33683         (getloadavg): New declaration.
33684         * lib/getloadavg.c: Include <stdlib.h> first.
33685         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
33686         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
33687         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
33688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
33689         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33690         * modules/getloadavg (Depends-on): Add stdlib, extensions.
33691         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33692         (Include): Specify <stdlib.h>.
33693         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
33694         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33695
33696 2008-10-18  Bruno Haible  <bruno@clisp.org>
33697
33698         * lib/dirchownmod.c: Don't include lchmod.h.
33699
33700         Move the lchmod() declaration to <sys/stat.h>.
33701         * lib/lchmod.h: Remove file.
33702         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
33703         (lchmod): New declaration, moved here from lib/lchown.h.
33704         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
33705         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
33706         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
33707         and HAVE_LCHMOD.
33708         * modules/lchmod (Files): Remove lib/lchmod.h.
33709         (Depends-on): Add sys_stat, extensions.
33710         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33711         (Include): Specify <sys/stat.h> instead of lchmod.h.
33712         * modules/sys_stat (Depends-on): Add link-warning.
33713         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
33714         definition of GL_LINK_WARNING.
33715         * NEWS: Mention the change.
33716
33717 2008-10-18  Bruno Haible  <bruno@clisp.org>
33718
33719         * lib/fchdir.c: Don't include dirfd.h.
33720         * lib/fts.c: Likewise.
33721         * lib/getcwd.c: Likewise.
33722         * lib/glob.c: Likewise.
33723
33724         Move the dirfd() declaration to <dirent.h>.
33725         * lib/dirfd.h: Remove file.
33726         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
33727         (dirfd): New declaration.
33728         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
33729         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
33730         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
33731         HAVE_DECL_DIRFD.
33732         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
33733         HAVE_DECL_DIRFD.
33734         * modules/dirfd (Files): Remove lib/dirfd.h.
33735         (Depends-on): Add dirent, extensions.
33736         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
33737         (Include): Specify <dirent.h> instead of dirfd.h.
33738         * modules/dirent (Depends-on): Add link-warning.
33739         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
33740         definition of GL_LINK_WARNING.
33741         * NEWS: Mention the change.
33742
33743 2008-10-18  Bruno Haible  <bruno@clisp.org>
33744
33745         Move the euidaccess() declaration to <unistd.h>.
33746         * lib/euidaccess.h: Remove file.
33747         * lib/unistd.in.h (euidaccess): New declaration.
33748         * lib/euidaccess.c: Don't include euidaccess.h.
33749         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
33750         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
33751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
33752         and HAVE_EUIDACCESS.
33753         * modules/euidaccess (Files): Remove lib/euidaccess.h.
33754         (Depends-on): Add unistd.
33755         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33756         (Include): Specify <unistd.h> instead of euidaccess.h.
33757         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
33758         HAVE_EUIDACCESS.
33759         * NEWS: Mention the change.
33760
33761 2008-10-18  Bruno Haible  <bruno@clisp.org>
33762
33763         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
33764
33765         Move the getdomainname() declaration to <unistd.h>.
33766         * lib/getdomainname.h: Remove file.
33767         * lib/unistd.in.h (getdomainname): New declaration.
33768         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
33769         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
33770         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33771         HAVE_GETDOMAINNAME.
33772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33773         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
33774         * modules/getdomainname (Files): Remove lib/getdomainname.h.
33775         (Depends-on): Add unistd, extensions.
33776         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33777         (Includes): Specify <unistd.h> instead of getdomainname.h.
33778         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
33779         HAVE_GETDOMAINNAME.
33780         * NEWS: Mention the change.
33781
33782 2008-10-18  Bruno Haible  <bruno@clisp.org>
33783
33784         * modules/dirent: New file.
33785         * m4/dirent_h.m4: New file.
33786         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
33787         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
33788         * modules/fchdir (Files): Remove lib/dirent.in.h.
33789         (Depends-on): Add dirent.
33790         (Makefile.am): Move rules to modules/dirent.
33791         * doc/posix-headers/dirent.texi: Mention the new module.
33792
33793 2008-10-18  Bruno Haible  <bruno@clisp.org>
33794
33795         Avoid -Wunused-parameter warnings in public gnulib header files.
33796         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
33797         macro.
33798         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
33799
33800 2008-10-18  Bruno Haible  <bruno@clisp.org>
33801
33802         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
33803         * doc/glibc-functions/error.texi: Mention the module 'error'.
33804         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
33805         * doc/glibc-functions/getdomainname.texi: Mention the module
33806         'getdomainname'.
33807         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
33808         * doc/glibc-functions/getpagesize.texi: Mention the module
33809         'getpagesize'.
33810         * doc/glibc-functions/getusershell.texi: Mention the module
33811         'getusershell'.
33812         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
33813         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
33814         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
33815         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
33816         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
33817         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
33818         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
33819         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
33820         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
33821         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
33822         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
33823         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
33824         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
33825         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
33826
33827 2008-10-17  Bruno Haible  <bruno@clisp.org>
33828
33829         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
33830         HP-UX and IRIX, use -0.0L.
33831         * tests/test-ceill.c (minus_zero): Likewise.
33832         * tests/test-floorl.c (minus_zero): Likewise.
33833         * tests/test-frexpl.c (minus_zero): Likewise.
33834         * tests/test-isnan.c (minus_zerol): Likewise.
33835         * tests/test-isnanl.h (minus_zero): Likewise.
33836         * tests/test-ldexpl.c (minus_zero): Likewise.
33837         * tests/test-roundl.c (minus_zero): Likewise.
33838         * tests/test-signbit.c (minus_zerol): Likewise.
33839         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33840         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33841         * tests/test-truncl.c (minus_zero): Likewise.
33842         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33843         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33844         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
33845         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33846
33847 2008-10-17  Bruno Haible  <bruno@clisp.org>
33848
33849         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
33850         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
33851         that it gets activated only for gcc >= 3.0.
33852         * lib/dirent.in.h: Likewise.
33853         * lib/errno.in.h: Likewise.
33854         * lib/fcntl.in.h: Likewise.
33855         * lib/float.in.h: Likewise.
33856         * lib/iconv.in.h: Likewise.
33857         * lib/inttypes.in.h: Likewise.
33858         * lib/locale.in.h: Likewise.
33859         * lib/math.in.h: Likewise.
33860         * lib/netdb.in.h: Likewise.
33861         * lib/netinet_in.in.h: Likewise.
33862         * lib/search.in.h: Likewise.
33863         * lib/signal.in.h: Likewise.
33864         * lib/spawn.in.h: Likewise.
33865         * lib/stdarg.in.h: Likewise.
33866         * lib/stdint.in.h: Likewise.
33867         * lib/stdio.in.h: Likewise.
33868         * lib/stdlib.in.h: Likewise.
33869         * lib/string.in.h: Likewise.
33870         * lib/strings.in.h: Likewise.
33871         * lib/sys_file.in.h: Likewise.
33872         * lib/sys_ioctl.in.h: Likewise.
33873         * lib/sys_select.in.h: Likewise.
33874         * lib/sys_socket.in.h: Likewise.
33875         * lib/sys_stat.in.h: Likewise.
33876         * lib/sys_time.in.h: Likewise.
33877         * lib/sysexits.in.h: Likewise.
33878         * lib/time.in.h: Likewise.
33879         * lib/unistd.in.h: Likewise.
33880         * lib/wchar.in.h: Likewise.
33881         * lib/wctype.in.h: Likewise.
33882         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33883
33884 2008-10-17  Jim Meyering  <meyering@redhat.com>
33885
33886         ignore-value: don't depend on inline module
33887         * modules/ignore-value (Depends-on): Remove 'inline'.
33888         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
33889         Suggestion from Bruno Haible.
33890
33891 2008-10-17  Bruno Haible  <bruno@clisp.org>
33892
33893         New implementation of condition variables for Win32.
33894         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
33895         (gl_linked_waitqueue_t): New type.
33896         (gl_cond_t): Use it.
33897         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
33898         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
33899         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
33900         (glthread_cond_init_func, glthread_cond_wait_func,
33901         glthread_cond_timedwait_func, glthread_cond_signal_func,
33902         glthread_cond_broadcast_func, glthread_cond_destroy_func):
33903         Reimplemented on the basis of gl_linked_waitqueue_t.
33904         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
33905         gl_waitqueue_t.
33906         (gl_rwlock_t): Update.
33907         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
33908
33909 2008-10-17  Simon Josefsson  <simon@josefsson.org>
33910
33911         * modules/recvfrom (Depends-on): Add dependency on getpeername.
33912         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33913
33914 2008-10-17  Jim Meyering  <meyering@redhat.com>
33915
33916         ignore-value: new module
33917         * modules/ignore-value: New file.
33918         * lib/ignore-value.h: New file.
33919         * MODULES.html.sh (Compiler warning management): New section,
33920         just for this module.  More to come.
33921
33922 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33923
33924         open-safer.c: avoid 'signed and unsigned in conditional...' warning
33925         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
33926         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
33927
33928 2008-10-16  Jim Meyering  <meyering@redhat.com>
33929
33930         openat-die.c: avoid 'no previous prototype' warning
33931         * lib/openat-die.c: Include "openat.h".
33932         Reported by Reuben Thomas <rrt@sc3d.org>.
33933
33934 2008-10-16  Simon Josefsson  <simon@josefsson.org>
33935
33936         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
33937         * lib/netdb.in.h: Fix typo.
33938         Reported by Bruno Haible  <bruno@clisp.org>
33939
33940         * lib/netdb.in.h: Include sys/socket.h for platforms without
33941         netdb.h, to get structures like hostent on MinGW.
33942         * modules/netdb (Depends-on): Add sys_socket.
33943
33944 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33945
33946         * modules/netdb, modules/netdb-tests: New file.
33947         * m4/netdb_h.m4: New file.
33948         * lib/netdb.in.h: Add, currently just an empty file pending
33949         definitions.
33950         * tests/test-netdb.c: New file.
33951         * doc/posix-headers/netdb.texi: Mention that we replace it if
33952         needed.
33953         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33954         netdb.
33955
33956 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33957
33958         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
33959         with code.
33960
33961 2008-10-13  Bruno Haible  <bruno@clisp.org>
33962
33963         * lib/glthread/cond.c (glthread_cond_wait_func,
33964         glthread_cond_timedwait_func): Add a comment.
33965
33966 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33967
33968         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
33969         * tests/test-select.c: Likewise,
33970
33971 2008-10-13  Bruno Haible  <bruno@clisp.org>
33972
33973         * lib/glthread/cond.c (glthread_cond_wait_func,
33974         glthread_cond_timedwait_func): Fix variable name.
33975         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33976
33977 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
33978
33979         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
33980         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
33981         struct sockaddr.sa_len.
33982         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
33983
33984 2008-10-13  Simon Josefsson  <simon@josefsson.org>
33985
33986         * build-aux/pmccabe2html: Add css and css_url parameters.
33987
33988 2008-10-12  Bruno Haible  <bruno@clisp.org>
33989
33990         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
33991         calling aclx_get.
33992         Reported by Rainer Tammer <tammer@tammer.net>.
33993
33994 2008-10-12  Bruno Haible  <bruno@clisp.org>
33995
33996         Use msvcrt aware primitives for creation/termination of Win32 threads.
33997         * lib/glthread/thread.c: Include <process.h>.
33998         (glthread_create_func): Use _beginthreadex instead of CreateThread.
33999         (wrapper_func): Update signature.
34000         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
34001
34002 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34003             Bruno Haible  <bruno@clisp.org>
34004
34005         Provide a Win32 implementation of the 'cond' module.
34006         * lib/glthread/cond.h [USE_WIN32]: New implementation.
34007         * lib/glthread/cond.c (glthread_cond_init_func,
34008         glthread_cond_wait_func, glthread_cond_timedwait_func,
34009         glthread_cond_signal_func, glthread_cond_broadcast_func,
34010         glthread_cond_destroy_func) [USE_WIN32]: New functions.
34011         * modules/cond (Dependencies): Add gettimeofday.
34012
34013 2008-10-11  Bruno Haible  <bruno@clisp.org>
34014
34015         Make sleep work on older versions of mingw.
34016         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
34017         only whether it exists.
34018         * doc/posix-functions/sleep.texi: Mention the problem with older
34019         versions of mingw.
34020
34021 2008-10-11  Bruno Haible  <bruno@clisp.org>
34022
34023         New module 'shutdown'.
34024         * modules/shutdown: New file.
34025         * lib/sys_socket.in.h (shutdown): New declaration.
34026         * lib/winsock.c (shutdown): New function.
34027         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34028         GNULIB_SHUTDOWN.
34029         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
34030         * doc/posix-functions/shutdown.texi: Document the new module.
34031
34032 2008-10-11  Jim Meyering  <meyering@redhat.com>
34033
34034         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
34035
34036 2008-10-11  Bruno Haible  <bruno@clisp.org>
34037
34038         New module 'fclose'.
34039         * modules/fclose: New file.
34040         * lib/stdio.in.h (fclose): New declaration.
34041         * lib/fclose.c: New file.
34042         * m4/fclose.m4: New file.
34043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
34044         REPLACE_FCLOSE.
34045         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
34046         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
34047         REPLACE_FCLOSE.
34048         * modules/close (Depends-on): fclose.
34049         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
34050
34051 2008-10-11  Bruno Haible  <bruno@clisp.org>
34052
34053         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
34054         set errno and don't call _close.
34055
34056 2008-10-10  Bruno Haible  <bruno@clisp.org>
34057
34058         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
34059         ACL, not afterwards. Fixes test failure on Cygwin.
34060
34061 2008-10-09  Ben Pfaff  <blp@gnu.org>
34062
34063         * build-aux/announce-gen: Fix gnulib version related part of usage
34064         message.  Die with a useful error message if no tarballs are
34065         found.
34066
34067 2008-10-10  Jim Meyering  <meyering@redhat.com>
34068
34069         bootstrap: use git's --depth=N option only if it's supported
34070         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
34071         recognize the --depth option.  Reported by Pádraig Brady.
34072
34073 2008-10-09  Bruno Haible  <bruno@clisp.org>
34074
34075         New module 'ioctl'.
34076         * modules/ioctl: New file.
34077         * lib/sys_socket.in.h (ioctl): Remove declaration.
34078         * lib/winsock.c: Include <sys/ioctl.h>.
34079         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
34080         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34081         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
34082         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
34083         * doc/posix-functions/ioctl.texi: Mention the new module.
34084
34085 2008-10-09  Bruno Haible  <bruno@clisp.org>
34086
34087         New module 'sys_ioctl'.
34088         * lib/sys_ioctl.in.h: New file.
34089         * m4/sys_ioctl_h.m4: New file.
34090         * modules/sys_ioctl: New file.
34091         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
34092
34093 2008-10-09  Bruno Haible  <bruno@clisp.org>
34094
34095         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
34096         * lib/winsock.c: Include <stdarg.h>.
34097         (rpl_ioctl): Change to second argument 'int' and then varargs.
34098
34099 2008-10-09  Bruno Haible  <bruno@clisp.org>
34100
34101         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
34102         when the sys_socket module is present and the system has <winsock2.h>.
34103
34104 2008-10-09  Bruno Haible  <bruno@clisp.org>
34105
34106         * doc/posix-functions/close.texi: Mention module 'close' instead of
34107         module 'sys_socket'.
34108
34109 2008-10-09  Bruno Haible  <bruno@clisp.org>
34110
34111         * doc/glibc-headers/sys_ioctl.texi: New file.
34112         * doc/gnulib.texi: Include it.
34113
34114 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34115             Bruno Haible  <bruno@clisp.org>
34116
34117         Combine the two replacements of 'close'.
34118         * lib/sys_socket.in.h (close): Define to a reminder to include
34119         <unistd.h>.
34120         (_gl_close_fd_maybe_socket): New declaration.
34121         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
34122         * lib/winsock.c (close): Remove undefinition.
34123         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
34124         needed for the gnulib module 'close'.
34125         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
34126         define to an error symbol or to a warning, if suitable.
34127         * lib/close.c: Include <sys/socket.h>.
34128         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
34129         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
34130         UNISTD_H_HAVE_WINSOCK2_H.
34131         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
34132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34133         UNISTD_H_HAVE_WINSOCK2_H.
34134         * modules/sys_socket (Files): Add m4/unistd_h.m4.
34135         (configure.ac): Set a module indicator.
34136         (Makefile.am): Substitute GNULIB_CLOSE.
34137         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
34138         * modules/poll-tests (Depends-on): Add close.
34139         * modules/select-tests (Depends-on): Likewise.
34140
34141 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34142             Bruno Haible  <bruno@clisp.org>
34143
34144         New module 'close'.
34145         * modules/close: New file.
34146         * lib/unistd.in.h (close): Move declaration out of the
34147         FCHDIR_REPLACEMENT scope.
34148         (_gl_unregister_fd): New declaration.
34149         * lib/close.c: New file.
34150         * lib/fchdir.c (rpl_close): Remove function.
34151         * m4/close.m4: New file.
34152         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34153         close.
34154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
34155         REPLACE_CLOSE.
34156         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
34157         REPLACE_CLOSE.
34158         * modules/fchdir (Depends-on): Add close.
34159
34160 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34161             Bruno Haible  <bruno@clisp.org>
34162
34163         * lib/fcntl.in.h (open): Simplify conditionals.
34164         (_gl_register_fd): New declaration.
34165         * lib/fchdir.c (rpl_open): Remove function.
34166         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
34167         also.
34168         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
34169         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34170         open.
34171
34172 2008-10-09  Jim Meyering  <meyering@redhat.com>
34173
34174         GNUmakefile: use the more name-space-friendly "_version"
34175         * top/GNUmakefile (_dummy): Update.
34176         (_version): Rename from "version".
34177
34178 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34179             Bruno Haible  <bruno@clisp.org>
34180
34181         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
34182         rpl_close.
34183         (_gl_register_fd): New function, extracted from rpl_open.
34184         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
34185         (rpl_open, rpl_opendir): Use _gl_register_fd.
34186
34187 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34188
34189         Fix organization of 'open' replacement.
34190         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
34191         (gl_FUNC_OPEN): Use it.
34192         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
34193
34194 2008-10-08  Bruno Haible  <bruno@clisp.org>
34195
34196         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
34197
34198 2008-10-08  Simon Josefsson  <simon@josefsson.org>
34199
34200         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
34201         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
34202         listen).
34203
34204 2008-10-08  Eric Blake  <ebb9@byu.net>
34205
34206         GNUmakefile: add 'make version' target
34207         * top/GNUmakefile (_curr-ver): Split version update rules...
34208         (version): ...into a target.
34209
34210 2008-10-07  Bruno Haible  <bruno@clisp.org>
34211
34212         Use a more portable replacement expression for -0.0L.
34213         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
34214         instead of -0.0L. Fix m4 quotation.
34215
34216         * tests/test-signbit.c: Include <float.h>.
34217         (minus_zero): New variable.
34218         (test_signbitl): Use minus_zero instead of -zero.
34219         * modules/signbit-tests (Depends-on): Add float.
34220
34221         * tests/test-ceill.c: Include <float.h>.
34222         (zero): Remove variable.
34223         (minus_zero): New variable.
34224         (main): Use minus_zero instead of -zero.
34225         * modules/ceill-tests (Depends-on): Add float.
34226
34227         * tests/test-floorl.c: Include <float.h>.
34228         (zero): Remove variable.
34229         (minus_zero): New variable.
34230         (main): Use minus_zero instead of -zero.
34231         * modules/floorl-tests (Depends-on): Add float.
34232
34233         * tests/test-roundl.c: Include <float.h>.
34234         (zero): Remove variable.
34235         (minus_zero): New variable.
34236         (main): Use minus_zero instead of -zero.
34237         * modules/roundl-tests (Depends-on): Add float.
34238
34239         * tests/test-truncl.c: Include <float.h>.
34240         (zero): Remove variable.
34241         (minus_zero): New variable.
34242         (main): Use minus_zero instead of -zero.
34243         * modules/truncl-tests (Depends-on): Add float.
34244
34245         * tests/test-frexpl.c (zero): Remove variable.
34246         (minus_zero): New variable.
34247         (main): Use minus_zero instead of -zero.
34248         * modules/frexpl-tests (Depends-on): Add float.
34249
34250         * tests/test-isnan.c (zerol): Remove variable.
34251         (minus_zerol): New variable.
34252         (test_long_double): Use minus_zerol instead of -zerol.
34253         * modules/isnan-tests (Depends-on): Add float.
34254
34255         * tests/test-isnanl.h (zero): Remove variable.
34256         (minus_zero): New variable.
34257         (main): Use minus_zero instead of -zero.
34258         * modules/isnanl-nolibm-tests (Depends-on): Add float.
34259         * modules/isnanl-tests (Depends-on): Add float.
34260
34261         * tests/test-ldexpl.c (zero): Remove variable.
34262         (minus_zero): New variable.
34263         (main): Use minus_zero instead of -zero.
34264         * modules/ldexpl-tests (Depends-on): Add float.
34265
34266         * tests/test-snprintf-posix.h (zerol): Remove variable.
34267         (minus_zerol): New variable.
34268         (test_function): Use minus_zerol instead of -zerol.
34269         * modules/snprintf-posix-tests (Depends-on): Add float.
34270         * modules/vsnprintf-posix-tests (Depends-on): Add float.
34271
34272         * tests/test-sprintf-posix.h (zerol): Remove variable.
34273         (minus_zerol): New variable.
34274         (test_function): Use minus_zerol instead of -zerol.
34275         * modules/sprintf-posix-tests (Depends-on): Add float.
34276         * modules/vsprintf-posix-tests (Depends-on): Add float.
34277
34278         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
34279         (minus_zerol): New variable.
34280         (test_function): Use minus_zerol instead of -zerol.
34281         * modules/vasnprintf-posix-tests (Depends-on): Add float.
34282
34283         * tests/test-vasprintf-posix.c (zerol): Remove variable.
34284         (minus_zerol): New variable.
34285         (test_function): Use minus_zerol instead of -zerol.
34286         * modules/vasprintf-posix-tests (Depends-on): Add float.
34287
34288 2008-10-07  Simon Josefsson  <simon@josefsson.org>
34289
34290         * MODULES.html.sh (Support for building documentation): Mention
34291         pmccabe2html.  Sort entries.
34292
34293         Add pmccabe2html module, from gnupdf.
34294         * build-aux/pmccabe.css: New file.
34295         * build-aux/pmccabe2html: New file.
34296         * m4/pmccabe2html.m4: New file.
34297         * modules/pmccabe2html: New file.
34298
34299 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
34300
34301         flock: new module
34302         * MODULES.html.sh: Add to list of modules.
34303         * lib/flock.c: flock implementation for Windows and Unix systems
34304         which have fcntl.
34305         * doc/glibc-functions/flock.texi: Update documentation.
34306         * lib/sys_file.in.h: <sys/file.h> header file.
34307         * m4/flock.m4: M4 macros.
34308         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
34309         * modules/flock: flock module.
34310         * modules/flock-tests: flock tests module.
34311         * modules/sys_file: sys/file.h module.
34312         * tests/test-flock.c: test suite for flock.
34313
34314 2008-10-06  Jim Meyering  <meyering@redhat.com>
34315
34316         bootstrap: check for LT_INIT more portably still ;-)
34317         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
34318         Spotted by Bruno Haible.
34319
34320 2008-10-06  Eric Blake  <ebb9@byu.net>
34321
34322         test-signbit: avoid tripping Irix cc bug on -0.0L
34323         * tests/test-signbit.c (minus_zerol): Delete, and replace with
34324         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
34325         entire testsuite consistent and avoids an Irix 6.2 bug.
34326
34327 2008-10-05  Bruno Haible  <bruno@clisp.org>
34328             Jim Meyering  <jim@meyering.net>
34329
34330         Add an option for ignoring EPIPE during close_stdout.
34331         * lib/closeout.h: Include <stdbool.h>.
34332         (close_stdout_set_ignore_EPIPE): New declaration.
34333         * lib/closeout.c: Include <stdbool.h>.
34334         (ignore_EPIPE): New variable.
34335         (close_stdout_set_ignore_EPIPE): New function.
34336         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
34337         * lib/close-stream.c (close_stream): Mention the possible EPIPE
34338         failure.
34339         * modules/closeout (Depends-on): Add stdbool.
34340
34341 2008-10-05  Bruno Haible  <bruno@clisp.org>
34342
34343         * modules/accept: New file.
34344         * modules/bind: New file.
34345         * modules/connect: New file.
34346         * modules/getpeername: New file.
34347         * modules/getsockname: New file.
34348         * modules/getsockopt: New file.
34349         * modules/listen: New file.
34350         * modules/recv: New file.
34351         * modules/recvfrom: New file.
34352         * modules/send: New file.
34353         * modules/sendto: New file.
34354         * modules/setsockopt: New file.
34355         * modules/socket: New file.
34356         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
34357         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34358         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
34359         the particular module is requested. Add a link warning when the
34360         particular module is not requested.
34361         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
34362         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
34363         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
34364         the particular module is requested.
34365         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
34366         gl_SYS_SOCKET_H_DEFAULTS): New macros.
34367         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
34368         * modules/sys_socket (Depends-on): Add link-warning.
34369         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
34370         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
34371         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
34372         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
34373         GL_LINK_WARNING.
34374         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
34375         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
34376         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
34377         * doc/posix-functions/getpeername.texi: Mention the new module
34378         'getpeername'.
34379         * doc/posix-functions/getsockname.texi: Mention the new module
34380         'getsockname'.
34381         * doc/posix-functions/getsockopt.texi: Mention the new module
34382         'getsockopt'.
34383         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
34384         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
34385         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
34386         * doc/posix-functions/send.texi: Mention the new module 'send'.
34387         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
34388         * doc/posix-functions/setsockopt.texi: Mention the new module
34389         'setsockopt'.
34390         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
34391         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
34392         listen, connect, accept.
34393         * modules/select-tests (Depends-on): Likewise.
34394
34395 2008-10-05  Bruno Haible  <bruno@clisp.org>
34396
34397         * lib/winsock.c (strerror): Remove unused #undef.
34398         (rpl_close): Remove unused local variable.
34399
34400         * modules/sys_socket (Depends-on); Add errno.
34401
34402 2008-10-05  Bruno Haible  <bruno@clisp.org>
34403
34404         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
34405         (select): Add a link warning when the 'select' module is not used.
34406         * modules/sys_select (Depends-on): Add link-warning.
34407         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
34408         Suggested by Paolo Bonzini.
34409
34410 2008-10-05  Jim Meyering  <meyering@redhat.com>
34411
34412         bootstrap: check for LT_INIT more portably
34413         * build-aux/bootstrap: Avoid using grep -E, since it's not
34414         portable enough.  Suggestion from Bruno Haible.
34415
34416 2008-10-05  Bruno Haible  <bruno@clisp.org>
34417
34418         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
34419         as being fixed by gnulib.
34420
34421 2008-10-05  Bruno Haible  <bruno@clisp.org>
34422
34423         * modules/select-tests: New file, mostly copied from
34424         modules/sys_select-tests.
34425         * tests/test-select.c: New file, mostly copied from
34426         tests/test-sys_select.c.
34427         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
34428         * modules/sys_select-tests (Depends-on): Remove all dependencies.
34429         (Makefile.am): Remove test_sys_select_LDADD.
34430
34431         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
34432         to an undefined symbol, for an error message.
34433         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
34434         (gl_SYS_SELECT_H_DEFAULTS): New macro.
34435         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
34436         winsock-select.c here.
34437         * modules/sys_select (Files): Remove lib/winsock-select.c.
34438         (Depends-on): Remove alloca.
34439         (Makefile.am): Substitute GNULIB_SELECT.
34440         * modules/select: New file.
34441         * doc/posix-functions/select.texi: Update.
34442
34443 2008-10-05  Bruno Haible  <bruno@clisp.org>
34444
34445         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
34446         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
34447         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
34448         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
34449         getdtablesize.
34450         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
34451         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
34452
34453 2008-10-05  Bruno Haible  <bruno@clisp.org>
34454
34455         * modules/getdtablesize-tests: New file.
34456         * tests/test-getdtablesize.c: New file.
34457
34458         New module 'getdtablesize'.
34459         * lib/unistd.in.h (getdtablesize): New declaration.
34460         * lib/getdtablesize.c: New file.
34461         * m4/getdtablesize.m4: New file.
34462         * modules/getdtablesize: New file.
34463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34464         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
34465         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
34466         HAVE_GETDTABLESIZE.
34467         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
34468
34469 2008-10-05  Bruno Haible  <bruno@clisp.org>
34470
34471         * modules/sched (Makefile.am): Fix typo.
34472         Reported by Simon Josefsson.
34473
34474 2008-10-05  Jim Meyering  <meyering@redhat.com>
34475
34476         bootstrap: check for LT_INIT, too
34477         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
34478         are deprecated.  Suggestion from Ralf Wildenhues.
34479
34480 2008-10-05  Bruno Haible  <bruno@clisp.org>
34481
34482         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
34483         overriding them by ours.
34484         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
34485
34486 2008-10-05  Jim Meyering  <meyering@redhat.com>
34487
34488         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
34489         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
34490         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
34491
34492 2008-10-04  Bruno Haible  <bruno@clisp.org>
34493
34494         * modules/dup2 (License): Change to LGPLv2+.
34495         * modules/sleep (License): Likewise.
34496         * modules/perror (License): Likewise.
34497         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
34498         Blake.
34499         * modules/signal (License): Likewise.
34500         * modules/sigprocmask (License): Likewise.
34501         * modules/raise (License): Change to LGPLv2+, with approval by Jim
34502         Meyering.
34503
34504 2008-10-04  Bruno Haible  <bruno@clisp.org>
34505
34506         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
34507         Reported by Rainer Tammer <tammer@tammer.net>.
34508
34509 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
34510             Bruno Haible  <bruno@clisp.org>
34511
34512         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
34513         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
34514         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
34515
34516 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
34517
34518         filevercmp: new module
34519         * lib/filevercmp.h: New function filevercmp comparing version strings.
34520         * lib/filevercmp.c: Implementation of filevercmp function.
34521         * modules/filevercmp: Module metadata.
34522         * tests/test-filevercmp.c: Unit test for new module.
34523         * modules/filevercmp-tests: Unit test metadata.
34524         * MODULES.html.sh: Add filevercmp module.
34525
34526 2008-10-03  Bruno Haible  <bruno@clisp.org>
34527
34528         * lib/c-ctype.h: Add comment.
34529         Reported by Jim Meyering.
34530
34531 2008-10-02  Bruno Haible  <bruno@clisp.org>
34532
34533         * modules/posix_spawn-internal (Depends-on): Add 'open'.
34534
34535 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34536
34537         * build-aux/bootstrap: Allow renaming bootstrap, and change the
34538         name of bootstrap.conf accordingly.
34539
34540 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34541
34542         * build-aux/bootstrap: Install git-merge-changelog configuration
34543         items into .gitconfig if needed.
34544
34545 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34546
34547         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
34548         git repository, and initialize/update it accordingly.
34549
34550 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
34551
34552         * modules/fsync-tests: New file.
34553         * tests/test-fsync.c: New file.
34554
34555         New module 'fsync'.
34556         * lib/fsync.c: New file.
34557         * m4/fsync.m4: New file.
34558         * modules/fsync: New file.
34559         * lib/unistd.in.h (fsync): New declaration.
34560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
34561         GNULIB_FSYNC and HAVE_FSYNC.
34562         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
34563         * MODULES.html.sh (posix_functions): Add fsync.
34564         * doc/posix-functions/fsync.texi: Mention the new module.
34565
34566 2008-10-02  Jim Meyering  <meyering@redhat.com>
34567
34568         fts.c: sync with similar code from coreutils' remove.c
34569         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
34570         Guard also with "#if defined __linux__", since for now at least,
34571         this code is Linux-kernel-specific.
34572
34573 2008-10-02  Jim Meyering  <meyering@redhat.com>
34574
34575         fts: bug fixes
34576         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
34577         Include <sys/vfs.h>, not <sys/statfs.h>.
34578
34579         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
34580         Include <sys/vfs.h>, not <sys/statfs.h>.
34581
34582 2008-10-01  Bruno Haible  <bruno@clisp.org>
34583
34584         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
34585         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
34586         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
34587         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
34588         * doc/posix-functions/posix_spawnp.texi: Likewise.
34589         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
34590         whether posix_spawn actually works.
34591         * m4/pipe.m4 (gl_PIPE): Likewise.
34592         * modules/execute (Files): Add m4/posix_spawn.m4.
34593         * modules/pipe (Files): Add m4/posix_spawn.m4.
34594         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
34595
34596 2008-10-01  Jim Meyering  <meyering@redhat.com>
34597
34598         remove trailing spaces
34599         * NEWS: Likewise.
34600         * lib/poll.c (poll): Likewise.
34601         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
34602         * lib/winsock.c (rpl_close): Likewise.
34603         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
34604         * modules/yield: Likewise.
34605         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
34606         * tests/test-sys_select.c (connect_to_socket): Likewise.
34607
34608         fts.c: adjust a new interface to be more generally useful
34609         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
34610         (fts_build): Adjust caller.
34611
34612 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34613
34614         * modules/cond-tests: New file.
34615         * tests/test-cond.c: New file.
34616
34617 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34618             Bruno Haible  <bruno@clisp.org>
34619
34620         * modules/cond (Dependencies): Add errno, time.
34621         * lib/glthread/cond.h: Include <time.h>.
34622         (gl_cond_define, gl_cond_define_initialized): Use the same definition
34623         across platforms.
34624
34625 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34626             Bruno Haible  <bruno@clisp.org>
34627
34628         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
34629
34630 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34631             Bruno Haible  <bruno@clisp.org>
34632
34633         * modules/tls-tests (Depends-on): Add thread, yield.
34634         (configure.ac): Remove all checks.
34635         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
34636         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34637         gl_thread_self): Remove definitions. Include glthread/thread.h and
34638         glthread/yield.h instead.
34639         (test_tls): Pass an additional NULL argument to gl_thread_join.
34640
34641 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34642             Bruno Haible  <bruno@clisp.org>
34643
34644         * modules/lock-tests (Depends-on): Add thread, yield.
34645         (configure.ac): Remove all checks.
34646         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
34647         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34648         gl_thread_self): Remove definitions. Include glthread/thread.h and
34649         glthread/yield.h instead.
34650         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
34651         additional NULL argument to gl_thread_join.
34652
34653 2008-09-30  Bruno Haible  <bruno@clisp.org>
34654
34655         Fix the Win32 implementation of the 'thread' module.
34656         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
34657         pointer type.
34658         (gl_thread_self): Invoke gl_thread_self_func.
34659         (gl_thread_self_func): New declaration.
34660         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
34661         (do_init_self_key, init_self_key): New functions.
34662         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
34663         Remove some fields.
34664         (running_threads, running_lock): Remove variables.
34665         (get_current_thread_handle): New function.
34666         (gl_thread_self_func, wrapper_func, glthread_create_func,
34667         glthread_join_func, gl_thread_exit_func): Largely rewritten and
34668         simplified.
34669
34670 2008-09-30  Bruno Haible  <bruno@clisp.org>
34671
34672         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
34673         files.
34674
34675 2008-09-30  Jim Meyering  <meyering@redhat.com>
34676
34677         fts.m4: correct the test for statfs.f_type
34678         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
34679         when checking for statfs.f_type.
34680
34681 2008-09-15  Simon Josefsson  <simon@josefsson.org>
34682
34683         tests: avoid some compiler warnings
34684         * tests/test-memchr.c (main): Pass NULL indirectly.
34685         * tests/test-getdate.c (main): Remove unused variable 'ret'.
34686
34687 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
34688
34689         getdate.y: disallow countable dayshifts like "4 yesterday ago"
34690         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
34691         exactly specified dayshifts.
34692         (dayshift): New rule.
34693         (rel): Add dayshift.
34694         (relative_time_table) [tomorrow, yesterday, today, now]:
34695         Use tDAY_SHIFT in place of tDAY_UNIT.
34696         * tests/test-getdate.c: Add tests for now-disallowed countable
34697         dayshifts, e.g., "4 yesterday ago".
34698
34699 2008-09-29  Bruno Haible  <bruno@clisp.org>
34700
34701         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
34702         * tests/test-posix_spawn1.in.sh: Renamed from
34703         tests/test-posix_spawn.in.sh.
34704         * tests/test-posix_spawn2.c: New file.
34705         * tests/test-posix_spawn2.in.sh: New file.
34706         * modules/posix_spawnp-tests (Files): Update.
34707         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
34708
34709 2008-09-29  Bruno Haible  <bruno@clisp.org>
34710
34711         Propagate effects of putenv/setenv/unsetenv to child processes.
34712         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
34713         * lib/pipe.c (create_pipe): Likewise.
34714
34715 2008-09-29  Bruno Haible  <bruno@clisp.org>
34716
34717         Enable use of shell scripts as executables in mingw.
34718         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
34719         run the program as a shell script.
34720         * lib/pipe.c (create_pipe): Likewise.
34721         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
34722         resulting array.
34723
34724 2008-09-29  Eric Blake  <ebb9@byu.net>
34725
34726         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
34727
34728 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
34729
34730         * doc/posix-functions/accept.texi: Update mingw problems.
34731         * doc/posix-functions/bind.texi: Update mingw problems.
34732         * doc/posix-functions/close.texi: Update mingw problems.
34733         * doc/posix-functions/connect.texi: Update mingw problems.
34734         * doc/posix-functions/getpeername.texi: Update mingw problems.
34735         * doc/posix-functions/getsockname.texi: Update mingw problems.
34736         * doc/posix-functions/getsockopt.texi: Update mingw problems.
34737         * doc/posix-functions/ioctl.texi: Update mingw problems.
34738         * doc/posix-functions/listen.texi: Update mingw problems.
34739         * doc/posix-functions/recv.texi: Update mingw problems.
34740         * doc/posix-functions/recvfrom.texi: Update mingw problems.
34741         * doc/posix-functions/select.texi: Update mingw problems.
34742         * doc/posix-functions/send.texi: Update mingw problems.
34743         * doc/posix-functions/sendto.texi: Update mingw problems.
34744         * doc/posix-functions/setsockopt.texi: Update mingw problems.
34745         * doc/posix-functions/socket.texi: Update mingw problems.
34746
34747 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
34748             Bruno Haible  <bruno@clisp.org>
34749
34750         * lib/sys_select.in.h: Include sys/time.h.
34751         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
34752         * modules/sys_select: Depend on sys_time.
34753         * tests/test-sys_select.c: Test that sys/select.h defines struct
34754         timeval fully.
34755
34756 2008-09-29  Bruno Haible  <bruno@clisp.org>
34757
34758         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
34759         * lib/sys_select.in.h: Likewise.
34760
34761 2008-09-29  Bruno Haible  <bruno@clisp.org>
34762
34763         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
34764
34765 2008-09-29  Bruno Haible  <bruno@clisp.org>
34766
34767         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
34768         Set LIBSOCKET instead of augmenting LIBS.
34769         * modules/sockets (Link): New section.
34770         * modules/sockets-tests (test_sockets_LDADD): New variable.
34771         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
34772         * modules/poll-tests (test_poll_LDADD): New variable.
34773         * NEWS: Document the change.
34774
34775 2008-09-29  Bruno Haible  <bruno@clisp.org>
34776
34777         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
34778         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
34779         ARPA_INET_H directly.
34780         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34781
34782 2008-09-28  Bruno Haible  <bruno@clisp.org>
34783
34784         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
34785         from gl_HEADER_SYS_SOCKET.
34786         (gl_HEADER_SYS_SOCKET): Invoke it.
34787         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34788
34789 2008-09-28  Bruno Haible  <bruno@clisp.org>
34790
34791         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
34792         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
34793         Needed on OSF/1 4.0.
34794
34795 2008-09-28  Bruno Haible  <bruno@clisp.org>
34796
34797         Override open more carefully.
34798         * lib/open.c (orig_open): New function.
34799         (rpl_open): Use orig_open instead of open.
34800         * lib/fcntl.in.h: Add special invocation convention.
34801         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
34802         (gl_FUNC_OPEN): Invoke it.
34803
34804         Override freopen more carefully.
34805         * lib/freopen.c (orig_freopen): New function.
34806         (rpl_freopen): Use orig_freopen instead of freopen.
34807         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
34808         (gl_FUNC_FREOPEN): Invoke it.
34809
34810         Override fopen more carefully.
34811         * lib/fopen.c (orig_fopen): New function.
34812         (rpl_fopen): Use orig_fopen instead of fopen.
34813         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
34814         (gl_FUNC_FOPEN): Invoke it.
34815         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
34816
34817 2008-09-28  Bruno Haible  <bruno@clisp.org>
34818
34819         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
34820         SIGPIPE.
34821
34822 2008-09-28  Bruno Haible  <bruno@clisp.org>
34823
34824         * tests/test-sigaction.c (handler, main): Disable the check whether
34825         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
34826         glibc systems with LinuxThreads.
34827
34828 2008-09-28  Bruno Haible  <bruno@clisp.org>
34829
34830         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
34831
34832         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
34833         with AIX xlc.
34834         * lib/fcntl.in.h (open): Likewise.
34835         Reported by Rainer Tammer <tammer@tammer.net>.
34836
34837 2008-09-28  Bruno Haible  <bruno@clisp.org>
34838
34839         * modules/posix_spawnp-tests: New file.
34840         * tests/test-posix_spawn.c: New file.
34841         * tests/test-posix_spawn.in.sh: New file.
34842
34843         New module 'posix_spawnp'.
34844         * modules/posix_spawnp: New file.
34845         * lib/spawnp.c: New file, from GNU libc with modifications.
34846         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
34847
34848         New module 'posix_spawn'.
34849         * modules/posix_spawn: New file.
34850         * lib/spawn.c: New file, from GNU libc with modifications.
34851         * doc/posix-functions/posix_spawn.texi: Mention the new module.
34852
34853         New module 'posix_spawnattr_destroy'.
34854         * modules/posix_spawnattr_destroy: New file.
34855         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
34856         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
34857         module.
34858
34859         New module 'posix_spawnattr_setsigmask'.
34860         * modules/posix_spawnattr_setsigmask: New file.
34861         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
34862         modifications.
34863         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
34864         new module.
34865
34866         New module 'posix_spawnattr_getsigmask'.
34867         * modules/posix_spawnattr_getsigmask: New file.
34868         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
34869         modifications.
34870         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
34871         new module.
34872
34873         New module 'posix_spawnattr_setsigdefault'.
34874         * modules/posix_spawnattr_setsigdefault: New file.
34875         * lib/spawnattr_setdefault.c: New file, from GNU libc with
34876         modifications.
34877         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
34878         new module.
34879
34880         New module 'posix_spawnattr_getsigdefault'.
34881         * modules/posix_spawnattr_getsigdefault: New file.
34882         * lib/spawnattr_getdefault.c: New file, from GNU libc with
34883         modifications.
34884         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
34885         new module.
34886
34887         New module 'posix_spawnattr_setschedpolicy'.
34888         * modules/posix_spawnattr_setschedpolicy: New file.
34889         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
34890         modifications.
34891         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
34892         new module.
34893
34894         New module 'posix_spawnattr_getschedpolicy'.
34895         * modules/posix_spawnattr_getschedpolicy: New file.
34896         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
34897         modifications.
34898         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
34899         new module.
34900
34901         New module 'posix_spawnattr_setschedparam'.
34902         * modules/posix_spawnattr_setschedparam: New file.
34903         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
34904         modifications.
34905         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
34906         new module.
34907
34908         New module 'posix_spawnattr_getschedparam'.
34909         * modules/posix_spawnattr_getschedparam: New file.
34910         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
34911         modifications.
34912         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
34913         new module.
34914
34915         New module 'posix_spawnattr_setpgroup'.
34916         * modules/posix_spawnattr_setpgroup: New file.
34917         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
34918         modifications.
34919         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
34920         module.
34921
34922         New module 'posix_spawnattr_getpgroup'.
34923         * modules/posix_spawnattr_getpgroup: New file.
34924         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
34925         modifications.
34926         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
34927         module.
34928
34929         New module 'posix_spawnattr_setflags'.
34930         * modules/posix_spawnattr_setflags: New file.
34931         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
34932         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
34933         module.
34934
34935         New module 'posix_spawnattr_getflags'.
34936         * modules/posix_spawnattr_getflags: New file.
34937         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
34938         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
34939         module.
34940
34941         New module 'posix_spawnattr_init'.
34942         * modules/posix_spawnattr_init: New file.
34943         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
34944         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
34945         module.
34946
34947         New module 'posix_spawn_file_actions_destroy'.
34948         * modules/posix_spawn_file_actions_destroy: New file.
34949         * lib/spawn_faction_destroy.c: New file, from GNU libc with
34950         modifications.
34951         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
34952         the new module.
34953
34954         New module 'posix_spawn_file_actions_addopen'.
34955         * modules/posix_spawn_file_actions_addopen: New file.
34956         * lib/spawn_faction_addopen.c: New file, from GNU libc with
34957         modifications.
34958         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
34959         the new module.
34960
34961         New module 'posix_spawn_file_actions_adddup2'.
34962         * modules/posix_spawn_file_actions_adddup2: New file.
34963         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
34964         modifications.
34965         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
34966         the new module.
34967
34968         New module 'posix_spawn_file_actions_addclose'.
34969         * modules/posix_spawn_file_actions_addclose: New file.
34970         * lib/spawn_faction_addclose.c: New file, from GNU libc with
34971         modifications.
34972         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
34973         the new module.
34974
34975         New module 'posix_spawn_file_actions_init'.
34976         * modules/posix_spawn_file_actions_init: New file.
34977         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
34978         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
34979         new module.
34980
34981         New module 'posix_spawn-internal'.
34982         * modules/posix_spawn-internal: New file.
34983         * lib/spawn_int.h: New file, from GNU libc with modifications.
34984         * lib/spawni.c: New file, from GNU libc with modifications.
34985         * m4/posix_spawn.m4: New file.
34986
34987         New module 'spawn'.
34988         * modules/spawn: New file.
34989         * lib/spawn.in.h: New file, from GNU libc with modifications.
34990         * m4/spawn_h.m4: New file.
34991         * doc/posix-headers/spawn.texi: Mention the new module.
34992
34993 2008-09-28  Bruno Haible  <bruno@clisp.org>
34994
34995         * modules/sched-tests: New file.
34996         * tests/test-sched.c: New file.
34997
34998         New module 'sched'.
34999         * modules/sched: New file.
35000         * lib/sched.in.h: New file.
35001         * m4/sched_h.m4: New file.
35002         * doc/posix-headers/sched.texi: Mention the new module.
35003
35004 2008-09-27  Eric Blake  <ebb9@byu.net>
35005
35006         Fix previous patch, and tweak references to $0.
35007         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
35008         (func_version, func_gnulib_dir): Don't call this program
35009         gnulib-tool.
35010         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
35011         with using $0 in function.
35012         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
35013         (func_fatal_error): Reuse the name the user invoked us with.
35014
35015 2008-09-27  Bruno Haible  <bruno@clisp.org>
35016
35017         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
35018         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
35019         (gl_ICONV_H): Not here.
35020         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35021         instead of assigning ICONV_H directly.
35022
35023         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
35024         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
35025         WCHAR_H directly.
35026
35027 2008-09-27  Bruno Haible  <bruno@clisp.org>
35028
35029         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
35030         * modules/arpa_inet (Depends-on): Add link-warning.
35031         (Makefile.am): Insert the definition of GL_LINK-WARNING.
35032         * modules/unistd (Makefile.am): Likewise.
35033
35034 2008-09-26  Bruno Haible  <bruno@clisp.org>
35035
35036         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
35037         variables.
35038         (func_version): Essentially copied from gnulib-tool.
35039         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
35040         func_readlink): Copied from gnulib-tool.
35041
35042 2008-09-26  Bruno Haible  <bruno@clisp.org>
35043
35044         * gnulib-tool (func_version): Change directory to $gnulib_dir before
35045         invoking git-version-gen.
35046
35047 2008-09-26  Bruno Haible  <bruno@clisp.org>
35048
35049         * posix-modules: Update to directory names changed on 2008-01-19.
35050         Remove commas in output before splitting into words. No more need to
35051         avoid 'ftruncate' since 2007-02-19.
35052
35053 2008-09-26  Bruno Haible  <bruno@clisp.org>
35054
35055         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
35056
35057 2008-09-26  Bruno Haible  <bruno@clisp.org>
35058
35059         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
35060         * modules/fwriteerror (Depends-on): Add errno.
35061
35062 2008-09-26  Bruno Haible  <bruno@clisp.org>
35063
35064         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
35065         * tests/test-vc-list-files-cvs.sh: Likewise.
35066
35067 2008-09-26  Bruno Haible  <bruno@clisp.org>
35068
35069         * doc/posix-headers/sys_resource.texi: Reorder items.
35070
35071 2008-09-26  Jim Meyering  <meyering@redhat.com>
35072
35073         fts: tweak inode comparison function
35074         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
35075         inode numbers, as documented.
35076
35077         fts: sort dirent entries on inode number before traversing
35078         This avoids a quadratic, seek-related performance penalty when
35079         operating on a directory containing many entries (measurable at 10k;
35080         3.5 hours at 2 million entries with a cold cache) on certain types
35081         of file systems, including ext3 and ext4, but not tmpfs.
35082         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
35083         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
35084         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
35085         (fs_handles_readdir_ordered_dirents_efficiently): New function.
35086         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
35087         (fts_build): Set the stat.st_ino member from D_INO.
35088         If it is likely to be useful, sort dirent entries on inode number.
35089
35090         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
35091         and the struct statfs.f_type member.
35092         * modules/fts (Depends-on): Add d-ino.
35093
35094 2008-09-26  Bruno Haible  <bruno@clisp.org>
35095
35096         * modules/sigpipe-die (Depends-on): Add sigpipe.
35097
35098         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
35099         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
35100         and GNULIB_STDIO_H_SIGPIPE are set.
35101         * lib/stdio-write.c: New file.
35102         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
35103         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35104         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35105         REPLACE_STDIO_WRITE_FUNCS.
35106         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
35107         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35108         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35109         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35110         * modules/stdio (Files): Add lib/stdio-write.c.
35111         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
35112         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35113         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35114         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35115         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
35116         REPLACE_FPRINTF_POSIX.
35117         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
35118         REPLACE_PRINTF_POSIX.
35119         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
35120         REPLACE_VFPRINTF_POSIX.
35121         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
35122         REPLACE_VPRINTF_POSIX.
35123         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
35124         SIGPIPE issue.
35125         * doc/posix-functions/fputc.texi: Likewise.
35126         * doc/posix-functions/fputs.texi: Likewise.
35127         * doc/posix-functions/fwrite.texi: Likewise.
35128         * doc/posix-functions/printf.texi: Likewise.
35129         * doc/posix-functions/putc.texi: Likewise.
35130         * doc/posix-functions/putchar.texi: Likewise.
35131         * doc/posix-functions/puts.texi: Likewise.
35132         * doc/posix-functions/vfprintf.texi: Likewise.
35133         * doc/posix-functions/vprintf.texi: Likewise.
35134
35135         * modules/safe-write (Depends-on): Add write.
35136
35137         * modules/sigpipe-tests: New file.
35138         * tests/test-sigpipe.c: New file.
35139         * tests/test-sigpipe.sh: New file.
35140
35141         * modules/write: New file.
35142         * lib/unistd.in.h: Include <sys/types.h>.
35143         (write): New declaration.
35144         * lib/write.c: New file.
35145         * m4/write.m4: New file.
35146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35147         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
35148         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
35149         GNULIB_WRITE, REPLACE_WRITE.
35150         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
35151         and the SIGPIPE issue.
35152
35153         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
35154         (raise): New declaration.
35155         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
35156         (ext_signal): New function.
35157         (rpl_raise): New function.
35158         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35159         GNULIB_SIGNAL_H_SIGPIPE.
35160         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
35161         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
35162
35163         * modules/sigpipe: New file.
35164         * m4/sigpipe.m4: New file.
35165
35166 2008-09-25  Derek Price  <derek@ximbiot.com>
35167             Bruno Haible  <bruno@clisp.org>
35168
35169         * gnulib-tool (func_import): Report all license incompatibilities, not
35170         just the first one.
35171
35172 2008-09-25  Bruno Haible  <bruno@clisp.org>
35173
35174         * gnulib-tool (func_import): When computing the edits, consider not
35175         only the Makefile.ams that exist but also those that will be generated.
35176
35177 2008-09-25  Simon Josefsson  <simon@josefsson.org>
35178
35179         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
35180         fixes gnulib-tool --test warning about duplicate dependency.
35181
35182 2008-09-25  Bruno Haible  <bruno@clisp.org>
35183
35184         * gnulib-tool: Don't ask the user to perform edits in the generated
35185         Makefile.ams.
35186         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
35187         apply to the Makefile.am being generated.
35188         (func_emit_tests_Makefile_am): Execute edits that apply to the
35189         Makefile.am being generated.
35190         (func_import): Setup list of Makefile.am edits before emitting the
35191         Makefile.ams, not at the end.
35192         (func_create_testdir): Update.
35193         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35194
35195 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35196
35197         * gnulib-tool (func_import): Store the --tests-base option in the
35198         comment in gnulib-cache.m4.
35199
35200 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
35201
35202         * NEWS: Document increased portability that sys_select now provides.
35203
35204         * lib/sys_select.in.h: Install select wrapper.
35205         * lib/sys_socket.in.h: Use more descriptive name when there is no
35206         select wrapper.
35207         * lib/winsock-select.c: New.
35208         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
35209         Require gl_HEADER_SYS_SOCKET.
35210         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
35211         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
35212         * tests/test-sys_select.c: Add functional tests.
35213
35214 2008-09-24  Eric Blake  <ebb9@byu.net>
35215
35216         open, fopen: close fd leak in last patch
35217         * lib/open.c (rpl_open): Close fd before returning error.
35218         * lib/fopen.c (rpl_fopen): Close fd before returning error.
35219         * doc/posix-functions/open.texi (open): Document that Irix also
35220         has the bug.
35221         * doc/posix-functions/fopen.texi (fopen): Likewise.
35222         Reported by Paolo Bonzini.
35223
35224 2008-09-24  Bruno Haible  <bruno@clisp.org>
35225
35226         Ensure that a filename ending in a slash cannot be used to access a
35227         non-directory.
35228         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
35229         to check whether it's really a directory.
35230         * lib/fopen.c: Include fcntl.h, unistd.h.
35231         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
35232         and fdopen().
35233         * modules/fopen (Depends-on): Add unistd.
35234         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
35235         * tests/test-fopen.c (main): Likewise.
35236         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
35237         * doc/posix-functions/fopen.texi: Likewise.
35238         Reported by Eric Blake.
35239
35240 2008-09-23  Eric Blake  <ebb9@byu.net>
35241
35242         c-stack: avoid compiler optimizations when provoking overflow
35243         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
35244         recursion harder to optimize, to ensure a stack overflow occurs.
35245         * tests/test-c-stack.c (recurse): Likewise.
35246         Borrowed from libsigsegv.
35247
35248         c-stack: work around Irix sigaltstack bug
35249         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
35250         whether sigaltstack uses wrong end of stack_t (copied in part from
35251         libsigsegv).
35252         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
35253         Irix bug, without requiring an over-allocation.
35254         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
35255         bug.
35256
35257         fopen: document mingw bug on directories
35258         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
35259         not allowing a stream visiting a directory, even though reading
35260         from such a stream is not portable.
35261
35262 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35263
35264         * lib/poll.c: Rewrite.
35265         * modules/poll: Depend on alloca.
35266
35267 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35268
35269         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
35270         instead define prototypes for a full set of wrappers.  Ensure
35271         that Cygwin does not use the compatibility code, which is only
35272         for MinGW.
35273         * lib/winsock.c: New.
35274         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
35275         * modules/sys_socket: Add lib/winsock.c.
35276
35277         * modules/poll-tests: Add errno and perror.
35278         * tests/test-poll.c: Use ioctl, not ioctlsocket.
35279
35280 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35281
35282         * tests/test-poll.c: Downgrade minimum needed Winsock version.
35283
35284 2008-09-23  Bruno Haible  <bruno@clisp.org>
35285
35286         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
35287         * doc/glibc-functions/*: Likewise.
35288
35289 2008-09-23  Simon Josefsson  <simon@josefsson.org>
35290
35291         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
35292         success.
35293
35294 2008-09-22  Eric Blake  <ebb9@byu.net>
35295             Bruno Haible  <bruno@clisp.org>
35296
35297         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
35298         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
35299         supply %A but mishandle pseudo-NaN.
35300         Reported by Simon Josefsson.
35301
35302 2008-09-21  Bruno Haible  <bruno@clisp.org>
35303
35304         * tests/test-lock.c (main): Tweak skip message.
35305         * tests/test-tls.c (main): Likewise.
35306
35307 2008-09-21  Bruno Haible  <bruno@clisp.org>
35308
35309         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
35310         whether 'struct sigaction' has sa_sigaction here...
35311         (gl_PREREQ_SIG_HANDLER_H): ... not here.
35312         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
35313
35314 2008-09-21  Bruno Haible  <bruno@clisp.org>
35315
35316         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
35317         section.
35318         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
35319         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
35320         the new section.
35321         (Support for obsolete systems lacking POSIX:2001): New section.
35322         (String handling <string.h>): Move strdup to the new section.
35323         Suggested by Simon Josefsson and Paolo Bonzini.
35324
35325 2008-09-21  Bruno Haible  <bruno@clisp.org>
35326
35327         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
35328         exponents in %e and %g results on 'long double'. Needed for mingw's
35329         improved *printf functions.
35330         * tests/test-vasprintf-posix.c (test_function): Likewise.
35331         * tests/test-snprintf-posix.h (test_function): Likewise.
35332         * tests/test-sprintf-posix.h (test_function): Likewise.
35333         Reported by Eric Blake.
35334
35335 2008-09-21  Bruno Haible  <bruno@clisp.org>
35336
35337         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
35338         * tests/test-sprintf-posix.h (test_function): Likewise.
35339
35340 2008-09-21  Bruno Haible  <bruno@clisp.org>
35341
35342         * modules/getpass (Depends-on): Add strdup-posix.
35343
35344         New module 'strdup-posix'.
35345         * modules/strdup-posix: New file.
35346         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
35347         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
35348         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35349         REPLACE_STRDUP.
35350         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
35351         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
35352         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35353         strdup-posix.
35354
35355         * modules/strdup (Depends-on): Remove malloc-posix.
35356
35357 2008-09-20  Bruno Haible  <bruno@clisp.org>
35358
35359         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
35360         Wildenhues.
35361
35362 2008-09-20  Bruno Haible  <bruno@clisp.org>
35363
35364         Ensure that wint_t gets defined on IRIX 5.3.
35365         * lib/wchar.in.h (wint_t): Define if not defined by the system.
35366         * lib/wctype.in.h (wint_t): Likewise.
35367         (__wctype_wint_t): Remove type.
35368         (isw*): Use wint_t instead of __wctype_wint_t.
35369         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
35370         * modules/wchar (Files): Add m4/wint_t.m4.
35371         (Makefile.am): Substitute HAVE_WINT_T.
35372         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
35373         * tests/test-wctype.c: Check that wint_t is defined.
35374         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
35375         * doc/posix-headers/wctype.texi: Likewise.
35376         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35377
35378 2008-09-18  Bruno Haible  <bruno@clisp.org>
35379
35380         * gnulib-tool (func_exit): Update comment.
35381
35382 2008-09-18  Simon Josefsson  <simon@josefsson.org>
35383
35384         * modules/getaddrinfo (Depends-on): Remove strdup, this module
35385         assumes strdup exists and does not depend on strdup to return
35386         ENOMEM on out of memory conditions.
35387
35388 2008-09-18  Bruno Haible  <bruno@clisp.org>
35389
35390         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
35391         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
35392         digits for the exponent.
35393
35394 2008-09-18  Jim Meyering  <meyering@redhat.com>
35395             Bruno Haible  <bruno@clisp.org>
35396
35397         * lib/vasnprintf.c (decimal_point_char): Define also if
35398         NEED_PRINTF_INFINITE_LONG_DOUBLE.
35399
35400 2008-09-16  Bruno Haible  <bruno@clisp.org>
35401         and Eric Blake  <ebb9@byu.net>
35402
35403         vasnprintf: support Irix 5.3
35404         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
35405         that mishandle long double infinity.
35406         Reported by Tom G. Christensen.
35407
35408 2008-09-16  Bruno Haible  <bruno@clisp.org>
35409
35410         * doc/glibc-functions/scandir.texi: Mention the function is missing on
35411         Solaris 9.
35412         * doc/glibc-functions/alphasort.texi: Likewise.
35413         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
35414
35415 2008-09-16  Jim Meyering  <meyering@redhat.com>
35416
35417         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
35418         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
35419         a umask modification leak out of a subshell.  Otherwise, the
35420         opensolaris /bin/sh would be accepted and thus cause unwarranted
35421         failures in the coreutils test suite.
35422
35423 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
35424
35425         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
35426         to succeed.
35427
35428 2008-09-16  Jim Meyering  <meyering@redhat.com>
35429
35430         avoid spurious test failure when library is built without ACL support
35431         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
35432         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
35433         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
35434         * tests/test-copy-acl.sh: Likewise.
35435
35436 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35437
35438         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
35439         based on character occurrence counts.
35440
35441 2008-09-15  Eric Blake  <ebb9@byu.net>
35442
35443         tests: avoid some compiler warnings
35444         * tests/test-memchr.c (main): Pass NULL indirectly.
35445         * tests/test-closein.c (main): Avoid unused variable.
35446
35447 2008-09-15  Bruno Haible  <bruno@clisp.org>
35448
35449         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
35450         are missing on OpenBSD 4.0 individually.
35451         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35452
35453 2008-09-15  Bruno Haible  <bruno@clisp.org>
35454
35455         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
35456         * doc/posix-functions/strerror.texi: Mention also Cygwin.
35457         * doc/posix-functions/perror.texi: Likewise.
35458         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
35459         is missing.
35460         Reported by Eric Blake.
35461
35462         * lib/errno.in.h: Use replacement values >= 2000.
35463         Reported by Eric Blake.
35464
35465 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35466
35467         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
35468         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
35469         limit.
35470         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
35471         compareseq was aborted.
35472
35473 2008-09-14  Bruno Haible  <bruno@clisp.org>
35474
35475         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
35476         yvec_edit_count.
35477         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
35478         (fstrcmp_bounded): Simplify result computation accordingly.
35479
35480 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35481
35482         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
35483         (fstrcmp): Define in terms of fstrcmp_bounded.
35484         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
35485         lower_bound argument.
35486         Return quickly if the result is certainly < lower_bound.
35487         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
35488
35489 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35490
35491         * lib/diffseq.h (EARLY_ABORT): New macro.
35492         (compareseq): Change return type to bool. Return true when EARLY_ABORT
35493         evaluates to true.
35494
35495 2008-09-14  Bruno Haible  <bruno@clisp.org>
35496
35497         * modules/perror-tests: New file.
35498         * tests/test-perror.sh: New file.
35499         * tests/test-perror.c: New file.
35500
35501         New module 'perror'.
35502         * lib/stdio.in.h (perror): New declaration.
35503         * lib/perror.c: New file.
35504         * m4/perror.m4: New file.
35505         * modules/perror: New file.
35506         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
35507         * doc/posix-functions/perror.texi: Mention the perror module.
35508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
35509         REPLACE_PERROR.
35510         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
35511         REPLACE_PERROR.
35512
35513 2008-09-14  Bruno Haible  <bruno@clisp.org>
35514
35515         * modules/stdio (Makefile.am): Reorder to match the order in
35516         lib/stdio.in.h.
35517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35518
35519 2008-09-13  Bruno Haible  <bruno@clisp.org>
35520
35521         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
35522
35523 2008-09-13  Bruno Haible  <bruno@clisp.org>
35524
35525         Extend strerror to cover the added errno values.
35526         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
35527         (rpl_strerror): Provide error messages for the added errno values and
35528         for the WSA* values.
35529         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
35530         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
35531         strerror.
35532         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
35533         * modules/strerror (Depends-on): Add errno.
35534         * doc/posix-functions/strerror.texi: Document the change.
35535         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
35536         and EOVERFLOW.
35537
35538 2008-09-13  Bruno Haible  <bruno@clisp.org>
35539
35540         * modules/EOVERFLOW: Remove file.
35541         * m4/eoverflow.m4: Remove file.
35542         * modules/EOVERFLOW-tests: Remove file.
35543         * tests/test-EOVERFLOW.c: Remove file.
35544         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
35545         * modules/ftell (Depends-on): Likewise.
35546         * modules/getdelim (Depends-on): Likewise.
35547         * modules/getugroups (Depends-on): Likewise.
35548         * modules/poll (Depends-on): Likewise.
35549         * modules/snprintf (Depends-on): Likewise.
35550         * modules/sprintf-posix (Depends-on): Likewise.
35551         * modules/vasnprintf (Depends-on): Likewise.
35552         * modules/vasprintf (Depends-on): Likewise.
35553         * modules/vfprintf-posix (Depends-on): Likewise.
35554         * modules/vsnprintf (Depends-on): Likewise.
35555         * modules/vsprintf-posix (Depends-on): Likewise.
35556         * modules/xvasprintf (Depends-on): Likewise.
35557         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35558         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
35559         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
35560         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
35561         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35562         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
35563         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
35564         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
35565         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35566         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
35567         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
35568         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
35569         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35570         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
35571         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
35572         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
35573         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35574         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
35575         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
35576         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
35577         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35578         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
35579         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
35580         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
35581         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
35582         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35583         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
35584         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
35585         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
35586         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
35587         * MODULES.html.sh: Remove EOVERFLOW.
35588         * NEWS: Mention the change.
35589
35590 2008-09-13  Bruno Haible  <bruno@clisp.org>
35591
35592         * modules/errno-tests: New file.
35593         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
35594
35595         * lib/errno.in.h: New file.
35596         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
35597         * modules/errno: New file.
35598         * doc/posix-headers/errno.texi: Update documentation.
35599         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
35600
35601 2008-09-13  Bruno Haible  <bruno@clisp.org>
35602
35603         * tests/test-poll.c: Use #if for native Windows, rather than testing
35604         __MSVCRT__.
35605
35606 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35607             Bruno Haible  <bruno@clisp.org>
35608
35609         * lib/glob.c: Don't include <pwd.h> on native Windows.
35610         (WINDOWS32): New macro.
35611         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
35612
35613 2008-09-13  Bruno Haible  <bruno@clisp.org>
35614
35615         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
35616         (ETIMEDOUT): Remove macro.
35617         (glthread_cond_timedwait_multithreaded): New declaration.
35618         (glthread_cond_timedwait): Use it.
35619         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
35620         (glthread_cond_timedwait_multithreaded): New function.
35621
35622 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35623
35624         * modules/poll-tests: Do not check for io.h.
35625         * tests/test-poll.c: Check for __MSVCRT__ instead.
35626
35627 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35628
35629         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
35630         * modules/poll-tests: Add inet_pton, stdbool, sockets.
35631         * tests/test-poll.c: Use them.  Use _pipe on Windows.
35632
35633 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35634
35635         * modules/poll-tests: New.
35636         * tests/test-poll.c: New.
35637
35638 2008-09-12  Eric Blake  <ebb9@byu.net>
35639
35640         frexp: test for NetBSD failure on -0.0
35641         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
35642         not all, bugs from NetBSD 3.0 have been fixed.
35643         * doc/posix-functions/frexp.texi (frexp): Document bug.
35644         Reported by Thomas Klausner.
35645
35646         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
35647         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
35648         literal -0.0.
35649         Reported by Jonathan C. Patschke <jp@centtech.com>.
35650
35651 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35652
35653         * lib/glthread/cond.h: Use dummy implementation also if
35654         USE_WIN32_THREADS.
35655
35656 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35657
35658         * modules/fnmatch-posix (License): Change to LGPLv2+.
35659         * modules/fnmatch-gnu (License): Likewise.
35660
35661 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35662
35663         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
35664
35665 2008-09-11  Jim Meyering  <meyering@redhat.com>
35666
35667         * users.txt: Add gtk-vnc.
35668
35669 2008-09-08  Simon Josefsson  <simon@josefsson.org>
35670
35671         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
35672         rotate amounts.
35673
35674         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
35675         required for 16-bit and 8-bit rotates.
35676         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
35677         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
35678         UINT8_MAX instead of hard-coded constants.
35679         Suggested by Paul Eggert.
35680
35681 2008-09-07  Bruno Haible  <bruno@clisp.org>
35682
35683         * tests/test-striconveh.c (main): Check behaviour when converting from
35684         UTF-7.
35685
35686         Make striconveh work better with stateful encodings.
35687         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
35688         that iconv does not increment the inptr when returning -1/EINVAL.
35689
35690 2008-09-07  Bruno Haible  <bruno@clisp.org>
35691
35692         * build-aux/config.rpath: Update according to libtool-2.2.6.
35693         * build-aux/config.libpath: Likewise.
35694
35695 2008-09-06  Bruno Haible  <bruno@clisp.org>
35696
35697         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
35698         * lib/freadptr.c (freadptr): Likewise.
35699         * lib/freadseek.c (freadptrinc): Likewise.
35700         Reported by Simon Josefsson.
35701
35702 2008-09-06  Bruno Haible  <bruno@clisp.org>
35703
35704         * modules/freadptr (License): Change to LGPLv2+.
35705         * modules/freadseek (License): Likewise.
35706         Suggested by Eric Blake.
35707
35708         * modules/memchr2 (License): Change to LGPLv2+.
35709         Approved by Eric Blake.
35710
35711 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35712             Bruno Haible  <bruno@clisp.org>
35713
35714         Make gnulib-tool work with native 'sed' on AIX.
35715         * gnulib-tool (sed_noop): New variable.
35716         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
35717         func_add_or_update, func_create_testdir): Use it to initialize sed
35718         script variables.
35719         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35720
35721 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
35722             Bruno Haible  <bruno@clisp.org>
35723
35724         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
35725         also works after #include directives.
35726
35727 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
35728
35729         getdate.y: reject an out-of-range timezone value
35730         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
35731         the range [-24...+24].  When specified with only one or two digits,
35732         * tests/test-getdate.c: Tests for the fix.
35733         * doc/getdate.texi: Document this change.
35734
35735 2008-09-03  Bruno Haible  <bruno@clisp.org>
35736
35737         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
35738
35739 2008-09-02  Simon Josefsson  <simon@josefsson.org>
35740
35741         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
35742         <bruce.korb@gmail.com> with ideas from Ben Pfaff
35743         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
35744         Blake <ebb9@byu.net>.
35745
35746         * tests/test-bitrotate.c: Add more test vectors.
35747
35748 2008-09-02  Eric Blake  <ebb9@byu.net>
35749
35750         vasnprintf-posix: handle large precision via %.*d
35751         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
35752         when handling it ourselves.
35753         * tests/test-vasnprintf-posix.c (test_function): Add test.
35754         * tests/test-snprintf-posix.h (test_function): Likewise.
35755         * tests/test-sprintf-posix.h (test_function): Likewise.
35756         * tests/test-vasprintf-posix.c (test_function): Likewise.
35757         Reported by Alain Guibert.
35758
35759 2008-09-01  Eric Blake  <ebb9@byu.net>
35760
35761         c-stack: make configure-time check more robust
35762         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
35763         successful sigaction call.
35764         Reported by Tom G. Christensen.
35765
35766 2008-09-01  Bruno Haible  <bruno@clisp.org>
35767
35768         New module 'findprog-lgpl'.
35769         * modules/findprog-lgpl: New file.
35770         * lib/findprog-lgpl.c: New file.
35771         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
35772         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
35773         to decide whether to use strdup or xstrdup, concatenated_filename or
35774         xconcatenated_filename.
35775
35776 2008-09-01  Bruno Haible  <bruno@clisp.org>
35777
35778         Split module 'concat-filename' into 'concat-filename' (LGPL) and
35779         'xconcat-filename' (GPL).
35780         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
35781         (License): Change to LGPLv2+.
35782         * modules/xconcat-filename: New file.
35783         * lib/concat-filename.h (concatenated_filename): Change specification.
35784         (xconcatenated_filename): New declaration.
35785         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
35786         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
35787         memory situations.
35788         * lib/xconcat-filename.c: New file.
35789         * NEWS: Mention the change.
35790         * lib/findprog.c: Include concat-filename.h, not filename.h.
35791         (find_in_path): Use xconcatenated_filename instead of
35792         concatenated_filename.
35793         * lib/javacomp.c: Include concat-filename.h, not filename.h.
35794         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35795         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35796         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35797         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
35798         instead of concatenated_filename.
35799         * lib/javaexec.c: Include concat-filename.h, not filename.h.
35800         (execute_java_class): Use xconcatenated_filename instead of
35801         concatenated_filename.
35802         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
35803         * modules/javacomp (Depends-on): Likewise.
35804         * modules/javaexec (Depends-on): Likewise.
35805
35806 2008-09-01  Bruno Haible  <bruno@clisp.org>
35807
35808         Split module 'filename' into 'filename' and 'concat-filename'.
35809         * modules/filename: Keep only lib/filename.h.
35810         (License): Change to LGPLv2+.
35811         * modules/concat-filename: New file, extracted from modules/filename.
35812         * lib/filename.h (concatenated_filename): Remove declaration.
35813         * lib/concat-filename.h: New file, extracted from lib/filename.h.
35814         * lib/concat-filename.c: Include concat-filename.h.
35815         * NEWS: Mention the change.
35816
35817 2008-09-01  Simon Josefsson  <simon@josefsson.org>
35818
35819         * lib/bitrotate.h (rotl8, rotr8): Add.
35820
35821         * modules/bitrotate (configure.ac): Need
35822         AC_REQUIRE([AC_C_INLINE]).
35823         (Description): Mention stdint.h.  Reported by Bruno Haible
35824         <bruno@clisp.org>.
35825
35826         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
35827         Paolo Bonzini <bonzini@gnu.org>.
35828
35829 2008-08-31  Bruno Haible  <bruno@clisp.org>
35830
35831         Assume Solaris specific bi-arch conventions on Solaris systems.
35832         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
35833         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
35834         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
35835         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
35836         like acl_libdirstem.
35837         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
35838         acl_libdirstem.
35839         * NEWS: Mention the change.
35840         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
35841
35842 2008-08-31  Jim Meyering  <meyering@redhat.com>
35843
35844         * lib/strftime.h: Add comments describing the two added arguments.
35845
35846         remove duplicate #include directives
35847         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
35848         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
35849
35850 2008-08-31  Bruno Haible  <bruno@clisp.org>
35851
35852         New module 'sigpipe-die'.
35853         * modules/sigpipe-die: New file.
35854         * lib/sigpipe-die.h: New file.
35855         * lib/sigpipe-die.c: New file.
35856         * MODULES.html.sh (Signal handling): Add sigpipe-die.
35857
35858 2008-08-31  Bruno Haible  <bruno@clisp.org>
35859
35860         Don't override previously installed signal handlers.
35861         * lib/fatal-signal.c (saved_sigactions): New variable.
35862         (uninstall_handlers): Reset the signal to the saved handler, not
35863         to SIG_DFL (except when ignored).
35864         (install_handlers): Save the previous handlers.
35865
35866 2008-08-30  Bruno Haible  <bruno@clisp.org>
35867
35868         * gnulib-tool (func_reset_sigpipe): New function.
35869         (func_get_automake_snippet, func_modules_transitive_closure,
35870         func_import): Invoke it before a join command that reads from stdin,
35871         to avoid "echo: write error: Broken pipe" error messages on stderr.
35872         Reported by Sam Steingold <sds@gnu.org>.
35873
35874 2008-08-30  Bruno Haible  <bruno@clisp.org>
35875
35876         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
35877         Code copied from m4/open.m4.
35878         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
35879         access and the filename ends in a slash. Code copied from lib/open.c.
35880         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
35881         * tests/test-fopen.c (main): Check against bug with trailing slash.
35882
35883 2008-08-29  Bruno Haible  <bruno@clisp.org>
35884
35885         Avoid some "gcc -pedantic" warnings.
35886         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
35887         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
35888         * lib/dirent.in.h: Likewise.
35889         * lib/fcntl.in.h: Likewise.
35890         * lib/float.in.h: Likewise.
35891         * lib/iconv.in.h: Likewise.
35892         * lib/inttypes.in.h: Likewise.
35893         * lib/locale.in.h: Likewise.
35894         * lib/math.in.h: Likewise.
35895         * lib/netinet_in.in.h: Likewise.
35896         * lib/search.in.h: Likewise.
35897         * lib/signal.in.h: Likewise.
35898         * lib/stdarg.in.h: Likewise.
35899         * lib/stdint.in.h: Likewise.
35900         * lib/stdio.in.h: Likewise.
35901         * lib/stdlib.in.h: Likewise.
35902         * lib/string.in.h: Likewise.
35903         * lib/strings.in.h: Likewise.
35904         * lib/sys_select.in.h: Likewise.
35905         * lib/sys_socket.in.h: Likewise.
35906         * lib/sys_stat.in.h: Likewise.
35907         * lib/sys_time.in.h: Likewise.
35908         * lib/sysexits.in.h: Likewise.
35909         * lib/time.in.h: Likewise.
35910         * lib/unistd.in.h: Likewise.
35911         * lib/wchar.in.h: Likewise.
35912         * lib/wctype.in.h: Likewise.
35913         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
35914         * modules/fchdir (Makefile.am): Likewise.
35915         * modules/fcntl (Makefile.am): Likewise.
35916         * modules/float (Makefile.am): Likewise.
35917         * modules/iconv_open (Makefile.am): Likewise.
35918         * modules/inttypes (Makefile.am): Likewise.
35919         * modules/locale (Makefile.am): Likewise.
35920         * modules/math (Makefile.am): Likewise.
35921         * modules/netinet_in (Makefile.am): Likewise.
35922         * modules/search (Makefile.am): Likewise.
35923         * modules/signal (Makefile.am): Likewise.
35924         * modules/stdarg (Makefile.am): Likewise.
35925         * modules/stdint (Makefile.am): Likewise.
35926         * modules/stdio (Makefile.am): Likewise.
35927         * modules/stdlib (Makefile.am): Likewise.
35928         * modules/string (Makefile.am): Likewise.
35929         * modules/strings (Makefile.am): Likewise.
35930         * modules/sys_select (Makefile.am): Likewise.
35931         * modules/sys_socket (Makefile.am): Likewise.
35932         * modules/sys_stat (Makefile.am): Likewise.
35933         * modules/sys_time (Makefile.am): Likewise.
35934         * modules/sysexits (Makefile.am): Likewise.
35935         * modules/time (Makefile.am): Likewise.
35936         * modules/unistd (Makefile.am): Likewise.
35937         * modules/wchar (Makefile.am): Likewise.
35938         * modules/wctype (Makefile.am): Likewise.
35939         Reported by Reuben Thomas <rrt@sc3d.org>.
35940
35941 2008-08-29  Bruno Haible  <bruno@clisp.org>
35942
35943         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
35944         any more.
35945
35946 2008-08-29  Simon Josefsson  <simon@josefsson.org>
35947
35948         * MODULES.html.sh (Misc): Add bitrotate.
35949
35950         * modules/bitrotate: New file.
35951
35952         * lib/bitrotate.h: New file.
35953
35954         * modules/bitrotate-tests: New file.
35955
35956         * tests/test-bitrotate.c: New file.
35957
35958         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
35959         on the bitrotate module.
35960
35961         * lib/arctwo.c: Use new bitrotate module.
35962
35963 2008-08-29  Jim Meyering  <meyering@redhat.com>
35964
35965         bootstrap: merge changes from coreutils
35966         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
35967         of copied files.  Remove a kludge, now that this is fixed.
35968         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
35969         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
35970         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
35971
35972 2008-08-29  Bruno Haible  <bruno@clisp.org>
35973
35974         * MODULES.html.sh: Remove --cvs-urls option.
35975
35976 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
35977
35978         maint.mk: adjust to file name change
35979         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
35980
35981 2008-08-28  Jim Meyering  <meyering@redhat.com>
35982
35983         * modules/getndelim2 (License): Relicense to LGPLv2+.
35984         Approved by Richard Stallman for the version of 1995, and by
35985         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
35986
35987 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
35988
35989         * lib/getdelim.c (flockfile, funlockfile): Make all of them
35990         dummy if one is not available.  Do not touch them if
35991         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
35992         (getc_maybe_unlocked): New.
35993         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
35994
35995 2008-08-26  Eric Blake  <ebb9@byu.net>
35996
35997         doc/INSTALL: resync from autoconf
35998         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
35999         (INSTALL_PRELUDE): Delete; this is done more efficiently by
36000         moving...
36001         * install.texi [!autoconf]: ...here.  Resync from autoconf.
36002         * INSTALL: Regenerate.
36003         * INSTALL.ISO: New file.
36004         * INSTALL.UTF-8: Likewise.
36005
36006 2008-08-26  Jim Meyering  <meyering@redhat.com>
36007
36008         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
36009         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
36010         these definitions conditional, so that they may be overridden, too.
36011
36012 2008-08-26  Bruno Haible  <bruno@clisp.org>
36013
36014         Generate INSTALL file variants with prettier quotes.
36015         * doc/Makefile (INSTALL_PRELUDE): New macro.
36016         (INSTALL): Use it.
36017         (INSTALL.ISO, INSTALL.UTF-8): New rules.
36018
36019 2008-08-26  Bruno Haible  <bruno@clisp.org>
36020
36021         Run makeinfo in an English locale.
36022         * doc/Makefile (MAKEINFO): New variable.
36023
36024 2008-08-26  Bruno Haible  <bruno@clisp.org>
36025
36026         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
36027         Suggested by Eric Blake.
36028
36029 2008-08-25  Bruno Haible  <bruno@clisp.org>
36030
36031         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
36032
36033 2008-08-25  Eric Blake  <ebb9@byu.net>
36034
36035         c-stack: test that stack overflow can be caught
36036         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
36037         that platform allows handling stack overflow; at least OS/2 EMX
36038         has sigaltstack, but crashes before transferring control to
36039         handler on stack overflow.
36040         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
36041         check for HAVE_STACK_OVERFLOW_HANDLING.
36042         Reported by Elbert Pol.
36043
36044 2008-08-25  Bruno Haible  <bruno@clisp.org>
36045
36046         * doc/posix-functions/strftime.texi: Fix description of strftime
36047         module.
36048
36049 2008-08-24  Bruno Haible  <bruno@clisp.org>
36050
36051         * tests/uniwidth/test-uc_width2.c: New file.
36052         * tests/uniwidth/test-uc_width2.sh: New file.
36053         * modules/uniwidth/width-tests (Files): Add the new files.
36054         (TESTS): Add uniwidth/test-uc_width2.sh.
36055         (TESTS_ENVIRONMENT): New variable.
36056         (check_PROGRAMS): Add test-uc_width2.
36057         (test_uc_width2_SOURCES): New variable.
36058
36059         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
36060         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
36061         not 0x00AB.
36062         Reported by Alexander V. Lukyanov <lav@netis.ru>.
36063
36064 2008-08-22  Eric Blake  <ebb9@byu.net>
36065
36066         test-lock, test-tls: mention why a test is skipped
36067         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
36068         skipped.
36069         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
36070
36071         count-one-bits: relax license
36072         * modules/count-one-bits (License): Relicense to LGPLv2+.
36073         Suggested by Ludovic Courtès, approved by Ben Pfaff.
36074
36075 2008-08-22  Andreas Schwab  <schwab@suse.de>
36076
36077         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36078         Remove spurious space in assignment.
36079
36080 2008-08-21  Simon Josefsson  <simon@josefsson.org>
36081
36082         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
36083         Paul Eggert <eggert@CS.UCLA.EDU>.
36084
36085 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
36086
36087         * modules/gettext: Add m4/threadlib.m4.
36088
36089 2008-08-19  Eric Blake  <ebb9@byu.net>
36090
36091         test-c-stack: fix compilation failure on FreeBSD 5.0
36092         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
36093         headers before <sys/resource.h>.
36094         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
36095         the bug.
36096         Reported by Nelson H. F. Beebe.
36097
36098         strverscmp: migrate from "strverscmp.h" to <string.h>
36099         * modules/string (Makefile.am): Add new hooks.
36100         * modules/strverscmp (Files): Remove strverscmp.h.
36101         (Depends-on): Add string.
36102         (configure.ac): Add indicator.
36103         (Include): Mention new header.
36104         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
36105         defaults.
36106         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
36107         results.
36108         * lib/strverscmp.h: Delete.
36109         * lib/string.in.h (strverscmp): Provide declaration, when needed.
36110         * tests/test-strverscmp.c (includes): Adjust client.
36111         * lib/check-version.c (includes): Likewise.
36112         * NEWS: Document the change.
36113
36114         strverscmp: add unit test
36115         * modules/strverscmp-tests: New file.
36116         * tests/test-strverscmp.c: Likewise.
36117
36118 2008-08-19  Simon Josefsson  <simon@josefsson.org>
36119
36120         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
36121         regarding Windows crypto stuff, from Mono.
36122
36123 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
36124
36125         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
36126         if present, for intel RND.  Return error on failures.
36127
36128 2008-08-18  Ben Pfaff  <blp@gnu.org>
36129
36130         gitlog-to-changelog: give better diagnostic for failed pipe-open
36131         * build-aux/gitlog-to-changelog: Improve error message: suggest
36132         that the version of Git may be too old.
36133
36134 2008-08-18  Simon Josefsson  <simon@josefsson.org>
36135
36136         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
36137         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
36138
36139 2008-08-18  Bruno Haible  <bruno@clisp.org>
36140
36141         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
36142         pthread_in_use().
36143
36144 2008-08-18  Bruno Haible  <bruno@clisp.org>
36145
36146         * lib/glthread/threadlib.c: Include <pthread.h>.
36147
36148 2008-08-18  Bruno Haible  <bruno@clisp.org>
36149
36150         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
36151         glthread_recursive_lock_* macros.
36152         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
36153         Fix syntax error.
36154
36155 2008-08-18  Bruno Haible  <bruno@clisp.org>
36156
36157         * lib/glthread/thread.c: Avoid forcing a context switch right after
36158         thread creation.
36159
36160 2008-08-17  Bruno Haible  <bruno@clisp.org>
36161
36162         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
36163         * lib/glthread/thread.h: Provide Win32 specific implementation.
36164         * modules/thread (Files): Add lib/glthread/thread.c.
36165         (Depends-on): Add lock.
36166         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
36167
36168 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36169
36170         New module 'yield'.
36171         * modules/yield: New file.
36172         * lib/glthread/yield.h: New file.
36173         * m4/yield.m4: New file.
36174         * MODULES.html.sh (Multithreading): Add yield.
36175
36176 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36177
36178         New module 'thread'.
36179         * modules/thread: New file.
36180         * lib/glthread/thread.h: New file.
36181         * m4/thread.m4: New file.
36182         * MODULES.html.sh (Multithreading): Add thread.
36183
36184 2008-08-17  Bruno Haible  <bruno@clisp.org>
36185
36186         * lib/glthread/lock.h: Include <stdlib.h> always.
36187         * lib/glthread/tls.h: Likewise.
36188         * lib/glthread/cond.h: Likewise.
36189
36190 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36191
36192         New module 'cond'.
36193         * modules/cond: New file.
36194         * lib/glthread/cond.h: New file.
36195         * lib/glthread/cond.c: New file.
36196         * m4/cond.m4: New file.
36197         * MODULES.html.sh (Multithreading): Add cond.
36198
36199 2008-08-16  Eric Blake  <ebb9@byu.net>
36200
36201         c-stack: fix regression on Irix 5.3 from 2008-06-21
36202         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
36203         sa_sigaction...
36204         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
36205         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
36206         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
36207         * modules/signal (Makefile.am): Use the value.
36208         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
36209         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
36210         * doc/posix-headers/signal.texi (signal.h): Document this
36211         portability issue.
36212         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
36213         Reported by Tom G. Christensen.
36214
36215 2008-08-17  Bruno Haible  <bruno@clisp.org>
36216
36217         New module 'threadlib'.
36218         * modules/threadlib: New file.
36219         * lib/glthread/threadlib.c: New file, extracted from
36220         lib/glthread/lock.c.
36221         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
36222         functions.
36223         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
36224         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
36225         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
36226         macros.
36227         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
36228         (gl_DISABLE_THREADS): Remove macro.
36229         * modules/lock (Files): Remove build-aux/config.rpath.
36230         (Depends-on): Remove havelib. Add threadlib.
36231         (configure.ac-early): Remove section.
36232         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
36233         * modules/tls (Depends-on): Remove lock. Add threadlib.
36234         (Link): New section, copied from threadlib.
36235         * MODULES.html.sh (Multithreading): Add threadlib.
36236
36237 2008-08-14  Bruno Haible  <bruno@clisp.org>
36238
36239         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
36240         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
36241         glthread_rwlock_unlock, glthread_rwlock_destroy,
36242         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
36243         glthread_recursive_lock_destroy): Define as macros always.
36244         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
36245         glthread_lock_lock.
36246         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
36247         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
36248         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
36249         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
36250         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
36251         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
36252         (glthread_recursive_lock_lock_func): Renamed from
36253         glthread_recursive_lock_lock.
36254         (glthread_recursive_lock_unlock_func): Renamed from
36255         glthread_recursive_lock_unlock.
36256         (glthread_recursive_lock_destroy_func): Renamed from
36257         glthread_recursive_lock_destroy.
36258
36259 2008-08-14  Bruno Haible  <bruno@clisp.org>
36260
36261         * lib/glthread/lock.h: Renamed from lib/lock.h.
36262         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
36263         * lib/glthread/tls.h: Renamed from lib/tls.h.
36264         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
36265         * lib/fstrcmp.c: Update includes.
36266         * lib/strsignal.c: Update includes.
36267         * modules/lock (Files, Makefile.am): Update.
36268         (Include): Change to "glthread/lock.h".
36269         * modules/tls (Files, Makefile.am): Update.
36270         (Include): Change to "glthread/tls.h".
36271         * tests/test-lock.c: Update includes.
36272         * tests/test-tls.c: Update includes.
36273         * NEWS: Mention the renamed header files.
36274
36275 2008-08-11  Jim Meyering  <meyering@redhat.com>
36276
36277         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
36278
36279 2008-08-11  Eric Blake  <ebb9@byu.net>
36280
36281         test-c-stack: avoid C99-ism
36282         * tests/test-c-stack.c (main): Fix whitespace, move declaration
36283         before statement.
36284         Reported by Alain Guibert.
36285
36286 2008-08-10  Jim Meyering  <meyering@redhat.com>
36287
36288         ensure that return value of uinttostr et al are not ignored
36289         * lib/inttostr.h (__GNUC_PREREQ): Define.
36290         (__attribute_warn_unused_result__): Define.
36291         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
36292
36293 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
36294
36295         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
36296         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
36297
36298 2008-08-07  Jim Meyering  <meyering@redhat.com>
36299
36300         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
36301
36302         * modules/mkstemp (License): Relicense under LGPLv2+.
36303         * modules/tempname (License): Likewise.
36304
36305 2008-08-06  Bruno Haible  <bruno@clisp.org>
36306
36307         * lib/poll.c (poll): Further micro-optimization.
36308
36309 2008-08-06  Jim Meyering  <meyering@redhat.com>
36310
36311         inet_pton.c: use locale-independent tolower
36312         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
36313         (inet_pton6): Use c_tolower rather than tolower.
36314         * modules/inet_pton (Depends-on): Add c-ctype.
36315
36316 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
36317
36318         * lib/poll.c (poll): Avoid division when timeout is 0, cache
36319         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
36320
36321 2008-08-06  Jim Meyering  <meyering@redhat.com>
36322
36323         * modules/inet_pton (License): Relicense under LGPLv2+.
36324
36325 2008-08-03  Bruno Haible  <bruno@clisp.org>
36326
36327         Additional non-aborting API for lock and tls.
36328         * lib/lock.h: Include <errno.h>.
36329         (glthread_lock_init): New macro/function.
36330         (gl_lock_init): Define as wrapper around glthread_lock_init.
36331         (glthread_lock_lock): New macro/function.
36332         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
36333         (glthread_lock_unlock): New macro/function.
36334         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
36335         (glthread_lock_destroy): New macro/function.
36336         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
36337         (glthread_rwlock_init): New macro/function.
36338         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
36339         (glthread_rwlock_rdlock): New macro/function.
36340         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
36341         (glthread_rwlock_wrlock): New macro/function.
36342         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
36343         (glthread_rwlock_unlock): New macro/function.
36344         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
36345         (glthread_rwlock_destroy): New macro/function.
36346         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
36347         (glthread_recursive_lock_init): New macro/function.
36348         (gl_recursive_lock_init): Define as wrapper around
36349         glthread_recursive_lock_init.
36350         (glthread_recursive_lock_lock): New macro/function.
36351         (gl_recursive_lock_lock): Define as wrapper around
36352         glthread_recursive_lock_lock.
36353         (glthread_recursive_lock_unlock): New macro/function.
36354         (gl_recursive_lock_unlock): Define as wrapper around
36355         glthread_recursive_lock_unlock.
36356         (glthread_recursive_lock_destroy): New macro/function.
36357         (gl_recursive_lock_destroy): Define as wrapper around
36358         glthread_recursive_lock_destroy.
36359         (glthread_once): New macro/function.
36360         (gl_once): Define as wrapper around glthread_once.
36361         Update function declarations.
36362         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
36363         glthread_rwlock_init. Return error code.
36364         (glthread_rwlock_rdlock_multithreaded): Renamed from
36365         glthread_rwlock_rdlock. Return error code.
36366         (glthread_rwlock_wrlock_multithreaded): Renamed from
36367         glthread_rwlock_wrlock. Return error code.
36368         (glthread_rwlock_unlock_multithreaded): Renamed from
36369         glthread_rwlock_unlock. Return error code.
36370         (glthread_rwlock_destroy_multithreaded): Renamed from
36371         glthread_rwlock_destroy. Return error code.
36372         (glthread_recursive_lock_init_multithreaded): Renamed from
36373         glthread_recursive_lock_init. Return error code.
36374         (glthread_recursive_lock_lock_multithreaded): Renamed from
36375         glthread_recursive_lock_lock. Return error code.
36376         (glthread_recursive_lock_unlock_multithreaded): Renamed from
36377         glthread_recursive_lock_unlock. Return error code.
36378         (glthread_recursive_lock_destroy_multithreaded): Renamed from
36379         glthread_recursive_lock_destroy. Return error code.
36380         (glthread_once_call): Make static.
36381         (glthread_once_multithreaded): Renamed from glthread_once.
36382         * lib/tls.h: Include <errno.h>.
36383         (glthread_tls_key_init): New macro/function.
36384         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
36385         (glthread_tls_set): New macro/function.
36386         (gl_tls_set): Define as wrapper around glthread_tls_set.
36387         (glthread_tls_key_destroy): New macro/function.
36388         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
36389         Update function declarations.
36390         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
36391         glthread_tls_get.
36392         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36393
36394 2008-08-04  Eric Blake  <ebb9@byu.net>
36395
36396         gnumakefile: use space, not TAB, outside of targets
36397         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
36398
36399 2008-08-02  Jim Meyering  <meyering@redhat.com>
36400
36401         getdate.y: avoid locale-dependent date parsing failure
36402         In Turkish locales, getdate would fail to recognize keywords
36403         containing a lowercase "i".  The solution is not to rely on
36404         locale-sensitive case-conversion.
36405         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
36406         (lookup_word): Use c_toupper in place of toupper.
36407         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
36408         Reported by Vefa Bicakci <bicave@superonline.com> in
36409         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
36410         * modules/getdate (Depends-on): Add c-ctype.
36411
36412 2008-08-02  Bruno Haible  <bruno@clisp.org>
36413
36414         * gnulib-tool (func_import): When updating or creating a .gitignore
36415         file, prepend each added line with a slash, and ignore leading slashes
36416         from the existing lines.
36417         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36418
36419 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36420
36421         Portability fix for GNU make 3.79.1.
36422         * top/GNUmakefile: Avoid 'else COND', which older GNU make
36423         versions do not understand.
36424
36425 2008-08-01  Bruno Haible  <bruno@clisp.org>
36426
36427         Work around bug of HP-UX 10.20 cc with -0.0 literal.
36428         * tests/test-isnanf.h (zero): New variable.
36429         (main): Avoid literal -0.0f.
36430         * tests/test-isnand.h (zero): New variable.
36431         (main): Avoid literal -0.0.
36432         * tests/test-isnanl.h (zero): New variable.
36433         (main): Avoid literal -0.0L.
36434         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
36435         (test_float, test_double, test_long_double): Avoid literals -0.0f,
36436         -0.0, -0.0L.
36437         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
36438         (test_signbitd): Avoid literal -0.0.
36439         (test_signbitl): Avoid literal -0.0L.
36440         * tests/test-ceilf1.c (zero): New variable.
36441         (main): Avoid literal -0.0f.
36442         * tests/test-ceill.c (zero): New variable.
36443         (main): Avoid literal -0.0L.
36444         * tests/test-floorf1.c (zero): New variable.
36445         (main): Avoid literal -0.0f.
36446         * tests/test-floorl.c (zero): New variable.
36447         (main): Avoid literal -0.0L.
36448         * tests/test-roundf1.c (zero): New variable.
36449         (main): Avoid literal -0.0f.
36450         * tests/test-round1.c (zero): New variable.
36451         (main): Avoid literal -0.0.
36452         * tests/test-roundl.c (zero): New variable.
36453         (main): Avoid literal -0.0L.
36454         * tests/test-truncf1.c (zero): New variable.
36455         (main): Avoid literal -0.0f.
36456         * tests/test-trunc1.c (zero): New variable.
36457         (main): Avoid literal -0.0.
36458         * tests/test-truncl.c (zero): New variable.
36459         (main): Avoid literal -0.0L.
36460         * tests/test-frexp.c (zero): New variable.
36461         (main): Avoid literal -0.0.
36462         * tests/test-frexpl.c (zero): New variable.
36463         (main): Avoid literal -0.0L.
36464         * tests/test-ldexpl.c (zero): New variable.
36465         (main): Avoid literal -0.0L.
36466         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36467         (zerod, zerol): New variables.
36468         (test_function): Avoid literals -0.0, -0.0L.
36469         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36470         (zerod, zerol): New variables.
36471         (test_function): Avoid literals -0.0, -0.0L.
36472         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36473         (zerod, zerol): New variables.
36474         (test_function): Avoid literals -0.0, -0.0L.
36475         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36476         (zerod, zerol): New variables.
36477         (test_function): Avoid literals -0.0, -0.0L.
36478         * tests/test-strtod.c (zero): New variable.
36479         (main): Avoid literal -0.0.
36480         Reported by Jonathan C. Patschke <jp@centtech.com>.
36481
36482 2008-07-31  Jim Meyering  <meyering@redhat.com>
36483
36484         sha256.h: correct definition of SHA224_DIGEST_SIZE
36485         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
36486         Reported by Paulie Pena IV <paulie4@gmail.com>.
36487         Define as 224 / 8, rather than as a literal.
36488         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
36489         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
36490         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
36491
36492 2008-07-31  Bruno Haible  <bruno@clisp.org>
36493
36494         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
36495         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
36496         Reported by Jonathan Patschke <jp@centtech.com>.
36497
36498 2008-07-31  Bruno Haible  <bruno@clisp.org>
36499
36500         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
36501         Reported by Paolo Bonzini <bonzini@gnu.org>.
36502
36503 2008-07-30  Eric Blake  <ebb9@byu.net>
36504
36505         test-strtod: allow compilation without -lm
36506         * tests/test-strtod.c (main): Avoid link dependence on fabs.
36507         Reported by Dennis Clarke <blastwave@gmail.com>.
36508
36509 2008-07-28  Jim Meyering  <meyering@redhat.com>
36510
36511         bootstrap: work also when there are no .po files in po/
36512         * build-aux/bootstrap (update_po_files): Complete the change
36513         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
36514
36515 2008-07-27  Jim Meyering  <meyering@redhat.com>
36516
36517         * users.txt: Add zile.
36518
36519 2008-07-26  Ben Pfaff  <blp@gnu.org>
36520
36521         Add missing dependencies on new m4/exponent[fdl].m4 files.
36522         * modules/isnanf-nolibm: Add m4/exponentf.m4.
36523         * modules/isnand-nolibm: Add m4/exponentd.m4.
36524         * modules/isnanl-nolibm: Add m4/exponentl.m4.
36525         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
36526         m4/isnan[fdl].m4, because the macros actually used moved.
36527         Reported by Jim Meyering.
36528
36529 2008-07-14  Ben Pfaff  <blp@gnu.org>
36530
36531         Add isinf module.
36532         * lib/isinf.c: New file.
36533         * lib/math.in.h: Define isinf macro if we have decided to replace
36534         it.
36535         * m4/isinf.m4: New file.
36536         * m4/math_h.m4: Initialize and substitute variables for isinf
36537         module.
36538         * modules/isinf: New file.
36539         * modules/isinf-tests: New file.
36540         * modules/math: Add substitutions for new module.
36541         * tests/test-isinf.c: New file.
36542         * doc/posix-functions/isinf.texi: Mention new module.
36543         * MODULES.html.sh: Mention new module.
36544
36545 2008-07-14  Ben Pfaff  <blp@gnu.org>
36546
36547         Factor out some macros for use by additional modules.
36548         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
36549         exponentf.m4.
36550         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
36551         exponentd.m4.
36552         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
36553         file exponentl.m4.
36554         * m4/exponentf.m4: New file.
36555         * m4/exponentd.m4: New file.
36556         * m4/exponentl.m4: New file.
36557         * modules/isnanf: Use new file m4/exponentf.m4.
36558         * modules/isnand: Use new file m4/exponentd.m4.
36559         * modules/isnanl: Use new file m4/exponentl.m4.
36560
36561 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
36562
36563         mktime.c: normalize tp->tm_isdst value to -1/0/1.
36564         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
36565         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
36566         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
36567
36568         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
36569         readlink on platforms without PATH_MAX.
36570
36571 2008-07-21  Eric Blake  <ebb9@byu.net>
36572
36573         Warn, not fail, on stale version.
36574         * top/GNUmakefile (_curr-ver): Tone down previous patch.
36575
36576         Don't allow installation with stale devel version number.
36577         * top/GNUmakefile (_is-install-target): New macro.
36578         (_curr-ver): Forbid installation with stale version number.
36579
36580 2008-07-20  Bruno Haible  <bruno@clisp.org>
36581
36582         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
36583         TESTS_ENVIRONMENT.
36584         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
36585
36586 2008-07-20  Bruno Haible  <bruno@clisp.org>
36587
36588         * lib/c-stack.h (c_stack_action): Add documentation.
36589         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
36590
36591 2008-07-20  Bruno Haible  <bruno@clisp.org>
36592
36593         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
36594         * modules/readlink (License): Likewise.
36595
36596 2008-07-17  Eric Blake  <ebb9@byu.net>
36597
36598         * modules/c-stack (Link): Fix typo.
36599
36600         Make c-stack use libsigsegv, when available.
36601         * modules/c-stack (Depends-on): Add libsigsegv.
36602         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
36603         needed.
36604         * lib/c-stack.c (SIGSTKSZ): Define fallback.
36605         (segv_handler, overflow_handler, c_stack_action)
36606         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
36607         implementation when libsigsegv is available, but only when using
36608         the library is necessary.
36609         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
36610         comment, explaining why XSI check fails on Linux.
36611         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
36612         * tests/test-c-stack2.sh: Tweak skip message.
36613         * NEWS: Document new link-time requirements.
36614
36615 2008-07-16  Eric Blake  <ebb9@byu.net>
36616
36617         c-stack: Expose false positives when not using libsigsegv.
36618         * modules/c-stack-tests (Files): Expand test.
36619         * tests/test-c-stack.c (main): Add means to conditionally trigger
36620         non-overflow SIGSEGV.
36621         * tests/test-c-stack2.sh: New file.
36622
36623 2008-07-14  Bruno Haible  <bruno@clisp.org>
36624
36625         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
36626         Reported by Eric Blake.
36627
36628 2008-07-14  Sam Steingold  <sds@gnu.org>
36629             Bruno Haible  <bruno@clisp.org>
36630
36631         New module libsigsegv.
36632         * modules/libsigsegv: New file.
36633         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
36634         modifications.
36635         * MODULES.html.sh (Signal handling): New section.
36636
36637 2008-07-14  Bruno Haible  <bruno@clisp.org>
36638
36639         * modules/unictype/ctype-* (Description): Add the word "function".
36640         Improves the resulting doc in MODULES.html.
36641
36642 2008-07-12  Ben Pfaff  <blp@gnu.org>
36643
36644         Add longlong module.
36645         * modules/longlong: New file.
36646
36647 2008-07-12  Bruno Haible  <bruno@clisp.org>
36648
36649         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
36650         to empty.
36651
36652 2008-07-10  Ben Pfaff  <blp@gnu.org>
36653
36654         Add isnan module.
36655         * doc/posix-functions/isnan.texi: Mention new module.
36656         * lib/math.in.h: Define isnan macro if we have decided to replace
36657         it.
36658         * m4/isnan.m4: New file.
36659         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
36660         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
36661         also.
36662         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
36663         redundancy.
36664         * m4/math_h.m4: Initialize and substitute variables for isnan
36665         module.
36666         * modules/isnan: New file.
36667         * modules/isnan-tests: New file.
36668         * modules/math: Add substitutions for new module.
36669         * tests/test-isnan.c: New file.
36670         * MODULES.html.sh: Mention new module.
36671
36672 2008-07-10  Ben Pfaff  <blp@gnu.org>
36673
36674         Add isnanf module.
36675         * lib/isnanf.m4: New file.
36676         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
36677         (gl_HAVE_ISNANF_IN_LIBM): New macro.
36678         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
36679         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
36680         * modules/isnanf: New file.
36681         * modules/isnanf-tests: New file.
36682         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
36683         files.
36684         * tests/test-isnanf-nolibm.c: factored most of its contents into
36685         new file tests/test-isnanf.h.
36686         * tests/test-isnanf.h: New file.
36687         * tests/test-isnanf.c: New file.
36688         * MODULES.html.sh: Mention new module.
36689         * doc/glibc-functions/isnanf.texi: Mention new module.
36690
36691 2008-07-10  Ben Pfaff  <blp@gnu.org>
36692
36693         Add isnand module.
36694         * lib/isnand.h: New file.
36695         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
36696         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
36697         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
36698         functionality also.
36699         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
36700         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
36701         (gl_HAVE_ISNAND_IN_LIBM): New macro.
36702         * modules/isnand: New file.
36703         * modules/isnand-tests: New file.
36704         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
36705         files.
36706         * tests/test-isnand-nolibm.c: factored most of its contents into
36707         new file tests/test-isnand.h.
36708         * tests/test-isnand.h: New file.
36709         * tests/test-isnand.c: New file.
36710         * MODULES.html.sh: Mention new module.
36711
36712 2008-07-10  Ben Pfaff  <blp@gnu.org>
36713
36714         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
36715         * lib/isnand.h: Rename lib/isnand-nolibm.h.
36716         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
36717         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
36718         * modules/isnanf-nolibm: Update references to renamed files.
36719         * modules/isnand-nolibm: Likewise.
36720         * modules/isnanf-nolibm-tests: Likewise.
36721         * modules/isnand-nolibm-tests: Likewise.
36722         * lib/frexp.c: Likewise.
36723         * lib/isfinite.c: Likewise.
36724         * lib/signbitd.c: Likewise.
36725         * lib/signbitf.c: Likewise.
36726         * lib/vasnprintf.c: Likewise.
36727         * tests/test-ceilf1.c: Likewise.
36728         * tests/test-ceilf2.c: Likewise.
36729         * tests/test-floorf1.c: Likewise.
36730         * tests/test-floorf2.c: Likewise.
36731         * tests/test-frexp.c: Likewise.
36732         * tests/test-round1.c: Likewise.
36733         * tests/test-round2.c: Likewise.
36734         * tests/test-roundf1.c: Likewise.
36735         * tests/test-strtod.c: Likewise.
36736         * tests/test-trunc1.c: Likewise.
36737         * tests/test-trunc2.c: Likewise.
36738         * tests/test-truncf1.c: Likewise.
36739         * tests/test-truncf2.c: Likewise.
36740         * NEWS: Mention the renamed header files.
36741
36742 2008-07-11  Jim Meyering  <meyering@redhat.com>
36743
36744         vc-list-files: make the last-resort awk code more portable
36745         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
36746         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
36747         does not support it.
36748
36749 2008-07-10  Eric Blake  <ebb9@byu.net>
36750
36751         Work with tar's bootstrap.
36752         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
36753         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
36754         an m4 comment.
36755
36756 2008-07-09  Jim Meyering  <meyering@redhat.com>
36757
36758         posix-shell.m4: fix typo that made this test malfunction
36759         * m4/posix-shell.m4: Remove capitalization in variable name.
36760
36761 2008-07-08  Bruno Haible  <bruno@clisp.org>
36762
36763         * m4/onceonly.m4: Update comments.
36764         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36765
36766 2008-07-04  Jim Meyering  <meyering@redhat.com>
36767
36768         * users.txt: Add vc-dwim.
36769         (bison, coreutils): Use the gitweb URL.
36770
36771 2008-07-03  Jim Meyering  <meyering@redhat.com>
36772
36773         * users.txt: Add libffcall.  From Sam Steingold.
36774
36775 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
36776
36777         getdate.y: do not ignore TZ with relative day, month or year offset
36778         * lib/getdate.y (get_date): Move the tz-handling block to follow the
36779         relative-date-handling, since otherwise, the latter would clobber the
36780         sole output (an updated Start value) of the tz-handling block.
36781         * tests/test-getdate.c: Tests for the fix
36782
36783 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36784
36785         Recognize 'foo_LIBRARIES += libgnu.a'.
36786         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
36787         makefile snippet has already specified an installation location,
36788         also using '+='.
36789
36790 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
36791
36792         getdate.y: factor out common actions
36793         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
36794         Use them in place of open-coded actions.
36795
36796 2008-07-01  Simon Josefsson  <simon@josefsson.org>
36797
36798         Add self-test for getdate module.
36799         * modules/getdate-tests: New file.
36800         * tests/test-getdate.c: New file.
36801
36802 2008-06-29  Bruno Haible  <bruno@clisp.org>
36803
36804         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
36805         .gitignore.
36806         Reported by Sylvain Beucler <beuc@beuc.net>.
36807
36808 2008-06-29  Bruno Haible  <bruno@clisp.org>
36809
36810         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
36811         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
36812
36813 2008-06-29  Bruno Haible  <bruno@clisp.org>
36814
36815         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
36816         EXTRA_DIST.
36817         Reported by Sylvain Beucler <beuc@beuc.net>.
36818
36819 2008-06-26  Jim Meyering  <meyering@redhat.com>
36820
36821         make several modules depend on the "open" module
36822         This provides slightly increased consistency when opening-for-write
36823         the name of a non-directory spelled with a trailing slash.
36824         * modules/chdir-safer: Likewise.
36825         * modules/chown: Likewise.
36826         * modules/clean-temp: Likewise.
36827         * modules/copy-file: Likewise.
36828         * modules/fchdir: Likewise.
36829         * modules/fcntl-safer: Likewise.
36830         * modules/pipe: Likewise.
36831         * modules/utime: Likewise.
36832         Prompted by Eric Blake and Bruno Haible.
36833
36834 2008-06-24  Andreas Schwab  <schwab@suse.de>
36835
36836         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
36837         literals can be used as initializers for global variables.
36838
36839 2008-06-23  Eric Blake  <ebb9@byu.net>
36840
36841         Make gnulib-cache.m4 easier to diff.
36842         * gnulib-tool (func_import): Allow newlines when reading cached
36843         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
36844
36845 2008-06-23  Bruno Haible  <bruno@clisp.org>
36846
36847         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
36848         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
36849         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
36850         m4/signalblocking.m4.
36851         (gl_PREREQ_SIGACTION): Don't invoke it.
36852         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
36853         gl_PREREQ_SIG_HANDLER_H.
36854         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36855         Don't check for sigaction here.
36856
36857 2008-06-23  Bruno Haible  <bruno@clisp.org>
36858
36859         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
36860         (install_handlers): Don't set the SA_RESETHAND flag.
36861
36862 2008-06-23  Bruno Haible  <bruno@clisp.org>
36863
36864         * m4/sigaction.m4: Comment fixes.
36865         * lib/signal.in.h: Likewise.
36866
36867 2008-06-23  Eric Blake  <ebb9@byu.net>
36868
36869         Fix typo.
36870         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
36871
36872         Avoid SA_ namespace.
36873         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
36874         Reported by Ralf Wildenhues.
36875
36876         Avoid test failure due to SA_RESTORER.
36877         * tests/test-sigaction.c (SA_MASK): New macro.
36878         (main): Avoid failing due to extension flags being set.
36879         Reported by Jim Meyering.
36880
36881         Revert use of sig-handler.h in sigprocmask.c.
36882         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
36883         it requires the existence of struct sigaction.
36884         * lib/sigprocmask.c (handler_t): Restore typedef.
36885         (rpl_signal, old_handlers): Use local type.
36886
36887 2008-06-22  Bruno Haible  <bruno@clisp.org>
36888
36889         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
36890         conditionally.
36891         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36892
36893 2008-06-22  Bruno Haible  <bruno@clisp.org>
36894
36895         * doc/posix-functions/siginterrupt.texi: Move note.
36896
36897         * lib/signal.in.h (SA_RESTART): New macro.
36898         * lib/sigaction.c: Update comment.
36899
36900         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
36901
36902         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
36903         (gl_PREREQ_SIGPROCMASK): Invoke it.
36904         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
36905
36906         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
36907
36908         * lib/sigprocmask.c: Update a comment.
36909
36910 2008-06-21  Eric Blake  <ebb9@byu.net>
36911
36912         Use sigaction module rather than signal().
36913         * modules/c-stack (Depends-on): Add sigaction.
36914         * modules/fatal-signal (Depends-on): Likewise.
36915         * modules/nanosleep (Depends-on): Likewise.
36916         * modules/sigprocmask (Files): Add sig-handler.h.
36917         * modules/sigaction (Files): Likewise.
36918         * lib/sig-handler.h (get_handler): New file, suggested by Paul
36919         Eggert.
36920         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
36921         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
36922         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
36923         (init_fatal_signals): Likewise.
36924         * lib/nanosleep.c (rpl_nanosleep): Likewise.
36925         (siginterrupt): Delete fallback.
36926         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
36927         instead.
36928         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
36929         siginterrupt.
36930
36931         New module sigaction, for mingw.
36932         * modules/sigaction: New module...
36933         * modules/sigaction-tests: ...and its test.
36934         * m4/sigaction.m4: New file.
36935         * lib/sigaction.c: Likewise.
36936         * tests/test-sigaction.c: Likewise.
36937         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
36938         * modules/signal (Makefile.am): Likewise.
36939         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
36940         needed.
36941         * doc/posix-headers/signal.texi (signal.h): Mention provided
36942         types.
36943         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
36944         that sigaction is preferable.
36945         * doc/posix-functions/sigaction.texi (sigaction): Mention new
36946         module.
36947         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36948         sigaction.
36949
36950         Improve robustness of sigprocmask by overriding signal.
36951         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
36952         is in use.
36953         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
36954         (SIGKILL, SIGSTOP): Provide fallbacks.
36955         (rpl_signal): Implement.
36956         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
36957         signal can be called inside handlers.
36958
36959         Fix nanosleep module on mingw.
36960         * modules/nanosleep (Depends-on): Add sys_select.
36961         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
36962
36963         Fix licensing of sigprocmask.
36964         * modules/raise (License): Relicense as LGPL.
36965
36966 2008-06-21  Bruno Haible  <bruno@clisp.org>
36967
36968         * lib/propername.c (proper_name_utf8): Don't use the transliterated
36969         result if it contains question marks.
36970         Reported by Michael Geng <linux@michaelgeng.de>.
36971
36972 2008-06-19  Bruno Haible  <bruno@clisp.org>
36973
36974         Fix CVS-ism.
36975         * doc/gnulib.texi: Include updated-stamp.texi.
36976         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
36977         (updated-stamp.texi): New rule.
36978         (gnulib.info): Depend on it.
36979         * doc/.gitignore: Add updated-stamp.texi.
36980         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
36981
36982 2008-06-19  Bruno Haible  <bruno@clisp.org>
36983
36984         * doc/Makefile (gnulib.info): Update and simplify dependencies.
36985         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36986
36987 2008-06-19  Eric Blake  <ebb9@byu.net>
36988
36989         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
36990         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
36991         Reported by Stepan Kasal.
36992
36993 2008-06-18  Bruno Haible  <bruno@clisp.org>
36994
36995         * lib/fatal-signal.c (init_fatal_signals): Add comment.
36996         Reported by Eric Blake.
36997
36998 2008-06-18  Eric Blake  <ebb9@byu.net>
36999
37000         Work around cygwin 1.5.25 strsignal bug.
37001         * tests/test-strsignal.c: Allow for const char *.
37002         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
37003
37004 2008-06-18  Simon Josefsson  <simon@josefsson.org>
37005
37006         * users.txt: Update URL to article and add author/date
37007         information.
37008
37009 2008-06-17  Bruno Haible  <bruno@clisp.org>
37010
37011         New macro gl_DISABLE_THREADS.
37012         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
37013         if the user did not pass --enable-threads or --disable-threads option.
37014         (gl_DISABLE_THREADS): New macro.
37015         Reported by Eric Blake <ebb9@byu.net>.
37016
37017 2008-06-17  Bruno Haible  <bruno@clisp.org>
37018
37019         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
37020         when the macro ignores it.
37021         Based on a patch by Eric Blake <ebb9@byu.net>.
37022
37023 2008-06-17  Bruno Haible  <bruno@clisp.org>
37024
37025         * modules/tls (License): Change to LGPLv2+.
37026         Reported by Eric Blake.
37027
37028 2008-06-17  Eric Blake  <ebb9@byu.net>
37029
37030         Simplify c-stack prerequisites.
37031         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
37032         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
37033         no longer requires <ucontext.h> to exist.  Optimize setrlimit
37034         check.
37035         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
37036         <sys/resource.h>.
37037
37038         Move c-stack test into testsuite.
37039         * modules/c-stack-tests: New file.
37040         * lib/c-stack.c [DEBUG]: Move test program...
37041         * tests/test-c-stack.c: ...into this new file.  Skip rather than
37042         fail test if sigaltstack is lacking.
37043         * tests/test-c-stack.sh: New driver file.
37044
37045 2008-06-16  Eric Blake  <ebb9@byu.net>
37046
37047         Use raise module consistently.
37048         * modules/fatal-signal (Depends-on): Add raise.
37049         * modules/sigprocmask (Depends-on): Likewise.
37050         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
37051         * lib/sigprocmask.c (sigprocmask): Likewise.
37052         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37053         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
37054
37055         Fix compliance bug in sigpending.
37056         * lib/sigprocmask.c (sigpending): Return pending array via
37057         parameter, not return value.
37058
37059 2008-06-14  Eric Blake  <ebb9@byu.net>
37060
37061         Improve obstack-printf test code.
37062         * tests/test-obstack-printf.c (test_function): Fix comment, and
37063         simplify usage of obstack_* in macros.  Add a test for coverage.
37064         Reported by Bruno Haible.
37065
37066 2008-06-14  Bruno Haible  <bruno@clisp.org>
37067
37068         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
37069         array size as a constant, not as a const variable.
37070         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
37071         AC_USE_SYSTEM_EXTENSIONS.
37072         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37073         Test whether the obstack_printf function actually exists.
37074         * modules/obstack-printf (Depends-on): Add extensions.
37075         (Include): Remove obstack.h.
37076         * modules/obstack-printf-posix (Depends-on): Add extensions.
37077         (Include): Remove obstack.h.
37078
37079 2008-06-13  Eric Blake  <ebb9@byu.net>
37080
37081         Add obstack-printf and obstack-printf-posix modules.
37082         * modules/obstack-printf: New file.
37083         * modules/obstack-printf-posix: Likewise.
37084         * MODULES.html.sh (Misc): Mention them.
37085         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37086         Likewise.
37087         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37088         Likewise.
37089         * modules/stdio (Makefile.am): Accomodate new modules.
37090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37091         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
37092         Declare.
37093         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
37094         functions.
37095         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
37096         (gl_REPLACE_OBSTACK_PRINTF): New macros
37097         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
37098         * tests/test-obstack-printf.c: New file.
37099         * modules/obstack-printf-tests: Likewise.
37100         * modules/obstack-printf-posix-tests: Likewise.
37101
37102 2008-06-11  Bruno Haible  <bruno@clisp.org>
37103
37104         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
37105         * lib/open.c: Include errno.h.
37106         (open): Fail when attempting to write to a file that has a trailing
37107         slash.
37108         * tests/test-open.c (main): Test against trailing slash bug.
37109         * doc/posix-functions/open.texi: Mention the trailing slash bug.
37110
37111 2008-06-10  Bruno Haible  <bruno@clisp.org>
37112
37113         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
37114         for $? to work inside the trap command, with various /bin/sh-s.
37115         * tests/test-vc-list-files-cvs.sh: Likewise.
37116
37117 2008-06-10  Bruno Haible  <bruno@clisp.org>
37118
37119         * lib/acl-internal.h: Don't include gettext.h here.
37120         * lib/set-mode-acl.c: Include gettext.h here.
37121         * lib/copy-acl.c: Likewise.
37122
37123 2008-06-10  Bruno Haible  <bruno@clisp.org>
37124
37125         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
37126         * lib/wait-process.c (wait_subprocess): Likewise.
37127         * lib/execute.h (execute): Add termsigp argument.
37128         * lib/execute.c (execute): Likewise.
37129         * lib/csharpcomp.c (compile_csharp_using_pnet,
37130         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
37131         * lib/csharpexec.c (execute_csharp_using_pnet,
37132         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
37133         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
37134         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
37135         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
37136         is_jikes_present): Update.
37137         * lib/javaexec.c (execute_java_class): Update.
37138         * lib/javaversion.c (execute_and_read_line): Update.
37139         * NEWS: Document the changes.
37140         Reported by Eric Blake.
37141
37142 2008-06-10  Eric Blake  <ebb9@byu.net>
37143
37144         Add missing include.
37145         * tests/test-strstr.c (includes): Add <signal.h>.
37146         * tests/test-strcasestr.c (includes): Likewise.
37147         * tests/test-memmem.c (includes): Likewise.
37148
37149 2008-06-10  Bruno Haible  <bruno@clisp.org>
37150
37151         * lib/wait-process.c (wait_subprocess): Add an assertion.
37152
37153 2008-06-10  Bruno Haible  <bruno@clisp.org>
37154
37155         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
37156
37157 2008-06-10  Bruno Haible  <bruno@clisp.org>
37158
37159         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
37160         using alarm().
37161         * tests/test-strcasestr.c (main): Likewise.
37162         * tests/test-strstr.c (main): Likewise.
37163
37164 2008-06-09  Bruno Haible  <bruno@clisp.org>
37165
37166         Work around the Solaris 10 ACE ACLs ABI change.
37167         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
37168         declare if ACL_NO_TRIVIAL is present.
37169         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
37170         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
37171         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
37172         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
37173         define if ACL_NO_TRIVIAL is present.
37174         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
37175         and use the current ABI.
37176         (file_has_acl): Use same #if condition as elsewhere.
37177         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
37178         in use, and use the current ABI.
37179         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
37180         Reported by Jim Meyering.
37181
37182 2008-06-09  Eric Blake  <ebb9@byu.net>
37183
37184         Work around environments that (stupidly) ignore SIGALRM.
37185         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
37186         before using alarm().
37187         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37188         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37189         Reported by Ian Beckwith <ianb@erislabs.net>.
37190
37191         Produce autobuild blurb earlier in log.
37192         * modules/autobuild (configure.ac-early): Move AB_INIT here.
37193
37194 2008-06-09  Jim Meyering  <meyering@redhat.com>
37195         and OndÅ™ej Vašík  <ovasik@redhat.com>
37196
37197         utimens.c: correct kernel bug work-around
37198         OndÅ™ej Vašík found that the invalid return value of 280 indicates
37199         failure, not success, and the kernel bug we're trying to work
37200         around affects not just the utimensat call, but also the fallback
37201         futimens call.
37202         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
37203         not success.
37204         [HAVE_FUTIMENS]: Use the same work-around, here.
37205
37206 2008-06-09  Jim Meyering  <meyering@redhat.com>
37207
37208         add more guards around definition of ACE_-related code
37209         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
37210         ALLOW and ACE_OWNER are also defined.
37211
37212 2008-06-08  Bruno Haible  <bruno@clisp.org>
37213
37214         * lib/acl-internal.h: Add me as co-author.
37215         * lib/file-has-acl.c: Likewise.
37216         * lib/set-mode-acl.c: Likewise.
37217         * lib/copy-acl.c: Likewise.
37218
37219 2008-06-08  Bruno Haible  <bruno@clisp.org>
37220
37221         Add support for AIX ACLs.
37222         * lib/acl-internal.h (acl_nontrivial): New declaration.
37223         * lib/file-has-acl.c (acl_nontrivial): New function.
37224         (file_has_acl): Add implementation using AIX 4 ACL API.
37225         * lib/set-mode-acl.c (qset_acl): Likewise.
37226         * lib/copy-acl.c (qcopy_acl): Likewise.
37227
37228 2008-06-08  Bruno Haible  <bruno@clisp.org>
37229
37230         Add support for HP-UX ACLs.
37231         * lib/acl-internal.h (acl_nontrivial): New declaration.
37232         * lib/file-has-acl.c (acl_nontrivial): New function.
37233         (file_has_acl): Add implementation using HP-UX 11 ACL API.
37234         * lib/set-mode-acl.c (qset_acl): Likewise.
37235         * lib/copy-acl.c (qcopy_acl): Likewise.
37236
37237 2008-06-08  Bruno Haible  <bruno@clisp.org>
37238
37239         Add support for Cygwin ACLs.
37240         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
37241         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
37242         the chmod_or_fchmod call.
37243         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
37244
37245 2008-06-08  Bruno Haible  <bruno@clisp.org>
37246
37247         Fix bug with setuid modes in Solaris 10+ code.
37248         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
37249         succeeded, when the mode contains some special bits.
37250
37251 2008-06-08  Bruno Haible  <bruno@clisp.org>
37252
37253         Add support for Solaris 7..10 ACLs.
37254         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
37255         declarations.
37256         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
37257         functions.
37258         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
37259         * lib/set-mode-acl.c (qset_acl): Likewise.
37260         * lib/copy-acl.c (qcopy_acl): Likewise.
37261
37262 2008-06-08  Bruno Haible  <bruno@clisp.org>
37263
37264         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
37265         declaration.
37266         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
37267         (acl_access_nontrivial): Remove MacOS X case.
37268         (file_has_acl): Use acl_extended_nontrivial.
37269         * lib/copy-acl.c (qcopy_acl): Likewise.
37270
37271 2008-06-08  Bruno Haible  <bruno@clisp.org>
37272
37273         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
37274
37275 2008-06-08  Jim Meyering  <meyering@redhat.com>
37276
37277         * modules/acl (Maintainer): Add Bruno Haible.
37278
37279 2008-06-07  Bruno Haible  <bruno@clisp.org>
37280
37281         Improve support for Tru64 ACLs.
37282         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
37283         ACL on OSF/1.
37284
37285 2008-06-07  Bruno Haible  <bruno@clisp.org>
37286
37287         Add support for MacOS X ACLs.
37288         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
37289         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
37290         * lib/set-mode-acl.c (qset_acl): Likewise.
37291         * lib/copy-acl.c (qcopy_acl): Likewise.
37292
37293 2008-06-07  Bruno Haible  <bruno@clisp.org>
37294
37295         Fix memory leak introduced on 2008-05-22.
37296         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
37297         use.
37298
37299 2008-06-07  Bruno Haible  <bruno@clisp.org>
37300
37301         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
37302         to construct an empty ACL.
37303
37304 2008-06-07  Bruno Haible  <bruno@clisp.org>
37305
37306         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
37307         precisely.
37308         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
37309
37310 2008-06-07  Bruno Haible  <bruno@clisp.org>
37311
37312         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
37313         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
37314
37315 2008-06-07  Bruno Haible  <bruno@clisp.org>
37316
37317         * doc/posix-functions/_setjmp.texi: Explain the use of this function
37318         regardless of POSIX.
37319         * doc/posix-functions/_longjmp.texi: Likewise.
37320         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
37321         SystemV platform in this case.
37322
37323 2008-06-06  Eric Blake  <ebb9@byu.net>
37324
37325         Document abort() bugs.
37326         * doc/posix-functions/abort.texi (abort): Mention anomalies.
37327
37328         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
37329         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
37330         sigsetjmp.
37331         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
37332         siglongjmp, but only as a macro.
37333         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
37334         is obsolete.
37335         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
37336
37337         Tweak documentation to cover cygwin argz bugs.
37338         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
37339         argz bug fix; no code change needed since no cygwin releases
37340         occurred between the last fix and the bug being tested.
37341         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
37342         module and recently fixed cygwin bugs.
37343         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
37344         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
37345         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
37346         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
37347         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
37348         Likewise.
37349         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
37350         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
37351         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
37352         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
37353         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
37354         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
37355         Likewise.
37356
37357         Avoid gcc warning on cygwin.
37358         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
37359         !ACL_NO_TRIVIAL]: Avoid unused variable.
37360
37361 2008-06-05  Eric Blake  <ebb9@byu.net>
37362
37363         Be tolerant of UNKNOWN version in gnulib-tool test dir.
37364         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
37365         git-version-gen fails to come up with a version.
37366         Reported by Simon Josefsson.
37367
37368 2008-06-05  Jim Meyering  <meyering@redhat.com>
37369             Paul Eggert  <eggert@cs.ucla.edu>
37370
37371         utimens.c: work around a probable Linux kernel bug
37372         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
37373         appears to be a kernel bug that causes utimensat to return 280
37374         instead of 0, indicating success.
37375
37376 2008-06-04  Bruno Haible  <bruno@clisp.org>
37377
37378         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
37379         2008-06-01 commit.
37380
37381 2008-06-04  Bruno Haible  <bruno@clisp.org>
37382
37383         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
37384         * lib/file-has-acl.c (acl_access_nontrivial): New function.
37385         (file_has_acl): Use it. Save errno afterwards.
37386         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
37387
37388 2008-06-03  Bruno Haible  <bruno@clisp.org>
37389
37390         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
37391         draft code. Simplify #ifs.
37392         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
37393         Put Solaris code after POSIX-draft code. Fix comments regarding
37394         Solaris 10, HP-UX. Mention Cygwin.
37395         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
37396
37397 2008-06-03  Eric Blake  <ebb9@byu.net>
37398
37399         Provide fallback for older kernels.
37400         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
37401         Provide runtime fallback if kernel lacks support.
37402         Reported by Mike Frysinger.
37403
37404 2008-06-02  Bruno Haible  <bruno@clisp.org>
37405
37406         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
37407         it exists.
37408
37409 2008-06-02  Bruno Haible  <bruno@clisp.org>
37410
37411         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
37412         * lib/copy-acl.c (qcopy_acl): Update comment.
37413
37414 2008-06-02  Bruno Haible  <bruno@clisp.org>
37415
37416         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
37417         like ACL APIs.
37418
37419 2008-06-02  Bruno Haible  <bruno@clisp.org>
37420
37421         * tests/test-file-has-acl.sh: Use different code for Cygwin.
37422         * tests/test-set-mode-acl.sh: Likewise.
37423         * tests/test-copy-acl.sh: Likewise.
37424         * tests/test-copy-file.sh: Likewise.
37425
37426 2008-06-02  Bruno Haible  <bruno@clisp.org>
37427
37428         * tests/test-file-has-acl.sh: Remove unused code.
37429
37430 2008-06-01  Bruno Haible  <bruno@clisp.org>
37431
37432         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
37433         (copy_acl): Just a wrapper around qcopy_acl that emits the error
37434         messages.
37435         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
37436
37437 2008-06-01  Bruno Haible  <bruno@clisp.org>
37438
37439         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
37440         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
37441         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
37442         APIs.
37443         * modules/acl-tests (configure.ac): Remove tests now contained in
37444         m4/acl.m4.
37445
37446 2008-06-02  Jim Meyering  <meyering@redhat.com>
37447
37448         announce-gen: use a better key-server host name
37449         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
37450         it may be more consistently reliable.  Suggested by Werner Koch
37451         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
37452
37453 2008-06-01  Bruno Haible  <bruno@clisp.org>
37454
37455         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
37456         Reported by Voroskoi Andras <voroskoi@gmail.com>.
37457
37458 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
37459
37460         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
37461
37462 2008-06-01  Bruno Haible  <bruno@clisp.org>
37463
37464         New ACL tests.
37465         * tests/test-file-has-acl.sh: New file.
37466         * tests/test-file-has-acl.c: New file.
37467         * tests/test-set-mode-acl.sh: New file.
37468         * tests/test-set-mode-acl.c: New file.
37469         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
37470         * tests/test-copy-acl.c: New file.
37471         * modules/acl-tests: New file, based on modules/copy-file-tests.
37472         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
37473         (Depends-on): Add acl-tests.
37474         (configure.ac): Remove checks.
37475         (Makefile.am): Don't create test-sameacls program here any more.
37476
37477 2008-06-01  Bruno Haible  <bruno@clisp.org>
37478
37479         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
37480         * tests/test-sameacls.c: Include progname.h.
37481         (main): Invoke set_program_name. Portability fixes for MacOS X,
37482         Solaris, HP-UX.
37483
37484 2008-06-01  Bruno Haible  <bruno@clisp.org>
37485
37486         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
37487         function.
37488         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
37489
37490 2008-06-01  Bruno Haible  <bruno@clisp.org>
37491
37492         * modules/rpmatch (Depends-on): Add strdup.
37493
37494 2008-06-01  Bruno Haible  <bruno@clisp.org>
37495
37496         * lib/pipe.c: Include unistd-safer.h.
37497         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
37498         * modules/pipe (Depends-on): Add unistd-safer.
37499
37500 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37501
37502         * modules/autobuild (configure.ac): Call AB_INIT.
37503
37504 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37505
37506         * tests/test-getaddrinfo.c: Don't print debug messages by default.
37507         Suggested by Bruno Haible <bruno@clisp.org>.
37508
37509 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37510
37511         * tests/test-base64.c: Cast size_t to unsigned long when invoking
37512         printf.  Use %lu instead of %d.  Reported by Bruno Haible
37513         <bruno@clisp.org>.
37514
37515 2008-05-29  Eric Blake  <ebb9@byu.net>
37516
37517         Prefer new POSIX 200x interfaces over futimesat.
37518         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
37519         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
37520         when available.
37521         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
37522
37523 2008-05-28  Bruno Haible  <bruno@clisp.org>
37524
37525         * modules/stpcpy (License): Change to LGPLv2+.
37526         Requested by David Lutterkort <dlutter@redhat.com>.
37527
37528 2008-05-27  Bruno Haible  <bruno@clisp.org>
37529
37530         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
37531         current mingw.
37532         Reported by Jose E. Marchesi <jemarch@gnu.org>.
37533
37534 2008-05-27  Bruno Haible  <bruno@clisp.org>
37535
37536         * modules/iconv_open (Link): New section, from module 'iconv'.
37537         * modules/striconv (Link): Likewise.
37538         * modules/striconveh (Link): Likewise.
37539         * modules/xstriconv (Link): Likewise.
37540         * modules/unicodeio (Link): Likewise.
37541         * modules/propername (Link): Likewise.
37542         Reported by Jim Meyering.
37543
37544 2008-05-26  Jim Meyering  <meyering@redhat.com>
37545
37546         sha256: do not artificially restrict buffer length to be < 2^32
37547         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
37548         uint32_t to size_t.
37549         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
37550         to match.
37551
37552         avoid unaligned access errors, e.g., on sparc
37553         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
37554         direct access through a possibly-unaligned uint64* pointer.
37555         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
37556         direct access through a possibly-unaligned uint32* pointer.
37557         Prompted by this patch from Tom "spot" Callaway:
37558         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
37559
37560         sha512.c: fix typo in comment
37561         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
37562
37563 2008-05-25  Bruno Haible  <bruno@clisp.org>
37564
37565         * lib/set-mode-acl.c: Renamed from lib/acl.c.
37566         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
37567         (Makefile.am): Update lib_SOURCES.
37568
37569 2008-05-25  Bruno Haible  <bruno@clisp.org>
37570
37571         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
37572
37573 2008-05-25  Jim Meyering  <meyering@redhat.com>
37574
37575         useless-if-before-free: freed expr may have white-space differences
37576         * build-aux/useless-if-before-free: Recognize cases in which the
37577         freed expression differs from the tested one in embedded white
37578         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
37579         $1 was used, so we can't make any regexp shy.  Improved tests now
37580         detect this.
37581
37582         useless-if-before-free: accept white space in the expression.
37583         * build-aux/useless-if-before-free: For now, any white space
37584         in the expression must be identical in the free argument.
37585
37586         useless-if-before-free: efficiency tweak
37587         * build-aux/useless-if-before-free: Make the expression-matching
37588         regexp "shy".
37589         Make the *outer* regexp shy, not the expr-matching one.
37590
37591         update code-in-comment to accept cast of free arg
37592         * build-aux/useless-if-before-free: Update regexp.
37593
37594 2008-05-25  Bruno Haible  <bruno@clisp.org>
37595
37596         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
37597         * modules/copy-file-tests (Files, Makefile.am): Update.
37598         * tests/test-copy-file.c (func_test_copy): Update.
37599
37600 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
37601
37602         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
37603
37604 2008-05-23  Bruno Haible  <bruno@clisp.org>
37605
37606         Improve support for ACLs on OSF/1.
37607         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
37608         Remove fallback for unknown flavors of ACLs.
37609
37610 2008-05-22  Bruno Haible  <bruno@clisp.org>
37611
37612         Add support for ACLs on OSF/1.
37613         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
37614         replacements.
37615         (acl_free_text): New macro fallback.
37616         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
37617         acl_free.
37618         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
37619         acl_free_text function. Require AC_C_INLINE.
37620
37621 2008-05-22  Bruno Haible  <bruno@clisp.org>
37622
37623         Make copy_acl work on MacOS X 10.5.
37624         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
37625         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
37626         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
37627         If MODE_INSIDE_ACL, don't assume that every system has the same text
37628         representation for ACLs as FreeBSD.
37629         * lib/copy-acl.c (copy_acl): Add support for platforms with
37630         !MODE_INSIDE_ACL.
37631         * lib/file-has-acl.c (file_has_acl): Likewise.
37632         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
37633         FreeBSD, MacOS X, or IRIX, respectively.
37634
37635 2008-05-22  Bruno Haible  <bruno@clisp.org>
37636
37637         * lib/acl.h: Don't include <sys/acl.h>.
37638         (GETACLCNT): Move fallback to lib/acl-internal.h.
37639         * lib/acl-internal.h: Include <sys/acl.h> here.
37640         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
37641
37642 2008-05-22  Bruno Haible  <bruno@clisp.org>
37643
37644         Split off copy_acl function to separate file.
37645         * lib/copy-acl.c: New file, extracted from lib/acl.c.
37646         * lib/acl.c (copy_acl): Moved function to separate file.
37647         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
37648         * modules/acl (Files): Add lib/copy-acl.c.
37649         (Makefiles.am): Augment lib_SOURCES.
37650
37651 2008-05-22  Bruno Haible  <bruno@clisp.org>
37652
37653         * modules/copy-file-tests: New file.
37654         * tests/test-copy-file.sh: New file.
37655         * tests/test-copy-file.c: New file.
37656         * tests/test-copy-file-sameacls.c: New file.
37657
37658 2008-05-22  Eric Blake  <ebb9@byu.net>
37659
37660         Avoid gcc warning.
37661         * tests/test-memcmp.c (main): Pass NULL indirectly.
37662
37663 2008-05-21  Bruno Haible  <bruno@clisp.org>
37664
37665         Add reference doc about ACLs.
37666         * doc/acl-resources.txt: New file.
37667         * doc/acl-cygwin.txt: New file.
37668
37669 2008-05-21  Bruno Haible  <bruno@clisp.org>
37670
37671         Avoid one more warning from gcc.
37672         * lib/vasnprintf.c (IF_LINT): Update comments.
37673         (VASNPRINTF): Use it also for the 'prefix' array initializer.
37674
37675 2008-05-21  Jim Meyering  <meyering@redhat.com>
37676
37677         avoid a warning from gcc
37678         * lib/vasnprintf.c (IF_LINT): Define.
37679         (scale10_round_decimal_long_double):
37680         Use it to avoid a "may be used uninitialized" warning.
37681         (scale10_round_decimal_double): Likewise.
37682
37683 2008-05-21  Simon Josefsson  <simon@josefsson.org>
37684
37685         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
37686         declared.
37687
37688 2008-05-20  Bruno Haible  <bruno@clisp.org>
37689
37690         * tests/test-memcmp.c (main): Test also the sign of the result. Test
37691         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
37692
37693 2008-05-20  Simon Josefsson  <simon@josefsson.org>
37694
37695         * modules/memcmp-tests: New file.
37696         * tests/test-memcmp.c: New file.
37697
37698 2008-05-19  Bruno Haible  <bruno@clisp.org>
37699
37700         * modules/propername (Notice, configure.ac): Put quoted "..." into
37701         --keyword option.
37702         * lib/propername.h: Update comments accordingly.
37703         Reported by Eric Blake.
37704
37705 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
37706
37707         * modules/getpass-gnu (Depends-on): Add fseeko.
37708
37709 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37710
37711         * modules/base64-tests: New file.
37712
37713 2008-05-19  Bo Borgerson <gigabo@gmail.com>
37714
37715         * lib/base64.c (base64_decode_ctx): If a decode context structure
37716         was passed in use it to ignore newlines.  If a context structure
37717         was _not_ passed in, continue to treat newlines as garbage (this
37718         is the historical behavior).  Formerly base64_decode.
37719         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37720         takes a decode context structure.
37721         * lib/base64.h (base64_decode): Macro for four-argument calls.
37722         (base64_decode_alloc): Likewise.
37723         * lib/base64.c (base64_decode_ctx): If a decode context structure
37724         was passed in use it to ignore newlines.  If a context structure
37725         was _not_ passed in, continue to treat newlines as garbage (this
37726         is the historical behavior).  Formerly base64_decode.
37727         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37728         takes a decode context structure.
37729         * lib/base64.h (base64_decode): Macro for four-argument calls.
37730         (base64_decode_alloc): Likewise.
37731
37732 2008-05-19  Jim Meyering  <meyering@redhat.com>
37733
37734         avoid a warning from gcc
37735         * lib/trim.c (IF_LINT): Define.
37736         (trim2): Use it to avoid a "may be used uninitialized" warning.
37737
37738         Fix doc typo.
37739         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
37740
37741 2008-05-19  Bruno Haible  <bruno@clisp.org>
37742
37743         * doc/glibc-functions/getpass.texi: Document limits of other
37744         implementations.
37745
37746 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37747             Bruno Haible <bruno@clisp.org>
37748
37749         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
37750
37751 2008-05-18  Bruno Haible  <bruno@clisp.org>
37752
37753         * modules/propername: New file, from GNU gettext.
37754         * lib/propername.h: New file, from GNU gettext.
37755         * lib/propername.c: New file, from GNU gettext.
37756         * MODULES.html.sh (Internationalization functions): Add propername.
37757
37758 2008-05-16  Jim Meyering  <meyering@redhat.com>
37759             Bruno Haible  <bruno@clisp.org>
37760
37761         Avoid some warnings from "gcc -Wshadow".
37762         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
37763
37764 2008-05-15  Eric Blake  <ebb9@byu.net>
37765
37766         Extend previous patch to cygwin 1.7.0.
37767         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
37768         fast implementation in cygwin >= 1.7.0.
37769         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37770         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37771
37772 2008-05-15  Bruno Haible  <bruno@clisp.org>
37773
37774         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
37775         implementation in glibc >= 2.9.
37776         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37777         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37778
37779 2008-05-15  Bruno Haible  <bruno@clisp.org>
37780
37781         * MODULES.html.sh (Internationalization functions): Remove linebreak.
37782         (Unicode string functions): Add unilbrk/*.
37783         Reported by Karl Berry.
37784
37785 2008-05-15  Eric Blake  <ebb9@byu.net>
37786
37787         Fix violation of <stdbool.h> replacement in regex.
37788         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
37789         * lib/regexec.c (re_search_internal): Likewise.
37790         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
37791
37792 2008-05-15  Jim Meyering  <meyering@redhat.com>
37793
37794         avoid distracting test output when git or cvs is not found
37795         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
37796         * tests/test-vc-list-files-git.sh: Likewise.
37797
37798 2008-05-15  Eric Blake  <ebb9@byu.net>
37799
37800         Glibc finally accepted the memmem speedup code, bugzilla #5514.
37801         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
37802         glibc version.
37803         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37804         * doc/posix-functions/strstr.texi (strstr): Likewise.
37805         * lib/str-two-way.h (MAX): Sychronize with glibc.
37806
37807 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
37808
37809         * lib/regcomp.c (optimize_utf8): Add a note on why we test
37810         opr.ctx_type.
37811         (calc_first): Initialize constraint field.
37812         (duplicate_node_closure): Use it instead of special casing ANCHORS.
37813         Fix grammar.
37814         (duplicate_node): Merge constraint field for all node types.
37815         (calc_eclosure_iter): Look at constraint field for all node types.
37816         * lib/regex_internal.c (create_cd_newstate): Don't look at
37817         opr.ctx_type.
37818
37819 2008-05-14  Bruno Haible  <bruno@clisp.org>
37820
37821         Help GCC to do better code generation.
37822         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
37823         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
37824         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
37825         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
37826         Declare with attribute 'malloc' if supported.
37827
37828 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
37829
37830         use "echo STR|wc -c" rather than unportable "expr length STR"
37831         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
37832         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
37833
37834 2008-05-14  Jim Meyering  <meyering@redhat.com>
37835
37836         use dd ibs=$n count=1 ... rather than less-portable head -c$n
37837         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
37838         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
37839         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
37840         via Collin Lasse.
37841
37842 2008-05-14  Eric Blake  <ebb9@byu.net>
37843
37844         Avoid quadratic growth in gl_LIBSOURCES.
37845         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
37846         Suggested by Bruno Haible.
37847
37848         Test xmemdup0.
37849         * modules/xmemdup0-tests: New file.
37850         * tests/test-xmemdup0.c: Likewise.
37851
37852 2008-05-13  Eric Blake  <ebb9@byu.net>
37853
37854         Split xmemdup0 into its own module.
37855         * modules/xmemdup0: New file.
37856         * lib/xmemdup0.h: Likewise.
37857         * lib/xmemdup0.c: Likewise.
37858         * MODULES.html.sh (Memory management functions): Add xmemdup0.
37859         * lib/xalloc.h (xmemdup0): Remove.
37860         * lib/xmalloc.c (xmemdup0): Likewise.
37861
37862 2008-05-13  Eric Blake  <ebb9@byu.net>
37863             Bruno Haible  <bruno@clisp.org>
37864
37865         Reduce number of forks required during autoconf.
37866         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
37867         and gl_LIBSOURCES_DIR.
37868         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
37869         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
37870         m4_syscmd per file.
37871         <m4_foreach_w>: Move...
37872         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
37873
37874 2008-05-13  Eric Blake  <ebb9@byu.net>
37875
37876         * gnulib-tool: Fix various comment typos.
37877
37878 2008-05-12  Bruno Haible  <bruno@clisp.org>
37879
37880         Tailor the linebreaking algorithm.
37881         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
37882
37883 2008-05-12  Bruno Haible  <bruno@clisp.org>
37884
37885         Update to Unicode 5.0.0.
37886         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37887         LBP_JV, LBP_JT. Redistribute values.
37888         (unilbrk_table): Change size.
37889         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
37890         Unicode TR#14 rev. 22.
37891         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37892         LBP_JV, LBP_JT. Redistribute values.
37893         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
37894         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
37895         Update.
37896         * lib/unilbrk/lbrkprop1.h: Regenerated.
37897         * lib/unilbrk/lbrkprop2.h: Regenerated.
37898         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
37899         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
37900         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
37901         Likewise.
37902         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
37903         Likewise.
37904         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
37905         result.
37906         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
37907         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
37908         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
37909         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
37910         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
37911         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
37912
37913 2008-05-11  Bruno Haible  <bruno@clisp.org>
37914
37915         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
37916
37917 2008-05-11  Bruno Haible  <bruno@clisp.org>
37918
37919         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
37920         * modules/unilbrk/gen-lbrk: New file.
37921
37922 2008-05-11  Bruno Haible  <bruno@clisp.org>
37923
37924         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
37925         * m4/sha512.m4 (gl_SHA512): Likewise.
37926
37927 2008-05-11  Jim Meyering  <meyering@redhat.com>
37928
37929         New modules: crypto/sha256, crypto/sha512 (from coreutils)
37930         * modules/crypto/sha256: New file.
37931         * modules/crypto/sha512: Likewise.
37932         * lib/sha256.c: Likewise.
37933         * lib/sha256.h: Likewise.
37934         * lib/sha512.c: Likewise.
37935         * lib/sha512.h: Likewise.
37936         * lib/u64.h: Likewise.
37937         * m4/sha256.m4: Likewise.
37938         * m4/sha512.m4: Likewise.
37939         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
37940
37941 2008-05-10  Bruno Haible  <bruno@clisp.org>
37942
37943         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
37944         (Input/Output <stdio.h>): Add xprintf.
37945         (Signal handling <signal.h>): Add strsignal.
37946         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
37947         (Core language properties): Add func.
37948         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
37949         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
37950         strings.
37951         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
37952         (Input/output): New section.
37953         (File system functions): Add openat-die, stat-macros.
37954         (Networking functions): Add sockets.
37955         (Unicode string functions): Add unictype/*.
37956         (Support for building libraries and executables): Add gperf.
37957         (Support for building documentation): Add agpl-3.0.
37958         (Misc): Add nocrash.
37959
37960 2008-05-10  Bruno Haible  <bruno@clisp.org>
37961
37962         * modules/unictype/gen-ctype: New file.
37963
37964 2008-05-10  Jim Meyering  <meyering@redhat.com>
37965
37966         Make chdir-safer.c more efficient on a system with no symlinks.
37967         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
37968         also if ELOOP is zero.  Suggested by Bruno Haible.
37969
37970         Make chdir-safer.c slightly safer.
37971         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
37972         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
37973
37974         Avoid compile failure on systems without ELOOP (like mingw).
37975         * lib/chdir-safer.c (ELOOP): Define if not already defined.
37976         Reported by Bruno Haible.
37977
37978 2008-05-10  Bruno Haible  <bruno@clisp.org>
37979
37980         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
37981         (is_utf8_encoding): Use a case-insensitive comparison.
37982         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
37983         streq.
37984
37985 2008-05-10  Bruno Haible  <bruno@clisp.org>
37986
37987         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
37988         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
37989         * lib/unilbrk/ulc-common.h (iconv_string_length,
37990         iconv_string_keeping_offsets): Remove declarations.
37991         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
37992         Don't include <iconv.h>, streq.h, xsize.h.
37993         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
37994         conversion.
37995         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
37996         <iconv.h>, streq.h, xsize.h.
37997         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
37998         conversion.
37999         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
38000         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
38001         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
38002         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
38003
38004 2008-05-10  Bruno Haible  <bruno@clisp.org>
38005
38006         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
38007         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
38008
38009         * modules/unilbrk/u32-width-linebreaks-tests: New file.
38010         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
38011
38012         * modules/unilbrk/u16-width-linebreaks-tests: New file.
38013         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
38014
38015         * modules/unilbrk/u8-width-linebreaks-tests: New file.
38016         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
38017
38018         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
38019         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
38020
38021         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
38022         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
38023
38024         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
38025         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
38026
38027         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
38028         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
38029
38030 2008-05-10  Bruno Haible  <bruno@clisp.org>
38031
38032         Split up 'linebreak' module.
38033         * lib/unilbrk.h: New file, based on lib/linebreak.h.
38034         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
38035         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
38036         modifications.
38037         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
38038         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
38039         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
38040         lib/linebreak.c.
38041         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
38042         lib/linebreak.c.
38043         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
38044         lib/linebreak.c.
38045         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
38046         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
38047         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
38048         lib/linebreak.c.
38049         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
38050         lib/linebreak.c.
38051         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
38052         lib/linebreak.c.
38053         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
38054         lib/linebreak.c.
38055         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
38056         lib/linebreak.c.
38057         * modules/unilbrk/base: New file.
38058         * modules/unilbrk/tables: New file.
38059         * modules/unilbrk/u8-possible-linebreaks: New file.
38060         * modules/unilbrk/u16-possible-linebreaks: New file.
38061         * modules/unilbrk/u32-possible-linebreaks: New file.
38062         * modules/unilbrk/ulc-common: New file.
38063         * modules/unilbrk/ulc-possible-linebreaks: New file.
38064         * modules/unilbrk/u8-width-linebreaks: New file.
38065         * modules/unilbrk/u16-width-linebreaks: New file.
38066         * modules/unilbrk/u32-width-linebreaks: New file.
38067         * modules/unilbrk/ulc-width-linebreaks: New file.
38068         * lib/linebreak.h: Remove file.
38069         * lib/linebreak.c: Remove file.
38070         * m4/linebreak.m4: Remove file.
38071         * modules/linebreak: Remove file.
38072         * NEWS: Mention the changes.
38073
38074 2008-05-09  Eric Blake  <ebb9@byu.net>
38075
38076         Add xmemdup0.
38077         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
38078         implementation.
38079         * lib/xmalloc.c (xmemdup0): New C implementation.
38080
38081 2008-05-08  Bruno Haible  <bruno@clisp.org>
38082
38083         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
38084
38085 2008-05-07  Eric Blake  <ebb9@byu.net>
38086
38087         Support cross-compilation of <wctype.h>.
38088         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
38089         AC_CACHE_CHECK.
38090
38091 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
38092
38093         * build-aux/vc-list-files: Add support for bzr.
38094
38095 2008-05-03  Jim Meyering  <meyering@redhat.com>
38096
38097         avoid failed assertion with tight malloc
38098         * tests/test-getndelim2.c: Correct an off-by-one assertion.
38099
38100 2008-05-03  Simon Josefsson  <simon@josefsson.org>
38101
38102         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
38103         are needed from arpa/inet.h.
38104         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
38105         Reported by Bruno Haible.
38106
38107 2008-05-02  Jim Meyering  <meyering@redhat.com>
38108
38109         avoid compilation error on FreeBSD 6
38110         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
38111
38112 2008-05-01  Jim Meyering  <meyering@redhat.com>
38113
38114         useless-if-before-free: correct --help's exit status description
38115         * build-aux/useless-if-before-free (usage): Like grep, exit 0
38116         for one or more matches, etc.  Reported by Bruno Haible.
38117
38118         vc-list-files: make the stand-alone gnulib test work
38119         * modules/vc-list-files-tests (configure.ac):
38120         Define and AC_SUBST abs_aux_dir.
38121         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
38122         $(abs_top_srcdir) to each script and having each of them
38123         duplicate the work of setting PATH, set PATH here, using
38124         the new variable, abs_aux_dir instead.
38125         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
38126         * tests/test-vc-list-files-git.sh: Likewise.
38127         Reported by Bruno Haible.
38128
38129 2008-05-01  Bruno Haible  <bruno@clisp.org>
38130
38131         * lib/getndelim2.c (getndelim2): Fix newsize computation during
38132         reallocation. Rename 'done' to 'found_delimiter'.
38133
38134 2008-05-01  Jim Meyering  <meyering@redhat.com>
38135
38136         vc-list-files: accommodate /bin/sh like the one from Solaris 10
38137         * build-aux/vc-list-files: Use `...`, not $(...).
38138
38139 2008-04-30  Jim Meyering  <meyering@redhat.com>
38140
38141         add tests for vc-list-files
38142         * modules/vc-list-files-tests: New module.
38143         * tests/test-vc-list-files-cvs.sh: New file.
38144         * tests/test-vc-list-files-git.sh: New file.
38145
38146         avoid a warning from gcc
38147         * lib/getndelim2.c (IF_LINT): Define.
38148         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
38149
38150         vc-list-files: work properly with build-aux/cvsu, too
38151         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
38152         to all cvs-based clauses.
38153
38154         vc-list-files: work properly in the CVS+awk case, too
38155         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
38156
38157         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
38158         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
38159         take more than one file argument, so .  Add quotes, just in case $dir
38160         ever contains a shell meta-character.  Prompted by Soren Hansen in
38161         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
38162
38163 2008-04-29  Eric Blake  <ebb9@byu.net>
38164
38165         Optimize getndelim2 to use block operations when possible.
38166         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
38167         freadseek, and memchr2.
38168         * lib/getndelim2.c (getndelim2): Use them for block reads.
38169
38170 2008-04-29  Bruno Haible  <bruno@clisp.org>
38171
38172         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
38173         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38174         * modules/inet_ntop (Depends-on): Add extensions.
38175         * modules/inet_pton (Depends-on): Likewise.
38176         Reported by Simon Josefsson.
38177
38178 2008-04-29  Jim Meyering  <meyering@redhat.com>
38179
38180         When the is more than one match in a block, match all of them.
38181         * build-aux/useless-if-before-free: Iterate through each block
38182         until there are no more matches.
38183
38184         Fix broken useless-if-before-free script.
38185         * build-aux/useless-if-before-free: Fix typo: missing "?" after
38186         the expression to match cast of argument to free-like function.
38187
38188 2008-04-29  Eric Blake  <ebb9@byu.net>
38189
38190         Use new header.
38191         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
38192
38193 2008-04-29  Jim Meyering  <meyering@redhat.com>
38194
38195         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
38196         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
38197         by gnulib to exist and to declare e.g., inet_ntop.
38198         Don't include "inet_ntop.h", now removed.
38199
38200         * m4/arpa_inet_h.m4: Remove trailing blanks.
38201
38202 2008-04-29  Eric Blake  <ebb9@byu.net>
38203
38204         Silence valgrind on safe reads beyond potential array bounds.
38205         * lib/rawmemchr.valgrind: New file.
38206         * lib/strchrnul.valgrind: Likewise.
38207         * modules/rawmemchr (Files): Distribute new file.
38208         * modules/strchrnul (Files): Likewise.
38209         Suggested by Bruno Haible.
38210
38211 2008-04-29  Bruno Haible  <bruno@clisp.org>
38212
38213         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
38214         (inet_ntop, inet_pton): Change portability warning's wording.
38215         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
38216         Invoke gl_CHECK_NEXT_HEADERS.
38217         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
38218         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
38219         set ARPA_INET_H.
38220         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38221         * modules/arpa_inet (Description): No longer only for systems that
38222         lack it.
38223         (Depends-on): Add include_next.
38224         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
38225         HAVE_ARPA_INET_H.
38226
38227 2008-04-29  Jim Meyering  <meyering@redhat.com>
38228
38229         * modules/mkdir (License): Re-license as LGPLv2+.
38230
38231 2008-04-29  Bruno Haible  <bruno@clisp.org>
38232
38233         * modules/rawmemchr (Maintainer): Set to Eric.
38234         * modules/strchrnul (Maintainer): Likewise.
38235
38236 2008-04-29  Simon Josefsson  <simon@josefsson.org>
38237
38238         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
38239         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
38240
38241         * modules/arpa_inet (arpa/inet.h): Use them.
38242
38243 2008-04-28  Eric Blake  <ebb9@byu.net>
38244
38245         Test getndelim2.
38246         * modules/getndelim2-tests: New file.
38247         * tests/test-getndelim2.c: Likewise.
38248         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
38249         stream.
38250         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
38251
38252         * MODULES.html.sh: Document new module.
38253
38254 2008-04-20  Bruno Haible  <bruno@clisp.org>
38255
38256         * lib/c-stack.c (die): Use raise.
38257         * modules/c-stack (Depends-on): Add raise.
38258
38259 2008-04-28  Bruno Haible  <bruno@clisp.org>
38260
38261         Expect rpmatch to be declared.
38262         * lib/yesno.c (rpmatch): Remove declaration.
38263
38264         Declare rpmatch.
38265         * lib/stdlib.in.h (rpmatch): New declaration.
38266         * lib/rpmatch.c: Include <stdlib.h> first.
38267         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
38268         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
38269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
38270         HAVE_RPMATCH.
38271         * modules/rpmatch (Depends-on): Add stdlib, extensions.
38272         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38273         (Include): Set to <stdlib.h>.
38274         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
38275         HAVE_RPMATCH.
38276         * NEWS: Document the change.
38277
38278 2008-04-28  Bruno Haible  <bruno@clisp.org>
38279
38280         Change rpmatch to use nl_langinfo when appropriate.
38281         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
38282         (N_): New macro.
38283         (localized_pattern): New function/macro.
38284         (try): Remove match, nomatch arguments. Copy the pattern into safe
38285         memory before caching it.
38286         (rpmatch): Use localized_pattern. Add translator comments.
38287         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
38288         Suggested by Eric Blake.
38289         * modules/rpmatch (Depends-on): Add stdbool.
38290
38291 2008-04-28  Eric Blake  <ebb9@byu.net>
38292
38293         Add rawmemchr module, matching glibc.
38294         * modules/string (Makefile.am): New indicator.
38295         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
38296         * lib/string.in.h (rawmemchr): Declare when appropriate.
38297         * modules/rawmemchr: New file.
38298         * m4/rawmemchr.m4: Likewise.
38299         * lib/rawmemchr.c: Likewise.
38300         * modules/rawmemchr-tests: Likewise.
38301         * tests/test-rawmemchr.c: Likewise.
38302         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
38303         module.
38304         * modules/strchrnul (Depends-on): Add rawmemchr.
38305         * lib/strchrnul.c (strchrnul): Optimize a corner case.
38306
38307         Whitespace cleanup.
38308         * tests/test-strchrnul.c: Reindent.
38309         * lib/strchrnul.c: Likewise.
38310
38311         Optimize and test strchrnul.
38312         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
38313         * modules/strchrnul-tests: New file.
38314         * tests/test-strchrnul.c: Likewise.
38315
38316         Remove intprops dependency.
38317         * modules/memchr (Depends-on): Remove intprops.
38318         * modules/memrchr (Depends-on): Likewise.
38319         * modules/memchr2 (Depends-on): Likewise.
38320         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
38321         * lib/memrchr.c (__memrchr): Likewise.
38322         * lib/memrchr2.c (memchr2): Likewise.
38323         Reported by Simon Josefsson.
38324
38325 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38326
38327         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
38328         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38329
38330 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38331
38332         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
38333
38334         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
38335
38336         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
38337
38338         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
38339         declarations.
38340         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
38341
38342         * m4/inet_pton.m4: Don't check for header files.
38343
38344         * m4/inet_ntop.m4: Don't check for header files.
38345
38346 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38347
38348         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
38349         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
38350         trigger for cygwin).
38351         Reported by Bruno Haible  <bruno@clisp.org>.
38352
38353 2008-04-28  Bruno Haible  <bruno@clisp.org>
38354
38355         * doc/posix-functions/strdup.texi: Mention mingw problem.
38356
38357 2008-04-27  Bruno Haible  <bruno@clisp.org>
38358
38359         * modules/stat-time-tests (Depends-on): Add sleep.
38360         * tests/test-stat-time.c (force_unlink): New function.
38361         (cleanup): Use it.
38362         (test_mtime): Remove the ctime related tests.
38363         (test_ctime): New function, containing the ctime related tests.
38364         (main): Call test_ctime, except on native Windows platforms.
38365
38366 2008-04-27  Bruno Haible  <bruno@clisp.org>
38367
38368         * lib/rpmatch.c (rpmatch): Add some comments.
38369         Reported by James Youngman <jay@gnu.org>.
38370
38371 2008-04-27  Bruno Haible  <bruno@clisp.org>
38372
38373         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
38374         quiet NaNs.
38375
38376 2008-04-27  Bruno Haible  <bruno@clisp.org>
38377
38378         Make test-yesno.sh work on mingw.
38379         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
38380         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
38381         (main): Set stdin to binary mode.
38382         * modules/yesno-tests (Depends-on): Add binary-io.
38383
38384 2008-04-27  Bruno Haible  <bruno@clisp.org>
38385
38386         Fix 'isfinite' on x86, x86_64, ia64 platforms.
38387         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
38388         argument that lie outside the IEEE 854 domain.
38389         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
38390         (gl_ISFINITE): Use it.
38391         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
38392
38393 2008-04-27  Bruno Haible  <bruno@clisp.org>
38394
38395         Allow local renaming in config.h.
38396         * lib/memrchr.c (memrchr): Don't undefine outside libc.
38397
38398 2008-04-27  Bruno Haible  <bruno@clisp.org>
38399
38400         * lib/memchr.c (__memchr): Change type of 'i'.
38401         * lib/memchr2.c (memchr2): Likewise.
38402
38403 2008-04-26  Eric Blake  <ebb9@byu.net>
38404         and Bruno Haible  <bruno@clisp.org>
38405
38406         Optimize and test memrchr.
38407         * modules/memrchr (Depends-on): Add intprops.
38408         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
38409         * modules/memrchr-tests: New file.
38410         * tests/test-memrchr.c: New file.
38411
38412 2008-04-26  Bruno Haible  <bruno@clisp.org>
38413
38414         Add tentative support for DragonFly BSD.
38415         * lib/stdio-impl.h: Add macros for DragonFly BSD.
38416         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
38417         fp.
38418         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38419         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
38420         * lib/fpurge.c (fpurge): Likewise.
38421         * lib/freadable.c (freaadable): Likewise.
38422         * lib/freadahead.c (freadahead): Likewise.
38423         * lib/freading.c (freading): Likewise.
38424         * lib/freadptr.c (freadptr): Likewise.
38425         * lib/freadseek.c (freadptrinc): Likewise.
38426         * lib/fseeko.c (fseeko): Likewise.
38427         * lib/fseterr.c (fseterr): Likewise.
38428         * lib/fwritable.c (fwritable): Likewise.
38429         * lib/fwriting.c (fwriting): Likewise.
38430
38431 2008-04-26  Bruno Haible  <bruno@clisp.org>
38432
38433         * lib/stdio-impl.h: New file.
38434         * lib/fbufmode.c: Include stdio-impl.h.
38435         (fbufmode): Use fp_, remove redundant #defines.
38436         * lib/fflush.c: Include stdio-impl.h.
38437         (clear_ungetc_buffer): Remove redundant #defines.
38438         * lib/fpurge.c: Include stdio-impl.h.
38439         (fpurge): Remove redundant #defines.
38440         * lib/freadable.c: Include stdio-impl.h.
38441         (freadable): Remove redundant #defines.
38442         * lib/freadahead.c: Include stdio-impl.h.
38443         (freadahead): Remove redundant #defines.
38444         * lib/freading.c: Include stdio-impl.h.
38445         (freading): Remove redundant #defines.
38446         * lib/freadptr.c: Include stdio-impl.h.
38447         (freadptr): Remove redundant #defines.
38448         * lib/freadseek.c: Include stdio-impl.h.
38449         (freadptrinc): Remove redundant #defines.
38450         * lib/fseeko.c: Include stdio-impl.h.
38451         (rpl_fseeko): Remove redundant #defines.
38452         * lib/fseterr.c: Include stdio-impl.h.
38453         (fseterr): Remove redundant #defines.
38454         * lib/fwritable.c: Include stdio-impl.h.
38455         (fwritable: Remove redundant #defines.
38456         * lib/fwriting.c: Include stdio-impl.h.
38457         (fwriting): Remove redundant #defines.
38458         * modules/fbufmode (Files): Add lib/stdio-impl.h.
38459         * modules/fflush (Files): Likewise.
38460         * modules/fpurge (Files): Likewise.
38461         * modules/freadable (Files): Likewise.
38462         * modules/freadahead (Files): Likewise.
38463         * modules/freading (Files): Likewise.
38464         * modules/freadptr (Files): Likewise.
38465         * modules/freadseek (Files): Likewise.
38466         * modules/fseeko (Files): Likewise.
38467         * modules/fseterr (Files): Likewise.
38468         * modules/fwritable (Files): Likewise.
38469         * modules/fwriting (Files): Likewise.
38470
38471 2008-04-26  Bruno Haible  <bruno@clisp.org>
38472
38473         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38474         restore_seek_optimization, update_fpos_cache): New functions, extracted
38475         from rpl_fflush.
38476         (rpl_fflush): Use them.
38477         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
38478         (gl_REPLACE_FFLUSH): Use it.
38479
38480 2008-04-26  Bruno Haible  <bruno@clisp.org>
38481
38482         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
38483         on Solaris.
38484         * tests/test-xstrtoimax.sh: Likewise.
38485         * tests/test-xstrtoumax.sh: Likewise.
38486         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38487
38488 2008-04-26  Bruno Haible  <bruno@clisp.org>
38489
38490         * modules/memchr-tests: New file.
38491         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
38492
38493 2008-04-26  Eric Blake  <ebb9@byu.net>
38494             Bruno Haible  <bruno@clisp.org>
38495
38496         * lib/memchr.c: Include intprops.h.
38497         (__memchr): Optimize parallel detection of matching bytes. Rename local
38498         variables. Add explanatory comments.
38499
38500 2008-04-26  Bruno Haible  <bruno@clisp.org>
38501
38502         Fix module 'memchr', broken since 2000-10-28.
38503         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
38504
38505 2008-04-26  Bruno Haible  <bruno@clisp.org>
38506
38507         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
38508         comments.
38509
38510 2008-04-25  Eric Blake  <ebb9@byu.net>
38511
38512         Use native fstatat on cygwin 1.7.0.
38513         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
38514         first.
38515
38516 2008-04-23  Eric Blake  <ebb9@byu.net>
38517
38518         Improve memchr2 performance.
38519         * lib/memchr2.c (memchr2): Further optimize parallel detection of
38520         NUL bytes.
38521         * modules/memchr2 (Depends-on): Use intprops.h.
38522
38523 2008-04-23  Simon Josefsson  <simon@josefsson.org>
38524
38525         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
38526         an inline function instead of a CPP macro.  Patch by Ben Pfaff
38527         <blp@cs.stanford.edu>.
38528
38529 2008-04-23  Simon Josefsson  <simon@josefsson.org>
38530
38531         * lib/arpa_inet.in.h: New file.
38532
38533         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
38534         (Makefile.am): Sed in substitute header file.
38535
38536         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
38537         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
38538
38539         * modules/inet_ntop (configure.ac): Use
38540         gl_ARPA_INET_MODULE_INDICATOR.
38541
38542         * modules/inet_pton (configure.ac): Use
38543         gl_ARPA_INET_MODULE_INDICATOR.
38544
38545 2008-04-22  Jim Meyering  <meyering@redhat.com>
38546
38547         * modules/verify (License): Re-license as LGPLv2+.
38548
38549 2008-04-22  Simon Josefsson  <simon@josefsson.org>
38550
38551         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
38552         parameter to void* as per POSIX standard (MinGW uses char*).
38553
38554 2008-04-21  Bruno Haible  <bruno@clisp.org>
38555
38556         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
38557         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
38558         Define to replacements if REPLACE_ISWCNTRL is 1.
38559         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
38560         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
38561         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
38562         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
38563         what it fixes.
38564         * doc/posix-functions/iswalpha.texi: Likewise.
38565         * doc/posix-functions/iswblank.texi: Likewise.
38566         * doc/posix-functions/iswcntrl.texi: Likewise.
38567         * doc/posix-functions/iswdigit.texi: Likewise.
38568         * doc/posix-functions/iswgraph.texi: Likewise.
38569         * doc/posix-functions/iswlower.texi: Likewise.
38570         * doc/posix-functions/iswprint.texi: Likewise.
38571         * doc/posix-functions/iswpunct.texi: Likewise.
38572         * doc/posix-functions/iswspace.texi: Likewise.
38573         * doc/posix-functions/iswupper.texi: Likewise.
38574         * doc/posix-functions/iswxdigit.texi: Likewise.
38575         Reported by Alain Guibert.
38576
38577 2008-04-21  Bruno Haible  <bruno@clisp.org>
38578
38579         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
38580         Patch by Alain Guibert.
38581
38582 2008-04-21  Bruno Haible  <bruno@clisp.org>
38583
38584         Fix test failures on mingw.
38585         * tests/test-xstrtol.c (print_no_progname): New function.
38586         (main): Install it in error_print_progname hook.
38587         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
38588         * tests/test-xstrtoimax.sh: Likewise.
38589         * tests/test-xstrtoumax.sh: Likewise.
38590
38591 2008-04-21  Bruno Haible  <bruno@clisp.org>
38592
38593         Fix test failure on mingw.
38594         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
38595
38596 2008-04-21  Bruno Haible  <bruno@clisp.org>
38597
38598         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
38599         Actually assign a value.
38600
38601 2008-04-20  Bruno Haible  <bruno@clisp.org>
38602
38603         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
38604         take 2.
38605         * lib/canonicalize.c (canonicalize_file_name): Elide if the
38606         'canonicalize-lgpl' module is also used.
38607         * lib/canonicalize-lgpl.c: Undo last change.
38608         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
38609
38610 2008-04-20  Bruno Haible  <bruno@clisp.org>
38611
38612         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
38613         config.h. Provide _mkdir based fallback for mingw.
38614         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
38615         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
38616         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
38617         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
38618         rather than defining mkdir in config.h.
38619         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
38620         (gl_SYS_STAT_H_DEFAULTS): New macro.
38621         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
38622         HAVE_IO_H any more.
38623         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
38624         HAVE_DECL_MKDIR and HAVE_IO_H.
38625
38626 2008-04-20  Bruno Haible  <bruno@clisp.org>
38627
38628         * lib/isapipe.c: Port to native Windows platforms.
38629
38630 2008-04-20  Bruno Haible  <bruno@clisp.org>
38631
38632         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
38633
38634 2008-04-21  Eric Blake  <ebb9@byu.net>
38635
38636         Work around preprocessors that don't handle UINTMAX_MAX.
38637         * lib/memchr2.c (memchr2): Avoid embedded #if.
38638         Reported by Alain Guibert, fix suggested by Bruno Haible.
38639
38640 2008-04-21  Simon Josefsson  <simon@josefsson.org>
38641
38642         * doc/posix-functions/strftime.texi (strftime): Explain better
38643         Windows incompatibility.  Suggested by Micah Cowan
38644         <micah@cowan.name>.
38645
38646 2008-04-20  Bruno Haible  <bruno@clisp.org>
38647
38648         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
38649         unistr/u8-mblen.
38650
38651 2008-04-20  Bruno Haible  <bruno@clisp.org>
38652
38653         Fix test failure on platforms with non-GNU iconv.
38654         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
38655         (U_TO_U8): Use it, rather than u16_to_u8.
38656         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
38657         units at the end of the input string.
38658         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
38659
38660 2008-04-20  Bruno Haible  <bruno@clisp.org>
38661
38662         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
38663         when the resulting length is 0.
38664         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
38665
38666 2008-04-20  Bruno Haible  <bruno@clisp.org>
38667
38668         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
38669         works.
38670         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
38671
38672 2008-04-20  Bruno Haible  <bruno@clisp.org>
38673
38674         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
38675         * modules/tsearch-tests (configure.ac): Test for initstate function.
38676
38677 2008-04-20  Bruno Haible  <bruno@clisp.org>
38678
38679         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
38680         for nlink_t if missing.
38681         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
38682
38683 2008-04-19  Bruno Haible  <bruno@clisp.org>
38684
38685         Work around snprintf bug on Linux libc5.
38686         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
38687         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38688         gl_SNPRINTF_SIZE1.
38689         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38690         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
38691         that test failed.
38692         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
38693         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
38694         * modules/snprintf (Files): Add m4/printf.m4.
38695         * modules/vsnprintf (Files): Likewise.
38696         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
38697         * doc/posix-functions/vsnprintf.texi: Likewise.
38698
38699 2008-04-19  Bruno Haible  <bruno@clisp.org>
38700
38701         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
38702         from 0.0058 to less than 10^-7.
38703
38704 2008-04-19  Bruno Haible  <bruno@clisp.org>
38705
38706         Fix rounding when a precision is given.
38707         * lib/vasnprintf.c (is_borderline): New function.
38708         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
38709         9...9x.
38710         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
38711         %e, %g.
38712         * tests/test-vasprintf-posix.c (test_function): Likewise.
38713         * tests/test-snprintf-posix.h (test_function): Likewise.
38714         * tests/test-sprintf-posix.h (test_function): Likewise.
38715         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
38716         * tests/test-printf-posix.h (test_function): Likewise.
38717         * tests/test-printf-posix.output: Update.
38718         Reported by John Darrington <john@darrington.wattle.id.au> via
38719         Ben Pfaff <blp@cs.stanford.edu>.
38720
38721 2008-04-18  Simon Josefsson  <simon@josefsson.org>
38722
38723         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
38724         Suggested by Bruno Haible <bruno@clisp.org>.
38725
38726 2008-04-17  Bruno Haible  <bruno@clisp.org>
38727
38728         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
38729         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
38730         implementation.
38731         Patch by Bruce Merry <bmerry@gmail.com>.
38732
38733 2008-04-17  Simon Josefsson  <simon@josefsson.org>
38734
38735         * doc/posix-functions/strftime.texi (strftime): Mention that %e
38736         doesn't work under Windows.
38737
38738 2008-04-16  Bruno Haible  <bruno@clisp.org>
38739
38740         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
38741         New macros.
38742         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
38743         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
38744         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
38745         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
38746         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
38747         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
38748         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
38749         macros.
38750         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
38751         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
38752         Northern Sotho, Uighur.
38753
38754 2008-04-16  Bruno Haible  <bruno@clisp.org>
38755
38756         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
38757         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
38758         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
38759         Reported by Daniel Bergström <daniel@octocode.com>.
38760
38761 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
38762             Bruno Haible  <bruno@clisp.org>
38763
38764         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
38765         function.
38766         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
38767         New functions, mostly extracted from gl_locale_name_default.
38768         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
38769
38770 2008-04-16  Eric Blake  <ebb9@byu.net>
38771
38772         Adjust strtod detection to catch glibc 2.7 bug.
38773         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
38774         Reported by John Gatewood Ham.
38775
38776 2008-04-16  Bruno Haible  <bruno@clisp.org>
38777
38778         Add tentative support for Linux libc5.
38779         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
38780         * lib/fpurge.c (fpurge): Likewise.
38781         * lib/freadable.c (freadable): Likewise.
38782         * lib/freadahead.c (freadahead): Likewise.
38783         * lib/freading.c (freading): Likewise.
38784         * lib/freadptr.c (freadptr): Likewise.
38785         * lib/freadseek.c (freadptrinc): Likewise.
38786         * lib/fseeko.c (rpl_fseeko): Likewise.
38787         * lib/fseterr.c (fseterr): Likewise.
38788         * lib/fwritable.c (fwritable): Likewise.
38789         * lib/fwriting.c (fwriting): Likewise.
38790         Reported by Alain Guibert <alguibert+bts@free.fr>.
38791
38792 2008-04-15  Bruno Haible  <bruno@clisp.org>
38793
38794         * modules/mathl (configure.ac): Define module indicator.
38795
38796 2008-04-15  Bruno Haible  <bruno@clisp.org>
38797
38798         * lib/logl.c (logl): Remove unused variables.
38799
38800 2008-04-15  Bruno Haible  <bruno@clisp.org>
38801
38802         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
38803         fails.
38804
38805 2008-04-15  Bruno Haible  <bruno@clisp.org>
38806
38807         * lib/trim.c (trim2): Fix argument of isspace() macro.
38808
38809 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
38810
38811         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
38812         to 0.
38813         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
38814
38815 2008-04-14  Bruno Haible  <bruno@clisp.org>
38816
38817         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
38818         AC_LANG_PROGRAM argument.
38819         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
38820         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
38821         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38822         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38823         * m4/math_h.m4 (gl_MATH_H): Likewise.
38824         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
38825         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38826         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38827         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
38828         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
38829         * m4/regex.m4 (gl_REGEX): Likewise.
38830         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
38831         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
38832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38833         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
38834         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38835         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38836         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38837         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38838
38839 2008-04-14  Jim Meyering  <meyering@redhat.com>
38840
38841         test-strtod: fix typos: s/abs/fabs/
38842         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
38843
38844 2008-04-13  Bruno Haible  <bruno@clisp.org>
38845
38846         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
38847         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
38848         module is also used and while not building the reloc-wrapper.
38849
38850 2008-04-13  Bruno Haible  <bruno@clisp.org>
38851
38852         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
38853
38854 2008-04-13  Bruno Haible  <bruno@clisp.org>
38855
38856         Fix AIX compilation failure introduced on 2008-04-02.
38857         * tests/test-frexp.c (exp): Undefine before redefining.
38858         * tests/test-frexpl.c (exp): Likewise.
38859
38860 2008-04-13  Bruno Haible  <bruno@clisp.org>
38861
38862         Work around a HP-UX stdio bug.
38863         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
38864         * tests/test-ftello.c (main): Likewise.
38865         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
38866         * doc/posix-functions/ftello.texi: Likewise.
38867
38868 2008-04-13  Bruno Haible  <bruno@clisp.org>
38869
38870         Make test-signbit pass on HP-UX/hppa.
38871         * tests/test-signbit.c (minus_zerol): New variable.
38872         (test_signbitl): Use it.
38873
38874 2008-04-13  Bruno Haible  <bruno@clisp.org>
38875
38876         Make truncl work on OSF/1 4.0.
38877         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
38878         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38879         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
38881         HAVE_DECL_TRUNCL.
38882         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
38883         HAVE_DECL_TRUNCL.
38884         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
38885
38886 2008-04-13  Bruno Haible  <bruno@clisp.org>
38887
38888         * lib/unictype.h: Remove trailing comma from enumeration definitions.
38889
38890 2008-04-13  Bruno Haible  <bruno@clisp.org>
38891
38892         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
38893         expression, so as to avoid HP-UX 11 cc compiler bug.
38894
38895 2008-04-13  Bruno Haible  <bruno@clisp.org>
38896
38897         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
38898
38899 2008-04-13  Bruno Haible  <bruno@clisp.org>
38900
38901         * lib/git-merge-changelog.c: Remove empty declaration outside of
38902         functions.
38903
38904 2008-04-13  Bruno Haible  <bruno@clisp.org>
38905
38906         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
38907
38908 2008-04-13  Bruno Haible  <bruno@clisp.org>
38909
38910         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
38911         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
38912         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
38913         also if it exists but lacks definitions of the SHUT_* macros.
38914         * modules/sys_socket (Description): Update.
38915         Reported by Elbert Pol <e.pol@chello.nl>.
38916
38917 2008-04-13  Bruno Haible  <bruno@clisp.org>
38918
38919         * lib/localcharset.c (OS2): Don't redefine if already defined.
38920         Reported by Elbert Pol <e.pol@chello.nl>.
38921
38922 2008-04-13  Bruno Haible  <bruno@clisp.org>
38923
38924         * lib/binary-io.h [__EMX__]: Include <io.h>.
38925         Reported by Elbert Pol <e.pol@chello.nl>.
38926
38927 2008-04-12  Bruno Haible  <bruno@clisp.org>
38928
38929         * lib/fpucw.h: Enable the definitions also for x86_64.
38930         Needed for NetBSD/x86_64.
38931         Reported by Thomas Klausner <tk@giga.or.at>.
38932
38933 2008-04-12  Bruno Haible  <bruno@clisp.org>
38934
38935         * tests/test-strtod.c: Include isnand.h.
38936         (main): Use isnand instead of isnan.
38937         Reported by Jim Meyering.
38938
38939 2008-04-12  Bruno Haible  <bruno@clisp.org>
38940
38941         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
38942         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38943
38944 2008-04-12  Jim Meyering  <meyering@redhat.com>
38945
38946         * m4/math_h.m4 (gl_MATH_H): Fix typos.
38947
38948 2008-04-12  Bruno Haible  <bruno@clisp.org>
38949
38950         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
38951         Reported by Elbert Pol <e.pol@chello.nl>.
38952
38953 2008-04-12  Eric Blake  <ebb9@byu.net>
38954
38955         Work around Solaris 10 math.h bug.
38956         * m4/math_h.m4 (gl_MATH_H): Check for bug.
38957         (gl_MATH_H_DEFAULTS): Set up default.
38958         * modules/math (Makefile.am): Replace new indicators.
38959         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
38960         * tests/test-math.c (main): Test this.
38961         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
38962         * doc/posix-headers/math.texi (math.h): Mention bug.
38963         Reported by Nelson H. F. Beebe and Jim Meyering.
38964
38965 2008-04-11  Bruno Haible  <bruno@clisp.org>
38966
38967         Adapt to future versions of Apple GCC.
38968         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
38969         Reported by Peter O'Gorman <peter@pogma.com>.
38970
38971 2008-04-11  Bruno Haible  <bruno@clisp.org>
38972
38973         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
38974
38975 2008-04-11  Bruno Haible  <bruno@clisp.org>
38976
38977         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
38978
38979         * modules/getaddrinfo-tests (Makefile.am): Define
38980         test_getaddrinfo_LDADD.
38981
38982 2008-04-11  Bruno Haible  <bruno@clisp.org>
38983
38984         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
38985         (init): Fix syntax error.
38986         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
38987         is declared.
38988
38989 2008-04-11  Bruno Haible  <bruno@clisp.org>
38990
38991         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
38992         * modules/glob (Depends-on): Add stdbool.
38993
38994 2008-04-11  Bruno Haible  <bruno@clisp.org>
38995
38996         * lib/trim.c: Include <string.h>.
38997
38998 2008-04-11  Eric Blake  <ebb9@byu.net>
38999
39000         Avoid compile failure on OS/2.
39001         * lib/regex_internal.h (internal_function): Disable optimization
39002         on OS/2 (__EMX__), where it caused compiler error.
39003         Reported by Elbert Pol.
39004
39005 2008-04-11  Bruno Haible  <bruno@clisp.org>
39006
39007         Flush the standard error stream before aborting. Needed on mingw.
39008         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
39009         * tests/test-array_list.c (ASSERT): Likewise.
39010         * tests/test-array_oset.c (ASSERT): Likewise.
39011         * tests/test-avltree_list.c (ASSERT): Likewise.
39012         * tests/test-avltree_oset.c (ASSERT): Likewise.
39013         * tests/test-avltreehash_list.c (ASSERT): Likewise.
39014         * tests/test-binary-io.c (ASSERT): Likewise.
39015         * tests/test-byteswap.c (ASSERT): Likewise.
39016         * tests/test-c-ctype.c (ASSERT): Likewise.
39017         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
39018         * tests/test-c-strcasestr.c (ASSERT): Likewise.
39019         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
39020         * tests/test-c-strstr.c (ASSERT): Likewise.
39021         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
39022         * tests/test-canonicalize.c (ASSERT): Likewise.
39023         * tests/test-carray_list.c (ASSERT): Likewise.
39024         * tests/test-ceilf1.c (ASSERT): Likewise.
39025         * tests/test-ceilf2.c (ASSERT): Likewise.
39026         * tests/test-ceill.c (ASSERT): Likewise.
39027         * tests/test-count-one-bits.c (ASSERT): Likewise.
39028         * tests/test-fbufmode.c (ASSERT): Likewise.
39029         * tests/test-fflush2.c (ASSERT): Likewise.
39030         * tests/test-floorf1.c (ASSERT): Likewise.
39031         * tests/test-floorf2.c (ASSERT): Likewise.
39032         * tests/test-floorl.c (ASSERT): Likewise.
39033         * tests/test-fopen.c (ASSERT): Likewise.
39034         * tests/test-fpending.c (ASSERT): Likewise.
39035         * tests/test-fprintf-posix.c (ASSERT): Likewise.
39036         * tests/test-fpurge.c (ASSERT): Likewise.
39037         * tests/test-freadable.c (ASSERT): Likewise.
39038         * tests/test-freadahead.c (ASSERT): Likewise.
39039         * tests/test-freading.c (ASSERT): Likewise.
39040         * tests/test-freadptr.c (ASSERT): Likewise.
39041         * tests/test-freadptr2.c (ASSERT): Likewise.
39042         * tests/test-freadseek.c (ASSERT): Likewise.
39043         * tests/test-freopen.c (ASSERT): Likewise.
39044         * tests/test-frexp.c (ASSERT): Likewise.
39045         * tests/test-frexpl.c (ASSERT): Likewise.
39046         * tests/test-fseek.c (ASSERT): Likewise.
39047         * tests/test-fseeko.c (ASSERT): Likewise.
39048         * tests/test-fstrcmp.c (ASSERT): Likewise.
39049         * tests/test-ftell.c (ASSERT): Likewise.
39050         * tests/test-ftello.c (ASSERT): Likewise.
39051         * tests/test-func.c (ASSERT): Likewise.
39052         * tests/test-fwritable.c (ASSERT): Likewise.
39053         * tests/test-fwriting.c (ASSERT): Likewise.
39054         * tests/test-getdelim.c (ASSERT): Likewise.
39055         * tests/test-getline.c (ASSERT): Likewise.
39056         * tests/test-i-ring.c (ASSERT): Likewise.
39057         * tests/test-iconv-utf.c (ASSERT): Likewise.
39058         * tests/test-iconv.c (ASSERT): Likewise.
39059         * tests/test-isfinite.c (ASSERT): Likewise.
39060         * tests/test-isnand.c (ASSERT): Likewise.
39061         * tests/test-isnanf.c (ASSERT): Likewise.
39062         * tests/test-isnanl.h (ASSERT): Likewise.
39063         * tests/test-ldexpl.c (ASSERT): Likewise.
39064         * tests/test-linked_list.c (ASSERT): Likewise.
39065         * tests/test-linkedhash_list.c (ASSERT): Likewise.
39066         * tests/test-localename.c (ASSERT): Likewise.
39067         * tests/test-lseek.c (ASSERT): Likewise.
39068         * tests/test-mbscasecmp.c (ASSERT): Likewise.
39069         * tests/test-mbscasestr1.c (ASSERT): Likewise.
39070         * tests/test-mbscasestr2.c (ASSERT): Likewise.
39071         * tests/test-mbscasestr3.c (ASSERT): Likewise.
39072         * tests/test-mbscasestr4.c (ASSERT): Likewise.
39073         * tests/test-mbschr.c (ASSERT): Likewise.
39074         * tests/test-mbscspn.c (ASSERT): Likewise.
39075         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
39076         * tests/test-mbspbrk.c (ASSERT): Likewise.
39077         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
39078         * tests/test-mbsrchr.c (ASSERT): Likewise.
39079         * tests/test-mbsspn.c (ASSERT): Likewise.
39080         * tests/test-mbsstr1.c (ASSERT): Likewise.
39081         * tests/test-mbsstr2.c (ASSERT): Likewise.
39082         * tests/test-mbsstr3.c (ASSERT): Likewise.
39083         * tests/test-memchr2.c (ASSERT): Likewise.
39084         * tests/test-memmem.c (ASSERT): Likewise.
39085         * tests/test-open.c (ASSERT): Likewise.
39086         * tests/test-printf-frexp.c (ASSERT): Likewise.
39087         * tests/test-printf-frexpl.c (ASSERT): Likewise.
39088         * tests/test-printf-posix.c (ASSERT): Likewise.
39089         * tests/test-quotearg.c (ASSERT): Likewise.
39090         * tests/test-rbtree_list.c (ASSERT): Likewise.
39091         * tests/test-rbtree_oset.c (ASSERT): Likewise.
39092         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
39093         * tests/test-round1.c (ASSERT): Likewise.
39094         * tests/test-roundf1.c (ASSERT): Likewise.
39095         * tests/test-roundl.c (ASSERT): Likewise.
39096         * tests/test-signbit.c (ASSERT): Likewise.
39097         * tests/test-sleep.c (ASSERT): Likewise.
39098         * tests/test-snprintf-posix.c (ASSERT): Likewise.
39099         * tests/test-snprintf.c (ASSERT): Likewise.
39100         * tests/test-sprintf-posix.c (ASSERT): Likewise.
39101         * tests/test-stat-time.c (ASSERT): Likewise.
39102         * tests/test-strcasestr.c (ASSERT): Likewise.
39103         * tests/test-strerror.c (ASSERT): Likewise.
39104         * tests/test-striconv.c (ASSERT): Likewise.
39105         * tests/test-striconveh.c (ASSERT): Likewise.
39106         * tests/test-striconveha.c (ASSERT): Likewise.
39107         * tests/test-strsignal.c (ASSERT): Likewise.
39108         * tests/test-strstr.c (ASSERT): Likewise.
39109         * tests/test-strtod.c (ASSERT): Likewise.
39110         * tests/test-trunc1.c (ASSERT): Likewise.
39111         * tests/test-trunc2.c (ASSERT): Likewise.
39112         * tests/test-truncf1.c (ASSERT): Likewise.
39113         * tests/test-truncf2.c (ASSERT): Likewise.
39114         * tests/test-truncl.c (ASSERT): Likewise.
39115         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
39116         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
39117         * tests/test-vasnprintf.c (ASSERT): Likewise.
39118         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
39119         * tests/test-vasprintf.c (ASSERT): Likewise.
39120         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
39121         * tests/test-vprintf-posix.c (ASSERT): Likewise.
39122         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
39123         * tests/test-vsnprintf.c (ASSERT): Likewise.
39124         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
39125         * tests/test-wcwidth.c (ASSERT): Likewise.
39126         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
39127         * tests/test-xprintf-posix.c (ASSERT): Likewise.
39128         * tests/test-xvasprintf.c (ASSERT): Likewise.
39129         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
39130         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
39131         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
39132         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
39133         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
39134         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
39135         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
39136         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
39137         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
39138         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
39139         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
39140         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
39141         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
39142         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
39143         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
39144         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
39145         * tests/unictype/test-block_list.c (ASSERT): Likewise.
39146         * tests/unictype/test-block_of.c (ASSERT): Likewise.
39147         * tests/unictype/test-block_test.c (ASSERT): Likewise.
39148         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
39149         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
39150         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
39151         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
39152         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
39153         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
39154         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
39155         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
39156         * tests/unictype/test-combining.c (ASSERT): Likewise.
39157         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
39158         * tests/unictype/test-digit.c (ASSERT): Likewise.
39159         * tests/unictype/test-mirror.c (ASSERT): Likewise.
39160         * tests/unictype/test-numeric.c (ASSERT): Likewise.
39161         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
39162         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
39163         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
39164         * tests/unictype/test-scripts.c (ASSERT): Likewise.
39165         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
39166         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
39167         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
39168         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
39169         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
39170         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
39171         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
39172         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
39173         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
39174         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
39175         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
39176         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
39177         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
39178         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
39179         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
39180         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
39181         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
39182         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
39183         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
39184         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
39185         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
39186         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
39187         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
39188         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
39189         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
39190         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
39191         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
39192         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
39193         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
39194         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
39195         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
39196         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
39197         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
39198         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
39199         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
39200         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
39201         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
39202         Reported by Eric Blake.
39203
39204 2008-04-11  Bruno Haible  <bruno@clisp.org>
39205
39206         * lib/wchar.in.h: Tweak comment.
39207
39208 2008-04-11  Bruno Haible  <bruno@clisp.org>
39209
39210         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
39211         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
39212         gl_COMMON.
39213         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
39214
39215 2008-04-11  Bruno Haible  <bruno@clisp.org>
39216
39217         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
39218
39219 2008-04-11  Simon Josefsson  <simon@josefsson.org>
39220
39221         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
39222         of attempting to use non-existing /dev/*random.  Based on patch
39223         from Adam Strzelecki <ono@java.pl> in
39224         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
39225
39226 2008-04-08  Bruno Haible  <bruno@clisp.org>
39227
39228         Add tentative support for emx+gcc.
39229         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
39230         * lib/fpurge.c (fpurge): Likewise.
39231         * lib/freadable.c (freadable): Likewise.
39232         * lib/freadahead.c (freadahead): Likewise.
39233         * lib/freading.c (freading): Likewise.
39234         * lib/freadptr.c (freadptr): Likewise.
39235         * lib/freadseek.c (freadptrinc): Likewise.
39236         * lib/fseeko.c (rpl_fseeko): Likewise.
39237         * lib/fseterr.c (fseterr): Likewise.
39238         * lib/fwritable.c (fwritable): Likewise.
39239         * lib/fwriting.c (fwriting): Likewise.
39240         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
39241
39242 2008-04-09  Eric Blake  <ebb9@byu.net>
39243
39244         Avoid some autoconf warnings.
39245         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
39246         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
39247         * m4/afs.m4 (gl_AFS): Likewise.
39248         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
39249         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
39250         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39251         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
39252         (gl_INTEGER_TYPE_SUFFIX): Likewise.
39253         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
39254         (AC_CHECK_DECLS_ONCE): Likewise.
39255         Rename file...
39256         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
39257         gnulib-tool requires autoconf 2.59 or better.
39258         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
39259
39260 2008-04-08  Eric Blake  <ebb9@byu.net>
39261
39262         Use 'git describe --match' if present (added in git 1.5.5).
39263         * build-aux/git-version-gen: Limit result to tags that match 'v*'
39264         if possible.
39265
39266 2008-04-08  Bruno Haible  <bruno@clisp.org>
39267
39268         Add tentative support for OpenServer.
39269         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
39270         _ptr, _cnt.
39271         * lib/fpurge.c (fpurge): Likewise.
39272         * lib/freadable.c (freadable): Likewise.
39273         * lib/freadahead.c (freadahead): Likewise.
39274         * lib/freading.c (freading): Likewise.
39275         * lib/freadptr.c (freadptr): Likewise.
39276         * lib/freadseek.c (freadptrinc): Likewise.
39277         * lib/fseeko.c (rpl_fseeko): Likewise.
39278         * lib/fseterr.c (fseterr): Likewise.
39279         * lib/fwritable.c (fwritable): Likewise.
39280         * lib/fwriting.c (fwriting): Likewise.
39281         Reported by Roger Cornelius <rac@tenzing.org> and
39282         Brian K. White <brian@aljex.com>.
39283
39284 2008-04-06  Jim Meyering  <meyering@redhat.com>
39285
39286         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
39287
39288 2008-04-06  Bruno Haible  <bruno@clisp.org>
39289
39290         Avoid possible error with non-ASCII bytes in UTF-8 locales.
39291         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
39292         * tests/test-printf-posix.sh: Likewise.
39293         * tests/test-vfprintf-posix.sh: Likewise.
39294         * tests/test-vprintf-posix.sh: Likewise.
39295         * tests/test-xprintf-posix.sh: Likewise.
39296
39297 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39298
39299         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
39300         hide error from 'ls', needed on OS/2.
39301         Report by Elbert Pol <elbert.pol@gmail.com>.
39302
39303 2008-04-04  Eric Blake  <ebb9@byu.net>
39304
39305         Make test-fseeko.c failures meaningful.
39306         * tests/test-fseeko.c: Print line number on failure.
39307         * tests/test-fseek.c: Likewise.
39308         Reported by Nelson H. F. Beebe.
39309
39310         Improve strtod bug detection check.
39311         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
39312         required for Solaris 10.
39313         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
39314
39315 2008-04-04  Bruno Haible  <bruno@clisp.org>
39316
39317         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
39318         by m4/setenv.m4.
39319
39320 2008-04-03  Eric Blake  <ebb9@byu.net>
39321
39322         Ensure sane .version contents.
39323         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
39324         version string.
39325         * build-aux/git-version-gen: Improve documentation.
39326
39327         Make GNU make output nicer.
39328         * top/GNUmakefile [!_have-Makefile]: Add dependency on
39329         MAKECMDGOALS to enforce message for all command line targets.  Set
39330         srcdir for use in maint.mk.
39331
39332         Another maintainer tweak.
39333         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
39334         a target that regenerates version.
39335
39336 2008-04-03  Jim Meyering  <meyering@redhat.com>
39337
39338         vc-list-files: don't cause coreutils "make po-check" failure
39339         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
39340
39341 2008-04-03  Eric Blake  <ebb9@byu.net>
39342
39343         Allow VPATH usage of vc-list-files.
39344         * build-aux/vc-list-files (scriptversion): Add timestamp.
39345         (options): Add --help, --version, -C.
39346         (CVS): Support installed cvsu.
39347
39348 2008-04-02  Bruno Haible  <bruno@clisp.org>
39349
39350         Avoid some "statement with no effect" warnings from gcc.
39351         * tests/test-wctype.c (main): Explicitly ignore unused values.
39352         Reported by Jim Meyering.
39353
39354 2008-04-02  Jim Meyering  <meyering@redhat.com>
39355
39356         Avoid some warnings from "gcc -Wshadow".
39357         * tests/test-frexp.c (exp): Define to a different identifier.
39358         * tests/test-frexpl.c (exp): Likewise.
39359
39360 2008-04-03  Jim Meyering  <meyering@redhat.com>
39361
39362         bootstrap: remove dangling *.[ch] symlinks from lib
39363         * build-aux/bootstrap [dangling symlink removal]: Move find's
39364         -depth option to precede all others, to avoid a warning.
39365         Remove *.[ch] files too, and from "$source_base" (usually lib/).
39366
39367 2008-04-02  Bruno Haible  <bruno@clisp.org>
39368
39369         Avoid some warnings from "gcc -Wshadow".
39370         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
39371         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
39372         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
39373         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
39374         Reported by Jim Meyering.
39375
39376 2008-04-01  Bruno Haible  <bruno@clisp.org>
39377
39378         Fix test to work on IRIX 6.5 with cc.
39379         * tests/test-math.c (numeric_equal): New function.
39380         (main): Use it.
39381
39382 2008-04-01  Bruno Haible  <bruno@clisp.org>
39383
39384         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
39385
39386 2008-04-01  Bruno Haible  <bruno@clisp.org>
39387
39388         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
39389         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39390         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
39391         (Depends-on): Remove math.
39392
39393         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
39394         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39395         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
39396         (Depends-on): Remove math.
39397
39398         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
39399         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39400         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
39401         (Depends-on): Remove math.
39402         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
39403         (Depends-on): Remove math.
39404
39405         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
39406         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39407         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
39408         (Depends-on): Remove math.
39409         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
39410         (Depends-on): Remove math.
39411
39412         * tests/test-round1.c: Include nan.h.
39413         (main): Use NaNd instead of NAN.
39414         * modules/round-tests (Files): Add tests/nan.h.
39415
39416         * tests/test-trunc1.c: Include nan.h.
39417         (main): Use NaNd instead of NAN.
39418         * modules/trunc-tests (Files): Add tests/nan.h.
39419
39420         * tests/test-roundf1.c: Include nan.h.
39421         (main): Use NaNf instead of NAN.
39422         * modules/roundf-tests (Files): Add tests/nan.h.
39423
39424         * tests/test-truncf1.c: Include nan.h.
39425         (main): Use NaNf instead of NAN.
39426         * modules/truncf-tests (Files): Add tests/nan.h.
39427
39428         * tests/test-ceilf1.c: Include nan.h.
39429         (main): Use NaNf instead of NAN.
39430         * modules/ceilf-tests (Files): Add tests/nan.h.
39431
39432         * tests/test-floorf1.c: Include nan.h.
39433         (main): Use NaNf instead of NAN.
39434         * modules/floorf-tests (Files): Add tests/nan.h.
39435
39436         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
39437         (main): Use NaNf instead of NAN.
39438         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
39439
39440         * tests/test-isnand.c: Include nan.h instead of <math.h>.
39441         (main): Use NaNd instead of NAN.
39442         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
39443
39444         * tests/test-frexp.c: Include nan.h.
39445         (main): Use NaNd instead of NAN.
39446         * modules/frexp-tests (Files): Add tests/nan.h.
39447
39448         * lib/isnan.c: Don't include <math.h>.
39449         (FUNC): Don't use NAN macro.
39450         * modules/isnand-nolibm (Depends-on): Remove math.
39451         * modules/isnanf-nolibm (Depends-on): Remove math.
39452         * modules/isnanl (Depends-on): Remove math.
39453         * modules/isnanl-nolibm (Depends-on): Remove math.
39454
39455         * tests/nan.h: New file.
39456
39457 2008-04-01  Eric Blake  <ebb9@byu.net>
39458
39459         Fix typos.
39460         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
39461         values to be the right type.
39462
39463         For now, cater to gnulib strtod inaccuracies.
39464         * tests/test-strtod.c (main): Allow 1-ulp error on expected
39465         fractional results.  While not as nice from a QoI perspective, it
39466         is a quicker patch than correctly implementing decimal to binary
39467         rounding.
39468
39469 2008-03-31  Eric Blake  <ebb9@byu.net>
39470
39471         Guarantee a definition of NAN.
39472         * lib/math.in.h (NAN): Define if missing.
39473         * tests/test-math.c (main): Test it.
39474         * doc/posix-headers/math.texi (math.h): Document this.
39475         * lib/isnan.c (rpl_isnand): Use it.
39476         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
39477         * tests/test-floorf1.c (NaN): Likewise.
39478         * tests/test-frexp.c (NaN): Likewise.
39479         * tests/test-isnand.c (NaN): Likewise.
39480         * tests/test-isnanf.c (NaN): Likewise.
39481         * tests/test-round1.c (NaN): Likewise.
39482         * tests/test-roundf1.c (NaN): Likewise.
39483         * tests/test-snprintf-posix.h (NaN): Likewise.
39484         * tests/test-sprintf-posix.h (NaN): Likewise.
39485         * tests/test-trunc1.c (NaN): Likewise.
39486         * tests/test-truncf1.c (NaN): Likewise.
39487         * tests/test-vasnprintf-posix.c (NaN): Likewise.
39488         * tests/test-vasprintf-posix.c (NaN): Likewise.
39489         * modules/isnand-nolibm (Depends-on): Add math.
39490         * modules/isnanf-nolibm (Depends-on): Likewise.
39491         * modules/isnanl (Depends-on): Likewise.
39492         * modules/isnanl-nolibm (Depends-on): Likewise.
39493         * modules/snprintf-posix-tests (Depends-on): Likewise.
39494         * modules/sprintf-posix-tests (Depends-on): Likewise.
39495         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
39496         * modules/vsprintf-posix-tests (Depends-on): Likewise.
39497         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
39498         * modules/vasprintf-posix-tests (Depends-on): Likewise.
39499
39500 2008-03-31  Bruno Haible  <bruno@clisp.org>
39501
39502         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
39503         * doc/posix-functions/strtod.texi: Likewise.
39504
39505 2008-03-31  Bruno Haible  <bruno@clisp.org>
39506
39507         * tests/test-strtod.c (main): Don't use C99 syntax.
39508
39509 2008-03-31  Bruno Haible  <bruno@clisp.org>
39510
39511         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
39512         Reported by Eric Blake.
39513
39514 2008-03-31  Jim Meyering  <meyering@redhat.com>
39515
39516         Don't compare actual signbit return values.
39517         * tests/test-strtod.c (main): Rather, compare only their
39518         zero/non-zero nature.
39519
39520 2008-03-31  Eric Blake  <ebb9@byu.net>
39521
39522         More strtod documentation.
39523         * doc/posix-functions/strtod.texi (strtod): Interpret more test
39524         failures as distinct bugs.
39525
39526 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39527
39528         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
39529         Problem reported by Erik Benada in
39530         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
39531
39532 2008-03-30  Bruno Haible  <bruno@clisp.org>
39533
39534         * tests/test-strtod.c: Add comments about which assertion fails on which
39535         platform.
39536         * doc/posix-functions/strtod.texi: Add info about many more platforms.
39537
39538 2008-03-30  Eric Blake  <ebb9@byu.net>
39539
39540         Test signbit behavior on zeros.
39541         * tests/test-signbit.c (test_signbitf): Add tests for zero.
39542         (test_signbitd, test_signbitl): Likewise.
39543
39544         More strtod touchups.
39545         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
39546         sign of negative underflow, for now.  Use .5, not .1.
39547         * doc/posix-functions/strtod.texi (strtod): Mention these
39548         limitations.
39549         Reported by Jim Meyering.
39550
39551 2008-03-30  Bruno Haible  <bruno@clisp.org>
39552
39553         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
39554         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
39555
39556 2008-03-30  Bruno Haible  <bruno@clisp.org>
39557
39558         Avoid failure when attempting to return empty iconv results on some
39559         platforms.
39560         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
39561         allocation, don't report ENOMEM when the resulting string is empty.
39562
39563 2008-03-30  Bruno Haible  <bruno@clisp.org>
39564
39565         Fix buffer overrun.
39566         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
39567         Don't consider the width for tmp_length. Check count against tmp_length
39568         before doing the padding. Ensure enough allocation during padding.
39569
39570 2008-03-30  Eric Blake  <ebb9@byu.net>
39571
39572         strtod touchups.
39573         * lib/strtod.c (strtod): Avoid compiler warnings.
39574         Reported by Jim Meyering.
39575
39576 2008-03-30  Bruno Haible  <bruno@clisp.org>
39577
39578         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
39579         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
39580         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
39581         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
39582         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
39583         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
39584         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
39585         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
39586
39587         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
39588         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
39589         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
39590         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
39591         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
39592         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
39593         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
39594         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
39595
39596         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
39597         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
39598         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
39599         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
39600         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
39601         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
39602         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
39603         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
39604
39605         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
39606         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
39607
39608         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
39609         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
39610
39611         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
39612         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
39613
39614         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
39615         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
39616         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
39617
39618         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
39619         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
39620         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
39621
39622         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
39623         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
39624         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
39625
39626         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
39627         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
39628         * modules/vasprintf (Depends-on): Add EOVERFLOW.
39629
39630         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
39631         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
39632         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
39633         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
39634         (Depends-on): Add EOVERFLOW.
39635         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
39636         (Depends-on): Add EOVERFLOW.
39637         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39638         (Depends-on): Add EOVERFLOW.
39639         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39640         (Depends-on): Add EOVERFLOW.
39641         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39642         (Depends-on): Add EOVERFLOW.
39643         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39644         (Depends-on): Add EOVERFLOW.
39645         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39646         (Depends-on): Add EOVERFLOW.
39647         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39648         (Depends-on): Add EOVERFLOW.
39649
39650         * lib/sprintf.c (EOVERFLOW): Remove fallback.
39651         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
39652         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
39653
39654         * lib/snprintf.c (EOVERFLOW): Remove fallback.
39655         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
39656         * modules/snprintf (Depends-on): Add EOVERFLOW.
39657
39658         * lib/poll.c (EOVERFLOW): Remove fallback.
39659         * modules/poll (Depends-on): Add EOVERFLOW.
39660
39661         * lib/getugroups.c (EOVERFLOW): Remove fallback.
39662         * modules/getugroups (Depends-on): Add EOVERFLOW.
39663
39664         * lib/getdelim.c (EOVERFLOW): Remove fallback.
39665         * modules/getdelim (Depends-on): Add EOVERFLOW.
39666
39667         * lib/ftell.c (EOVERFLOW): Remove fallback.
39668         * modules/ftell (Depends-on): Add EOVERFLOW.
39669
39670         * lib/fprintf.c (EOVERFLOW): Remove fallback.
39671         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
39672         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
39673
39674         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
39675
39676         * modules/EOVERFLOW-tests: New file.
39677         * tests/test-EOVERFLOW.c: New file.
39678
39679         * modules/EOVERFLOW: New file.
39680         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
39681
39682 2008-03-30  Bruno Haible  <bruno@clisp.org>
39683
39684         Fix bug introduced on 2007-06-10.
39685         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
39686         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
39687
39688 2008-03-30  Bruno Haible  <bruno@clisp.org>
39689
39690         Improve freadseek's efficiency after ungetc.
39691         * lib/freadseek.c: Include freadahead.h.
39692         (freadptrinc): New function, extracted from freadseek.
39693         (freadseek): Use it in a loop. Use freadahead to determine the number
39694         of loop iterations.
39695         * modules/freadseek (Depends-on): Add freadahead.
39696         (configure.ac): Require AC_C_INLINE.
39697
39698 2008-03-30  Bruno Haible  <bruno@clisp.org>
39699
39700         * lib/freadseek.c (freadseek): Don't ignore the return value of
39701         freadptr.
39702
39703 2008-03-29  Eric Blake  <ebb9@byu.net>
39704
39705         Add hex float support.
39706         * modules/strtod (Depends-on): Add c-ctype.
39707         (Link): Mention POW_LIB.
39708         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
39709         whitespace between 'e' and exponent.
39710         * tests/test-strtod.c (main): Enable hex float tests.
39711         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
39712         now provides.
39713
39714         Document various strtod bugs, with some fixes.
39715         * doc/posix-functions/strtod.texi (strtod): Document bugs with
39716         "-0x", "inf", "nan", and hex constants.
39717         * doc/posix-functions/atof.texi (atof): Likewise.
39718         * modules/stdlib (Makefile.am): Support strtod.
39719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
39720         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
39721         detect additional strtod bugs.
39722         * lib/stdlib.in.h (rpl_strtod): Add declarations.
39723         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
39724         bool where appropriate.  Parse 'inf' and 'nan'.
39725         * tests/test-strtod.c: New file.
39726         * modules/strtod (Depends-on): Add stdbool, stdlib.
39727         (configure.ac): Turn on module indicator.
39728         * modules/strtod-tests: New module.
39729
39730 2008-03-29  Eric Blake  <ebb9@byu.net>
39731
39732         Fix ftell on mingw.
39733         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
39734         * modules/ftell-tests (Depends-on): Add binary-io.
39735         * modules/ftello-tests (Depends-on): Likewise.
39736         * tests/test-ftell.c (main): Enhance test to cover behavior after
39737         ungetc.  Enforce binary mode.
39738         * tests/test-ftello.c (main): Likewise.
39739
39740         Pass test-freadseek on cygwin.
39741         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
39742         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
39743         ungetc buffer.
39744
39745         * tests/test-fflush2.c (main): Fix typo.
39746
39747 2008-03-29  Bruno Haible  <bruno@clisp.org>
39748
39749         * tests/test-fflush2.c (main): Temporarily disable the contents of
39750         this test.
39751         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
39752         Reported by Eric Blake.
39753
39754 2008-03-28  Simon Josefsson  <simon@josefsson.org>
39755
39756         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
39757         (GC_SHA224_DIGEST_SIZE): Add.
39758
39759         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
39760         (gc_hash_digest_length): Likewise.
39761         (gc_hash_buffer): Likewise.
39762
39763 2008-03-25  Bruno Haible  <bruno@clisp.org>
39764
39765         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
39766         detail which gettext release to use.
39767         Reported by Simon Josefsson.
39768
39769 2008-03-26  Jim Meyering  <meyering@redhat.com>
39770
39771         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
39772         * modules/gnumakefile (clean-GNUmakefile): Also, use
39773         test ... && ... || : syntax rather than if-then ... fi.
39774
39775         gnumakefile: Don't double-quote-expand $(VPATH) value.
39776         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
39777
39778 2008-03-24  Eric Blake  <ebb9@byu.net>
39779
39780         Alter GNUmakefile to install into top directory.
39781         * modules/maintainer-makefile: Split, and add dependency...
39782         * modules/gnumakefile: to this new module.
39783         * build-aux/GNUmakefile: Move...
39784         * top/GNUmakefile: ...here.
39785         * build-aux/maint.mk: Move...
39786         * top/maint.mk: ...here.
39787         * MODULES.html.sh (Support for maintaining...): Document new
39788         module.
39789
39790 2008-03-23  Bruno Haible  <bruno@clisp.org>
39791
39792         * gnulib-tool: New options --vc-files, --no-vc-files.
39793         (func_usage): Document them.
39794         (vc_files): New variable.
39795         (func_import): Consider vc_files.
39796         (func_create_testdir): Set vc_files to empty.
39797         Suggested by Jim Meyering and Karl Berry.
39798
39799 2008-03-23  Bruno Haible  <bruno@clisp.org>
39800
39801         Fix regex compilation error on HP-UX 11.
39802         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
39803         * modules/regex (Files): Add m4/mbstate_t.m4.
39804         Reported by Ton Voon <ton.voon@altinity.com>.
39805
39806 2008-03-23  Bruno Haible  <bruno@clisp.org>
39807
39808         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
39809
39810 2008-03-23  Eric Blake  <ebb9@byu.net>
39811             Bruno Haible  <bruno@clisp.org>
39812
39813         Install files from top/ in the destination directory.
39814         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39815         augmentation also for the files from top/.
39816         (func_import, func_create_testdir): Rewrite file names:
39817         top/filename -> filename.
39818
39819 2008-03-23  Bruno Haible  <bruno@clisp.org>
39820
39821         Tweak "gnulib --version" output.
39822         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
39823
39824 2008-03-23  Bruno Haible  <bruno@clisp.org>
39825
39826         Tweak "gnulib --version" output.
39827         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
39828         rather than contents of ChangeLog, when possible.
39829
39830 2008-03-21  Eric Blake  <ebb9@byu.net>
39831
39832         More --version tweaks.
39833         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
39834         date of last ChangeLog entry.
39835
39836 2008-03-21  Jim Meyering  <meyering@redhat.com>
39837
39838         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
39839
39840 2008-03-20  Eric Blake  <ebb9@byu.net>
39841
39842         VPATH fix.
39843         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
39844
39845 2008-03-20  Simon Josefsson  <simon@josefsson.org>
39846
39847         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
39848         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
39849
39850 2008-03-20  Eric Blake  <ebb9@byu.net>
39851
39852         Sync GNUmakefile with coreutils.
39853         * build-aux/GNUmakefile (have-Makefile): Rename...
39854         (_have-Makefile): ...to this, for namespace consideration.
39855         (GNUmakefile.cfg): Include, if present.
39856         (_autoreconf): Define a default.
39857         (_is-dist-target): New rule for rebuilds to pick up intra-release
39858         version.
39859         (maint-cfg.mk): Rename...
39860         (cfg.mk): ...to this.
39861
39862 2008-03-18  Jim Meyering  <meyering@redhat.com>
39863
39864         New script and module: mktempd
39865         * MODULES.html.sh (maint+release support): Add mktempd.
39866         * build-aux/mktempd: New file.
39867         * modules/mktempd: New file.
39868
39869 2008-03-15  Jim Meyering  <meyering@redhat.com>
39870
39871         Undo last change.
39872         * lib/sha1.c, lib/md5.c: 63 != ~63.
39873         Reported by Andreas Schwab.
39874
39875         sha1.c, md5.c: Hoist a redundant expression.
39876         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
39877         "ctx->buflen" only once, before calling *_process_block.
39878         * lib/md5.c (md5_process_bytes): Likewise.
39879
39880 2008-03-14  Eric Blake  <ebb9@byu.net>
39881
39882         Bump copyright year in files generated by gnulib-tool.
39883         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
39884         gnulib-tool, rather than hard-coding it.
39885
39886         Fix 'gnulib-tool --version' output to work with git.
39887         * gnulib-tool (func_gnulib_dir): New function, extracted from...
39888         (startup): ...here.
39889         (func_version): Use it to invoke git-version-gen, rather than
39890         relying on CVS keyword expansion.  Modernize wording.
39891         (cvsdatestamp, last_checkin_date, version): Kill unused
39892         variables.
39893
39894 2008-03-12  Jim Meyering  <meyering@redhat.com>
39895
39896         Recognize optional cast of the argument to free.
39897         * build-aux/useless-if-before-free: Update regexps.
39898
39899         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
39900
39901 2008-03-11  Bruno Haible  <bruno@clisp.org>
39902
39903         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
39904         by a single package.
39905         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
39906         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
39907         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
39908         Reported by Sam Steingold <sds@gnu.org>.
39909
39910 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39911
39912         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
39913         repositories.
39914
39915 2008-03-11  Bruno Haible  <bruno@clisp.org>
39916
39917         Avoid conflicts between local macro definitions.
39918         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39919         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
39920
39921 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
39922             Bruno Haible  <bruno@clisp.org>
39923
39924         Make va_copy work with some version of xlc on AIX 5.1.
39925         * lib/stdarg.in.h: New file.
39926         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
39927         On AIX, use a <stdarg.h> file substitute.
39928         * modules/stdarg (Files): Add lib/stdarg.in.h.
39929         (Depends-on): Add include_next.
39930         (Makefile.am): Build a stdarg.h substitute if requested.
39931         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
39932
39933 2008-03-10  Bruno Haible  <bruno@clisp.org>
39934
39935         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
39936         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39937         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
39938
39939 2008-03-10  Bruno Haible  <bruno@clisp.org>
39940
39941         * modules/stdlib (Depends-on): Add include_next, remove
39942         absolute-header.
39943
39944 2008-03-09  Bruno Haible  <bruno@clisp.org>
39945
39946         * lib/freadahead.h (freadahead): Document more precisely.
39947         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
39948         the sum of both buffer sizes.
39949         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
39950         * NEWS: Document the change.
39951
39952 2008-03-09  Bruno Haible  <bruno@clisp.org>
39953
39954         Extend freadptr to return also the buffer size.
39955         * lib/freadptr.h (freadptr): Add sizep argument.
39956         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
39957         (freadptr): Add sizep argument. Determine buffer size like freadahead
39958         does.
39959         * tests/test-freadptr.c: Don't include freadahead.h.
39960         (main): Adapt for new calling convention of freadptr.
39961         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
39962         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
39963         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
39964         tests/test-freadptr2.sh.
39965         (Depends): Remove freadahead.
39966         (TESTS): Add test-freadptr2.sh.
39967         (check_PROGRAMS): Add test-freadptr2.
39968
39969 2008-03-09  Bruno Haible  <bruno@clisp.org>
39970
39971         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
39972         Report and solution by Simon Josefsson.
39973
39974 2008-03-06  Bruno Haible  <bruno@clisp.org>
39975
39976         Make fflush after ungetc work on BSD platforms.
39977         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
39978         * tests/test-fflush2.c: New file.
39979         * tests/test-fflush2.sh: New file.
39980         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
39981         tests/test-fflush2.c.
39982         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
39983         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
39984
39985 2008-03-06  Eric Blake  <ebb9@byu.net>
39986
39987         Likewise for ftello.
39988         * modules/ftello (Dependencies): Add extensions.
39989         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
39990
39991 2008-03-06  Bruno Haible  <bruno@clisp.org>
39992
39993         * modules/fseeko (Dependencies): Add extensions.
39994         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
39995         Needed on glibc systems.
39996
39997 2008-03-06  Bruno Haible  <bruno@clisp.org>
39998
39999         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
40000         email address.
40001         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40002
40003 2008-03-06  Bruno Haible  <bruno@clisp.org>
40004
40005         * users.txt: Add libgnupdf.
40006
40007 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40008
40009         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
40010         (Header File Substitutes, Function Substitutes,
40011         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
40012         (Build robot for gnulib): Fix typo.
40013
40014 2008-03-06  Bruno Haible  <bruno@clisp.org>
40015
40016         * doc/gnulib-tool.texi (VCS Issues): Small updates.
40017         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40018
40019 2008-03-06  Bruno Haible  <bruno@clisp.org>
40020
40021         * doc/func.texi: New file, extracted from doc/gnulib.texi.
40022         * doc/gnulib.texi: Include it.
40023
40024 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40025
40026         * modules/func (License): Change license to unlimited; there was
40027         no LGPL parts in the module anyway.
40028
40029 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40030
40031         * modules/__func__: Renamed to modules/func.
40032         * modules/__func__-tests: Renamed to modules/func-tests.
40033         * tests/test-__func__.c: Renamed to tests/test-func.c.
40034         * m4/__func__.m4: Renamed to m4/func.m4.
40035         * doc/gnulib.texi (__func__): Section renamed to func.
40036         Suggested by Eric Blake <ebb9@byu.net>.
40037
40038 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40039
40040         * doc/gnulib.texi (__func__): Use C99 terminology when talking
40041         about __func__.  Make example self-contained.  Suggested by Eric
40042         Blake <ebb9@byu.net>.
40043
40044         * tests/test-__func__.c (main): Avoid extraneous () around __func.
40045         Suggested by Eric Blake <ebb9@byu.net>.
40046
40047 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40048
40049         * modules/__func__: New file.
40050         * modules/__func__-tests: New file.
40051         * tests/test-__func__.c: New file.
40052         * m4/__func__.m4: New file.
40053         * doc/gnulib.texi (__func__): Document __func__ module.
40054
40055 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40056
40057         * modules/byteswap (License): Re-license as LGPLv2+.
40058
40059 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40060
40061         * doc/Makefile: Add pdf target.
40062
40063 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40064
40065         * modules/inline (License): Use 'unlimited', since there are only
40066         *.m4 files in this module.
40067
40068 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40069             Bruno Haible  <bruno@clisp.org>
40070
40071         Add support for HP C 7.1 on OpenVMS 8.3.
40072         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
40073
40074 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40075
40076         Update VMS specifics.
40077         * lib/getopt.c [VMS]: Remove include of unixlib.h.
40078
40079 2008-03-02  Jim Meyering  <meyering@redhat.com>
40080
40081         Remove the last dependency on the "free" module.
40082         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
40083         Reported by Bob Proulx.
40084
40085         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
40086
40087         Remove useless "if" tests before free.  Deprecate "free" module.
40088         * doc/posix-functions/free.texi: Mention that this
40089         module is no longer useful.
40090         * modules/free (Notice): Say this module is obsolete.
40091         * modules/readutmp (Depends-on): Remove free.
40092         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
40093         * lib/putenv.c (putenv): Likewise.
40094         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
40095         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
40096         * tests/test-c-strcasestr.c (main): Likewise.
40097         * tests/test-c-strstr.c (main): Likewise.
40098         * tests/test-mbscasestr1.c (main): Likewise.
40099         * tests/test-mbscasestr2.c (main): Likewise.
40100         * tests/test-mbsstr1.c (main): Likewise.
40101         * tests/test-mbsstr2.c (main): Likewise.
40102         * tests/test-memmem.c (main): Likewise.
40103         * tests/test-strcasestr.c (main): Likewise.
40104         * tests/test-striconv.c (main): Likewise.
40105         * tests/test-striconveh.c (main): Likewise.
40106         * tests/test-striconveha.c (main): Likewise.
40107         * tests/test-strstr.c (main): Likewise.
40108
40109         * build-aux/git-version-gen: Adjust a comment and the Usage string.
40110
40111         bootstrap: sync from coreutils again
40112         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
40113
40114 2008-03-01  Jim Meyering  <meyering@redhat.com>
40115
40116         bootstrap: sync from coreutils
40117         * build-aux/bootstrap (update_po_files): Copy a .po file into place
40118         also when the target doesn't exist.
40119
40120 2008-03-01  Eric Blake  <ebb9@byu.net>
40121
40122         Fix bugs in last patch.
40123         * lib/memchr2.c (memchr2): Fix typo.
40124         * tests/test-memchr2.c: Test previous bug, and don't use GNU
40125         extension.
40126         Reported by Bruce Korb.
40127
40128         New module 'memchr2'.
40129         * modules/memchr2: New file.
40130         * modules/memchr2-tests: Likewise.
40131         * lib/memchr2.h: Likewise.
40132         * lib/memchr2.c: Likewise, based on memchr.c.
40133         * tests/test-memchr2.c: New test.
40134         * MODULES.html.sh (String handling): Add memchr2.
40135
40136 2008-02-29  Bruno Haible  <bruno@clisp.org>
40137
40138         * modules/freadseek-tests: New file.
40139         * tests/test-freadseek.sh: New file.
40140         * tests/test-freadseek.c: New file.
40141
40142         New module 'freadseek'.
40143         * modules/freadseek: New file.
40144         * lib/freadseek.h: New file.
40145         * lib/freadseek.c: New file.
40146         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
40147
40148 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40149
40150         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
40151         wydawca.
40152
40153         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
40154         program_invocation_name and program_invocation_short_name are
40155         present.
40156
40157 2008-02-28  Bruno Haible  <bruno@clisp.org>
40158
40159         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
40160         * tests/test-freadptr.sh: Also test non-seekable stdin.
40161
40162 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
40163
40164         * build-aux/bootstrap (source_base, m4_base)
40165         (doc_base, tests_base): New variables.
40166         (gnulib_tool_options): Do not hardcode base directories, use
40167         the above variables instead.
40168
40169 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
40170
40171         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
40172
40173 2008-02-28  Bruno Haible  <bruno@clisp.org>
40174
40175         * modules/freadptr-tests: New file.
40176         * tests/test-freadptr.sh: New file.
40177         * tests/test-freadptr.c: New file.
40178
40179         New module 'freadptr'.
40180         * modules/freadptr: New file.
40181         * lib/freadptr.h: New file.
40182         * lib/freadptr.c: New file.
40183         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
40184
40185 2008-02-26  Karl Berry  <karl@freefriends.org>
40186
40187         Sync from Libtool:
40188         * libltdl/argz.c (argz_add, argz_count): New functions.
40189         * libltdl/argz.in.h: Declare them.
40190         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
40191
40192 2008-02-22  Bruno Haible  <bruno@clisp.org>
40193
40194         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
40195         is a pointer type.  Needed for HP-UX 10.
40196         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
40197         * doc/posix-functions/gmtime_r.texi: Likewise.
40198         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40199
40200 2008-02-24  Bruno Haible  <bruno@clisp.org>
40201
40202         * modules/environ-tests: New file.
40203         * tests/test-environ.c: New file.
40204
40205         New module 'environ'.
40206         * modules/environ: New file.
40207         * lib/unistd.in.h (environ): New declaration.
40208         * m4/environ.m4: New file.
40209         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
40210         after use.
40211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
40212         HAVE_DECL_ENVIRON.
40213         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
40214         HAVE_DECL_ENVIRON.
40215         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
40216         wrong claim that 'environ' is missing on some systems.
40217         * modules/execute (Depends-on): Add environ.
40218         * lib/execute.c (environ): Remove fallback declaration.
40219         * modules/pipe (Depends-on): Add environ.
40220         * lib/pipe.c (environ): Remove fallback declaration.
40221         * modules/setenv (Depends-on): Add environ.
40222         * lib/setenv.c (environ): Remove fallback declaration.
40223         * modules/unsetenv (Depends-on): Add environ.
40224         * lib/unsetenv.c (environ): Remove fallback declaration.
40225         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
40226         m4/environ.m4.
40227         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
40228         (gl_PREREQ_UNSETENV): Likewise.
40229
40230 2008-02-24  Bruno Haible  <bruno@clisp.org>
40231
40232         * doc/posix-functions/environ.texi: Document the MacOS X problem.
40233
40234 2008-02-20  Bob Proulx  <bob@proulx.com>
40235
40236         Enable use of older two part flavor 'git describe'.
40237         * build-aux/git-version-gen: If using the older two part flavor of
40238         git version then recreate the third part now present in the
40239         newer three part flavor of git describe.
40240
40241 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
40242
40243         * lib/fts.c (fts_build): Typo correction to comment.
40244
40245 2008-02-17  Bruno Haible  <bruno@clisp.org>
40246
40247         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
40248         generating no-op conflicts.
40249
40250 2008-02-17  Bruno Haible  <bruno@clisp.org>
40251
40252         Speed up by 10%.
40253         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
40254         result_entries, rather than an index-based loop.
40255
40256 2008-02-17  Bruno Haible  <bruno@clisp.org>
40257
40258         Speed up by 25%.
40259         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
40260         'hashcode_cached'.
40261         (entry_create): New function.
40262         (entry_hashcode): Use the cached hashcode if possible.
40263         (read_changelog_file, try_split_merged_entry): Use entry_create.
40264
40265 2008-02-17  Bruno Haible  <bruno@clisp.org>
40266
40267         Speed up from O(n^2) to O(n) for long ChangeLog files.
40268         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
40269         (read_changelog_file): Change implementation of entries_reversed list
40270         to rbtreehash.
40271         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
40272
40273 2008-02-17  Bruno Haible  <bruno@clisp.org>
40274
40275         New option --split-merged-entry.
40276         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
40277         (find_paragraph_end, try_split_merged_entry): New functions.
40278         (long_options): Add option --split-merged-entry.
40279         (usage): Document option --split-merged-entry.
40280         (main): Implement option --split-merged-entry.
40281         Reported by Eric Blake.
40282
40283 2008-02-17  Bruno Haible  <bruno@clisp.org>
40284
40285         * lib/git-merge-changelog.c: Include c-strstr.h.
40286         (main): Support the "git pull --rebase" situation.
40287         * modules/git-merge-changelog (Depends-on): Add c-strstr.
40288         Reported by Eric Blake.
40289
40290 2008-02-16  Eric Blake  <ebb9@byu.net>
40291
40292         Avoid doubling \ in common case of "c-maybe" quoting style.
40293         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
40294         eliding outer quotes.
40295         * lib/quotearg.h: Document this.
40296         * tests/test-quotearg.c (result_strings, inputs, results_g)
40297         (flag_results, locale_results): Test it by adding a new string to
40298         each test group.
40299         (compare_strings): Test new string.
40300
40301 2008-02-13  Eric Blake  <ebb9@byu.net>
40302
40303         Avoid trigraph quoting in default output.
40304         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
40305         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
40306         unless explicitly requested.
40307         * tests/test-quotearg.c (flag_results, main): Add additional tests.
40308
40309 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
40310
40311         Don't rely on signed integer overflowing to negative value.
40312         * lib/getugroups.c (getugroups): Include <limits.h>.
40313         Instead, compare against INT_MAX, and increment only if the test passes.
40314
40315 2008-02-13  Jim Meyering  <meyering@redhat.com>
40316         and Eric Blake  <ebb9@byu.net>
40317
40318         Avoid shadowing warning and compile errors on Linux.
40319         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
40320         forwarding macros on Linux.
40321         (dcgettext): Define a stub, for Linux.
40322         (results_g, main): Avoid warnings.
40323
40324 2008-02-12  Eric Blake  <ebb9@byu.net>
40325
40326         Silence warning in last patch.
40327         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
40328
40329         Quotearg part 4: add tests, fix c-maybe colon quoting.
40330         * lib/quotearg.h: Improve documentation.
40331         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
40332         escapes when adding outer quotes.  When quoting trigraphs, use
40333         valid C notation.  When quoting NUL, omit extra characters if next
40334         character is not digit.  Alter prototype.
40335         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
40336         callers.
40337         * modules/quotearg-tests: New module.
40338         * tests/test-quotearg.c: New test.
40339
40340 2008-02-07  Eric Blake  <ebb9@byu.net>
40341
40342         Quotearg part 3: add flag to control outer quote elision.
40343         * lib/quotearg.h (c_maybe_quoting_style): New style.
40344         (enum quoting_flags): Better documentation of flags.
40345         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
40346         c-maybe style.
40347         (quotearg_buffer_restyled): Handle new flag to elide outer
40348         quotes.
40349
40350         Quotearg part 2: add flag that can control NUL elision.
40351         * lib/quotearg.h (set_quoting_flags): New prototype.
40352         * lib/quotearg.c (struct quoting_options): Add flag field.
40353         (set_quoting_flags): New function.
40354         (quotearg_buffer_restyled): Add flags parameter.
40355         (quotearg_alloc_mem): Set the flag if length cannot be returned.
40356         (quotearg_n_options): Set the flag, since length cannot be
40357         returned.
40358         (quoting_options_from_style): Default flags correctly.
40359
40360         Quotearg part 1: more wrappers, restore quotearg_char state.
40361         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
40362         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
40363         (quotearg_colon_mem): New wrappers.
40364         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
40365         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
40366         functions.
40367         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
40368         (quotearg_colon_mem): New functions.
40369
40370 2008-02-11  Bruno Haible  <bruno@clisp.org>
40371
40372         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
40373         library in the current directory: it does not work with parallel make.
40374         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40375
40376 2008-02-11  Bruno Haible  <bruno@clisp.org>
40377
40378         * .gitattributes: New file.
40379
40380 2008-02-11  Jim Meyering  <meyering@redhat.com>
40381
40382         useless-if-before-free: Fix reversed exit values.
40383         * build-aux/useless-if-before-free: Use correct values
40384         for EXIT_MATCH and EXIT_NO_MATCH.
40385
40386         * build-aux/useless-if-before-free: Close stdout carefully.
40387
40388 2008-02-10  Bruno Haible  <bruno@clisp.org>
40389
40390         New module 'git-merge-changelog'.
40391         * modules/git-merge-changelog: New file.
40392         * lib/git-merge-changelog.c: New file.
40393
40394 2008-02-10  Jim Meyering  <meyering@redhat.com>
40395
40396         useless-if-before-free: New option: --list (-l).
40397
40398         useless-if-before-free: Don't exit immediately upon open failure.
40399         * build-aux/useless-if-before-free: Exit 2 for errors.
40400         Upon failure to open a file, don't exit immediately.
40401         Rather, just warn and continue with any remaining files.
40402
40403 2008-02-10  Bruno Haible  <bruno@clisp.org>
40404
40405         New abstract list operation 'node_set_value'.
40406         * lib/gl_list.h (gl_list_node_set_value): New function.
40407         (struct gl_list_implementation): New field node_set_value.
40408         * lib/gl_list.c (gl_list_node_set_value): New function.
40409         * lib/gl_array_list.c (gl_array_node_set_value): New function.
40410         (gl_array_list_implementation): Update.
40411         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
40412         (gl_carray_list_implementation): Update.
40413         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
40414         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40415         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40416         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
40417         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40418         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40419         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40420         Update.
40421         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40422         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
40423         (gl_sublist_list_implementation): Update.
40424
40425 2008-02-10  Bruno Haible  <bruno@clisp.org>
40426
40427         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
40428         Needed when ELEMENT is #defined to 'some_type *'.
40429
40430 2008-02-10  Jim Meyering  <meyering@redhat.com>
40431
40432         New script and module: useless-if-before-free
40433         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
40434         * build-aux/useless-if-before-free: New file.
40435         * modules/useless-if-before-free: New file.
40436
40437         * build-aux/gitlog-to-changelog: Use committer date, not author date.
40438
40439         xstrtol_error: Fix typo.
40440         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
40441         s/exit_failure/exit_status/.
40442
40443 2008-02-09  Jim Meyering  <meyering@redhat.com>
40444
40445         New script and module: gitlog-to-changelog
40446         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
40447         * modules/gitlog-to-changelog: New file.
40448         * build-aux/gitlog-to-changelog: New file.
40449
40450 2008-02-08  Jim Meyering  <meyering@redhat.com>
40451
40452         Avoid two "parameter unused" warnings.
40453         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
40454         Mark "st" as used.
40455
40456         Use "git COMMAND", not "git-COMMAND".
40457         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
40458         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
40459         * build-aux/git-version-gen: Use "git status", not "git-status".
40460
40461 2008-02-07  Bruno Haible  <bruno@clisp.org>
40462
40463         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
40464         Avoids a crash on Windows Vista.
40465         Reported by Adam Strzelecki <ono@java.pl> via
40466         Simon Josefsson <simon@josefsson.org>.
40467
40468 2008-02-06  Bruno Haible  <bruno@clisp.org>
40469
40470         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
40471         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
40472         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
40473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
40474         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40475         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40476         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
40477         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
40478         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40479         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40480         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40481         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40482         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40483         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40484         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40485         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
40486         left-adjust flag.
40487         * tests/test-snprintf-posix.h (test_function): Likewise.
40488         * tests/test-sprintf-posix.h (test_function): Likewise.
40489         * tests/test-vasprintf-posix.c (test_function): Likewise.
40490         * doc/posix-functions/fprintf.texi: Update.
40491         * doc/posix-functions/printf.texi: Update.
40492         * doc/posix-functions/snprintf.texi: Update.
40493         * doc/posix-functions/sprintf.texi: Update.
40494         * doc/posix-functions/vfprintf.texi: Update.
40495         * doc/posix-functions/vprintf.texi: Update.
40496         * doc/posix-functions/vsnprintf.texi: Update.
40497         * doc/posix-functions/vsprintf.texi: Update.
40498         Reported by Peter Fales <psfales@alcatel-lucent.com>.
40499
40500 2008-02-06  Bruno Haible  <bruno@clisp.org>
40501
40502         Fix bug introduced on 2008-01-26.
40503         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
40504
40505 2008-02-06  Bruno Haible  <bruno@clisp.org>
40506
40507         Fix bug introduced on 2007-06-10.
40508         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
40509         !NEED_PRINTF_FLAG_ZERO.
40510
40511 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
40512
40513         getloadavg: use libperfstat on AIX5
40514         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
40515
40516 2008-02-03  Bruno Haible  <bruno@clisp.org>
40517
40518         * lib/diffseq.h: Add comments about required #includes.
40519         Reported by Michael Biggs <gnulib@doubleplum.net>.
40520
40521 2008-02-01  Bruno Haible  <bruno@clisp.org>
40522
40523         * users.txt: Add gnuit.
40524
40525 2008-01-31  Bruno Haible  <bruno@clisp.org>
40526
40527         * lib/md4.c (set_uint32): Mark as inline.
40528         * lib/md5.c (set_uint32): Likewise.
40529         * lib/sha1.c (set_uint32): Likewise.
40530         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
40531         * m4/md5.m4 (gl_MD5): Likewise.
40532         * m4/sha1.m4 (gl_SHA1): Likewise.
40533
40534 2008-01-31  Jim Meyering  <meyering@redhat.com>
40535
40536         Use "sizeof VAR", rather than a literal "4".
40537         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
40538         * lib/md4.c (md4_read_ctx): Likewise.
40539         * lib/sha1.c (sha1_read_ctx): Likewise.
40540
40541 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40542
40543         * tests/test-sha1.c: New file, based on test-md5.c.
40544
40545         * modules/crypto/sha1-tests: New file.
40546
40547 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40548
40549         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
40550
40551 2008-01-31  Jim Meyering  <meyering@redhat.com>
40552
40553         Prefer "sizeof v" over the equivalent "4".
40554         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
40555         * lib/md5.c (set_uint32): Likewise.
40556         * lib/sha1.c (set_uint32): Likewise.
40557
40558 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40559
40560         * lib/sha1.c (set_uint32): Mark function as static.
40561
40562 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40563
40564         md2: clarify comments to say that alignment is not required.
40565         * lib/md2.h: Remove warning about alignment in comment.
40566         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
40567         never been required.
40568
40569 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40570
40571         md4: adapt alignment constraint fix from sha1.
40572         * lib/md4.c (set_uint32): New function, from sha1.c
40573         (md4_read_ctx): Use it.
40574         (md4_finish_ctx): Doc fix.
40575         * lib/md4.h: Doc fix.
40576
40577 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40578
40579         md5: adapt alignment constraint fix from sha1.
40580         * lib/md5.c (set_uint32): New function, from sha1.c
40581         (md5_read_ctx): Use it.
40582         (md5_finish_ctx): Doc fix.
40583         * lib/md5.h: Doc fix.
40584
40585 2008-01-30  Peter Palfrader  <weasel@debian.org>
40586
40587         sha1: remove the result buffer alignment constraint
40588         * lib/sha1.c (set_uint32): New function.
40589         (sha1_read_ctx): Rewrite to remove the result buffer alignment
40590         constraint.
40591         (sha1_finish_ctx): Remove comment warning about alignment constraint.
40592         * lib/sha1.h: Likewise.
40593
40594 2008-01-30  Andreas Schwab  <schwab@suse.de>
40595             Bruno Haible  <bruno@clisp.org>
40596
40597         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
40598         correct definition of LDBL_MIN_EXP.
40599
40600 2008-01-30  Karl Berry  <karl@gnu.org>
40601
40602         * config/srclist-update: try to preserve x bit on updates.
40603         * config/srclistvars.sh: update for karl.
40604
40605 2008-01-29  Jim Meyering  <meyering@redhat.com>
40606
40607         vasnprintf.c: Avoid warning about unused label
40608         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
40609         "overflow" label definition and associated code with the
40610         same cpp condition that guards the sole use of that label.
40611
40612 2008-01-26  Bruno Haible  <bruno@clisp.org>
40613
40614         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
40615         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
40616         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
40617         * lib/isnanl-nolibm.h (isnanl): Likewise.
40618         Reported by Paul Eggert <eggert@cs.ucla.edu>.
40619
40620 2008-01-26  Bruno Haible  <bruno@clisp.org>
40621
40622         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
40623         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
40624
40625 2008-01-26  Bruno Haible  <bruno@clisp.org>
40626
40627         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
40628         GCC >= 4.0 built-in.
40629         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
40630
40631 2008-01-26  Bruno Haible  <bruno@clisp.org>
40632
40633         Rename isnan, applicable to 'double' only, to isnand.
40634         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
40635         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
40636         (configure.ac): Update.
40637         (Include): Replace "isnan.h" with "isnand.h".
40638         * m4/isnand.m4: Renamed from m4/isnan.m4.
40639         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
40640         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
40641         instead of isnan.c.
40642         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
40643         instead of HAVE_ISNAN_IN_LIBC.
40644         (isnand): Renamed from isnan.
40645         * lib/isnand.c: New file.
40646         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
40647         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
40648         (Makefile.am): Update.
40649         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
40650         Include isnand.h instead of isnan.h.
40651         (main): Test isnand instead of isnan.
40652         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
40653         isnan-nolibm.
40654         * modules/frexp (Depends-on): Likewise.
40655         * modules/frexp-tests (Depends-on): Likewise.
40656         * modules/frexp-nolibm (Depends-on): Likewise.
40657         * modules/frexp-nolibm-tests (Depends-on): Likewise.
40658         * modules/isfinite (Depends-on): Likewise.
40659         * modules/round-tests (Depends-on): Likewise.
40660         * modules/signbit (Depends-on): Likewise.
40661         * modules/signbit-tests (Depends-on): Likewise.
40662         * modules/snprintf-posix (Depends-on): Likewise.
40663         * modules/sprintf-posix (Depends-on): Likewise.
40664         * modules/trunc-tests (Depends-on): Likewise.
40665         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40666         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40667         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40668         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40669         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40670         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40671         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40672         * modules/vasnprintf-posix (Depends-on): Likewise.
40673         * modules/vasprintf-posix (Depends-on): Likewise.
40674         * modules/vfprintf-posix (Depends-on): Likewise.
40675         * modules/vsnprintf-posix (Depends-on): Likewise.
40676         * modules/vsprintf-posix (Depends-on): Likewise.
40677         * lib/frexp.c: Include isnand.h instead of isnan.h.
40678         (ISNAN): Set to isnand instead of isnan.
40679         * lib/isfinite.c: Include isnand.h instead of isnan.h.
40680         (gl_isfinited): Use isnand instead of isnan.
40681         * lib/signbitd.c: Include isnand.h instead of isnan.h.
40682         (gl_signbitd): Use isnand instead of isnan.
40683         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
40684         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
40685         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
40686         (main): Use isnand instead of isnan.
40687         * tests/test-round1.c: Include isnand.h.
40688         (main): Use isnand instead of isnan.
40689         * tests/test-round2.c: Include isnand.h instead of isnan.h.
40690         (ISNAN): Set to isnand instead of isnan.
40691         * tests/test-trunc1.c: Include isnand.h.
40692         (main): Use isnand instead of isnan.
40693         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
40694         (equal): Use isnand instead of isnan.
40695         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
40696         isnand-nolibm.
40697         * NEWS: Mention the change.
40698
40699 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
40700             Bruno Haible  <bruno@clisp.org>
40701
40702         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
40703         the GCC builtins for signbits are present and set
40704         REPLACE_SIGNBIT_USING_GCC if so.
40705         * lib/math.in.h (signbit): Define using GCC builtins if
40706         REPLACE_SIGNBIT_USING_GCC is set.
40707         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
40708         REPLACE_SIGNBIT_USING_GCC.
40709         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
40710
40711 2008-01-25  Jim Meyering  <meyering@redhat.com>
40712
40713         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
40714         * lib/poll.c: Include <config.h>, not "config.h".
40715         * tests/test-getaddrinfo.c: Likewise.
40716
40717 2008-01-25  Simon Josefsson  <simon@josefsson.org>
40718
40719         * modules/sockets-tests: New file.
40720
40721 2008-01-24  Simon Josefsson  <simon@josefsson.org>
40722
40723         * modules/sockets: New module, can be used to call WSA_Startup and
40724         WSA_Cleanup when needed.
40725
40726         * lib/sockets.h, lib/sockets.c: New files.
40727
40728         * m4/sockets.m4: New file.
40729
40730         * tests/test-sockets.c: New file.
40731
40732 2008-01-19  Bruno Haible  <bruno@clisp.org>
40733
40734         * doc/posix-headers: Renamed from doc/headers.
40735         * doc/posix-functions: Renamed from doc/functions.
40736         * doc/gnulib.texi: Update.
40737
40738 2008-01-19  Bruno Haible  <bruno@clisp.org>
40739
40740         * doc/glibc-functions/strcasestr.texi: Include contents of
40741         doc/functions/strcasestr.texi, fixing the list of platforms.
40742         * doc/functions/strcasestr.texi: Remove file.
40743
40744 2008-01-19  Bruno Haible  <bruno@clisp.org>
40745
40746         * doc/glibc-functions/memmem.texi: Include contents of
40747         doc/functions/memmem.texi.
40748         * doc/functions/memmem.texi: Remove file.
40749
40750 2008-01-18  Bruno Haible  <bruno@clisp.org>
40751
40752         * doc/glibc-functions/*.texi: New files.
40753         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
40754         to use the new files.
40755
40756 2008-01-17  Bruno Haible  <bruno@clisp.org>
40757
40758         * tests/test-gethostname.c (main): Fix printf statement.
40759
40760 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40761
40762         * modules/gethostname-tests: New file.
40763
40764         * tests/test-gethostname.c: New file.
40765
40766 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40767
40768         * lib/gethostname.c: Include string.h unconditionally, strncpy is
40769         used by the UNAME case.  Reported by Bruno Haible
40770         <bruno@clisp.org>.
40771
40772 2008-01-17  Eric Blake  <ebb9@byu.net>
40773
40774         Convert c-strcasestr to be more efficient.
40775         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
40776         (Depends-on): Add c-strcase, remove malloca, strnlen.
40777         * tests/test-c-strcasestr.c (main): Enhance test.
40778         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
40779
40780 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40781
40782         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
40783         Use it in creating po/Makevars.
40784
40785 2008-01-15  Simon Josefsson  <simon@josefsson.org>
40786
40787         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
40788         Applications that requires it should initialize libgcrypt
40789         manually.
40790
40791 2008-01-16  Simon Josefsson  <simon@josefsson.org>
40792
40793         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
40794
40795 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
40796
40797         Fix problem with getdate on mingw32 reported by Simon Josefsson
40798         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
40799         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
40800         tzname", when deciding whether to declare tzname.
40801         * lib/strftime.c (tzname): Likewise.
40802
40803 2008-01-15  Bruno Haible  <bruno@clisp.org>
40804
40805         Work around a MacOS X 10.5 bug in frexpl().
40806         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
40807         * doc/functions/frexpl.texi: Document the bug.
40808         Reported by Elias Pipping <pipping@gentoo.org>.
40809
40810 2008-01-14  Eric Blake  <ebb9@byu.net>
40811
40812         Touch up previous patch.
40813         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
40814         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
40815
40816         Convert strcasestr module to use Two-Way algorithm.
40817         * modules/strcasestr-simple: New module, based on the old
40818         strcasestr, but with Two-Way rather than KMP.
40819         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
40820         * lib/string.in.h (rpl_strcasestr): Declare.
40821         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
40822         performance.
40823         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
40824         * modules/string (Makefile.am): Support strcasestr.
40825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40826         * modules/strcasestr-tests (Depends-on): Check for alarm.
40827         * tests/test-strcasestr.c: Augment test.
40828         * lib/str-two-way.h: Clean up stray macro.
40829         * NEWS: Document new module.
40830         * MODULES.html.sh (string handling): Likewise.
40831         * doc/functions/strcasestr.texi: New file.
40832         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
40833         here, since it is not a POSIX function.
40834
40835 2008-01-14  Colin Watson  <cjwatson@debian.org>
40836             Bruno Haible  <bruno@clisp.org>
40837
40838         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
40839         works fine; if not, set REPLACE_STRSIGNAL.
40840         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
40841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40842         REPLACE_STRSIGNAL.
40843         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
40844         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
40845         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
40846
40847 2008-01-14  Bruno Haible  <bruno@clisp.org>
40848
40849         * modules/strsignal (Include): Change to <string.h>.
40850
40851 2008-01-14  Colin Watson  <cjwatson@debian.org>
40852
40853         * modules/argp (Notice): Add a notice recommending to change
40854         XGETTEXT_OPTIONS.
40855         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
40856
40857 2008-01-13  Colin Watson  <cjwatson@debian.org>
40858
40859         * modules/strsignal-tests: New file.
40860         * tests/test-strsignal.c: New file.
40861
40862         * lib/strsignal.c: New file, from glibc with modifications.
40863         * lib/siglist.h: New file, from glibc with modifications.
40864         * lib/string.in.h (strsignal): New declaration.
40865         * m4/strsignal.m4: New file.
40866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40867         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
40868         * modules/strsignal: New file.
40869         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
40870         HAVE_DECL_STRSIGNAL.
40871
40872 2008-01-13  Bruno Haible  <bruno@clisp.org>
40873
40874         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
40875         locale encoding is not ASCII. Needed for OpenBSD 4.0.
40876         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40877         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40878
40879 2008-01-13  Bruno Haible  <bruno@clisp.org>
40880
40881         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
40882         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
40883         * lib/argp.h (__attribute__): Likewise.
40884         * lib/c-stack.c (__attribute__): Likewise.
40885         * lib/error.h (__attribute__): Likewise.
40886         * lib/fts.c (__attribute__): Likewise.
40887         * lib/openat.h (__attribute__): Likewise.
40888         * lib/stdio.in.h (__attribute__): Likewise.
40889         * lib/string.in.h (__attribute__): Likewise.
40890         * lib/utimens.c (__attribute__): Likewise.
40891         * lib/vasnprintf.h (__attribute__): Likewise.
40892         * lib/xalloc.h (__attribute__): Likewise.
40893         * lib/xprintf.h (__attribute__): Likewise.
40894         * lib/xstrtol.h (__attribute__): Likewise.
40895         * lib/xvasprintf.h (__attribute__): Likewise.
40896
40897 2008-01-12  Bruno Haible  <bruno@clisp.org>
40898
40899         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
40900         * doc/glibc-headers/a.out.texi: New file.
40901         * doc/glibc-headers/aliases.texi: New file.
40902         * doc/glibc-headers/alloca.texi: New file.
40903         * doc/glibc-headers/ar.texi: New file.
40904         * doc/glibc-headers/argp.texi: New file.
40905         * doc/glibc-headers/argz.texi: New file.
40906         * doc/glibc-headers/byteswap.texi: New file.
40907         * doc/glibc-headers/crypt.texi: New file.
40908         * doc/glibc-headers/endian.texi: New file.
40909         * doc/glibc-headers/envz.texi: New file.
40910         * doc/glibc-headers/err.texi: New file.
40911         * doc/glibc-headers/error.texi: New file.
40912         * doc/glibc-headers/execinfo.texi: New file.
40913         * doc/glibc-headers/fpu_control.texi: New file.
40914         * doc/glibc-headers/fstab.texi: New file.
40915         * doc/glibc-headers/fts.texi: New file.
40916         * doc/glibc-headers/getopt.texi: New file.
40917         * doc/glibc-headers/ieee754.texi: New file.
40918         * doc/glibc-headers/ifaddrs.texi: New file.
40919         * doc/glibc-headers/libintl.texi: New file.
40920         * doc/glibc-headers/mcheck.texi: New file.
40921         * doc/glibc-headers/mntent.texi: New file.
40922         * doc/glibc-headers/obstack.texi: New file.
40923         * doc/glibc-headers/paths.texi: New file.
40924         * doc/glibc-headers/printf.texi: New file.
40925         * doc/glibc-headers/pty.texi: New file.
40926         * doc/glibc-headers/resolv.texi: New file.
40927         * doc/glibc-headers/shadow.texi: New file.
40928         * doc/glibc-headers/sysexits.texi: New file.
40929         * doc/glibc-headers/ttyent.texi: New file.
40930
40931 2008-01-12  Jim Meyering  <meyering@redhat.com>
40932
40933         announce-gen: emit Gnulib's git-based version string.
40934         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
40935         New option --gnulib-version=V, where V is expected to be
40936         the output of running git describe in the gnulib directory.
40937         (get_tool_versions): Request feedback on xdelta.  I suspect it's
40938         not useful, and plan to stop publishing an xdelta file with each
40939         coreutils release.
40940
40941         * build-aux/announce-gen: Also check for lzma-compressed files.
40942
40943 2008-01-11  Bruno Haible  <bruno@clisp.org>
40944
40945         * tests/test-memmem.c (main): Increase maximum allowed time.
40946         * tests/test-strstr.c (main): Likewise.
40947
40948 2008-01-11  Bruno Haible  <bruno@clisp.org>
40949
40950         * doc/functions/memmem.texi: Add more precisions about platforms.
40951         * doc/functions/strstr.texi: Likewise.
40952
40953 2008-01-10  Eric Blake  <ebb9@byu.net>
40954
40955         * m4/strstr.m4: Delete cruft from copy-n-paste.
40956         Reported by Bruno Haible.
40957
40958 2008-01-10  Bruno Haible  <bruno@clisp.org>
40959
40960         Make c-strstr rely on strstr.
40961         * lib/c-strstr.c: Don't include str-kmp.h.
40962         (c_strstr): Define in terms of strstr.
40963         * modules/c-strstr (Files): Remove lib/str-kmp.h.
40964         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
40965
40966 2008-01-10  Bruno Haible  <bruno@clisp.org>
40967
40968         * doc/gnulib.texi (String Functions in C Locale): New section.
40969         * doc/c-ctype.texi: New file.
40970         * doc/c-strcase.texi: New file.
40971         * doc/c-strcaseeq.texi: New file.
40972         * doc/c-strcasestr.texi: New file.
40973         * doc/c-strstr.texi: New file.
40974         * doc/c-strtod.texi: New file.
40975         * doc/c-strtold.texi: New file.
40976
40977 2008-01-10  Eric Blake  <ebb9@byu.net>
40978
40979         * lib/relocatable.h: Fix a comment.
40980
40981 2008-01-10  Eric Blake  <ebb9@byu.net>
40982
40983         Share two-way algorithm.
40984         * lib/str-two-way.h: New file, merged from...
40985         * lib/memmem.c: ...here...
40986         * lib/strstr.c: ...and here.
40987         * modules/memmem (Files): Use it.
40988         * modules/strstr (Files): Likewise.
40989
40990         Avoid quadratic strstr implementations.
40991         * lib/strstr.c: New file.
40992         * m4/strstr.m4: Likewise.
40993         * modules/strstr: Likewise.
40994         * modules/strstr-tests: Likewise.
40995         * tests/test-strstr.c: Likewise.
40996         * lib/string.in.h (rpl_strstr): Declare.
40997         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
40998         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
40999         * modules/string (Makefile.am): Likewise.
41000         * MODULES.html.sh (string handling): Mention new module.
41001         * doc/functions/strstr.texi (strstr): Document the bug.
41002
41003 2008-01-10  Bruno Haible  <bruno@clisp.org>
41004
41005         * lib/relocatable.h (relocate): State whether result is freshly
41006         allocated or not.
41007         * lib/relocatable.c (relocate): Return a freshly allocated string
41008         instead of a pointer to a privately held string.
41009         Reported by Sylvain Beucler <beuc@gnu.org>.
41010
41011 2008-01-10  Colin Watson  <cjwatson@debian.org>
41012
41013         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
41014         s/S_ISNLK/S_ISLNK/.
41015
41016 2008-01-09  Bruno Haible  <bruno@clisp.org>
41017
41018         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
41019         and other files.
41020         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
41021         if it's only a guess.
41022         * modules/memmem: Simplify by depending on memmem-simple.
41023
41024 2008-01-09  Bruno Haible  <bruno@clisp.org>
41025
41026         Work around OpenBSD 4.0 tdelete() bug.
41027         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
41028         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
41029         macros and don't redefine the enum values.
41030         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
41031         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
41032         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
41033
41034 2008-01-09  Bruno Haible  <bruno@clisp.org>
41035
41036         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
41037         (main): Don't perform the tests if setlocale did not install a UTF-8
41038         locale. Needed on OpenBSD 4.0.
41039         * modules/wcwidth-tests (Depends-on): Add localcharset.
41040
41041 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41042
41043         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
41044         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
41045         * NEWS: announce this.
41046         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
41047
41048 2008-01-09  Simon Josefsson  <simon@josefsson.org>
41049         and Eric Blake  <ebb9@byu.net>
41050
41051         Add memmem-simple module.
41052         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
41053         (gl_FUNC_MEMMEM): Separate performance from presence checks.
41054         * modules/memmem-simple: New file.
41055         * modules/memmem (Description): Tweak.
41056         * MODULES.html.sh (string handling): Mention new module.
41057         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
41058         addressed by memmem-simple.
41059         * NEWS: Document the difference.
41060
41061 2008-01-09  Eric Blake  <ebb9@byu.net>
41062
41063         Give gcc some memmem optimization hints.
41064         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
41065         (strcasestr): Declare as pure.
41066         * modules/memmem (Maintainer): Claim my implementation.
41067
41068 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41069
41070         Support AIX 6.1 and higher.
41071         * build-aux/config.libpath: Likewise.
41072         * build-aux/config.rpath: Likewise.
41073
41074 2008-01-08  Jim Meyering  <meyering@redhat.com>
41075             Bruno Haible  <bruno@clisp.org>
41076
41077         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
41078         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
41079         Reported by Peter Fales in
41080         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
41081
41082 2008-01-08  Bruno Haible  <bruno@clisp.org>
41083
41084         * modules/unictype/category-of (Depends-on): Add
41085         unictype/category-none.
41086         * modules/unictype/category-and-tests (Depends-on): Add
41087         unictype/category-{L,N,Lu,Nd}.
41088         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
41089         * modules/unictype/category-or-tests (Depends-on): Add
41090         unictype/category-{L,N}.
41091         * modules/unictype/category-name-tests (Depends-on): Add
41092         unictype/category-{Z,Nl}.
41093         Reported by Simon Josefsson.
41094
41095 2008-01-08  Bruno Haible  <bruno@clisp.org>
41096
41097         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
41098         convention better.
41099         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
41100         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
41101         Reported by Peter Miller <millerp@canb.auug.org.au>.
41102
41103 2008-01-08  Eric Blake  <ebb9@byu.net>
41104
41105         Rewrite memmem to guarantee linear complexity without malloc.
41106         * lib/memmem.c (memmem): Use Two-Way rather than
41107         Knuth-Morris-Pratt, to allow O(1) space usage.
41108         (critical_factorization, two_way_short_needle)
41109         (two_way_long_needle): New functions.
41110         (knuth_morris_pratt): Delete.
41111         * modules/memmem (Depends-on): No longer need malloca or stdbool.
41112         Add stdint.
41113         * tests/test-memmem.c (main): Add tests for periodic needle and
41114         sublinear performance.
41115         * doc/functions/memmem.texi (memmem): Document other deficiencies
41116         in cygwin and older glibc.
41117
41118 2008-01-08  Bruno Haible  <bruno@clisp.org>
41119
41120         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
41121         augmentation.
41122
41123 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
41124
41125         Add a configure time option: --disable-acl.
41126         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
41127         AC_ARG_ENABLE(acl).
41128
41129 2008-01-06  Simon Josefsson  <simon@josefsson.org>
41130
41131         * tests/test-localename.c: Don't include obsolete "setenv.h".
41132
41133         * modules/localename-tests (Depends-on): Need unsetenv.
41134
41135 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41136
41137         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
41138
41139 2008-01-06  Colin Watson  <cjwatson@debian.org>
41140
41141         * users.txt: Add man-db.
41142
41143 2008-01-07  Bruno Haible  <bruno@clisp.org>
41144
41145         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
41146         previous section name.
41147
41148 2008-01-07  Bruno Haible  <bruno@clisp.org>
41149
41150         * lib/progname.c (set_program_name): Don't strip off a leading
41151         "lt-" prefix outside a .libs directory.
41152         Suggested by Paul Eggert.
41153
41154 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
41155             Bruno Haible  <bruno@clisp.org>
41156
41157         Improve memory cleanup in 'relocatable' module.
41158         * lib/relocatable.h (compute_curr_prefix): Change return type to
41159         'char *'.
41160         * lib/relocatable.c (compute_curr_prefix): Change return type to
41161         'char *'. Free curr_installdir after use.
41162         (relocate): Free curr_prefix_better after use.
41163         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
41164
41165 2008-01-01  Bruno Haible  <bruno@clisp.org>
41166
41167         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
41168         failure on older glibc systems.
41169         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41170
41171 2008-01-05  Eric Blake  <ebb9@byu.net>
41172
41173         Avoid quadratic system memmem.
41174         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
41175         Reported by Ralf Wildenhues.
41176
41177         Fix memmem test for mingw.
41178         * modules/memmem-tests (configure.ac): Check for alarm.
41179         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
41180         it.
41181         * doc/functions/memmem.texi: New file.
41182         * doc/gnulib.texi (Function Substitutes): Add memmem.
41183         Reported by Bruno Haible.
41184
41185 2008-01-04  Bruno Haible  <bruno@clisp.org>
41186
41187         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
41188         Require gl_HEADER_STRINGS_H_DEFAULTS, not
41189         gl_HEADER_STRING_H_DEFAULTS.
41190
41191 2008-01-04  Eric Blake  <ebb9@byu.net>
41192
41193         Shorten duration of memmem test.
41194         * tests/test-memmem.c (main): Use alarm to declare failure if test
41195         is taking too long.
41196         Reported by Ralf Wildenhues.
41197
41198 2007-12-21  Simon Josefsson  <simon@josefsson.org>
41199
41200         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
41201         string, needed by strerror.
41202
41203 2008-01-03  Colin Watson  <cjwatson@debian.org>
41204             Bruno Haible  <bruno@clisp.org>
41205
41206         * doc/gnulib-tool.texi (Localization): New section.
41207
41208 2008-01-02  Bruno Haible  <bruno@clisp.org>
41209
41210         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
41211         variables to 'unsigned char *' type.
41212         Reported by Paul Eggert.
41213
41214 2008-01-02  Jim Meyering  <jim@meyering.net>
41215
41216         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
41217
41218 2007-12-31  Jim Meyering  <jim@meyering.net>
41219
41220         Avoid use of private FTS type name.
41221         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
41222
41223 2007-12-30  Karl Berry  <karl@gnu.org>
41224
41225         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
41226         work around defect in Texinfo and/or the standalone Info browser.
41227
41228 2007-12-30  Bruno Haible  <bruno@clisp.org>
41229
41230         Unify 5 copies of the KMP code.
41231         * lib/str-kmp.h: New file.
41232         * lib/c-strcasestr.c: Include str-kmp.h.
41233         (knuth_morris_pratt): Remove function.
41234         (c_strcasestr): Update.
41235         * lib/c-strstr.c: Include str-kmp.h.
41236         (knuth_morris_pratt): Remove function.
41237         (c_strcasestr): Update.
41238         * lib/mbscasestr.c: Include str-kmp.h.
41239         (knuth_morris_pratt_unibyte): Remove function.
41240         * lib/mbsstr.c: Include str-kmp.h.
41241         (knuth_morris_pratt_unibyte): Remove function.
41242         * lib/strcasestr.c: Include str-kmp.h.
41243         (knuth_morris_pratt): Remove function.
41244         (strcasestr): Update.
41245         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
41246         * modules/c-strstr (Files): Likewise.
41247         * modules/mbscasestr (Files): Likewise.
41248         * modules/mbsstr (Files): Likewise.
41249         * modules/strcasestr (Files): Likewise.
41250         Suggested by Paul Eggert.
41251
41252 2007-12-30  Bruno Haible  <bruno@clisp.org>
41253
41254         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
41255         defined.
41256
41257 2007-12-30  Bruno Haible  <bruno@clisp.org>
41258
41259         * lib/xmalloca.h: Include xalloc.h.
41260         (xnmalloca): New macro.
41261
41262 2007-12-30  Bruno Haible  <bruno@clisp.org>
41263
41264         * lib/malloca.h (nmalloca): New macro.
41265         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
41266         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
41267         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
41268         knuth_morris_pratt_multibyte): Likewise.
41269         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
41270         knuth_morris_pratt_multibyte): Likewise.
41271         * lib/memmem.c (knuth_morris_pratt): Likewise.
41272         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
41273
41274 2007-12-25  Bruno Haible  <bruno@clisp.org>
41275
41276         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
41277         * lib/glob.c: Don't include openat.h.
41278         (link_exists2_p): Add back the code that deals with the
41279         !GLOB_ALTDIRFUNC case.
41280         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
41281         let it do the filename concatenation.
41282         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
41283         * modules/glob (Depends-on): Remove openat.
41284
41285 2007-12-31  Bruno Haible  <bruno@clisp.org>
41286
41287         * modules/dirfd (License): Change to LGPLv2+.
41288         Approved by Jim Meyering.
41289
41290 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41291
41292         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
41293         when multiplying M by sizeof (size_t).
41294
41295 2007-12-10  Martin Lambers  <marlam@marlam.de>
41296
41297         Override getpagesize on mingw.
41298         * lib/getpagesize.c: New file.
41299         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
41300         * modules/getpagesize (Files): Add lib/getpagesize.c.
41301         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
41302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41303         REPLACE_GETPAGESIZE.
41304         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
41305
41306 2007-12-25  Bruno Haible  <bruno@clisp.org>
41307
41308         * modules/localcharset (Notice): New field.
41309         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
41310         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
41311
41312 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41313             Bruno Haible  <bruno@clisp.org>
41314
41315         Avoid using the syntax symbol() in formatted documentation.
41316         * MODULES.html.sh (func_module): When replacing symbol() with a
41317         hyperlink, remove the parentheses. Show an error if some remain.
41318         Recognize and render the '...' syntax.
41319         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
41320         Rework. Add paragraph about GCC's inlining.
41321         * doc/alloca.texi: Likewise.
41322         * doc/error.texi: Remove parentheses from symbol reference.
41323         * doc/gnulib-intro.texi: Likewise.
41324         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
41325         * modules/fnmatch (Description): Reword to say "the ... function".
41326         * modules/full-read (Description): Likewise.
41327         * modules/full-write (Description): Likewise.
41328         * modules/safe-read (Description): Likewise.
41329         * modules/safe-write (Description): Likewise.
41330         * modules/strchrnul (Description): Likewise.
41331         * modules/trim (Description): Likewise.
41332         * modules/error (Description): Remove parentheses from symbol
41333         references.
41334         * modules/verror (Description): Likewise.
41335         Reported by Karl Berry.
41336
41337 2007-12-25  Bruno Haible  <bruno@clisp.org>
41338
41339         Fixup after 2007-10-16 commit.
41340         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
41341
41342 2007-12-24  Bruno Haible  <bruno@clisp.org>
41343
41344         Make --enable-relocatable work with DESTDIR.
41345         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
41346         to compute installdir from destprog.
41347         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
41348         also set the RELOC_DESTDIR variable.
41349         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41350
41351 2007-12-24  Bruno Haible  <bruno@clisp.org>
41352
41353         Fix link error due to xalloc_die().
41354         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
41355         of xreadlink.
41356         * lib/relocwrapper.c: Update comments.
41357         * build-aux/install-reloc: Remove xreadlink.c from file list.
41358         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
41359         xreadlink.c.
41360         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41361
41362 2007-12-24  Bruno Haible  <bruno@clisp.org>
41363
41364         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
41365         * lib/setenv.h: Remove file.
41366         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
41367         lib/setenv.h.
41368         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
41369         (Depends-on): Add stdlib.
41370         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
41371         gl_FUNC_UNSETENV.
41372         (Include): Replace setenv.h with <stdlib.h>.
41373         * modules/unsetenv: New file.
41374         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
41375         * lib/unsetenv.c: Include <stdlib.h> first.
41376         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
41377         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
41378         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
41379         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
41380         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
41381         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41382         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
41383         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41384         * doc/functions/unsetenv.texi: Update.
41385         * modules/xsetenv (Depends-on): Add unsetenv.
41386         * modules/getdate (Depends-on): Likewise.
41387         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
41388         * lib/xsetenv.c: Don't include setenv.h.
41389         * lib/getdate.y: Likewise.
41390         * lib/relocwrapper.c: Likewise.
41391         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
41392         (Depends-on): Add stdlib.
41393         * NEWS: Mention the changes.
41394         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41395
41396 2007-12-23  Bruno Haible  <bruno@clisp.org>
41397
41398         * lib/memmem.c (memmem): Use lowercase variable names. Tab
41399         indentation.
41400
41401 2007-12-23  Bruno Haible  <bruno@clisp.org>
41402
41403         * lib/c-strcasestr.c: Add more comments.
41404         * lib/c-strstr.c: Likewise.
41405         * lib/mbscasestr.c: Likewise.
41406         * lib/mbsstr.c: Likewise.
41407         * lib/strcasestr.c: Likewise.
41408         * lib/memmem.c: Likewise.
41409
41410 2007-12-23  Bruno Haible  <bruno@clisp.org>
41411
41412         * tests/test-memmem.c: Include <string.h> first.
41413
41414 2007-12-22  Bruno Haible  <bruno@clisp.org>
41415
41416         * gnulib-tool (func_create_testdir): Change $auxdir while generating
41417         the contents of $testsbase.
41418         Reported by Ralf Wildenhues.
41419
41420 2007-12-22  Bruno Haible  <bruno@clisp.org>
41421
41422         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
41423         two variables local_ldadd_before, local_ldadd_last.
41424
41425 2007-12-20  Eric Blake  <ebb9@byu.net>
41426
41427         Work around circular library issue when cross-compiling.
41428         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
41429         that progname.o does not need to pull in rpl_memcmp.
41430
41431 2007-12-19  Eric Blake  <ebb9@byu.net>
41432
41433         Fix memmem to avoid O(n^2) worst-case complexity.
41434         * lib/memmem.c (knuth_morris_pratt): New function.
41435         (memmem): Use it if first few naive iterations fail.
41436         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
41437         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
41438         * modules/memchr (License): Likewise.
41439         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
41440         malloca.
41441         * tests/test-memmem.c: Rewrite, borrowing ideas from
41442         test-mbsstr1.c; the old version wouldn't even compile!
41443         * modules/memmem-tests: New file.
41444         * lib/string.in.h (rpl_memmem): Add declaration.
41445         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
41446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
41447         REPLACE_MEMMEM.
41448
41449 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41450
41451         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
41452         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
41453         before any system include files, and undef after them all.  This
41454         should fix a problem on VMS reported by John E. Malmberg in
41455         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
41456
41457 2007-12-17  Eric Blake  <ebb9@byu.net>
41458
41459         Revert addition of verify, for BSD/OS.
41460         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
41461         can't handle large files, for the sake of obsolete platforms.
41462         * modules/fseeko (Depends-on): Remove verify.
41463         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
41464         * doc/functions/ftello.texi (ftello): Likewise.
41465         * doc/functions/fgetpos.texi (fgetpos): Likewise.
41466         Reported by Larry Jones.
41467
41468 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
41469
41470         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
41471         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
41472
41473 2007-12-17  Jim Meyering  <meyering@redhat.com>
41474
41475         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
41476         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
41477         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
41478         * modules/getcwd (Depends-on): Add openat.
41479         Reported by Petr Salinger.
41480
41481 2007-12-17  Bruno Haible  <bruno@clisp.org>
41482
41483         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
41484         avoid a segmentation fault of the configure test on x86_64 systems.
41485
41486 2007-12-15  Jim Meyering  <meyering@redhat.com>
41487
41488         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
41489
41490 2007-12-13  Eric Blake  <ebb9@byu.net>
41491
41492         Another fseek test.
41493         * tests/test-fseek.c (main): Also test ungetc handling.
41494         * tests/test-fseeko.c (main): Likewise.
41495         * modules/fseeko (Depends-on): Add verify.
41496         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
41497         large.
41498         Reported by Larry Jones.
41499
41500         Fix fseeko on mingw.
41501         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
41502         seek.
41503
41504         Beef up fseek tests.
41505         * tests/test-fseek.c (main): Also test eof handling.
41506         * tests/test-fseeko.c (main): Likewise.
41507         Reported by Larry Jones.
41508
41509 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
41510
41511         Fix fseeko on BSD-based platforms.
41512         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
41513         successful seek.
41514
41515 2007-12-12  Eric Blake  <ebb9@byu.net>
41516
41517         Allow circular dependency of separate libtests.a
41518         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
41519         when use_libtests.
41520
41521 2007-12-11  Eric Blake  <ebb9@byu.net>
41522
41523         Fix bug with -0.0L in previous patch.
41524         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
41525         * tests/test-isnan.c (main): Also test on zeroes.
41526         * tests/test-isnanf.c (main): Likewise.
41527         * tests/test-isnanl.h (main): Likewise.
41528
41529         Detect pseudo-denormals on x86 even when cross-compiling.
41530         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
41531         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
41532         invalid bit patterns that happen to satisfy ==.
41533
41534         Avoid link failures with separate libtests.a.
41535         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
41536         last, to satisfy circular dependencies.
41537
41538 2007-12-11  Eric Blake  <ebb9@byu.net>
41539         and Bruno Haible  <bruno@clisp.org>
41540
41541         Fix OpenBSD 4.0 <float.h> handling of long double.
41542         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
41543         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
41544         * doc/headers/float.texi (float.h): Document OpenBSD bug.
41545
41546 2007-12-11  Jim Meyering  <meyering@redhat.com>
41547
41548         * users.txt: Add libvirt.
41549
41550         Support versions of autoconf prior to 2.59c.
41551         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
41552         if it is not already defined.
41553
41554 2007-12-09  Bruno Haible  <bruno@clisp.org>
41555
41556         Let 'gnulib-tool --import' collect sources needed for the tests in
41557         tests/ rather than in lib/.
41558         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
41559         argument. If true, add rules to generate libtests.a, and put libtests.a
41560         into $(LDADD). Consider source files in subdirectories and set
41561         uses_subdirs.
41562         (func_emit_initmacro_start, func_emit_initmacro_end,
41563         func_emit_initmacro_done): Pass all arguments explicitly.
41564         (func_import): Determine two module lists main_modules,
41565         testsrelated_modules. Determine use_libtests. Determine two variables
41566         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
41567         instead of just sed_transform_lib_file. Determine two variables
41568         main_files and testsrelated_files. Compute 'files' as the union of
41569         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
41570         func_add_or_update. In the generated gnulib-comp.m4, collect the
41571         object files for tests/ in different variables than those for lib/.
41572         Substitute LIBTESTS_LIBDEPS.
41573         (func_create_testdir): Combine the uses_subdirs results from
41574         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
41575
41576 2007-12-09  Bruno Haible  <bruno@clisp.org>
41577
41578         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
41579         the build-aux directory.
41580
41581 2007-12-09  Bruno Haible  <bruno@clisp.org>
41582
41583         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
41584         introduced on 2006-09-09.
41585
41586 2007-12-07  Jim Meyering  <meyering@redhat.com>
41587
41588         Let these macros work also with autoconf-2.59.
41589         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
41590         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
41591         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41592
41593 2007-12-06  Jim Meyering  <meyering@redhat.com>
41594
41595         Avoid a configure-time syntax error in gl_FUNC_ACL.
41596         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
41597         function in each branch, before testing the cache variable.
41598
41599 2007-12-04  Eric Blake  <ebb9@byu.net>
41600
41601         Make scripts executable.
41602         * build-aux/config.guess: Add execute permissions.
41603         * build-aux/config.sub: Likewise.
41604         * build-aux/gendocs.sh: Likewise.
41605
41606         Fix frexp on mingw.
41607         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
41608         cross-compiling.
41609         * doc/functions/frexp.texi (frexp): Document the bug.
41610
41611         Make cygwin fseeko check more reliable.
41612         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
41613         version numbers, rather than unrelated feature check.
41614         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
41615         * doc/functions/ftello.texi (ftello): Likewise.
41616         Reported by Bruno Haible.
41617
41618         * m4/strerror.m4: Bump version number.
41619
41620 2007-12-03  Bruno Haible  <bruno@clisp.org>
41621
41622         * doc/functions/mprotect.texi: Mention the mingw problem.
41623
41624 2007-12-03  Eric Blake  <ebb9@byu.net>
41625
41626         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
41627         REPLACE_STRERROR is initialized before this macro.
41628
41629 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41630
41631         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
41632         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
41633         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
41634         put -lsec in even for programs other than 'ls'.  This fixes a problem
41635         for gettext reported by Bruno Haible in
41636         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
41637         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
41638         Add support for Solaris 10.  This isn't efficient, but should get the
41639         job done for now.
41640
41641 2007-12-03  James Youngman  <jay@gnu.org>
41642
41643         * doc/regexprops-generic.texi: change "an close-group" to "a
41644         close-group" and "illegal" to "not allowed".
41645
41646 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41647
41648         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
41649         pr_byname.h. Needed for the rare case when the maintainer has done
41650         "make maintainer-clean" in the source directory and then attempts a
41651         build outside the source directory.
41652         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
41653         scripts_byname.h.
41654
41655 2007-12-02  Martin Lambers <marlam@marlam.de>
41656             Bruno Haible  <bruno@clisp.org>
41657
41658         * lib/getpagesize.h: Remove file.
41659         * lib/unistd.in.h: Include declaration of getpagesize here.
41660         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
41661         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
41662         HAVE_SYS_PARAM_H.
41663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
41664         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41665         * modules/getpagesize (Files): Remove lib/getpagesize.h.
41666         (Depends-on): Add unistd.
41667         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41668         (Include): Use <unistd.h> instead of getpagesize.h.
41669         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
41670         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41671         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
41672         gl_GETPAGESIZE invocation, already handled by module dependency.
41673         * lib/pagealign_alloc.c: Don't include getpagesize.h.
41674
41675 2007-12-02  Bruno Haible  <bruno@clisp.org>
41676
41677         * modules/strings-tests: New file.
41678         * tests/test-strings.c: New file.
41679
41680         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
41681         * lib/strings.in.h: New file.
41682         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
41683         * m4/strings_h.m4: New file.
41684         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
41685         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
41686         * modules/strings: New file.
41687         * modules/string (Makefile.am): Update.
41688         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
41689         Reported by Karl Berry.
41690
41691 2007-12-01  Eric Blake  <ebb9@byu.net>
41692
41693         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
41694         accomodate fix in cygwin 1.5.25.
41695
41696 2007-12-01  Jim Meyering  <meyering@redhat.com>
41697
41698         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
41699         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
41700         that would inhibit utf8-optimization of a regexp containing line-
41701         or buffer-anchors, e.g., `^', `$'.
41702
41703 2007-11-30  Bruno Haible  <bruno@clisp.org>
41704
41705         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
41706         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
41707         glthread_recursive_lock_init.
41708         * lib/lock.c (glthread_recursive_lock_init)
41709         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
41710         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41711
41712 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
41713
41714         New function qset_acl, like set_acl but with syscall semantics.
41715         * lib/acl.h (qset_acl): New decl.
41716         * lib/acl.c (qset_acl): New function.
41717         (set_acl): Use new function.  Use more-consistent diagnostics.
41718
41719 2007-11-28  Jim Meyering  <meyering@redhat.com>
41720
41721         * modules/physmem (License): Change from GPL to LGPLv2+.
41722
41723 2007-11-26  Bruno Haible  <bruno@clisp.org>
41724
41725         * lib/vasnprintf.c (decode_long_double): Don't abort if the
41726         'long double' type has excess precision.
41727         Reported by Jim Meyering in
41728         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
41729
41730 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41731
41732         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
41733         Sync from <http://gnu.org/licenses>.
41734         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
41735         with license text from same location.
41736         * doc/maintain.texi, doc/standards.texi:  Sync from
41737         <http://savannah.gnu.org/projects/gnustandards>.
41738
41739 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
41740         and Jim Meyering  <meyering@redhat.com>
41741
41742         Adjust getdate' grammar to accept a slightly more regular language.
41743         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
41744         Before, the former was rejected.
41745         * lib/getdate.y (digits_to_date_time): New function, factored
41746         out of ...
41747         (number): ...here.  Just call digits_to_date_time.
41748         (hybrid): New non-terminal to handle an <unsigned number,
41749         signed relative offset> sequence consistently.
41750
41751 2007-11-18  Jim Meyering  <meyering@redhat.com>
41752
41753         Pull my changes from coreutils:
41754         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
41755         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
41756         use of $gnulib_tool_option_extras, so that it's separated from the
41757         preceding argument.
41758
41759         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
41760         * build-aux/bootstrap (cp_mark_as_generated): Create any required
41761         parent destination directories before copying a file into place.
41762
41763 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41764
41765         bootstrap: work also with 4-argument variant of AC_INIT
41766         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
41767
41768 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41769
41770         Port test-getaddrinfo to Solaris.
41771         Problem reported by Bruno Haible in
41772         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
41773         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
41774         explanation of setting 'hints'.
41775         Don't reject an implementation merely because it returns EAI_SERVICE.
41776         (EAI_SERVICE): Define to 0 if not defined.
41777
41778 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
41779
41780         The license of gnu-make and posix-shell is now "GPLed build tool".
41781         * modules/gnu-make (License): Likewise.
41782         * modules/posix-shell (License): Likewise.
41783
41784         New module posix-shell, for determining a POSIX shell
41785         or perhaps something that is close enough to a POSIX shell.
41786         * m4/posix-shell.m4: New file.
41787         * modules/posix-shell: New file.
41788
41789         * MODULES.html.sh: Mention new module.
41790
41791         New module gnu-make, for determining whether we're using GNU Make.
41792         * m4/gnu-make.m4: New file.
41793         * modules/gnu-make: New file.
41794         * MODULES.html.sh: Mention new module.
41795
41796 2007-11-14  Jim Meyering  <meyering@redhat.com>
41797
41798         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
41799         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
41800         use this macro to create a function _definition_.
41801         Remove useless "#undef ARGMATCH_DIE".
41802
41803 2007-11-14  Bruno Haible  <bruno@clisp.org>
41804
41805         * lib/config.charset: Update for OpenBSD 4.1.
41806         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
41807
41808 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
41809
41810         Document 64-bit #if problems in stdint.texi.
41811         * doc/headers/stdint.texi (stdint.h): Mention problems with
41812         64-bit-#if, and how to work around them.
41813
41814         Don't insist on 'long long int' support in the preprocessor.  It
41815         breaks too many things.  For example, PRIdMAX still uses a 'long
41816         long int' format with the latest Sun compiler, even though
41817         HAVE_LONG_LONG_INT isn't defined due to that compiler's
41818         preprocessor problem.  This causes the latest coreutils to dump
41819         core on Solaris 10 sparc with the Sun C compiler.
41820         Instead, fix the 2007-10-16 problem in a different way, by evaluating
41821         the troublesome expressions at configure-time, not at #if-time.
41822         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
41823         preprocessor.
41824         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
41825         compile-time C checks, done at 'configure'-time.
41826         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
41827         * modules/inttypes (Makefile): Substitute the new symbols that
41828         gl_INTTYPES_H now generates.
41829         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
41830
41831 2007-11-12  Bruno Haible  <bruno@clisp.org>
41832
41833         Tests for Unicode character classification functions.
41834
41835         * modules/unictype/bidicategory-byname-tests: New file.
41836         * modules/unictype/bidicategory-name-tests: New file.
41837         * modules/unictype/bidicategory-of-tests: New file.
41838         * modules/unictype/bidicategory-test-tests: New file.
41839         * modules/unictype/block-list-tests: New file.
41840         * modules/unictype/block-of-tests: New file.
41841         * modules/unictype/block-test-tests: New file.
41842         * modules/unictype/category-C-tests: New file.
41843         * modules/unictype/category-Cc-tests: New file.
41844         * modules/unictype/category-Cf-tests: New file.
41845         * modules/unictype/category-Cn-tests: New file.
41846         * modules/unictype/category-Co-tests: New file.
41847         * modules/unictype/category-Cs-tests: New file.
41848         * modules/unictype/category-L-tests: New file.
41849         * modules/unictype/category-Ll-tests: New file.
41850         * modules/unictype/category-Lm-tests: New file.
41851         * modules/unictype/category-Lo-tests: New file.
41852         * modules/unictype/category-Lt-tests: New file.
41853         * modules/unictype/category-Lu-tests: New file.
41854         * modules/unictype/category-M-tests: New file.
41855         * modules/unictype/category-Mc-tests: New file.
41856         * modules/unictype/category-Me-tests: New file.
41857         * modules/unictype/category-Mn-tests: New file.
41858         * modules/unictype/category-N-tests: New file.
41859         * modules/unictype/category-Nd-tests: New file.
41860         * modules/unictype/category-Nl-tests: New file.
41861         * modules/unictype/category-No-tests: New file.
41862         * modules/unictype/category-P-tests: New file.
41863         * modules/unictype/category-Pc-tests: New file.
41864         * modules/unictype/category-Pd-tests: New file.
41865         * modules/unictype/category-Pe-tests: New file.
41866         * modules/unictype/category-Pf-tests: New file.
41867         * modules/unictype/category-Pi-tests: New file.
41868         * modules/unictype/category-Po-tests: New file.
41869         * modules/unictype/category-Ps-tests: New file.
41870         * modules/unictype/category-S-tests: New file.
41871         * modules/unictype/category-Sc-tests: New file.
41872         * modules/unictype/category-Sk-tests: New file.
41873         * modules/unictype/category-Sm-tests: New file.
41874         * modules/unictype/category-So-tests: New file.
41875         * modules/unictype/category-Z-tests: New file.
41876         * modules/unictype/category-Zl-tests: New file.
41877         * modules/unictype/category-Zp-tests: New file.
41878         * modules/unictype/category-Zs-tests: New file.
41879         * modules/unictype/category-and-not-tests: New file.
41880         * modules/unictype/category-and-tests: New file.
41881         * modules/unictype/category-byname-tests: New file.
41882         * modules/unictype/category-name-tests: New file.
41883         * modules/unictype/category-none-tests: New file.
41884         * modules/unictype/category-of-tests: New file.
41885         * modules/unictype/category-or-tests: New file.
41886         * modules/unictype/category-test-withtable-tests: New file.
41887         * modules/unictype/combining-class-tests: New file.
41888         * modules/unictype/ctype-alnum-tests: New file.
41889         * modules/unictype/ctype-alpha-tests: New file.
41890         * modules/unictype/ctype-blank-tests: New file.
41891         * modules/unictype/ctype-cntrl-tests: New file.
41892         * modules/unictype/ctype-digit-tests: New file.
41893         * modules/unictype/ctype-graph-tests: New file.
41894         * modules/unictype/ctype-lower-tests: New file.
41895         * modules/unictype/ctype-print-tests: New file.
41896         * modules/unictype/ctype-punct-tests: New file.
41897         * modules/unictype/ctype-space-tests: New file.
41898         * modules/unictype/ctype-upper-tests: New file.
41899         * modules/unictype/ctype-xdigit-tests: New file.
41900         * modules/unictype/decimal-digit-tests: New file.
41901         * modules/unictype/digit-tests: New file.
41902         * modules/unictype/mirror-tests: New file.
41903         * modules/unictype/numeric-tests: New file.
41904         * modules/unictype/property-alphabetic-tests: New file.
41905         * modules/unictype/property-ascii-hex-digit-tests: New file.
41906         * modules/unictype/property-bidi-arabic-digit-tests: New file.
41907         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
41908         * modules/unictype/property-bidi-block-separator-tests: New file.
41909         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
41910         * modules/unictype/property-bidi-common-separator-tests: New file.
41911         * modules/unictype/property-bidi-control-tests: New file.
41912         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
41913         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
41914         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
41915         * modules/unictype/property-bidi-european-digit-tests: New file.
41916         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
41917         * modules/unictype/property-bidi-left-to-right-tests: New file.
41918         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
41919         * modules/unictype/property-bidi-other-neutral-tests: New file.
41920         * modules/unictype/property-bidi-pdf-tests: New file.
41921         * modules/unictype/property-bidi-segment-separator-tests: New file.
41922         * modules/unictype/property-bidi-whitespace-tests: New file.
41923         * modules/unictype/property-byname-tests: New file.
41924         * modules/unictype/property-combining-tests: New file.
41925         * modules/unictype/property-composite-tests: New file.
41926         * modules/unictype/property-currency-symbol-tests: New file.
41927         * modules/unictype/property-dash-tests: New file.
41928         * modules/unictype/property-decimal-digit-tests: New file.
41929         * modules/unictype/property-default-ignorable-code-point-tests: New file.
41930         * modules/unictype/property-deprecated-tests: New file.
41931         * modules/unictype/property-diacritic-tests: New file.
41932         * modules/unictype/property-extender-tests: New file.
41933         * modules/unictype/property-format-control-tests: New file.
41934         * modules/unictype/property-grapheme-base-tests: New file.
41935         * modules/unictype/property-grapheme-extend-tests: New file.
41936         * modules/unictype/property-grapheme-link-tests: New file.
41937         * modules/unictype/property-hex-digit-tests: New file.
41938         * modules/unictype/property-hyphen-tests: New file.
41939         * modules/unictype/property-id-continue-tests: New file.
41940         * modules/unictype/property-id-start-tests: New file.
41941         * modules/unictype/property-ideographic-tests: New file.
41942         * modules/unictype/property-ids-binary-operator-tests: New file.
41943         * modules/unictype/property-ids-trinary-operator-tests: New file.
41944         * modules/unictype/property-ignorable-control-tests: New file.
41945         * modules/unictype/property-iso-control-tests: New file.
41946         * modules/unictype/property-join-control-tests: New file.
41947         * modules/unictype/property-left-of-pair-tests: New file.
41948         * modules/unictype/property-line-separator-tests: New file.
41949         * modules/unictype/property-logical-order-exception-tests: New file.
41950         * modules/unictype/property-lowercase-tests: New file.
41951         * modules/unictype/property-math-tests: New file.
41952         * modules/unictype/property-non-break-tests: New file.
41953         * modules/unictype/property-not-a-character-tests: New file.
41954         * modules/unictype/property-numeric-tests: New file.
41955         * modules/unictype/property-other-alphabetic-tests: New file.
41956         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
41957         * modules/unictype/property-other-grapheme-extend-tests: New file.
41958         * modules/unictype/property-other-id-continue-tests: New file.
41959         * modules/unictype/property-other-id-start-tests: New file.
41960         * modules/unictype/property-other-lowercase-tests: New file.
41961         * modules/unictype/property-other-math-tests: New file.
41962         * modules/unictype/property-other-uppercase-tests: New file.
41963         * modules/unictype/property-paired-punctuation-tests: New file.
41964         * modules/unictype/property-paragraph-separator-tests: New file.
41965         * modules/unictype/property-pattern-syntax-tests: New file.
41966         * modules/unictype/property-pattern-white-space-tests: New file.
41967         * modules/unictype/property-private-use-tests: New file.
41968         * modules/unictype/property-punctuation-tests: New file.
41969         * modules/unictype/property-quotation-mark-tests: New file.
41970         * modules/unictype/property-radical-tests: New file.
41971         * modules/unictype/property-sentence-terminal-tests: New file.
41972         * modules/unictype/property-soft-dotted-tests: New file.
41973         * modules/unictype/property-space-tests: New file.
41974         * modules/unictype/property-terminal-punctuation-tests: New file.
41975         * modules/unictype/property-test-tests: New file.
41976         * modules/unictype/property-titlecase-tests: New file.
41977         * modules/unictype/property-unassigned-code-value-tests: New file.
41978         * modules/unictype/property-unified-ideograph-tests: New file.
41979         * modules/unictype/property-uppercase-tests: New file.
41980         * modules/unictype/property-variation-selector-tests: New file.
41981         * modules/unictype/property-white-space-tests: New file.
41982         * modules/unictype/property-xid-continue-tests: New file.
41983         * modules/unictype/property-xid-start-tests: New file.
41984         * modules/unictype/property-zero-width-tests: New file.
41985         * modules/unictype/scripts-tests: New file.
41986         * modules/unictype/syntax-c-ident-tests: New file.
41987         * modules/unictype/syntax-c-whitespace-tests: New file.
41988         * modules/unictype/syntax-java-ident-tests: New file.
41989         * modules/unictype/syntax-java-whitespace-tests: New file.
41990         * tests/unictype/test-bidi_byname.c: New file.
41991         * tests/unictype/test-bidi_name.c: New file.
41992         * tests/unictype/test-bidi_of.c: New file.
41993         * tests/unictype/test-bidi_test.c: New file.
41994         * tests/unictype/test-block_list.c: New file.
41995         * tests/unictype/test-block_of.c: New file.
41996         * tests/unictype/test-block_test.c: New file.
41997         * tests/unictype/test-categ_and.c: New file.
41998         * tests/unictype/test-categ_and_not.c: New file.
41999         * tests/unictype/test-categ_byname.c: New file.
42000         * tests/unictype/test-categ_name.c: New file.
42001         * tests/unictype/test-categ_none.c: New file.
42002         * tests/unictype/test-categ_of.c: New file.
42003         * tests/unictype/test-categ_or.c: New file.
42004         * tests/unictype/test-categ_test_withtable.c: New file.
42005         * tests/unictype/test-combining.c: New file.
42006         * tests/unictype/test-decdigit.c: New file.
42007         * tests/unictype/test-digit.c: New file.
42008         * tests/unictype/test-mirror.c: New file.
42009         * tests/unictype/test-numeric.c: New file.
42010         * tests/unictype/test-pr_byname.c: New file.
42011         * tests/unictype/test-pr_test.c: New file.
42012         * tests/unictype/test-predicate-part1.h: New file.
42013         * tests/unictype/test-predicate-part2.h: New file.
42014         * tests/unictype/test-scripts.c: New file.
42015         * tests/unictype/test-sy_c_ident.c: New file.
42016         * tests/unictype/test-sy_java_ident.c: New file.
42017
42018         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
42019         for Unicode 5.0.0.
42020         * tests/unictype/test-categ_Cc.c: Likewise.
42021         * tests/unictype/test-categ_Cf.c: Likewise.
42022         * tests/unictype/test-categ_Cn.c: Likewise.
42023         * tests/unictype/test-categ_Co.c: Likewise.
42024         * tests/unictype/test-categ_Cs.c: Likewise.
42025         * tests/unictype/test-categ_L.c: Likewise.
42026         * tests/unictype/test-categ_Ll.c: Likewise.
42027         * tests/unictype/test-categ_Lm.c: Likewise.
42028         * tests/unictype/test-categ_Lo.c: Likewise.
42029         * tests/unictype/test-categ_Lt.c: Likewise.
42030         * tests/unictype/test-categ_Lu.c: Likewise.
42031         * tests/unictype/test-categ_M.c: Likewise.
42032         * tests/unictype/test-categ_Mc.c: Likewise.
42033         * tests/unictype/test-categ_Me.c: Likewise.
42034         * tests/unictype/test-categ_Mn.c: Likewise.
42035         * tests/unictype/test-categ_N.c: Likewise.
42036         * tests/unictype/test-categ_Nd.c: Likewise.
42037         * tests/unictype/test-categ_Nl.c: Likewise.
42038         * tests/unictype/test-categ_No.c: Likewise.
42039         * tests/unictype/test-categ_P.c: Likewise.
42040         * tests/unictype/test-categ_Pc.c: Likewise.
42041         * tests/unictype/test-categ_Pd.c: Likewise.
42042         * tests/unictype/test-categ_Pe.c: Likewise.
42043         * tests/unictype/test-categ_Pf.c: Likewise.
42044         * tests/unictype/test-categ_Pi.c: Likewise.
42045         * tests/unictype/test-categ_Po.c: Likewise.
42046         * tests/unictype/test-categ_Ps.c: Likewise.
42047         * tests/unictype/test-categ_S.c: Likewise.
42048         * tests/unictype/test-categ_Sc.c: Likewise.
42049         * tests/unictype/test-categ_Sk.c: Likewise.
42050         * tests/unictype/test-categ_Sm.c: Likewise.
42051         * tests/unictype/test-categ_So.c: Likewise.
42052         * tests/unictype/test-categ_Z.c: Likewise.
42053         * tests/unictype/test-categ_Zl.c: Likewise.
42054         * tests/unictype/test-categ_Zp.c: Likewise.
42055         * tests/unictype/test-categ_Zs.c: Likewise.
42056         * tests/unictype/test-ctype_alnum.c: Likewise.
42057         * tests/unictype/test-ctype_alpha.c: Likewise.
42058         * tests/unictype/test-ctype_blank.c: Likewise.
42059         * tests/unictype/test-ctype_cntrl.c: Likewise.
42060         * tests/unictype/test-ctype_digit.c: Likewise.
42061         * tests/unictype/test-ctype_graph.c: Likewise.
42062         * tests/unictype/test-ctype_lower.c: Likewise.
42063         * tests/unictype/test-ctype_print.c: Likewise.
42064         * tests/unictype/test-ctype_punct.c: Likewise.
42065         * tests/unictype/test-ctype_space.c: Likewise.
42066         * tests/unictype/test-ctype_upper.c: Likewise.
42067         * tests/unictype/test-ctype_xdigit.c: Likewise.
42068         * tests/unictype/test-decdigit.h: Likewise.
42069         * tests/unictype/test-digit.h: Likewise.
42070         * tests/unictype/test-numeric.h: Likewise.
42071         * tests/unictype/test-pr_alphabetic.c: Likewise.
42072         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
42073         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42074         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42075         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
42076         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42077         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
42078         * tests/unictype/test-pr_bidi_control.c: Likewise.
42079         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
42080         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
42081         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42082         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
42083         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42084         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42085         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42086         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42087         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
42088         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
42089         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
42090         * tests/unictype/test-pr_combining.c: Likewise.
42091         * tests/unictype/test-pr_composite.c: Likewise.
42092         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42093         * tests/unictype/test-pr_dash.c: Likewise.
42094         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42095         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
42096         * tests/unictype/test-pr_deprecated.c: Likewise.
42097         * tests/unictype/test-pr_diacritic.c: Likewise.
42098         * tests/unictype/test-pr_extender.c: Likewise.
42099         * tests/unictype/test-pr_format_control.c: Likewise.
42100         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42101         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42102         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42103         * tests/unictype/test-pr_hex_digit.c: Likewise.
42104         * tests/unictype/test-pr_hyphen.c: Likewise.
42105         * tests/unictype/test-pr_id_continue.c: Likewise.
42106         * tests/unictype/test-pr_id_start.c: Likewise.
42107         * tests/unictype/test-pr_ideographic.c: Likewise.
42108         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
42109         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
42110         * tests/unictype/test-pr_ignorable_control.c: Likewise.
42111         * tests/unictype/test-pr_iso_control.c: Likewise.
42112         * tests/unictype/test-pr_join_control.c: Likewise.
42113         * tests/unictype/test-pr_left_of_pair.c: Likewise.
42114         * tests/unictype/test-pr_line_separator.c: Likewise.
42115         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42116         * tests/unictype/test-pr_lowercase.c: Likewise.
42117         * tests/unictype/test-pr_math.c: Likewise.
42118         * tests/unictype/test-pr_non_break.c: Likewise.
42119         * tests/unictype/test-pr_not_a_character.c: Likewise.
42120         * tests/unictype/test-pr_numeric.c: Likewise.
42121         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42122         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
42123         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
42124         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42125         * tests/unictype/test-pr_other_id_start.c: Likewise.
42126         * tests/unictype/test-pr_other_lowercase.c: Likewise.
42127         * tests/unictype/test-pr_other_math.c: Likewise.
42128         * tests/unictype/test-pr_other_uppercase.c: Likewise.
42129         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
42130         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
42131         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
42132         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
42133         * tests/unictype/test-pr_private_use.c: Likewise.
42134         * tests/unictype/test-pr_punctuation.c: Likewise.
42135         * tests/unictype/test-pr_quotation_mark.c: Likewise.
42136         * tests/unictype/test-pr_radical.c: Likewise.
42137         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42138         * tests/unictype/test-pr_soft_dotted.c: Likewise.
42139         * tests/unictype/test-pr_space.c: Likewise.
42140         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42141         * tests/unictype/test-pr_titlecase.c: Likewise.
42142         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42143         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42144         * tests/unictype/test-pr_uppercase.c: Likewise.
42145         * tests/unictype/test-pr_variation_selector.c: Likewise.
42146         * tests/unictype/test-pr_white_space.c: Likewise.
42147         * tests/unictype/test-pr_xid_continue.c: Likewise.
42148         * tests/unictype/test-pr_xid_start.c: Likewise.
42149         * tests/unictype/test-pr_zero_width.c: Likewise.
42150         * tests/unictype/test-sy_c_whitespace.c: Likewise.
42151         * tests/unictype/test-sy_java_whitespace.c: Likewise.
42152
42153 2007-11-12  Bruno Haible  <bruno@clisp.org>
42154
42155         Unicode character classification functions.
42156         * lib/unictype.h: New file.
42157         * modules/unictype/base: New file.
42158         * modules/unictype/category-L: New file.
42159         * modules/unictype/category-Lu: New file.
42160         * modules/unictype/category-Ll: New file.
42161         * modules/unictype/category-Lt: New file.
42162         * modules/unictype/category-Lm: New file.
42163         * modules/unictype/category-Lo: New file.
42164         * modules/unictype/category-M: New file.
42165         * modules/unictype/category-Mn: New file.
42166         * modules/unictype/category-Mc: New file.
42167         * modules/unictype/category-Me: New file.
42168         * modules/unictype/category-N: New file.
42169         * modules/unictype/category-Nd: New file.
42170         * modules/unictype/category-Nl: New file.
42171         * modules/unictype/category-No: New file.
42172         * modules/unictype/category-P: New file.
42173         * modules/unictype/category-Pc: New file.
42174         * modules/unictype/category-Pd: New file.
42175         * modules/unictype/category-Ps: New file.
42176         * modules/unictype/category-Pe: New file.
42177         * modules/unictype/category-Pi: New file.
42178         * modules/unictype/category-Pf: New file.
42179         * modules/unictype/category-Po: New file.
42180         * modules/unictype/category-S: New file.
42181         * modules/unictype/category-Sm: New file.
42182         * modules/unictype/category-Sc: New file.
42183         * modules/unictype/category-Sk: New file.
42184         * modules/unictype/category-So: New file.
42185         * modules/unictype/category-Z: New file.
42186         * modules/unictype/category-Zs: New file.
42187         * modules/unictype/category-Zl: New file.
42188         * modules/unictype/category-Zp: New file.
42189         * modules/unictype/category-C: New file.
42190         * modules/unictype/category-Cc: New file.
42191         * modules/unictype/category-Cf: New file.
42192         * modules/unictype/category-Cs: New file.
42193         * modules/unictype/category-Co: New file.
42194         * modules/unictype/category-Cn: New file.
42195         * modules/unictype/category-or: New file.
42196         * modules/unictype/category-of: New file.
42197         * modules/unictype/category-test: New file.
42198         * modules/unictype/category-test-withtable: New file.
42199         * modules/unictype/category-byname: New file.
42200         * modules/unictype/category-none: New file.
42201         * modules/unictype/category-and: New file.
42202         * modules/unictype/category-and-not: New file.
42203         * modules/unictype/category-name: New file.
42204         * modules/unictype/combining-class: New file.
42205         * modules/unictype/category-all: New file.
42206         * modules/unictype/bidicategory-all: New file.
42207         * modules/unictype/bidicategory-byname: New file.
42208         * modules/unictype/bidicategory-name: New file.
42209         * modules/unictype/bidicategory-of: New file.
42210         * modules/unictype/bidicategory-test: New file.
42211         * modules/unictype/decimal-digit: New file.
42212         * modules/unictype/digit: New file.
42213         * modules/unictype/numeric: New file.
42214         * modules/unictype/mirror: New file.
42215         * modules/unictype/property-white-space: New file.
42216         * modules/unictype/property-alphabetic: New file.
42217         * modules/unictype/property-other-alphabetic: New file.
42218         * modules/unictype/property-not-a-character: New file.
42219         * modules/unictype/property-default-ignorable-code-point: New file.
42220         * modules/unictype/property-other-default-ignorable-code-point: New
42221         file.
42222         * modules/unictype/property-deprecated: New file.
42223         * modules/unictype/property-logical-order-exception: New file.
42224         * modules/unictype/property-variation-selector: New file.
42225         * modules/unictype/property-private-use: New file.
42226         * modules/unictype/property-unassigned-code-value: New file.
42227         * modules/unictype/property-uppercase: New file.
42228         * modules/unictype/property-other-uppercase: New file.
42229         * modules/unictype/property-lowercase: New file.
42230         * modules/unictype/property-other-lowercase: New file.
42231         * modules/unictype/property-titlecase: New file.
42232         * modules/unictype/property-soft-dotted: New file.
42233         * modules/unictype/property-id-start: New file.
42234         * modules/unictype/property-other-id-start: New file.
42235         * modules/unictype/property-id-continue: New file.
42236         * modules/unictype/property-other-id-continue: New file.
42237         * modules/unictype/property-xid-start: New file.
42238         * modules/unictype/property-xid-continue: New file.
42239         * modules/unictype/property-pattern-white-space: New file.
42240         * modules/unictype/property-pattern-syntax: New file.
42241         * modules/unictype/property-join-control: New file.
42242         * modules/unictype/property-grapheme-base: New file.
42243         * modules/unictype/property-grapheme-extend: New file.
42244         * modules/unictype/property-other-grapheme-extend: New file.
42245         * modules/unictype/property-grapheme-link: New file.
42246         * modules/unictype/property-bidi-control: New file.
42247         * modules/unictype/property-bidi-left-to-right: New file.
42248         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
42249         * modules/unictype/property-bidi-arabic-right-to-left: New file.
42250         * modules/unictype/property-bidi-european-digit: New file.
42251         * modules/unictype/property-bidi-eur-num-separator: New file.
42252         * modules/unictype/property-bidi-eur-num-terminator: New file.
42253         * modules/unictype/property-bidi-arabic-digit: New file.
42254         * modules/unictype/property-bidi-common-separator: New file.
42255         * modules/unictype/property-bidi-block-separator: New file.
42256         * modules/unictype/property-bidi-segment-separator: New file.
42257         * modules/unictype/property-bidi-whitespace: New file.
42258         * modules/unictype/property-bidi-non-spacing-mark: New file.
42259         * modules/unictype/property-bidi-boundary-neutral: New file.
42260         * modules/unictype/property-bidi-pdf: New file.
42261         * modules/unictype/property-bidi-embedding-or-override: New file.
42262         * modules/unictype/property-bidi-other-neutral: New file.
42263         * modules/unictype/property-hex-digit: New file.
42264         * modules/unictype/property-ascii-hex-digit: New file.
42265         * modules/unictype/property-ideographic: New file.
42266         * modules/unictype/property-unified-ideograph: New file.
42267         * modules/unictype/property-radical: New file.
42268         * modules/unictype/property-ids-binary-operator: New file.
42269         * modules/unictype/property-ids-trinary-operator: New file.
42270         * modules/unictype/property-zero-width: New file.
42271         * modules/unictype/property-space: New file.
42272         * modules/unictype/property-non-break: New file.
42273         * modules/unictype/property-iso-control: New file.
42274         * modules/unictype/property-format-control: New file.
42275         * modules/unictype/property-dash: New file.
42276         * modules/unictype/property-hyphen: New file.
42277         * modules/unictype/property-punctuation: New file.
42278         * modules/unictype/property-line-separator: New file.
42279         * modules/unictype/property-paragraph-separator: New file.
42280         * modules/unictype/property-quotation-mark: New file.
42281         * modules/unictype/property-sentence-terminal: New file.
42282         * modules/unictype/property-terminal-punctuation: New file.
42283         * modules/unictype/property-currency-symbol: New file.
42284         * modules/unictype/property-math: New file.
42285         * modules/unictype/property-other-math: New file.
42286         * modules/unictype/property-paired-punctuation: New file.
42287         * modules/unictype/property-left-of-pair: New file.
42288         * modules/unictype/property-combining: New file.
42289         * modules/unictype/property-composite: New file.
42290         * modules/unictype/property-decimal-digit: New file.
42291         * modules/unictype/property-numeric: New file.
42292         * modules/unictype/property-diacritic: New file.
42293         * modules/unictype/property-extender: New file.
42294         * modules/unictype/property-ignorable-control: New file.
42295         * modules/unictype/property-test: New file.
42296         * modules/unictype/property-byname: New file.
42297         * modules/unictype/property-all: New file.
42298         * modules/unictype/scripts: New file.
42299         * modules/unictype/scripts-all: New file.
42300         * modules/unictype/block-of: New file.
42301         * modules/unictype/block-test: New file.
42302         * modules/unictype/block-list: New file.
42303         * modules/unictype/block-all: New file.
42304         * modules/unictype/syntax-c-whitespace: New file.
42305         * modules/unictype/syntax-java-whitespace: New file.
42306         * modules/unictype/syntax-c-ident: New file.
42307         * modules/unictype/syntax-java-ident: New file.
42308         * modules/unictype/ctype-alnum: New file.
42309         * modules/unictype/ctype-alpha: New file.
42310         * modules/unictype/ctype-cntrl: New file.
42311         * modules/unictype/ctype-digit: New file.
42312         * modules/unictype/ctype-graph: New file.
42313         * modules/unictype/ctype-lower: New file.
42314         * modules/unictype/ctype-print: New file.
42315         * modules/unictype/ctype-punct: New file.
42316         * modules/unictype/ctype-space: New file.
42317         * modules/unictype/ctype-upper: New file.
42318         * modules/unictype/ctype-xdigit: New file.
42319         * modules/unictype/ctype-blank: New file.
42320         * lib/unictype/bidi_byname.c: New file.
42321         * lib/unictype/bidi_name.c: New file.
42322         * lib/unictype/bidi_of.c: New file.
42323         * lib/unictype/bidi_test.c: New file.
42324         * lib/unictype/bitmap.h: New file.
42325         * lib/unictype/block_test.c: New file.
42326         * lib/unictype/blocks.c: New file.
42327         * lib/unictype/categ_C.c: New file.
42328         * lib/unictype/categ_Cc.c: New file.
42329         * lib/unictype/categ_Cf.c: New file.
42330         * lib/unictype/categ_Cn.c: New file.
42331         * lib/unictype/categ_Co.c: New file.
42332         * lib/unictype/categ_Cs.c: New file.
42333         * lib/unictype/categ_L.c: New file.
42334         * lib/unictype/categ_Ll.c: New file.
42335         * lib/unictype/categ_Lm.c: New file.
42336         * lib/unictype/categ_Lo.c: New file.
42337         * lib/unictype/categ_Lt.c: New file.
42338         * lib/unictype/categ_Lu.c: New file.
42339         * lib/unictype/categ_M.c: New file.
42340         * lib/unictype/categ_Mc.c: New file.
42341         * lib/unictype/categ_Me.c: New file.
42342         * lib/unictype/categ_Mn.c: New file.
42343         * lib/unictype/categ_N.c: New file.
42344         * lib/unictype/categ_Nd.c: New file.
42345         * lib/unictype/categ_Nl.c: New file.
42346         * lib/unictype/categ_No.c: New file.
42347         * lib/unictype/categ_P.c: New file.
42348         * lib/unictype/categ_Pc.c: New file.
42349         * lib/unictype/categ_Pd.c: New file.
42350         * lib/unictype/categ_Pe.c: New file.
42351         * lib/unictype/categ_Pf.c: New file.
42352         * lib/unictype/categ_Pi.c: New file.
42353         * lib/unictype/categ_Po.c: New file.
42354         * lib/unictype/categ_Ps.c: New file.
42355         * lib/unictype/categ_S.c: New file.
42356         * lib/unictype/categ_Sc.c: New file.
42357         * lib/unictype/categ_Sk.c: New file.
42358         * lib/unictype/categ_Sm.c: New file.
42359         * lib/unictype/categ_So.c: New file.
42360         * lib/unictype/categ_Z.c: New file.
42361         * lib/unictype/categ_Zl.c: New file.
42362         * lib/unictype/categ_Zp.c: New file.
42363         * lib/unictype/categ_Zs.c: New file.
42364         * lib/unictype/categ_and.c: New file.
42365         * lib/unictype/categ_and_not.c: New file.
42366         * lib/unictype/categ_byname.c: New file.
42367         * lib/unictype/categ_name.c: New file.
42368         * lib/unictype/categ_none.c: New file.
42369         * lib/unictype/categ_of.c: New file.
42370         * lib/unictype/categ_or.c: New file.
42371         * lib/unictype/categ_test.c: New file.
42372         * lib/unictype/combining.c: New file.
42373         * lib/unictype/ctype_alnum.c: New file.
42374         * lib/unictype/ctype_alpha.c: New file.
42375         * lib/unictype/ctype_blank.c: New file.
42376         * lib/unictype/ctype_cntrl.c: New file.
42377         * lib/unictype/ctype_digit.c: New file.
42378         * lib/unictype/ctype_graph.c: New file.
42379         * lib/unictype/ctype_lower.c: New file.
42380         * lib/unictype/ctype_print.c: New file.
42381         * lib/unictype/ctype_punct.c: New file.
42382         * lib/unictype/ctype_space.c: New file.
42383         * lib/unictype/ctype_upper.c: New file.
42384         * lib/unictype/ctype_xdigit.c: New file.
42385         * lib/unictype/decdigit.c: New file.
42386         * lib/unictype/digit.c: New file.
42387         * lib/unictype/identsyntaxmap.h: New file.
42388         * lib/unictype/mirror.c: New file.
42389         * lib/unictype/numeric.c: New file.
42390         * lib/unictype/pr_alphabetic.c: New file.
42391         * lib/unictype/pr_ascii_hex_digit.c: New file.
42392         * lib/unictype/pr_bidi_arabic_digit.c: New file.
42393         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
42394         * lib/unictype/pr_bidi_block_separator.c: New file.
42395         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
42396         * lib/unictype/pr_bidi_common_separator.c: New file.
42397         * lib/unictype/pr_bidi_control.c: New file.
42398         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
42399         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
42400         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
42401         * lib/unictype/pr_bidi_european_digit.c: New file.
42402         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
42403         * lib/unictype/pr_bidi_left_to_right.c: New file.
42404         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
42405         * lib/unictype/pr_bidi_other_neutral.c: New file.
42406         * lib/unictype/pr_bidi_pdf.c: New file.
42407         * lib/unictype/pr_bidi_segment_separator.c: New file.
42408         * lib/unictype/pr_bidi_whitespace.c: New file.
42409         * lib/unictype/pr_byname.c: New file.
42410         * lib/unictype/pr_byname.gperf: New file.
42411         * lib/unictype/pr_combining.c: New file.
42412         * lib/unictype/pr_composite.c: New file.
42413         * lib/unictype/pr_currency_symbol.c: New file.
42414         * lib/unictype/pr_dash.c: New file.
42415         * lib/unictype/pr_decimal_digit.c: New file.
42416         * lib/unictype/pr_default_ignorable_code_point.c: New file.
42417         * lib/unictype/pr_deprecated.c: New file.
42418         * lib/unictype/pr_diacritic.c: New file.
42419         * lib/unictype/pr_extender.c: New file.
42420         * lib/unictype/pr_format_control.c: New file.
42421         * lib/unictype/pr_grapheme_base.c: New file.
42422         * lib/unictype/pr_grapheme_extend.c: New file.
42423         * lib/unictype/pr_grapheme_link.c: New file.
42424         * lib/unictype/pr_hex_digit.c: New file.
42425         * lib/unictype/pr_hyphen.c: New file.
42426         * lib/unictype/pr_id_continue.c: New file.
42427         * lib/unictype/pr_id_start.c: New file.
42428         * lib/unictype/pr_ideographic.c: New file.
42429         * lib/unictype/pr_ids_binary_operator.c: New file.
42430         * lib/unictype/pr_ids_trinary_operator.c: New file.
42431         * lib/unictype/pr_ignorable_control.c: New file.
42432         * lib/unictype/pr_iso_control.c: New file.
42433         * lib/unictype/pr_join_control.c: New file.
42434         * lib/unictype/pr_left_of_pair.c: New file.
42435         * lib/unictype/pr_line_separator.c: New file.
42436         * lib/unictype/pr_logical_order_exception.c: New file.
42437         * lib/unictype/pr_lowercase.c: New file.
42438         * lib/unictype/pr_math.c: New file.
42439         * lib/unictype/pr_non_break.c: New file.
42440         * lib/unictype/pr_not_a_character.c: New file.
42441         * lib/unictype/pr_numeric.c: New file.
42442         * lib/unictype/pr_other_alphabetic.c: New file.
42443         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
42444         * lib/unictype/pr_other_grapheme_extend.c: New file.
42445         * lib/unictype/pr_other_id_continue.c: New file.
42446         * lib/unictype/pr_other_id_start.c: New file.
42447         * lib/unictype/pr_other_lowercase.c: New file.
42448         * lib/unictype/pr_other_math.c: New file.
42449         * lib/unictype/pr_other_uppercase.c: New file.
42450         * lib/unictype/pr_paired_punctuation.c: New file.
42451         * lib/unictype/pr_paragraph_separator.c: New file.
42452         * lib/unictype/pr_pattern_syntax.c: New file.
42453         * lib/unictype/pr_pattern_white_space.c: New file.
42454         * lib/unictype/pr_private_use.c: New file.
42455         * lib/unictype/pr_punctuation.c: New file.
42456         * lib/unictype/pr_quotation_mark.c: New file.
42457         * lib/unictype/pr_radical.c: New file.
42458         * lib/unictype/pr_sentence_terminal.c: New file.
42459         * lib/unictype/pr_soft_dotted.c: New file.
42460         * lib/unictype/pr_space.c: New file.
42461         * lib/unictype/pr_terminal_punctuation.c: New file.
42462         * lib/unictype/pr_test.c: New file.
42463         * lib/unictype/pr_titlecase.c: New file.
42464         * lib/unictype/pr_unassigned_code_value.c: New file.
42465         * lib/unictype/pr_unified_ideograph.c: New file.
42466         * lib/unictype/pr_uppercase.c: New file.
42467         * lib/unictype/pr_variation_selector.c: New file.
42468         * lib/unictype/pr_white_space.c: New file.
42469         * lib/unictype/pr_xid_continue.c: New file.
42470         * lib/unictype/pr_xid_start.c: New file.
42471         * lib/unictype/pr_zero_width.c: New file.
42472         * lib/unictype/scripts.c: New file.
42473         * lib/unictype/sy_c_ident.c: New file.
42474         * lib/unictype/sy_c_whitespace.c: New file.
42475         * lib/unictype/sy_java_ident.c: New file.
42476         * lib/unictype/sy_java_whitespace.c: New file.
42477
42478         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
42479         Unicode 5.0.0.
42480         * lib/unictype/blocks.h: Likewise.
42481         * lib/unictype/categ_C.h: Likewise.
42482         * lib/unictype/categ_Cc.h: Likewise.
42483         * lib/unictype/categ_Cf.h: Likewise.
42484         * lib/unictype/categ_Cn.h: Likewise.
42485         * lib/unictype/categ_Co.h: Likewise.
42486         * lib/unictype/categ_Cs.h: Likewise.
42487         * lib/unictype/categ_L.h: Likewise.
42488         * lib/unictype/categ_Ll.h: Likewise.
42489         * lib/unictype/categ_Lm.h: Likewise.
42490         * lib/unictype/categ_Lo.h: Likewise.
42491         * lib/unictype/categ_Lt.h: Likewise.
42492         * lib/unictype/categ_Lu.h: Likewise.
42493         * lib/unictype/categ_M.h: Likewise.
42494         * lib/unictype/categ_Mc.h: Likewise.
42495         * lib/unictype/categ_Me.h: Likewise.
42496         * lib/unictype/categ_Mn.h: Likewise.
42497         * lib/unictype/categ_N.h: Likewise.
42498         * lib/unictype/categ_Nd.h: Likewise.
42499         * lib/unictype/categ_Nl.h: Likewise.
42500         * lib/unictype/categ_No.h: Likewise.
42501         * lib/unictype/categ_P.h: Likewise.
42502         * lib/unictype/categ_Pc.h: Likewise.
42503         * lib/unictype/categ_Pd.h: Likewise.
42504         * lib/unictype/categ_Pe.h: Likewise.
42505         * lib/unictype/categ_Pf.h: Likewise.
42506         * lib/unictype/categ_Pi.h: Likewise.
42507         * lib/unictype/categ_Po.h: Likewise.
42508         * lib/unictype/categ_Ps.h: Likewise.
42509         * lib/unictype/categ_S.h: Likewise.
42510         * lib/unictype/categ_Sc.h: Likewise.
42511         * lib/unictype/categ_Sk.h: Likewise.
42512         * lib/unictype/categ_Sm.h: Likewise.
42513         * lib/unictype/categ_So.h: Likewise.
42514         * lib/unictype/categ_Z.h: Likewise.
42515         * lib/unictype/categ_Zl.h: Likewise.
42516         * lib/unictype/categ_Zp.h: Likewise.
42517         * lib/unictype/categ_Zs.h: Likewise.
42518         * lib/unictype/categ_of.h: Likewise.
42519         * lib/unictype/combining.h: Likewise.
42520         * lib/unictype/ctype_alnum.h: Likewise.
42521         * lib/unictype/ctype_alpha.h: Likewise.
42522         * lib/unictype/ctype_blank.h: Likewise.
42523         * lib/unictype/ctype_cntrl.h: Likewise.
42524         * lib/unictype/ctype_digit.h: Likewise.
42525         * lib/unictype/ctype_graph.h: Likewise.
42526         * lib/unictype/ctype_lower.h: Likewise.
42527         * lib/unictype/ctype_print.h: Likewise.
42528         * lib/unictype/ctype_punct.h: Likewise.
42529         * lib/unictype/ctype_space.h: Likewise.
42530         * lib/unictype/ctype_upper.h: Likewise.
42531         * lib/unictype/ctype_xdigit.h: Likewise.
42532         * lib/unictype/decdigit.h: Likewise.
42533         * lib/unictype/digit.h: Likewise.
42534         * lib/unictype/mirror.h: Likewise.
42535         * lib/unictype/numeric.h: Likewise.
42536         * lib/unictype/pr_alphabetic.h: Likewise.
42537         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42538         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42539         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
42540         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42541         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
42542         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42543         * lib/unictype/pr_bidi_control.h: Likewise.
42544         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42545         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42546         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42547         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42548         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42549         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42550         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42551         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42552         * lib/unictype/pr_bidi_pdf.h: Likewise.
42553         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42554         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42555         * lib/unictype/pr_combining.h: Likewise.
42556         * lib/unictype/pr_composite.h: Likewise.
42557         * lib/unictype/pr_currency_symbol.h: Likewise.
42558         * lib/unictype/pr_dash.h: Likewise.
42559         * lib/unictype/pr_decimal_digit.h: Likewise.
42560         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42561         * lib/unictype/pr_deprecated.h: Likewise.
42562         * lib/unictype/pr_diacritic.h: Likewise.
42563         * lib/unictype/pr_extender.h: Likewise.
42564         * lib/unictype/pr_format_control.h: Likewise.
42565         * lib/unictype/pr_grapheme_base.h: Likewise.
42566         * lib/unictype/pr_grapheme_extend.h: Likewise.
42567         * lib/unictype/pr_grapheme_link.h: Likewise.
42568         * lib/unictype/pr_hex_digit.h: Likewise.
42569         * lib/unictype/pr_hyphen.h: Likewise.
42570         * lib/unictype/pr_id_continue.h: Likewise.
42571         * lib/unictype/pr_id_start.h: Likewise.
42572         * lib/unictype/pr_ideographic.h: Likewise.
42573         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42574         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42575         * lib/unictype/pr_ignorable_control.h: Likewise.
42576         * lib/unictype/pr_iso_control.h: Likewise.
42577         * lib/unictype/pr_join_control.h: Likewise.
42578         * lib/unictype/pr_left_of_pair.h: Likewise.
42579         * lib/unictype/pr_line_separator.h: Likewise.
42580         * lib/unictype/pr_logical_order_exception.h: Likewise.
42581         * lib/unictype/pr_lowercase.h: Likewise.
42582         * lib/unictype/pr_math.h: Likewise.
42583         * lib/unictype/pr_non_break.h: Likewise.
42584         * lib/unictype/pr_not_a_character.h: Likewise.
42585         * lib/unictype/pr_numeric.h: Likewise.
42586         * lib/unictype/pr_other_alphabetic.h: Likewise.
42587         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42588         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42589         * lib/unictype/pr_other_id_continue.h: Likewise.
42590         * lib/unictype/pr_other_id_start.h: Likewise.
42591         * lib/unictype/pr_other_lowercase.h: Likewise.
42592         * lib/unictype/pr_other_math.h: Likewise.
42593         * lib/unictype/pr_other_uppercase.h: Likewise.
42594         * lib/unictype/pr_paired_punctuation.h: Likewise.
42595         * lib/unictype/pr_paragraph_separator.h: Likewise.
42596         * lib/unictype/pr_pattern_syntax.h: Likewise.
42597         * lib/unictype/pr_pattern_white_space.h: Likewise.
42598         * lib/unictype/pr_private_use.h: Likewise.
42599         * lib/unictype/pr_punctuation.h: Likewise.
42600         * lib/unictype/pr_quotation_mark.h: Likewise.
42601         * lib/unictype/pr_radical.h: Likewise.
42602         * lib/unictype/pr_sentence_terminal.h: Likewise.
42603         * lib/unictype/pr_soft_dotted.h: Likewise.
42604         * lib/unictype/pr_space.h: Likewise.
42605         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42606         * lib/unictype/pr_titlecase.h: Likewise.
42607         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42608         * lib/unictype/pr_unified_ideograph.h: Likewise.
42609         * lib/unictype/pr_uppercase.h: Likewise.
42610         * lib/unictype/pr_variation_selector.h: Likewise.
42611         * lib/unictype/pr_white_space.h: Likewise.
42612         * lib/unictype/pr_xid_continue.h: Likewise.
42613         * lib/unictype/pr_xid_start.h: Likewise.
42614         * lib/unictype/pr_zero_width.h: Likewise.
42615         * lib/unictype/scripts.h: Likewise.
42616         * lib/unictype/scripts_byname.gperf: Likewise.
42617         * lib/unictype/sy_c_ident.h: Likewise.
42618         * lib/unictype/sy_c_whitespace.h: Likewise.
42619         * lib/unictype/sy_java_ident.h: Likewise.
42620         * lib/unictype/sy_java_whitespace.h: Likewise.
42621
42622         * lib/unictype/Makefile: New file.
42623         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
42624         glibc.
42625         * lib/unictype/3level.h: New file, copied from glibc.
42626         * lib/unictype/3levelbit.h: New file.
42627
42628 2007-11-11  Bruno Haible  <bruno@clisp.org>
42629
42630         * modules/gperf: New file.
42631         * modules/iconv_open (Depends-on): Add it.
42632         (Makefile.am): Remove the GPERF definition.
42633
42634 2007-11-11  Bruno Haible  <bruno@clisp.org>
42635
42636         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
42637         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
42638
42639 2007-11-11  Bruno Haible  <bruno@clisp.org>
42640
42641         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
42642         (usage): Remove function.
42643
42644 2007-11-11  Bruno Haible  <bruno@clisp.org>
42645
42646         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
42647         gl_FUNC_CEILF_LIBS.
42648         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
42649         gl_FUNC_CEIL_LIBS.
42650         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
42651         gl_FUNC_CEILL_LIBS.
42652         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
42653         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
42654         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
42655
42656 2007-11-11  Bruno Haible  <bruno@clisp.org>
42657
42658         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
42659         roundf were declared but do not exist on functions.
42660         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
42661         roundl were declared but do not exist on functions.
42662         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
42663         HAVE_FLOORL_AND_CEILL, respectively.
42664         Needed for Sun C on Solaris 10.
42665
42666 2007-11-11  Bruno Haible  <bruno@clisp.org>
42667
42668         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
42669         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
42670         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
42671         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
42672         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
42673         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
42674         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
42675         HAVE_DECL_ROUNDF.
42676         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
42677         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
42678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
42679         of HAVE_DECL_ROUND*.
42680         * modules/math (Makefile.am): Update.
42681
42682 2007-11-10  Bruno Haible  <bruno@clisp.org>
42683
42684         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
42685         ptrdiff_t as m4/intl.m4.
42686
42687 2007-11-10  Jim Meyering  <meyering@redhat.com>
42688
42689         Avoid link failure for the argmatch test.
42690         * tests/test-argmatch.c (usage): Define function to avoid a link
42691         failure: argmatch_die requires a usage function.
42692
42693 2007-11-09  Bruno Haible  <bruno@clisp.org>
42694
42695         * doc/functions/snprintf.texi: Mention BeOS deficiency.
42696         * doc/functions/vsnprintf.texi: Likewise.
42697         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
42698         with a size argument < 2.
42699
42700 2007-11-09  Bruno Haible  <bruno@clisp.org>
42701
42702         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
42703         buffer. Fixes an inefficiency introduced on 2007-11-03.
42704
42705 2007-11-09  Bruno Haible  <bruno@clisp.org>
42706
42707         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
42708         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
42709
42710 2007-11-08  Jim Meyering  <meyering@redhat.com>
42711
42712         Change cache variable name prefix "jm_" to "gl_" everywhere.
42713         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
42714         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
42715         * m4/uptime.m4: s/gl_/jm_/
42716
42717 2007-11-07  Bruno Haible  <bruno@clisp.org>
42718
42719         Update to GNU gettext 0.17.
42720         * m4/intl.m4: Update to GNU gettext 0.17.
42721         * m4/po.m4: Likewise.
42722         * modules/gettext (Files): Remove m4/ulonglong.m4.
42723         (configure.ac): Require gettext infrastructure from version 0.17.
42724
42725 2007-11-06  Bruno Haible  <bruno@clisp.org>
42726
42727         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
42728         symbolic values are not defined in a public header.
42729         * lib/freadable.c (freadable) [QNX]: Likewise.
42730         * lib/freadahead.c (freadahead) [QNX]: Likewise.
42731         * lib/freading.c (freading) [QNX]: Likewise.
42732         * lib/fseterr.c (fseterr) [QNX]: Likewise.
42733         * lib/fwritable.c (fwritable) [QNX]: Likewise.
42734         * lib/fwriting.c (fwriting) [QNX]: Likewise.
42735         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
42736         Reported by Alain Magloire.
42737
42738         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
42739
42740 2007-11-05  Bruno Haible  <bruno@clisp.org>
42741
42742         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
42743         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
42744         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
42745         Reported by Eric Blake.
42746
42747 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42748             Bruno Haible  <bruno@clisp.org>
42749
42750         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
42751         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
42752         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
42753         (malloc): Undefine also before including <stdlib.h>.
42754         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
42755         Needed on OSF/1 4.0.
42756
42757 2007-11-05  Jim Meyering  <meyering@redhat.com>
42758
42759         git-version-gen: sync from coreutils.
42760         * build-aux/git-version-gen: Add comments.
42761         Change the first '-' to '.' in the snapshot version string,
42762         e.g., 6.9-377-08144 -> 6.9.377-08144
42763         Remove first parameter.
42764         Don't declare a version "-dirty" merely because a time
42765         stamp has changed.
42766
42767 2007-11-04  Bruno Haible  <bruno@clisp.org>
42768
42769         * lib/lock.h: Protect all macro definitions containing an 'if'
42770         statement through a "do { ... } while (0)".
42771         * lib/tls.h: Likewise.
42772
42773 2007-11-04  Bruno Haible  <bruno@clisp.org>
42774
42775         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
42776
42777 2007-11-04  Bruno Haible  <bruno@clisp.org>
42778
42779         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
42780         * modules/fprintf-posix (Depends-on): Add nocrash.
42781         * modules/snprintf-posix (Depends-on): Likewise.
42782         * modules/sprintf-posix (Depends-on): Likewise.
42783         * modules/vasnprintf-posix (Depends-on): Likewise.
42784         * modules/vasprintf-posix (Depends-on): Likewise.
42785         * modules/vfprintf-posix (Depends-on): Likewise.
42786         * modules/vsnprintf-posix (Depends-on): Likewise.
42787         * modules/vsprintf-posix (Depends-on): Likewise.
42788         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42789         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42790         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42791         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42792         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42793         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42794         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42795
42796 2007-11-04  Bruno Haible  <bruno@clisp.org>
42797
42798         * modules/nocrash: New file.
42799         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
42800         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
42801
42802 2007-11-04  Bruno Haible  <bruno@clisp.org>
42803
42804         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
42805         precision handling.
42806         * tests/test-vasprintf-posix.c (test_function): Likewise.
42807         * tests/test-snprintf-posix.h (test_function): Likewise.
42808         * tests/test-sprintf-posix.h (test_function): Likewise.
42809
42810         Fix *printf behaviour for large precisions on mingw and BeOS.
42811         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
42812         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
42813         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
42814         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42815         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42816         gl_PRINTF_PRECISION and test its result. Invoke
42817         gl_PREREQ_VASNPRINTF_PRECISION.
42818         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42819         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42822         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42823         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42824         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42825         * doc/functions/fprintf.texi: Update.
42826         * doc/functions/printf.texi: Update.
42827         * doc/functions/snprintf.texi: Update.
42828         * doc/functions/sprintf.texi: Update.
42829         * doc/functions/vfprintf.texi: Update.
42830         * doc/functions/vprintf.texi: Update.
42831         * doc/functions/vsnprintf.texi: Update.
42832         * doc/functions/vsprintf.texi: Update.
42833
42834 2007-11-04  Bruno Haible  <bruno@clisp.org>
42835
42836         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
42837
42838 2007-11-04  Bruno Haible  <bruno@clisp.org>
42839
42840         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
42841         Reported by Sylvain Beucler <beuc@gnu.org>.
42842
42843 2007-11-03  Bruno Haible  <bruno@clisp.org>
42844
42845         * tests/test-fprintf-posix2.sh: New file.
42846         * tests/test-fprintf-posix2.c: New file.
42847         * modules/fprintf-posix-tests (Files): Add them.
42848         (TESTS): Add test-fprintf-posix2.sh.
42849         (configure.ac): Check for getrlimit and setrlimit.
42850         (check_PROGRAMS): Add test-fprintf-posix2.
42851
42852         * tests/test-printf-posix2.sh: New file.
42853         * tests/test-printf-posix2.c: New file.
42854         * modules/printf-posix-tests (Files): Add them.
42855         (TESTS): Add test-printf-posix2.sh.
42856         (configure.ac): Check for getrlimit and setrlimit.
42857         (check_PROGRAMS): Add test-printf-posix2.
42858
42859         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
42860         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
42861         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
42862         (decode_double): New function, copied from decode_long_double.
42863         (scale10_round_decimal_decoded): New function, extracted from
42864         scale10_round_decimal_long_double.
42865         (scale10_round_decimal_long_double): Use it.
42866         (scale10_round_decimal_double): New function.
42867         (floorlog10): New function.
42868         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
42869         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
42870         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42871         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42872         gl_PRINTF_ENOMEM and test its result. Invoke
42873         gl_PREREQ_VASNPRINTF_ENOMEM.
42874         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42875         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42876         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42877         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42878         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42879         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42880         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42881         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
42882         * modules/snprintf-posix (Depends-on): Likewise.
42883         * modules/sprintf-posix (Depends-on): Likewise.
42884         * modules/vasnprintf-posix (Depends-on): Likewise.
42885         * modules/vasprintf-posix (Depends-on): Likewise.
42886         * modules/vfprintf-posix (Depends-on): Likewise.
42887         * modules/vsnprintf-posix (Depends-on): Likewise.
42888         * modules/vsprintf-posix (Depends-on): Likewise.
42889         * doc/functions/fprintf.texi: Update.
42890         * doc/functions/printf.texi: Update.
42891         * doc/functions/snprintf.texi: Update.
42892         * doc/functions/sprintf.texi: Update.
42893         * doc/functions/vfprintf.texi: Update.
42894         * doc/functions/vprintf.texi: Update.
42895         * doc/functions/vsnprintf.texi: Update.
42896         * doc/functions/vsprintf.texi: Update.
42897
42898 2007-11-03  Bruno Haible  <bruno@clisp.org>
42899
42900         * modules/frexp-nolibm-tests: New file.
42901
42902         * modules/frexp-nolibm: New file.
42903         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
42904
42905 2007-11-03  Bruno Haible  <bruno@clisp.org>
42906
42907         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
42908         value is C99 compliant.
42909         Needed for OSF/1 5.1.
42910
42911 2007-11-03  Bruno Haible  <bruno@clisp.org>
42912
42913         Fix out-of-memory handling of vasnprintf.
42914         * lib/printf-parse.c: Include <errno.h>.
42915         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
42916         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
42917         is already set.
42918
42919 2007-11-02  Eric Blake  <ebb9@byu.net>
42920
42921         Fix tests on cygwin.
42922         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
42923
42924 2007-11-01  Bruno Haible  <bruno@clisp.org>
42925
42926         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
42927         warning.
42928         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
42929         needed for POSIX compatibility.
42930
42931 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42932
42933         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
42934         for compatibility with GNU.
42935
42936 2007-11-01  Bruno Haible  <bruno@clisp.org>
42937
42938         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
42939         (putenv): Renamed from rpl_putenv. Change argument type from
42940         'const char *' to 'char *'.
42941         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
42942         of defining putenv in config.h, just set REPLACE_PUTENV.
42943         * modules/putenv (Depends-on): Add stdlib.
42944         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42945         (Include): Use <stdlib.h>.
42946         * lib/stdlib.in.h (putenv): New declaration.
42947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
42948         REPLACE_PUTENV.
42949         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
42950         REPLACE_PUTENV.
42951         Needed for MacOS X 10.5.0.
42952         Reported by Peter O'Gorman <peter@pogma.com>.
42953
42954 2007-11-01  Jim Meyering  <meyering@redhat.com>
42955
42956         Treat an empty date string exactly like "0".
42957         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
42958         if the remaining date string (to be parsed) is empty, use "0".
42959         Reported by Mischa Molhoek and discussed in this thread:
42960         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
42961
42962 2007-10-31  Bruno Haible  <bruno@clisp.org>
42963
42964         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
42965         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
42966         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
42967         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
42968         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
42969         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
42970
42971 2007-10-31  Bruno Haible  <bruno@clisp.org>
42972
42973         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
42974         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
42975         (AC_TYPE_LONG_LONG_INT): Use it.
42976         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
42977         it as well.
42978         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
42979         to m4/longlong.m4.
42980         * modules/stdint (Files): Remove m4/ulonglong.m4.
42981         * modules/strtoull (Files): Use m4/longlong.m4 instead of
42982         m4/ulonglong.m4.
42983         * modules/strtoumax (Files): Likewise.
42984
42985 2007-10-30  Bruno Haible  <bruno@clisp.org>
42986
42987         * modules/xvasprintf-posix: New file.
42988         Suggested by Eric Blake.
42989
42990 2007-10-30  Bruno Haible  <bruno@clisp.org>
42991
42992         * modules/xprintf-posix-tests: New file.
42993         * tests/test-xprintf-posix.sh: New file.
42994         * tests/test-xprintf-posix.c: New file.
42995         * tests/test-xfprintf-posix.c: New file.
42996
42997         * modules/xprintf-posix: New file.
42998
42999 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43000
43001         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
43002         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
43003         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
43004
43005 2007-10-29  Bruno Haible  <bruno@clisp.org>
43006
43007         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
43008         contain the special marker '_cv_'.
43009         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43010         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43011         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43012         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
43013         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43014         Reported by Ralf Wildenhues.
43015
43016 2007-10-29  Bruno Haible  <bruno@clisp.org>
43017
43018         * gnulib-tool (func_import): When --lgpl is not specified, set
43019         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
43020         GPLv3.
43021         Reported by Simon Josefsson.
43022
43023 2007-10-28  Bruno Haible  <bruno@clisp.org>
43024
43025         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
43026         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
43027         HAVE_DECL_ISFINITE.
43028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43029         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
43030         HAVE_DECL_ISFINITE.
43031
43032 2007-10-28  Bruno Haible  <bruno@clisp.org>
43033
43034         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
43035         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
43036
43037 2007-10-28  Bruno Haible  <bruno@clisp.org>
43038
43039         Fix link errors with Sun C 5.0 on Solaris 10.
43040         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
43041         function is declared but not present in the compiler's libm.
43042         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
43043         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
43044         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
43045         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
43046         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
43047         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
43048         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
43049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43050         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
43051         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
43052         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
43053         HAVE_DECL_FLOORL.
43054
43055 2007-10-28  Bruno Haible  <bruno@clisp.org>
43056
43057         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
43058         gl_FUNC_FLOORL. Cache the result.
43059         (gl_FUNC_FLOORL): Use it.
43060         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
43061         gl_FUNC_CEILL. Cache the result.
43062         (gl_FUNC_CEILL): Use it.
43063
43064         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
43065         gl_FUNC_FLOOR. Cache the result.
43066         (gl_FUNC_FLOOR): Use it.
43067         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
43068         gl_FUNC_CEIL. Cache the result.
43069         (gl_FUNC_CEIL): Use it.
43070
43071         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
43072         gl_FUNC_FLOORF. Cache the result.
43073         (gl_FUNC_FLOORF): Use it.
43074         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
43075         gl_FUNC_CEILF. Cache the result.
43076         (gl_FUNC_CEILF): Use it.
43077
43078 2007-10-28  Bruno Haible  <bruno@clisp.org>
43079
43080         * gnulib-tool: Allow specifying the LGPL version number through
43081         --lgpl=2 or --lgpl=3.
43082         (func_usage): Document --lgpl with argument.
43083         Handle --lgpl=... arguments.
43084         (func_import): Recognize also gl_LGPL calls with an argument. When
43085         --lgpl=2 is used and the module's license is just LGPL, report an
43086         error. Set sed_transform_lib_file according to the lgpl variable. In
43087         the generated files, use --lgpl or gl_LGPL invocations with argument,
43088         if necessary.
43089         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
43090         an LGPv2+ license.
43091         * doc/gnulib-tool.texi (Modified imports): Update explanation of
43092         gl_LGPL macro.
43093
43094 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43095             Bruno Haible  <bruno@clisp.org>
43096
43097         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
43098         (u16_uctomb_aux): Likewise.
43099         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
43100         !HAVE_INLINE.
43101         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
43102
43103 2007-10-28  Bruno Haible  <bruno@clisp.org>
43104
43105         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
43106         Invoke AM_GETTEXT_OPTION if it exists.
43107         * modules/vasprintf: Likewise.
43108         * modules/verror: Likewise.
43109         * modules/xprintf: Likewise.
43110         * modules/xvasprintf: Likewise.
43111
43112 2007-10-27  Ben Pfaff  <blp@gnu.org>
43113
43114         * lib/math.in.h: Define isfinite macro and prototypes for
43115         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
43116         implementations.
43117         * m4/math_h.m4: New substitutions for isfinite module.
43118         * lib/isfinite.c: New file.
43119         * m4/isfinite.m4: New file.
43120         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
43121         * modules/isfinite: New file.
43122         * modules/isfinite-tests: New file.
43123         * tests/tests-isfinite.c: New file.
43124         * doc/functions/isfinite.texi: Mention isfinite module.
43125         * MODULES.html.sh: Mention new module.
43126
43127 2007-10-27  Ben Pfaff  <blp@gnu.org>
43128
43129         Ralf Wildenhues reported that Tru64 4.0D declares the round
43130         functions but does not have definitions.
43131         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
43132         cannot be found in any library, set the output variable to
43133         "missing" instead of "".
43134         * m4/round.m4: Also use our substitute if we cannot find round in
43135         any library, even if it is declared.
43136         * m4/roundf.m4: Likewise for roundf.
43137         * m4/roundl.m4: Likewise for roundl.
43138         * lib/math.in.h: Undefine roundf, round, roundl before defining
43139         their replacements, to allow for hypothetical systems where these
43140         may be defined as macros but not available in libraries.
43141
43142 2007-10-27  Bruno Haible  <bruno@clisp.org>
43143
43144         * doc/gnulib.texi: Invoke @firstparagraphindent.
43145         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
43146         changes in gnulib.
43147         (Source changes): New section.
43148
43149 2007-10-26  Bruno Haible  <bruno@clisp.org>
43150
43151         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
43152         borrowed from autoconf.
43153
43154 2007-10-26  Bruno Haible  <bruno@clisp.org>
43155
43156         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
43157         strerror returned the empty string. Needed on HP-UX 11.00.
43158
43159 2007-10-24  Micah Cowan  <micah@cowan.name>
43160
43161         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
43162         * build-aux/bootstrap: Remove support for now-unnecessary option,
43163         --cvs-user, and envvars CVS_USER, CVS_RSH.
43164
43165 2007-10-24  Jim Meyering  <meyering@redhat.com>
43166
43167         Avoid diagnostics from sha1sum when there is no cached checksum.
43168         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
43169         if the po.s1 file hasn't been created yet.
43170
43171         * build-aux/bootstrap: Sync from coreutils:
43172         2007-10-24  Jim Meyering  <meyering@redhat.com>
43173         Get gnulib from the git repository, not from an obsolete cvs one.
43174         * build-aux/bootstrap: Suggestion from Micah Cowan.
43175         2007-10-04  Jim Meyering  <jim@meyering.net>
43176         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
43177         (update_po_files): Work also when there are no .po files in po/.
43178
43179 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43180
43181         * README: Append ".git" to git and cg examples.
43182         Problem reported by Benoit Sigoure.
43183
43184 2007-10-23  Micah Cowan  <micah@cowan.name>
43185
43186         * users.txt: Add wget.
43187
43188 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43189
43190         Fix linking of some unistdio tests on FreeBSD.
43191         * modules/unistdio/u16-vsnprintf-tests
43192         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
43193         * modules/unistdio/u16-vsprintf-tests
43194         (test_u16_vsnprintf1_LDADD): Likewise.
43195         * modules/unistdio/u32-vsnprintf-tests
43196         (test_u32_vsnprintf1_LDADD): Likewise.
43197         * modules/unistdio/u32-vsprintf-tests
43198         (test_u32_vsprintf1_LDADD): Likewise.
43199         * modules/unistdio/u8-vsnprintf-tests
43200         (test_u8_vsnprintf1_LDADD): Likewise.
43201         * modules/unistdio/u8-vsprintf-tests
43202         (test_u8_vsprintf1_LDADD): Likewise.
43203         * modules/unistdio/ulc-vsnprintf-tests
43204         (test_ulc_vsnprintf1_LDADD): Likewise.
43205         * modules/unistdio/ulc-vsprintf-tests
43206         (test_ulc_vsprintf1_LDADD): Likewise.
43207
43208         Fix linking of some uniconv tests on FreeBSD.
43209         * modules/uniconv/u16-conv-from-enc-tests
43210         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
43211         * modules/uniconv/u16-conv-to-enc-tests
43212         (test_u16_conv_to_enc_LDADD): Likewise.
43213         * modules/uniconv/u16-strconv-from-enc-tests
43214         (test_u16_strconv_from_enc_LDADD): Likewise.
43215         * modules/uniconv/u16-strconv-to-enc-tests
43216         (test_u16_strconv_to_enc_LDADD): Likewise.
43217         * modules/uniconv/u32-conv-from-enc-tests
43218         (test_u32_conv_from_enc_LDADD): Likewise.
43219         * modules/uniconv/u32-conv-to-enc-tests
43220         (test_u32_conv_to_enc_LDADD): Likewise.
43221         * modules/uniconv/u32-strconv-from-enc-tests
43222         (test_u32_strconv_from_enc_LDADD): Likewise.
43223         * modules/uniconv/u32-strconv-to-enc-tests
43224         (test_u32_strconv_to_enc_LDADD): Likewise.
43225         * modules/uniconv/u8-conv-from-enc-tests
43226         (test_u8_conv_from_enc_LDADD): Likewise.
43227         * modules/uniconv/u8-conv-to-enc-tests
43228         (test_u8_conv_to_enc_LDADD): Likewise.
43229         * modules/uniconv/u8-strconv-from-enc-tests
43230         (test_u8_strconv_from_enc_LDADD): Likewise.
43231         * modules/uniconv/u8-strconv-to-enc-tests
43232         (test_u8_strconv_to_enc_LDADD): Likewise.
43233
43234 2007-10-22  Bruno Haible  <bruno@clisp.org>
43235
43236         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
43237         size.
43238
43239 2007-10-22  Eric Blake  <ebb9@byu.net>
43240
43241         Tweak x*printf documentation.
43242         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
43243         variable name and comments.
43244         Suggested by Bruno Haible.
43245
43246 2007-10-22  Bruno Haible  <bruno@clisp.org>
43247
43248         * lib/acl.c (copy_acl): Fix file name in comment.
43249
43250 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43251
43252         Fix Tru64 problem with stdbool.h.
43253         * lib/stdbool.in.h (false, true):
43254         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
43255         Don't declare as an enum in this situation; it runs afoul of Tru64.
43256         Problem reported by Steven M. Schweda in
43257         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
43258
43259 2007-10-22  Eric Blake  <ebb9@byu.net>
43260
43261         Also wrap vf?printf.
43262         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
43263         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
43264         (xvprintf, xvfprintf): New functions.
43265
43266 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43267
43268         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
43269         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
43270
43271         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
43272         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
43273
43274 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43275
43276         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
43277         by Bruno Haible.
43278
43279 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43280
43281         * lib/getloadavg.c
43282         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
43283         Undef `sys' after including sys/table.h, for Tru64 4.0D.
43284
43285         * tests/test-i-ring.c: Work for C89.
43286
43287 2007-10-22  Bruno Haible  <bruno@clisp.org>
43288
43289         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
43290         -1u, in preprocessor expression, so that we don't test for the bug
43291         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
43292         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
43293
43294 2007-10-22  Eric Blake  <ebb9@byu.net>
43295
43296         * tests/test-yesno.sh: Silence stderr during test.
43297
43298 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43299
43300         * modules/crypto/gc-camellia: New file.
43301
43302         * m4/gc-camellia.m4: New file.
43303
43304         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
43305
43306         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
43307
43308 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43309
43310         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
43311         --help to stdout.  Reported by sms@antinode.org (Steven
43312         M. Schweda).
43313
43314 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43315
43316         * users.txt: Fix link to libksba.
43317
43318 2007-10-21  Ben Pfaff  <blp@gnu.org>
43319
43320         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
43321         round.c roundf implementation that depends on floorf and ceilf to
43322         be tested unconditionally.
43323
43324 2007-10-21  Ben Pfaff  <blp@gnu.org>
43325
43326         * m4/check-libm-func.m4: Removed.
43327         * m4/check-math-lib.m4: New file.
43328         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
43329         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
43330         definition and lack of AC_LIBOBJ([roundf]).
43331         * m4/roundl.m4: Ditto, and similarly for roundl.
43332         * modules/round: Reference new m4 file.
43333         * modules/roundf: Ditto.
43334         * modules/roundl: Ditto.
43335         * tests/test-round2.c (main): Use ROUND instead of round.
43336         Bug report from Bruno Haible.
43337
43338 2007-10-21  Bruno Haible  <bruno@clisp.org>
43339
43340         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
43341         context.
43342
43343 2007-10-21  Bruno Haible  <bruno@clisp.org>
43344
43345         * tests/test-wcwidth.c (main): Allow negative result for some control
43346         characters.
43347
43348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
43349         Needed on OSF/1 5.1.
43350
43351 2007-10-21  Bruno Haible  <bruno@clisp.org>
43352
43353         * tests/test-floorf1.c: Include isnanf.h.
43354         (main): Use isnanf() instead of isnan().
43355         * tests/test-ceilf1.c: Include isnanf.h.
43356         (main): Use isnanf() instead of isnan().
43357         * tests/test-truncf1.c: Include isnanf.h.
43358         (main): Use isnanf() instead of isnan().
43359         * tests/test-roundf1.c: Include isnanf.h.
43360         (main): Use isnanf() instead of isnan().
43361
43362 2007-10-21  Eric Blake  <ebb9@byu.net>
43363
43364         * users.txt: Update URL for m4.
43365
43366 2007-10-21  Bruno Haible  <bruno@clisp.org>
43367
43368         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
43369
43370 2007-10-21  Bruno Haible  <bruno@clisp.org>
43371
43372         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
43373         Git's management files if the CVS files are not present.
43374
43375 2007-10-20  Bruno Haible  <bruno@clisp.org>
43376
43377         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
43378         gcc-3.4.x.
43379
43380 2007-10-20  Ben Pfaff  <blp@gnu.org>
43381
43382         * lib/math.in.h: Declare round, roundf, roundl if we are providing
43383         implementations.
43384         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
43385         * lib/round.c: New file.
43386         * lib/roundf.c: New file.
43387         * lib/roundl.c: New file.
43388         * m4/round.m4: New file.
43389         * m4/roundf.m4: New file.
43390         * m4/roundl.m4: New file.
43391         * m4/check-libm-func-m4: New file.
43392         * modules/math: Replace round, roundf, roundl related @VARS@ in
43393         math.in.h.
43394         * modules/round: New file.
43395         * modules/round-tests: New file.
43396         * modules/roundf: New file.
43397         * modules/roundf-tests: New file.
43398         * modules/roundl: New file.
43399         * modules/roundl-tests: New file.
43400         * tests/test-round1.c: New file.
43401         * tests/test-round2.c: New file.
43402         * tests/test-roundf1.c: New file.
43403         * tests/test-roundf2.c: New file.
43404         * tests/test-roundl.c: New file.
43405         * doc/functions/round.texi: Mention round module.
43406         * doc/functions/roundf.texi: Mention roundf module.
43407         * doc/functions/roundl.texi: Mention roundl module.
43408         * MODULES.html.sh: Mention new modules.
43409         Thanks to Bruno Haible for suggestions.
43410
43411 2007-10-20  Jim Meyering  <meyering@redhat.com>
43412
43413         * lib/xprintf.c: Include <config.h> unconditionally.
43414
43415         Change xprintf's license to GPL.
43416         * modules/xprintf (License): s/LGPL/GPL/, since this module
43417         depends on modules (exit and exitfail) which are GPL.
43418         Suggestion from Bruno Haible.
43419
43420         xprintf fixes.
43421         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
43422         Use a clearer diagnostic.
43423         Patch from Bruno Haible.
43424
43425 2007-10-20  Bruno Haible  <bruno@clisp.org>
43426
43427         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
43428         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
43429         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43430
43431 2007-10-20  Bruno Haible  <bruno@clisp.org>
43432
43433         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
43434         precision in the comparison result > x - 1 or similar.
43435         * tests/test-ceilf2.c (correct_result_p): Likewise.
43436         * tests/test-truncf2.c (correct_result_p): Likewise.
43437         * tests/test-trunc2.c (correct_result_p): Likewise.
43438         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43439
43440 2007-10-20  Bruno Haible  <bruno@clisp.org>
43441
43442         * modules/ceil: New file.
43443         * m4/ceil.m4: New file.
43444         * doc/functions/ceil.texi: Mention the 'ceil' module.
43445
43446 2007-10-20  Bruno Haible  <bruno@clisp.org>
43447
43448         * modules/floor: New file.
43449         * m4/floor.m4: New file.
43450         * doc/functions/floor.texi: Mention the 'floor' module.
43451
43452 2007-10-20  Bruno Haible  <bruno@clisp.org>
43453
43454         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
43455         of %a.
43456         * modules/floorf-tests (Depends-on): Likewise.
43457         * modules/truncf-tests (Depends-on): Likewise.
43458         * modules/trunc-tests (Depends-on): Likewise.
43459         Reported by Ben Pfaff.
43460
43461 2007-10-19  Jim Meyering  <meyering@redhat.com>
43462
43463         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
43464         Don't bother testing specific errno values.  Just test ferror.
43465
43466         New module: xprintf
43467         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
43468
43469 2007-10-19  Bruno Haible  <bruno@clisp.org>
43470
43471         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
43472         syntax.
43473         * modules/javaexec (Makefile.am): Likewise.
43474         * modules/relocatable-prog (Makefile.am): Likewise.
43475         Suggested by Jim Meyering.
43476
43477 2007-10-18  Bruno Haible  <bruno@clisp.org>
43478
43479         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
43480         Reported by Jim Meyering.
43481
43482 2007-10-18  Eric Blake  <ebb9@byu.net>
43483
43484         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
43485
43486 2007-10-18  Bruno Haible  <bruno@clisp.org>
43487
43488         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
43489         the format string into writable memory. Needed in Fortify conditions.
43490
43491 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
43492             Bruno Haible  <bruno@clisp.org>
43493
43494         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
43495         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
43496         * modules/trim (Depends-on): Add mbchar.
43497         (configure.ac): Add gl_FUNC_MBRTOWC.
43498         (Makefile.am): Augment lib_SOURCES.
43499
43500 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
43501
43502         Modify glob.c to use fstatat and dirfd, to simplify it.
43503         Suggested by Eric Blake.
43504         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
43505         Don't include <stdbool.h>; not used.
43506         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
43507         (link_exists_p): Simplify implementation, since we can now assume
43508         dirfd and fstatat.
43509         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
43510
43511 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43512
43513         * gnulib-tool (func_get_dependencies): Fix sed script to
43514         match only tests.
43515
43516 2007-10-17  Bruno Haible  <bruno@clisp.org>
43517
43518         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
43519         allow locale names without encoding suffix.
43520         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43521         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43522
43523 2007-10-16  Bruno Haible  <bruno@clisp.org>
43524
43525         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
43526         * lib/getgroups.c (getgroups): Likewise.
43527         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
43528
43529 2007-10-16  Bruno Haible  <bruno@clisp.org>
43530
43531         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
43532         * modules/malloc-posix (License): Likewise.
43533         * modules/realloc-posix (License): Likewise.
43534         * modules/calloc-posix (License): Likewise.
43535         * modules/intprops (License): Change from GPL to LGPL, with
43536         Paul Eggert's approval.
43537
43538 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43539
43540         Merge glibc changes into lib/glob.c.
43541
43542         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
43543         2007-10-15 04:59:03 UTC.  Here are the changes:
43544
43545         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
43546
43547         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
43548
43549         * lib/glob.c: Add some branch prediction throughout.
43550
43551         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
43552
43553         [BZ #5103]
43554         * lib/glob.c (glob): Recognize patterns starting \/.
43555
43556         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
43557
43558         [BZ #3996]
43559         * lib/glob.c (attribute_hidden): Define if not defined.
43560         (glob): Unescape dirname, filename or username when needed and not
43561         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
43562         is NULL.  Handle unescaped [ in pattern without closing ].
43563         Don't pass GLOB_CHECK down to recursive glob for directories.
43564         (__glob_pattern_type): New function.
43565         (__glob_pattern_p): Implement using __glob_pattern_type.
43566         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
43567         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
43568         Remove unreachable code.
43569
43570         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
43571
43572         * lib/glob.c (glob_in_dir): Add some comments and asserts to
43573         explain why there are no leaks.
43574
43575         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
43576
43577         [BZ #3253]
43578         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
43579         time, rather allocate increasingly bigger arrays of pointers, if
43580         possible with alloca, if too large with malloc.
43581
43582 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43583
43584         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
43585         Problem reported by H.Merijn Brand in
43586         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
43587         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
43588         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
43589
43590 2007-10-15  Bruno Haible  <bruno@clisp.org>
43591
43592         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
43593         with explicit rpl_ prefix.
43594         * lib/fopen.c (fopen): Likewise.
43595         * lib/freopen.c (freopen): Likewise.
43596         * lib/iconv.c (iconv): Likewise.
43597         * lib/iconv_close.c (iconv_close): Likewise.
43598
43599 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43600
43601         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
43602
43603 2007-10-15  Bruno Haible  <bruno@clisp.org>
43604
43605         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
43606         <stddef.h> instead of <stdlib.h> since we only need NULL.
43607         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43608
43609 2007-10-15  Bruno Haible  <bruno@clisp.org>
43610
43611         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
43612         Replace paragraph talking about LIBOBJS.
43613         Reported by Colin Watson <cjwatson@debian.org>.
43614
43615 2007-10-15  Bruno Haible  <bruno@clisp.org>
43616
43617         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
43618         <stdlib.h> before using NULL.
43619
43620 2007-10-15  Simon Josefsson  <simon@josefsson.org>
43621
43622         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
43623         Reported by Albert Chin <china@thewrittenword.com>.
43624
43625 2007-10-14  Bruno Haible  <bruno@clisp.org>
43626
43627         * modules/iconv_open-utf-tests: New file.
43628         * tests/test-iconv-utf.c: New file.
43629
43630         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
43631         * modules/iconv_open-utf: New file.
43632         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
43633         (iconv, iconv_close): New declarations.
43634         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
43635         be defined.
43636         (iconv_open): Add special handling of conversion between UTF-8 and
43637         UTF-{16,32}{BE,LE}.
43638         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
43639         * lib/iconv_close.c: New file.
43640         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
43641         gl_FUNC_ICONV_OPEN.
43642         (gl_FUNC_ICONV_OPEN): Use it.
43643         (gl_FUNC_ICONV_OPEN_UTF): New macro.
43644         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
43645         and REPLACE_ICONV_UTF.
43646         * modules/iconv_open (Depends-on): Add c-strcase.
43647         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
43648         ICONV_CONST.
43649         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
43650
43651 2007-10-13  Albert Chin  <china@thewrittenword.com>
43652             Bruno Haible  <bruno@clisp.org>
43653
43654         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
43655         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
43656
43657 2007-10-13  Bruno Haible  <bruno@clisp.org>
43658
43659         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
43660         defined, use the ISO C99 inline semantics.
43661         * lib/argp.h (ARGP_EI): Likewise.
43662
43663 2007-10-13  Bruno Haible  <bruno@clisp.org>
43664
43665         Handle 'inline' change in gcc 4.3.0.
43666         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
43667         argp_fmtstream_write, argp_fmtstream_set_lmargin,
43668         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
43669         argp_fmtstream_point): Disable 'extern' declaration if the function
43670         definition is going to be provided inline.
43671         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
43672         semantics, not the ISO C99 inline semantics.
43673         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
43674         'extern' declaration if the function definition is going to be provided
43675         inline.
43676         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
43677         the GNU C inline semantics, not the ISO C99 inline semantics. With
43678         GCC 4.2, avoid a warning.
43679
43680 2007-10-13  Bruno Haible  <bruno@clisp.org>
43681
43682         * lib/freading.h (freading): Enable the use of __freading for
43683         glibc >= 2.7.
43684         * lib/freading.c (freading): Likewise.
43685
43686 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43687
43688         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
43689         "warning: C99 inline functions are not supported; using GNU89".
43690
43691 2007-10-12  Bruno Haible  <bruno@clisp.org>
43692
43693         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
43694         of 2.
43695         * tests/test-ceilf2.c: New file.
43696         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
43697
43698         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
43699         * modules/ceilf-tests: Update.
43700
43701 2007-10-12  Bruno Haible  <bruno@clisp.org>
43702
43703         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
43704         of 2.
43705         * tests/test-floorf2.c: New file.
43706         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
43707
43708         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
43709         * modules/floorf-tests: Update.
43710
43711 2007-10-12  Bruno Haible  <bruno@clisp.org>
43712
43713         * tests/test-trunc2.c: New file.
43714         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
43715
43716         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
43717         * modules/trunc-tests: Update.
43718
43719 2007-10-12  Bruno Haible  <bruno@clisp.org>
43720
43721         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
43722         of 2.
43723         * tests/test-truncf2.c: New file.
43724         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
43725
43726         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
43727         * modules/truncf-tests: Update.
43728
43729 2007-10-11  Eric Blake  <ebb9@byu.net>
43730
43731         Don't claim strerror is broken on Interix.
43732         * doc/functions/strerror.texi (strerror): Known broken systems are
43733         now Solaris 8, and not Interix.
43734         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
43735         Interix on cross-compile.
43736         Reported by Martin Koeppe in
43737         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
43738
43739 2007-10-11  Bruno Haible  <bruno@clisp.org>
43740
43741         * modules/i-ring-tests: New file.
43742         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
43743         instead of assert.
43744
43745 2007-10-11  Bruno Haible  <bruno@clisp.org>
43746
43747         * modules/filenamecat-tests: New file.
43748         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
43749         * lib/filenamecat.c: Remove test code.
43750
43751 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43752
43753         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
43754
43755         * lib/strerror.c: Include <string.h> always, to test interface,
43756         and to remove the need for the dummy.
43757         Include intprops.h to compute width instead of doing it ourselves
43758         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
43759         (strerror): Define it to return NULL if there's no system strerror.
43760         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
43761         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
43762         ancient pre-strerror Unix systems well any more.  Saying "unknown
43763         system error" is enough.
43764         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
43765         simpler strerror.c implementation.
43766         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
43767         Simplify the tests to reflect the simpler strerror implementation.
43768         * modules/strerror (Depends-on): Add intprops.
43769
43770 2007-10-09  Eric Blake  <ebb9@byu.net>
43771
43772         Silence test-fpending.
43773         * modules/fpending-tests (Files): Add wrapper script.
43774         * tests/test-fpending.sh: New file.
43775
43776 2007-10-09  Bruno Haible  <bruno@clisp.org>
43777
43778         * MODULES.html.sh (func_module): Don't create a hyperlink for
43779         function names like 'printf_frexp'.
43780         (Misc): Add crc, memxor.
43781         (Characteristics of floating types): New section.
43782         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
43783         isnanf-nolibm, signbit, trunc, truncf, truncl.
43784         (Enhancements for ISO C 99 functions): New subsection Input/output.
43785         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
43786         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
43787         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
43788         (Compatibility checks for POSIX:2001 functions): Add clock-time.
43789         (Enhancements for POSIX:2001 functions): Add chdir-long.
43790         (File system functions): Add areadlink, chdir-safer, read-file.
43791         Remove cycle-check.
43792         (File system as inode set): New section.
43793         (Date and time): Add gethrxtime.
43794         (Multithreading): Add openmp.
43795         (Internationalization functions): Add localename.
43796         (Unicode string functions): Add unistr/u*-mbsnlen.
43797         (Support for maintaining and releasing projects): Add git-version-gen.
43798         (Lone files): Remove directories.
43799
43800 2007-10-08  Ben Pfaff  <blp@gnu.org>
43801
43802         * lib/xmalloca.h: Fix typo in comment.
43803
43804 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43805
43806         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
43807         when avoiding problems with integer overflow.  Use a portable test
43808         instead.
43809
43810 2007-10-08  Simon Josefsson  <simon@josefsson.org>
43811
43812         * modules/dummy (License): Change to LGPLv2+.
43813         * modules/float (License): Likewise
43814         * modules/realloc (License): Likewise
43815         * modules/stdlib (License): Likewise
43816
43817 2007-10-07  Bruno Haible  <bruno@clisp.org>
43818
43819         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
43820         * floor.c (TWO_MANT_DIG): Likewise.
43821         * ceil.c (TWO_MANT_DIG): Likewise.
43822         Reported by Ben Pfaff.
43823
43824 2007-10-07  Bruno Haible  <bruno@clisp.org>
43825
43826         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
43827         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
43828         * lib/frexp.c (FUNC): Likewise.
43829         * lib/printf-frexp.h (printf_frexp): Likewise.
43830         * lib/printf-frexpl.h (printf_frexpl): Likewise.
43831         * lib/printf-frexp.c (FUNC): Likewise.
43832         Suggested by Jim Meyering.
43833
43834 2007-10-07  Jim Meyering  <meyering@redhat.com>
43835
43836         Make xnanosleep's integer overflow test more robust.
43837         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
43838         so that gcc-4.3.0 doesn't optimize away this test for overflow.
43839
43840 2007-10-07  Bruno Haible  <bruno@clisp.org>
43841
43842         * NEWS: Mention the license change.
43843
43844         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
43845         abbreviations in the modules files.
43846
43847         Change copyright notice from GPLv2+ to GPLv3+.
43848         * README: Change copyright notice.
43849         * MODULES.html.sh: Likewise.
43850         * build-aux/bootstrap.conf: Likewise.
43851         * build-aux/config.libpath: Likewise.
43852         * build-aux/csharpcomp.sh.in: Likewise.
43853         * build-aux/csharpexec.sh.in: Likewise.
43854         * build-aux/install-reloc: Likewise.
43855         * build-aux/javacomp.sh.in: Likewise.
43856         * build-aux/javaexec.sh.in: Likewise.
43857         * build-aux/ldd.sh.in: Likewise.
43858         * build-aux/reloc-ldflags: Likewise.
43859         * build-aux/relocatable.sh.in: Likewise.
43860         * build-aux/x-to-1.in: Likewise.
43861         * check-module: Likewise.
43862         * config/srclistvars.sh: Likewise.
43863         * gnulib-tool: Likewise.
43864         * lib/acl-internal.h: Likewise.
43865         * lib/acl.c: Likewise.
43866         * lib/acl.h: Likewise.
43867         * lib/acl_entries.c: Likewise.
43868         * lib/areadlink-with-size.c: Likewise.
43869         * lib/areadlink.c: Likewise.
43870         * lib/areadlink.h: Likewise.
43871         * lib/argmatch.c: Likewise.
43872         * lib/argmatch.h: Likewise.
43873         * lib/argp-ba.c: Likewise.
43874         * lib/argp-eexst.c: Likewise.
43875         * lib/argp-fmtstream.c: Likewise.
43876         * lib/argp-fmtstream.h: Likewise.
43877         * lib/argp-fs-xinl.c: Likewise.
43878         * lib/argp-help.c: Likewise.
43879         * lib/argp-namefrob.h: Likewise.
43880         * lib/argp-parse.c: Likewise.
43881         * lib/argp-pin.c: Likewise.
43882         * lib/argp-pv.c: Likewise.
43883         * lib/argp-pvh.c: Likewise.
43884         * lib/argp-xinl.c: Likewise.
43885         * lib/argp.h: Likewise.
43886         * lib/at-func.c: Likewise.
43887         * lib/atanl.c: Likewise.
43888         * lib/backupfile.c: Likewise.
43889         * lib/backupfile.h: Likewise.
43890         * lib/basename.c: Likewise.
43891         * lib/binary-io.h: Likewise.
43892         * lib/byteswap.in.h: Likewise.
43893         * lib/c-stack.c: Likewise.
43894         * lib/c-stack.h: Likewise.
43895         * lib/c-strcasestr.c: Likewise.
43896         * lib/c-strcasestr.h: Likewise.
43897         * lib/c-strstr.c: Likewise.
43898         * lib/c-strstr.h: Likewise.
43899         * lib/c-strtod.c: Likewise.
43900         * lib/calloc.c: Likewise.
43901         * lib/canon-host.c: Likewise.
43902         * lib/canon-host.h: Likewise.
43903         * lib/canonicalize-lgpl.c: Likewise.
43904         * lib/canonicalize.c: Likewise.
43905         * lib/canonicalize.h: Likewise.
43906         * lib/ceil.c: Likewise.
43907         * lib/ceilf.c: Likewise.
43908         * lib/ceill.c: Likewise.
43909         * lib/chdir-long.c: Likewise.
43910         * lib/chdir-long.h: Likewise.
43911         * lib/chdir-safer.c: Likewise.
43912         * lib/chdir-safer.h: Likewise.
43913         * lib/chown.c: Likewise.
43914         * lib/classpath.c: Likewise.
43915         * lib/classpath.h: Likewise.
43916         * lib/clean-temp.c: Likewise.
43917         * lib/clean-temp.h: Likewise.
43918         * lib/cloexec.c: Likewise.
43919         * lib/close-stream.c: Likewise.
43920         * lib/closein.c: Likewise.
43921         * lib/closein.h: Likewise.
43922         * lib/closeout.c: Likewise.
43923         * lib/closeout.h: Likewise.
43924         * lib/concat-filename.c: Likewise.
43925         * lib/copy-file.c: Likewise.
43926         * lib/copy-file.h: Likewise.
43927         * lib/count-one-bits.h: Likewise.
43928         * lib/crc.c: Likewise.
43929         * lib/crc.h: Likewise.
43930         * lib/creat-safer.c: Likewise.
43931         * lib/csharpcomp.c: Likewise.
43932         * lib/csharpcomp.h: Likewise.
43933         * lib/csharpexec.c: Likewise.
43934         * lib/csharpexec.h: Likewise.
43935         * lib/cycle-check.c: Likewise.
43936         * lib/cycle-check.h: Likewise.
43937         * lib/diacrit.c: Likewise.
43938         * lib/diacrit.h: Likewise.
43939         * lib/diffseq.h: Likewise.
43940         * lib/dirchownmod.c: Likewise.
43941         * lib/dirent.in.h: Likewise.
43942         * lib/dirfd.c: Likewise.
43943         * lib/dirfd.h: Likewise.
43944         * lib/dirname.c: Likewise.
43945         * lib/dirname.h: Likewise.
43946         * lib/dummy.c: Likewise.
43947         * lib/dup-safer.c: Likewise.
43948         * lib/dup2.c: Likewise.
43949         * lib/eealloc.h: Likewise.
43950         * lib/error.c: Likewise.
43951         * lib/error.h: Likewise.
43952         * lib/euidaccess.c: Likewise.
43953         * lib/exclude.c: Likewise.
43954         * lib/exclude.h: Likewise.
43955         * lib/execute.c: Likewise.
43956         * lib/execute.h: Likewise.
43957         * lib/exitfail.c: Likewise.
43958         * lib/exitfail.h: Likewise.
43959         * lib/expl.c: Likewise.
43960         * lib/fatal-signal.c: Likewise.
43961         * lib/fatal-signal.h: Likewise.
43962         * lib/fbufmode.c: Likewise.
43963         * lib/fbufmode.h: Likewise.
43964         * lib/fchdir.c: Likewise.
43965         * lib/fchmodat.c: Likewise.
43966         * lib/fchownat.c: Likewise.
43967         * lib/fcntl--.h: Likewise.
43968         * lib/fcntl-safer.h: Likewise.
43969         * lib/fcntl.in.h: Likewise.
43970         * lib/fd-safer.c: Likewise.
43971         * lib/fflush.c: Likewise.
43972         * lib/file-has-acl.c: Likewise.
43973         * lib/file-set.c: Likewise.
43974         * lib/file-type.c: Likewise.
43975         * lib/file-type.h: Likewise.
43976         * lib/fileblocks.c: Likewise.
43977         * lib/filemode.c: Likewise.
43978         * lib/filemode.h: Likewise.
43979         * lib/filename.h: Likewise.
43980         * lib/filenamecat.c: Likewise.
43981         * lib/filenamecat.h: Likewise.
43982         * lib/findprog.c: Likewise.
43983         * lib/findprog.h: Likewise.
43984         * lib/float.in.h: Likewise.
43985         * lib/floor.c: Likewise.
43986         * lib/floorf.c: Likewise.
43987         * lib/floorl.c: Likewise.
43988         * lib/fopen-safer.c: Likewise.
43989         * lib/fopen.c: Likewise.
43990         * lib/fpending.c: Likewise.
43991         * lib/fpending.h: Likewise.
43992         * lib/fprintf.c: Likewise.
43993         * lib/fprintftime.h: Likewise.
43994         * lib/fpucw.h: Likewise.
43995         * lib/fpurge.c: Likewise.
43996         * lib/fpurge.h: Likewise.
43997         * lib/freadable.c: Likewise.
43998         * lib/freadable.h: Likewise.
43999         * lib/freadahead.c: Likewise.
44000         * lib/freadahead.h: Likewise.
44001         * lib/freading.c: Likewise.
44002         * lib/freading.h: Likewise.
44003         * lib/free.c: Likewise.
44004         * lib/freopen.c: Likewise.
44005         * lib/frexp.c: Likewise.
44006         * lib/frexpl.c: Likewise.
44007         * lib/fseek.c: Likewise.
44008         * lib/fseterr.c: Likewise.
44009         * lib/fseterr.h: Likewise.
44010         * lib/fstatat.c: Likewise.
44011         * lib/fstrcmp.c: Likewise.
44012         * lib/fstrcmp.h: Likewise.
44013         * lib/fsusage.c: Likewise.
44014         * lib/fsusage.h: Likewise.
44015         * lib/ftell.c: Likewise.
44016         * lib/ftello.c: Likewise.
44017         * lib/fts-cycle.c: Likewise.
44018         * lib/fts.c: Likewise.
44019         * lib/fts_.h: Likewise.
44020         * lib/full-read.c: Likewise.
44021         * lib/full-read.h: Likewise.
44022         * lib/full-write.c: Likewise.
44023         * lib/full-write.h: Likewise.
44024         * lib/fwritable.c: Likewise.
44025         * lib/fwritable.h: Likewise.
44026         * lib/fwriteerror.c: Likewise.
44027         * lib/fwriteerror.h: Likewise.
44028         * lib/fwriting.c: Likewise.
44029         * lib/fwriting.h: Likewise.
44030         * lib/gcd.c: Likewise.
44031         * lib/gcd.h: Likewise.
44032         * lib/getcwd.c: Likewise.
44033         * lib/getdate.h: Likewise.
44034         * lib/getdate.y: Likewise.
44035         * lib/getdomainname.c: Likewise.
44036         * lib/getdomainname.h: Likewise.
44037         * lib/getgroups.c: Likewise.
44038         * lib/gethostname.c: Likewise.
44039         * lib/gethrxtime.c: Likewise.
44040         * lib/gethrxtime.h: Likewise.
44041         * lib/getloadavg.c: Likewise.
44042         * lib/getndelim2.c: Likewise.
44043         * lib/getndelim2.h: Likewise.
44044         * lib/getnline.c: Likewise.
44045         * lib/getnline.h: Likewise.
44046         * lib/getopt.c: Likewise.
44047         * lib/getopt.in.h: Likewise.
44048         * lib/getopt1.c: Likewise.
44049         * lib/getopt_int.h: Likewise.
44050         * lib/getpagesize.h: Likewise.
44051         * lib/getsubopt.c: Likewise.
44052         * lib/gettime.c: Likewise.
44053         * lib/getugroups.c: Likewise.
44054         * lib/getugroups.h: Likewise.
44055         * lib/getusershell.c: Likewise.
44056         * lib/gl_anyavltree_list1.h: Likewise.
44057         * lib/gl_anyavltree_list2.h: Likewise.
44058         * lib/gl_anyhash_list1.h: Likewise.
44059         * lib/gl_anyhash_list2.h: Likewise.
44060         * lib/gl_anylinked_list1.h: Likewise.
44061         * lib/gl_anylinked_list2.h: Likewise.
44062         * lib/gl_anyrbtree_list1.h: Likewise.
44063         * lib/gl_anyrbtree_list2.h: Likewise.
44064         * lib/gl_anytree_list1.h: Likewise.
44065         * lib/gl_anytree_list2.h: Likewise.
44066         * lib/gl_anytree_oset.h: Likewise.
44067         * lib/gl_anytreehash_list1.h: Likewise.
44068         * lib/gl_anytreehash_list2.h: Likewise.
44069         * lib/gl_array_list.c: Likewise.
44070         * lib/gl_array_list.h: Likewise.
44071         * lib/gl_array_oset.c: Likewise.
44072         * lib/gl_array_oset.h: Likewise.
44073         * lib/gl_avltree_list.c: Likewise.
44074         * lib/gl_avltree_list.h: Likewise.
44075         * lib/gl_avltree_oset.c: Likewise.
44076         * lib/gl_avltree_oset.h: Likewise.
44077         * lib/gl_avltreehash_list.c: Likewise.
44078         * lib/gl_avltreehash_list.h: Likewise.
44079         * lib/gl_carray_list.c: Likewise.
44080         * lib/gl_carray_list.h: Likewise.
44081         * lib/gl_linked_list.c: Likewise.
44082         * lib/gl_linked_list.h: Likewise.
44083         * lib/gl_linkedhash_list.c: Likewise.
44084         * lib/gl_linkedhash_list.h: Likewise.
44085         * lib/gl_list.c: Likewise.
44086         * lib/gl_list.h: Likewise.
44087         * lib/gl_oset.c: Likewise.
44088         * lib/gl_oset.h: Likewise.
44089         * lib/gl_rbtree_list.c: Likewise.
44090         * lib/gl_rbtree_list.h: Likewise.
44091         * lib/gl_rbtree_oset.c: Likewise.
44092         * lib/gl_rbtree_oset.h: Likewise.
44093         * lib/gl_rbtreehash_list.c: Likewise.
44094         * lib/gl_rbtreehash_list.h: Likewise.
44095         * lib/gl_sublist.c: Likewise.
44096         * lib/gl_sublist.h: Likewise.
44097         * lib/group-member.c: Likewise.
44098         * lib/group-member.h: Likewise.
44099         * lib/hard-locale.c: Likewise.
44100         * lib/hard-locale.h: Likewise.
44101         * lib/hash-pjw.c: Likewise.
44102         * lib/hash-pjw.h: Likewise.
44103         * lib/hash-triple.c: Likewise.
44104         * lib/hash.c: Likewise.
44105         * lib/hash.h: Likewise.
44106         * lib/human.c: Likewise.
44107         * lib/human.h: Likewise.
44108         * lib/i-ring.c: Likewise.
44109         * lib/i-ring.h: Likewise.
44110         * lib/idcache.c: Likewise.
44111         * lib/imaxabs.c: Likewise.
44112         * lib/imaxdiv.c: Likewise.
44113         * lib/inet_pton.c: Likewise.
44114         * lib/inet_pton.h: Likewise.
44115         * lib/intprops.h: Likewise.
44116         * lib/inttostr.c: Likewise.
44117         * lib/inttostr.h: Likewise.
44118         * lib/inttypes.in.h: Likewise.
44119         * lib/isapipe.c: Likewise.
44120         * lib/isdir.c: Likewise.
44121         * lib/isnan.c: Likewise.
44122         * lib/isnan.h: Likewise.
44123         * lib/isnanf.c: Likewise.
44124         * lib/isnanf.h: Likewise.
44125         * lib/isnanl-nolibm.h: Likewise.
44126         * lib/isnanl.c: Likewise.
44127         * lib/isnanl.h: Likewise.
44128         * lib/javacomp.c: Likewise.
44129         * lib/javacomp.h: Likewise.
44130         * lib/javaexec.c: Likewise.
44131         * lib/javaexec.h: Likewise.
44132         * lib/javaversion.c: Likewise.
44133         * lib/javaversion.h: Likewise.
44134         * lib/javaversion.java: Likewise.
44135         * lib/lbrkprop.h: Likewise.
44136         * lib/lchmod.h: Likewise.
44137         * lib/lchown.c: Likewise.
44138         * lib/ldexpl.c: Likewise.
44139         * lib/linebreak.c: Likewise.
44140         * lib/linebreak.h: Likewise.
44141         * lib/linebuffer.c: Likewise.
44142         * lib/linebuffer.h: Likewise.
44143         * lib/locale.in.h: Likewise.
44144         * lib/logl.c: Likewise.
44145         * lib/long-options.c: Likewise.
44146         * lib/long-options.h: Likewise.
44147         * lib/lstat.c: Likewise.
44148         * lib/lstat.h: Likewise.
44149         * lib/math.in.h: Likewise.
44150         * lib/mbchar.c: Likewise.
44151         * lib/mbchar.h: Likewise.
44152         * lib/mbfile.h: Likewise.
44153         * lib/mbiter.h: Likewise.
44154         * lib/mbscasecmp.c: Likewise.
44155         * lib/mbscasestr.c: Likewise.
44156         * lib/mbschr.c: Likewise.
44157         * lib/mbscspn.c: Likewise.
44158         * lib/mbslen.c: Likewise.
44159         * lib/mbsncasecmp.c: Likewise.
44160         * lib/mbsnlen.c: Likewise.
44161         * lib/mbspbrk.c: Likewise.
44162         * lib/mbspcasecmp.c: Likewise.
44163         * lib/mbsrchr.c: Likewise.
44164         * lib/mbssep.c: Likewise.
44165         * lib/mbsspn.c: Likewise.
44166         * lib/mbsstr.c: Likewise.
44167         * lib/mbstok_r.c: Likewise.
44168         * lib/mbswidth.c: Likewise.
44169         * lib/mbswidth.h: Likewise.
44170         * lib/mbuiter.h: Likewise.
44171         * lib/memcasecmp.c: Likewise.
44172         * lib/memcasecmp.h: Likewise.
44173         * lib/memchr.c: Likewise.
44174         * lib/memcmp.c: Likewise.
44175         * lib/memcoll.c: Likewise.
44176         * lib/memcoll.h: Likewise.
44177         * lib/memcpy.c: Likewise.
44178         * lib/memrchr.c: Likewise.
44179         * lib/mkancesdirs.c: Likewise.
44180         * lib/mkdir-p.c: Likewise.
44181         * lib/mkdir-p.h: Likewise.
44182         * lib/mkdir.c: Likewise.
44183         * lib/mkdirat.c: Likewise.
44184         * lib/mkdtemp.c: Likewise.
44185         * lib/mkstemp-safer.c: Likewise.
44186         * lib/mkstemp.c: Likewise.
44187         * lib/modechange.c: Likewise.
44188         * lib/modechange.h: Likewise.
44189         * lib/mountlist.c: Likewise.
44190         * lib/mountlist.h: Likewise.
44191         * lib/mpsort.c: Likewise.
44192         * lib/nanosleep.c: Likewise.
44193         * lib/obstack.c: Likewise.
44194         * lib/obstack.h: Likewise.
44195         * lib/open-safer.c: Likewise.
44196         * lib/open.c: Likewise.
44197         * lib/openat-die.c: Likewise.
44198         * lib/openat-priv.h: Likewise.
44199         * lib/openat-proc.c: Likewise.
44200         * lib/openat.c: Likewise.
44201         * lib/openat.h: Likewise.
44202         * lib/pagealign_alloc.c: Likewise.
44203         * lib/pagealign_alloc.h: Likewise.
44204         * lib/physmem.c: Likewise.
44205         * lib/physmem.h: Likewise.
44206         * lib/pipe-safer.c: Likewise.
44207         * lib/pipe.c: Likewise.
44208         * lib/pipe.h: Likewise.
44209         * lib/posixtm.c: Likewise.
44210         * lib/posixtm.h: Likewise.
44211         * lib/posixver.c: Likewise.
44212         * lib/printf-frexp.c: Likewise.
44213         * lib/printf-frexp.h: Likewise.
44214         * lib/printf-frexpl.c: Likewise.
44215         * lib/printf-frexpl.h: Likewise.
44216         * lib/printf.c: Likewise.
44217         * lib/progname.c: Likewise.
44218         * lib/progname.h: Likewise.
44219         * lib/progreloc.c: Likewise.
44220         * lib/putenv.c: Likewise.
44221         * lib/quote.c: Likewise.
44222         * lib/quote.h: Likewise.
44223         * lib/quotearg.c: Likewise.
44224         * lib/quotearg.h: Likewise.
44225         * lib/raise.c: Likewise.
44226         * lib/readline.c: Likewise.
44227         * lib/readline.h: Likewise.
44228         * lib/readlink.c: Likewise.
44229         * lib/readtokens.c: Likewise.
44230         * lib/readtokens.h: Likewise.
44231         * lib/readtokens0.c: Likewise.
44232         * lib/readtokens0.h: Likewise.
44233         * lib/readutmp.c: Likewise.
44234         * lib/readutmp.h: Likewise.
44235         * lib/realloc.c: Likewise.
44236         * lib/relocwrapper.c: Likewise.
44237         * lib/rename-dest-slash.c: Likewise.
44238         * lib/rename.c: Likewise.
44239         * lib/rmdir.c: Likewise.
44240         * lib/rpmatch.c: Likewise.
44241         * lib/safe-read.c: Likewise.
44242         * lib/safe-read.h: Likewise.
44243         * lib/safe-write.c: Likewise.
44244         * lib/safe-write.h: Likewise.
44245         * lib/same-inode.h: Likewise.
44246         * lib/same.c: Likewise.
44247         * lib/same.h: Likewise.
44248         * lib/save-cwd.c: Likewise.
44249         * lib/save-cwd.h: Likewise.
44250         * lib/savedir.c: Likewise.
44251         * lib/savedir.h: Likewise.
44252         * lib/savewd.c: Likewise.
44253         * lib/savewd.h: Likewise.
44254         * lib/search.in.h: Likewise.
44255         * lib/setenv.c: Likewise.
44256         * lib/setenv.h: Likewise.
44257         * lib/settime.c: Likewise.
44258         * lib/sh-quote.c: Likewise.
44259         * lib/sh-quote.h: Likewise.
44260         * lib/sig2str.c: Likewise.
44261         * lib/sig2str.h: Likewise.
44262         * lib/signal.in.h: Likewise.
44263         * lib/signbitd.c: Likewise.
44264         * lib/signbitf.c: Likewise.
44265         * lib/signbitl.c: Likewise.
44266         * lib/sigprocmask.c: Likewise.
44267         * lib/sincosl.c: Likewise.
44268         * lib/sleep.c: Likewise.
44269         * lib/sprintf.c: Likewise.
44270         * lib/sqrtl.c: Likewise.
44271         * lib/stat-time.h: Likewise.
44272         * lib/stdio--.h: Likewise.
44273         * lib/stdio-safer.h: Likewise.
44274         * lib/stdlib--.h: Likewise.
44275         * lib/stdlib-safer.h: Likewise.
44276         * lib/stdlib.in.h: Likewise.
44277         * lib/stpcpy.c: Likewise.
44278         * lib/stpncpy.c: Likewise.
44279         * lib/strchrnul.c: Likewise.
44280         * lib/strcspn.c: Likewise.
44281         * lib/strerror.c: Likewise.
44282         * lib/strftime.c: Likewise.
44283         * lib/strftime.h: Likewise.
44284         * lib/striconveh.c: Likewise.
44285         * lib/striconveh.h: Likewise.
44286         * lib/striconveha.c: Likewise.
44287         * lib/striconveha.h: Likewise.
44288         * lib/stripslash.c: Likewise.
44289         * lib/strnlen1.c: Likewise.
44290         * lib/strnlen1.h: Likewise.
44291         * lib/strtod.c: Likewise.
44292         * lib/strtoimax.c: Likewise.
44293         * lib/strtok_r.c: Likewise.
44294         * lib/strtol.c: Likewise.
44295         * lib/strtoll.c: Likewise.
44296         * lib/strtoul.c: Likewise.
44297         * lib/strtoull.c: Likewise.
44298         * lib/sysexits.in.h: Likewise.
44299         * lib/tempname.c: Likewise.
44300         * lib/tempname.h: Likewise.
44301         * lib/timespec.h: Likewise.
44302         * lib/tls.c: Likewise.
44303         * lib/tls.h: Likewise.
44304         * lib/tmpdir.c: Likewise.
44305         * lib/tmpdir.h: Likewise.
44306         * lib/tmpfile-safer.c: Likewise.
44307         * lib/tmpfile.c: Likewise.
44308         * lib/trigl.c: Likewise.
44309         * lib/trigl.h: Likewise.
44310         * lib/trim.c: Likewise.
44311         * lib/trim.h: Likewise.
44312         * lib/trunc.c: Likewise.
44313         * lib/truncf.c: Likewise.
44314         * lib/truncl.c: Likewise.
44315         * lib/tsearch.c: Likewise.
44316         * lib/unicodeio.c: Likewise.
44317         * lib/unicodeio.h: Likewise.
44318         * lib/unistd--.h: Likewise.
44319         * lib/unistd-safer.h: Likewise.
44320         * lib/unistdio/ulc-fprintf.c: Likewise.
44321         * lib/unistdio/ulc-vfprintf.c: Likewise.
44322         * lib/unlinkdir.c: Likewise.
44323         * lib/unlinkdir.h: Likewise.
44324         * lib/unlocked-io.h: Likewise.
44325         * lib/unsetenv.c: Likewise.
44326         * lib/userspec.c: Likewise.
44327         * lib/utime.c: Likewise.
44328         * lib/utimecmp.c: Likewise.
44329         * lib/utimecmp.h: Likewise.
44330         * lib/utimens.c: Likewise.
44331         * lib/verify.h: Likewise.
44332         * lib/verror.c: Likewise.
44333         * lib/verror.h: Likewise.
44334         * lib/version-etc-fsf.c: Likewise.
44335         * lib/version-etc.c: Likewise.
44336         * lib/version-etc.h: Likewise.
44337         * lib/vfprintf.c: Likewise.
44338         * lib/vprintf.c: Likewise.
44339         * lib/vsprintf.c: Likewise.
44340         * lib/w32spawn.h: Likewise.
44341         * lib/wait-process.c: Likewise.
44342         * lib/wait-process.h: Likewise.
44343         * lib/wcwidth.c: Likewise.
44344         * lib/write-any-file.c: Likewise.
44345         * lib/xalloc-die.c: Likewise.
44346         * lib/xalloc.h: Likewise.
44347         * lib/xasprintf.c: Likewise.
44348         * lib/xgetcwd.c: Likewise.
44349         * lib/xgetcwd.h: Likewise.
44350         * lib/xgetdomainname.c: Likewise.
44351         * lib/xgetdomainname.h: Likewise.
44352         * lib/xgethostname.c: Likewise.
44353         * lib/xmalloc.c: Likewise.
44354         * lib/xmalloca.c: Likewise.
44355         * lib/xmalloca.h: Likewise.
44356         * lib/xmemcoll.c: Likewise.
44357         * lib/xnanosleep.c: Likewise.
44358         * lib/xreadlink.c: Likewise.
44359         * lib/xreadlink.h: Likewise.
44360         * lib/xsetenv.c: Likewise.
44361         * lib/xsetenv.h: Likewise.
44362         * lib/xstriconv.c: Likewise.
44363         * lib/xstriconv.h: Likewise.
44364         * lib/xstrndup.c: Likewise.
44365         * lib/xstrndup.h: Likewise.
44366         * lib/xstrtod.c: Likewise.
44367         * lib/xstrtod.h: Likewise.
44368         * lib/xstrtol-error.c: Likewise.
44369         * lib/xstrtol.c: Likewise.
44370         * lib/xstrtol.h: Likewise.
44371         * lib/xtime.h: Likewise.
44372         * lib/xvasprintf.c: Likewise.
44373         * lib/xvasprintf.h: Likewise.
44374         * lib/yesno.c: Likewise.
44375         * lib/yesno.h: Likewise.
44376         * posix-modules: Likewise.
44377         * tests/test-alloca-opt.c: Likewise.
44378         * tests/test-arcfour.c: Likewise.
44379         * tests/test-arctwo.c: Likewise.
44380         * tests/test-argmatch.c: Likewise.
44381         * tests/test-argp-2.sh: Likewise.
44382         * tests/test-argp.c: Likewise.
44383         * tests/test-arpa_inet.c: Likewise.
44384         * tests/test-array_list.c: Likewise.
44385         * tests/test-array_oset.c: Likewise.
44386         * tests/test-atexit.c: Likewise.
44387         * tests/test-avltree_list.c: Likewise.
44388         * tests/test-avltree_oset.c: Likewise.
44389         * tests/test-avltreehash_list.c: Likewise.
44390         * tests/test-base64.c: Likewise.
44391         * tests/test-binary-io.c: Likewise.
44392         * tests/test-byteswap.c: Likewise.
44393         * tests/test-c-ctype.c: Likewise.
44394         * tests/test-c-strcasecmp.c: Likewise.
44395         * tests/test-c-strcasestr.c: Likewise.
44396         * tests/test-c-strncasecmp.c: Likewise.
44397         * tests/test-c-strstr.c: Likewise.
44398         * tests/test-canonicalize-lgpl.c: Likewise.
44399         * tests/test-canonicalize.c: Likewise.
44400         * tests/test-carray_list.c: Likewise.
44401         * tests/test-ceilf.c: Likewise.
44402         * tests/test-ceill.c: Likewise.
44403         * tests/test-count-one-bits.c: Likewise.
44404         * tests/test-crc.c: Likewise.
44405         * tests/test-dirname.c: Likewise.
44406         * tests/test-fbufmode.c: Likewise.
44407         * tests/test-fcntl.c: Likewise.
44408         * tests/test-fflush.c: Likewise.
44409         * tests/test-floorf.c: Likewise.
44410         * tests/test-floorl.c: Likewise.
44411         * tests/test-fopen.c: Likewise.
44412         * tests/test-fprintf-posix.c: Likewise.
44413         * tests/test-fprintf-posix.h: Likewise.
44414         * tests/test-fpurge.c: Likewise.
44415         * tests/test-freadable.c: Likewise.
44416         * tests/test-freadahead.c: Likewise.
44417         * tests/test-freading.c: Likewise.
44418         * tests/test-freopen.c: Likewise.
44419         * tests/test-frexp.c: Likewise.
44420         * tests/test-frexpl.c: Likewise.
44421         * tests/test-fseek.c: Likewise.
44422         * tests/test-fseeko.c: Likewise.
44423         * tests/test-fseterr.c: Likewise.
44424         * tests/test-fstrcmp.c: Likewise.
44425         * tests/test-ftell.c: Likewise.
44426         * tests/test-ftello.c: Likewise.
44427         * tests/test-fwritable.c: Likewise.
44428         * tests/test-fwriting.c: Likewise.
44429         * tests/test-getaddrinfo.c: Likewise.
44430         * tests/test-getpass.c: Likewise.
44431         * tests/test-gettimeofday.c: Likewise.
44432         * tests/test-hmac-md5.c: Likewise.
44433         * tests/test-hmac-sha1.c: Likewise.
44434         * tests/test-iconv.c: Likewise.
44435         * tests/test-iconvme.c: Likewise.
44436         * tests/test-inttypes.c: Likewise.
44437         * tests/test-isnan.c: Likewise.
44438         * tests/test-isnanf.c: Likewise.
44439         * tests/test-isnanl-nolibm.c: Likewise.
44440         * tests/test-isnanl.c: Likewise.
44441         * tests/test-isnanl.h: Likewise.
44442         * tests/test-ldexpl.c: Likewise.
44443         * tests/test-linked_list.c: Likewise.
44444         * tests/test-linkedhash_list.c: Likewise.
44445         * tests/test-locale.c: Likewise.
44446         * tests/test-localename.c: Likewise.
44447         * tests/test-lock.c: Likewise.
44448         * tests/test-lseek.c: Likewise.
44449         * tests/test-malloca.c: Likewise.
44450         * tests/test-math.c: Likewise.
44451         * tests/test-mbscasecmp.c: Likewise.
44452         * tests/test-mbscasestr1.c: Likewise.
44453         * tests/test-mbscasestr2.c: Likewise.
44454         * tests/test-mbscasestr3.c: Likewise.
44455         * tests/test-mbscasestr4.c: Likewise.
44456         * tests/test-mbschr.c: Likewise.
44457         * tests/test-mbscspn.c: Likewise.
44458         * tests/test-mbsncasecmp.c: Likewise.
44459         * tests/test-mbspbrk.c: Likewise.
44460         * tests/test-mbspcasecmp.c: Likewise.
44461         * tests/test-mbsrchr.c: Likewise.
44462         * tests/test-mbsspn.c: Likewise.
44463         * tests/test-mbsstr1.c: Likewise.
44464         * tests/test-mbsstr2.c: Likewise.
44465         * tests/test-mbsstr3.c: Likewise.
44466         * tests/test-md5.c: Likewise.
44467         * tests/test-memmem.c: Likewise.
44468         * tests/test-netinet_in.c: Likewise.
44469         * tests/test-open.c: Likewise.
44470         * tests/test-printf-frexp.c: Likewise.
44471         * tests/test-printf-frexpl.c: Likewise.
44472         * tests/test-printf-posix.c: Likewise.
44473         * tests/test-printf-posix.h: Likewise.
44474         * tests/test-rbtree_list.c: Likewise.
44475         * tests/test-rbtree_oset.c: Likewise.
44476         * tests/test-rbtreehash_list.c: Likewise.
44477         * tests/test-read-file.c: Likewise.
44478         * tests/test-rijndael.c: Likewise.
44479         * tests/test-search.c: Likewise.
44480         * tests/test-signbit.c: Likewise.
44481         * tests/test-sleep.c: Likewise.
44482         * tests/test-snprintf-posix.c: Likewise.
44483         * tests/test-snprintf-posix.h: Likewise.
44484         * tests/test-snprintf.c: Likewise.
44485         * tests/test-sprintf-posix.c: Likewise.
44486         * tests/test-sprintf-posix.h: Likewise.
44487         * tests/test-stat-time.c: Likewise.
44488         * tests/test-stdbool.c: Likewise.
44489         * tests/test-stdint.c: Likewise.
44490         * tests/test-stdio.c: Likewise.
44491         * tests/test-stdlib.c: Likewise.
44492         * tests/test-stpncpy.c: Likewise.
44493         * tests/test-strcasestr.c: Likewise.
44494         * tests/test-striconv.c: Likewise.
44495         * tests/test-striconveh.c: Likewise.
44496         * tests/test-striconveha.c: Likewise.
44497         * tests/test-string.c: Likewise.
44498         * tests/test-sys_select.c: Likewise.
44499         * tests/test-sys_socket.c: Likewise.
44500         * tests/test-sys_stat.c: Likewise.
44501         * tests/test-sys_time.c: Likewise.
44502         * tests/test-sysexits.c: Likewise.
44503         * tests/test-time.c: Likewise.
44504         * tests/test-tls.c: Likewise.
44505         * tests/test-trunc.c: Likewise.
44506         * tests/test-truncf.c: Likewise.
44507         * tests/test-truncl.c: Likewise.
44508         * tests/test-unistd.c: Likewise.
44509         * tests/test-vasnprintf-posix.c: Likewise.
44510         * tests/test-vasnprintf-posix2.c: Likewise.
44511         * tests/test-vasnprintf.c: Likewise.
44512         * tests/test-vasprintf-posix.c: Likewise.
44513         * tests/test-vasprintf.c: Likewise.
44514         * tests/test-verify.c: Likewise.
44515         * tests/test-vfprintf-posix.c: Likewise.
44516         * tests/test-vprintf-posix.c: Likewise.
44517         * tests/test-vsnprintf-posix.c: Likewise.
44518         * tests/test-vsnprintf.c: Likewise.
44519         * tests/test-vsprintf-posix.c: Likewise.
44520         * tests/test-wchar.c: Likewise.
44521         * tests/test-wctype.c: Likewise.
44522         * tests/test-wcwidth.c: Likewise.
44523         * tests/test-xstrtol.c: Likewise.
44524         * tests/test-xvasprintf.c: Likewise.
44525         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
44526         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
44527         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
44528         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
44529         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
44530         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
44531         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
44532         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
44533         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
44534         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
44535         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
44536         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
44537         * tests/uniname/test-uninames.c: Likewise.
44538         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
44539         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
44540         * tests/unistdio/test-u16-printf1.h: Likewise.
44541         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
44542         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
44543         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
44544         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
44545         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
44546         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
44547         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
44548         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
44549         * tests/unistdio/test-u32-printf1.h: Likewise.
44550         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
44551         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
44552         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
44553         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
44554         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
44555         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
44556         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
44557         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
44558         * tests/unistdio/test-u8-printf1.h: Likewise.
44559         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
44560         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
44561         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
44562         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
44563         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
44564         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
44565         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
44566         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
44567         * tests/unistdio/test-ulc-printf1.h: Likewise.
44568         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
44569         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
44570         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
44571         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
44572         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
44573         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
44574         * tests/uniwidth/test-u16-strwidth.c: Likewise.
44575         * tests/uniwidth/test-u16-width.c: Likewise.
44576         * tests/uniwidth/test-u32-strwidth.c: Likewise.
44577         * tests/uniwidth/test-u32-width.c: Likewise.
44578         * tests/uniwidth/test-u8-strwidth.c: Likewise.
44579         * tests/uniwidth/test-u8-width.c: Likewise.
44580         * tests/uniwidth/test-uc_width.c: Likewise.
44581         * config/srclist-update: Likewise.
44582         (fixlicense): Update to GPLv3+.
44583
44584         Change copyright notice from LGPLv2.1+ to LGPLv3+.
44585         * tests/test-tsearch.c: Change copyright notice.
44586
44587         Change copyright notice from LGPLv2.0+ to LGPLv3+.
44588         * lib/c-strcaseeq.h: Change copyright notice.
44589         * lib/streq.h: Likewise.
44590         * lib/uniconv.h: Likewise.
44591         * lib/uniconv/u-conv-from-enc.h: Likewise.
44592         * lib/uniconv/u-conv-to-enc.h: Likewise.
44593         * lib/uniconv/u-strconv-from-enc.h: Likewise.
44594         * lib/uniconv/u-strconv-to-enc.h: Likewise.
44595         * lib/uniconv/u16-conv-from-enc.c: Likewise.
44596         * lib/uniconv/u16-conv-to-enc.c: Likewise.
44597         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
44598         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
44599         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
44600         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
44601         * lib/uniconv/u32-conv-from-enc.c: Likewise.
44602         * lib/uniconv/u32-conv-to-enc.c: Likewise.
44603         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
44604         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
44605         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
44606         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
44607         * lib/uniconv/u8-conv-from-enc.c: Likewise.
44608         * lib/uniconv/u8-conv-to-enc.c: Likewise.
44609         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
44610         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
44611         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
44612         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
44613         * lib/uniname.h: Likewise.
44614         * lib/uniname/uniname.c: Likewise.
44615         * lib/unistdio.h: Likewise.
44616         * lib/unistdio/u-asnprintf.h: Likewise.
44617         * lib/unistdio/u-asprintf.h: Likewise.
44618         * lib/unistdio/u-printf-args.c: Likewise.
44619         * lib/unistdio/u-printf-args.h: Likewise.
44620         * lib/unistdio/u-printf-parse.h: Likewise.
44621         * lib/unistdio/u-snprintf.h: Likewise.
44622         * lib/unistdio/u-sprintf.h: Likewise.
44623         * lib/unistdio/u-vasprintf.h: Likewise.
44624         * lib/unistdio/u-vsnprintf.h: Likewise.
44625         * lib/unistdio/u-vsprintf.h: Likewise.
44626         * lib/unistdio/u16-asnprintf.c: Likewise.
44627         * lib/unistdio/u16-asprintf.c: Likewise.
44628         * lib/unistdio/u16-printf-parse.c: Likewise.
44629         * lib/unistdio/u16-snprintf.c: Likewise.
44630         * lib/unistdio/u16-sprintf.c: Likewise.
44631         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
44632         * lib/unistdio/u16-u16-asprintf.c: Likewise.
44633         * lib/unistdio/u16-u16-snprintf.c: Likewise.
44634         * lib/unistdio/u16-u16-sprintf.c: Likewise.
44635         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
44636         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
44637         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
44638         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
44639         * lib/unistdio/u16-vasnprintf.c: Likewise.
44640         * lib/unistdio/u16-vasprintf.c: Likewise.
44641         * lib/unistdio/u16-vsnprintf.c: Likewise.
44642         * lib/unistdio/u16-vsprintf.c: Likewise.
44643         * lib/unistdio/u32-asnprintf.c: Likewise.
44644         * lib/unistdio/u32-asprintf.c: Likewise.
44645         * lib/unistdio/u32-printf-parse.c: Likewise.
44646         * lib/unistdio/u32-snprintf.c: Likewise.
44647         * lib/unistdio/u32-sprintf.c: Likewise.
44648         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
44649         * lib/unistdio/u32-u32-asprintf.c: Likewise.
44650         * lib/unistdio/u32-u32-snprintf.c: Likewise.
44651         * lib/unistdio/u32-u32-sprintf.c: Likewise.
44652         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
44653         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
44654         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
44655         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
44656         * lib/unistdio/u32-vasnprintf.c: Likewise.
44657         * lib/unistdio/u32-vasprintf.c: Likewise.
44658         * lib/unistdio/u32-vsnprintf.c: Likewise.
44659         * lib/unistdio/u32-vsprintf.c: Likewise.
44660         * lib/unistdio/u8-asnprintf.c: Likewise.
44661         * lib/unistdio/u8-asprintf.c: Likewise.
44662         * lib/unistdio/u8-printf-parse.c: Likewise.
44663         * lib/unistdio/u8-snprintf.c: Likewise.
44664         * lib/unistdio/u8-sprintf.c: Likewise.
44665         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
44666         * lib/unistdio/u8-u8-asprintf.c: Likewise.
44667         * lib/unistdio/u8-u8-snprintf.c: Likewise.
44668         * lib/unistdio/u8-u8-sprintf.c: Likewise.
44669         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
44670         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
44671         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
44672         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
44673         * lib/unistdio/u8-vasnprintf.c: Likewise.
44674         * lib/unistdio/u8-vasprintf.c: Likewise.
44675         * lib/unistdio/u8-vsnprintf.c: Likewise.
44676         * lib/unistdio/u8-vsprintf.c: Likewise.
44677         * lib/unistdio/ulc-asnprintf.c: Likewise.
44678         * lib/unistdio/ulc-asprintf.c: Likewise.
44679         * lib/unistdio/ulc-printf-parse.c: Likewise.
44680         * lib/unistdio/ulc-snprintf.c: Likewise.
44681         * lib/unistdio/ulc-sprintf.c: Likewise.
44682         * lib/unistdio/ulc-vasnprintf.c: Likewise.
44683         * lib/unistdio/ulc-vasprintf.c: Likewise.
44684         * lib/unistdio/ulc-vsnprintf.c: Likewise.
44685         * lib/unistdio/ulc-vsprintf.c: Likewise.
44686         * lib/unistr.h: Likewise.
44687         * lib/unistr/u-cpy-alloc.h: Likewise.
44688         * lib/unistr/u-cpy.h: Likewise.
44689         * lib/unistr/u-endswith.h: Likewise.
44690         * lib/unistr/u-move.h: Likewise.
44691         * lib/unistr/u-set.h: Likewise.
44692         * lib/unistr/u-startswith.h: Likewise.
44693         * lib/unistr/u-stpcpy.h: Likewise.
44694         * lib/unistr/u-stpncpy.h: Likewise.
44695         * lib/unistr/u-strcat.h: Likewise.
44696         * lib/unistr/u-strcpy.h: Likewise.
44697         * lib/unistr/u-strcspn.h: Likewise.
44698         * lib/unistr/u-strdup.h: Likewise.
44699         * lib/unistr/u-strlen.h: Likewise.
44700         * lib/unistr/u-strncat.h: Likewise.
44701         * lib/unistr/u-strncpy.h: Likewise.
44702         * lib/unistr/u-strnlen.h: Likewise.
44703         * lib/unistr/u-strpbrk.h: Likewise.
44704         * lib/unistr/u-strspn.h: Likewise.
44705         * lib/unistr/u-strstr.h: Likewise.
44706         * lib/unistr/u-strtok.h: Likewise.
44707         * lib/unistr/u16-check.c: Likewise.
44708         * lib/unistr/u16-chr.c: Likewise.
44709         * lib/unistr/u16-cmp.c: Likewise.
44710         * lib/unistr/u16-cpy-alloc.c: Likewise.
44711         * lib/unistr/u16-cpy.c: Likewise.
44712         * lib/unistr/u16-endswith.c: Likewise.
44713         * lib/unistr/u16-mblen.c: Likewise.
44714         * lib/unistr/u16-mbsnlen.c: Likewise.
44715         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44716         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44717         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44718         * lib/unistr/u16-mbtouc.c: Likewise.
44719         * lib/unistr/u16-mbtoucr.c: Likewise.
44720         * lib/unistr/u16-move.c: Likewise.
44721         * lib/unistr/u16-next.c: Likewise.
44722         * lib/unistr/u16-prev.c: Likewise.
44723         * lib/unistr/u16-set.c: Likewise.
44724         * lib/unistr/u16-startswith.c: Likewise.
44725         * lib/unistr/u16-stpcpy.c: Likewise.
44726         * lib/unistr/u16-stpncpy.c: Likewise.
44727         * lib/unistr/u16-strcat.c: Likewise.
44728         * lib/unistr/u16-strchr.c: Likewise.
44729         * lib/unistr/u16-strcmp.c: Likewise.
44730         * lib/unistr/u16-strcpy.c: Likewise.
44731         * lib/unistr/u16-strcspn.c: Likewise.
44732         * lib/unistr/u16-strdup.c: Likewise.
44733         * lib/unistr/u16-strlen.c: Likewise.
44734         * lib/unistr/u16-strmblen.c: Likewise.
44735         * lib/unistr/u16-strmbtouc.c: Likewise.
44736         * lib/unistr/u16-strncat.c: Likewise.
44737         * lib/unistr/u16-strncmp.c: Likewise.
44738         * lib/unistr/u16-strncpy.c: Likewise.
44739         * lib/unistr/u16-strnlen.c: Likewise.
44740         * lib/unistr/u16-strpbrk.c: Likewise.
44741         * lib/unistr/u16-strrchr.c: Likewise.
44742         * lib/unistr/u16-strspn.c: Likewise.
44743         * lib/unistr/u16-strstr.c: Likewise.
44744         * lib/unistr/u16-strtok.c: Likewise.
44745         * lib/unistr/u16-to-u32.c: Likewise.
44746         * lib/unistr/u16-to-u8.c: Likewise.
44747         * lib/unistr/u16-uctomb-aux.c: Likewise.
44748         * lib/unistr/u16-uctomb.c: Likewise.
44749         * lib/unistr/u32-check.c: Likewise.
44750         * lib/unistr/u32-chr.c: Likewise.
44751         * lib/unistr/u32-cmp.c: Likewise.
44752         * lib/unistr/u32-cpy-alloc.c: Likewise.
44753         * lib/unistr/u32-cpy.c: Likewise.
44754         * lib/unistr/u32-endswith.c: Likewise.
44755         * lib/unistr/u32-mblen.c: Likewise.
44756         * lib/unistr/u32-mbsnlen.c: Likewise.
44757         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44758         * lib/unistr/u32-mbtouc.c: Likewise.
44759         * lib/unistr/u32-mbtoucr.c: Likewise.
44760         * lib/unistr/u32-move.c: Likewise.
44761         * lib/unistr/u32-next.c: Likewise.
44762         * lib/unistr/u32-prev.c: Likewise.
44763         * lib/unistr/u32-set.c: Likewise.
44764         * lib/unistr/u32-startswith.c: Likewise.
44765         * lib/unistr/u32-stpcpy.c: Likewise.
44766         * lib/unistr/u32-stpncpy.c: Likewise.
44767         * lib/unistr/u32-strcat.c: Likewise.
44768         * lib/unistr/u32-strchr.c: Likewise.
44769         * lib/unistr/u32-strcmp.c: Likewise.
44770         * lib/unistr/u32-strcpy.c: Likewise.
44771         * lib/unistr/u32-strcspn.c: Likewise.
44772         * lib/unistr/u32-strdup.c: Likewise.
44773         * lib/unistr/u32-strlen.c: Likewise.
44774         * lib/unistr/u32-strmblen.c: Likewise.
44775         * lib/unistr/u32-strmbtouc.c: Likewise.
44776         * lib/unistr/u32-strncat.c: Likewise.
44777         * lib/unistr/u32-strncmp.c: Likewise.
44778         * lib/unistr/u32-strncpy.c: Likewise.
44779         * lib/unistr/u32-strnlen.c: Likewise.
44780         * lib/unistr/u32-strpbrk.c: Likewise.
44781         * lib/unistr/u32-strrchr.c: Likewise.
44782         * lib/unistr/u32-strspn.c: Likewise.
44783         * lib/unistr/u32-strstr.c: Likewise.
44784         * lib/unistr/u32-strtok.c: Likewise.
44785         * lib/unistr/u32-to-u16.c: Likewise.
44786         * lib/unistr/u32-to-u8.c: Likewise.
44787         * lib/unistr/u32-uctomb.c: Likewise.
44788         * lib/unistr/u8-check.c: Likewise.
44789         * lib/unistr/u8-chr.c: Likewise.
44790         * lib/unistr/u8-cmp.c: Likewise.
44791         * lib/unistr/u8-cpy-alloc.c: Likewise.
44792         * lib/unistr/u8-cpy.c: Likewise.
44793         * lib/unistr/u8-endswith.c: Likewise.
44794         * lib/unistr/u8-mblen.c: Likewise.
44795         * lib/unistr/u8-mbsnlen.c: Likewise.
44796         * lib/unistr/u8-mbtouc-aux.c: Likewise.
44797         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44798         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44799         * lib/unistr/u8-mbtouc.c: Likewise.
44800         * lib/unistr/u8-mbtoucr.c: Likewise.
44801         * lib/unistr/u8-move.c: Likewise.
44802         * lib/unistr/u8-next.c: Likewise.
44803         * lib/unistr/u8-prev.c: Likewise.
44804         * lib/unistr/u8-set.c: Likewise.
44805         * lib/unistr/u8-startswith.c: Likewise.
44806         * lib/unistr/u8-stpcpy.c: Likewise.
44807         * lib/unistr/u8-stpncpy.c: Likewise.
44808         * lib/unistr/u8-strcat.c: Likewise.
44809         * lib/unistr/u8-strchr.c: Likewise.
44810         * lib/unistr/u8-strcmp.c: Likewise.
44811         * lib/unistr/u8-strcpy.c: Likewise.
44812         * lib/unistr/u8-strcspn.c: Likewise.
44813         * lib/unistr/u8-strdup.c: Likewise.
44814         * lib/unistr/u8-strlen.c: Likewise.
44815         * lib/unistr/u8-strmblen.c: Likewise.
44816         * lib/unistr/u8-strmbtouc.c: Likewise.
44817         * lib/unistr/u8-strncat.c: Likewise.
44818         * lib/unistr/u8-strncmp.c: Likewise.
44819         * lib/unistr/u8-strncpy.c: Likewise.
44820         * lib/unistr/u8-strnlen.c: Likewise.
44821         * lib/unistr/u8-strpbrk.c: Likewise.
44822         * lib/unistr/u8-strrchr.c: Likewise.
44823         * lib/unistr/u8-strspn.c: Likewise.
44824         * lib/unistr/u8-strstr.c: Likewise.
44825         * lib/unistr/u8-strtok.c: Likewise.
44826         * lib/unistr/u8-to-u16.c: Likewise.
44827         * lib/unistr/u8-to-u32.c: Likewise.
44828         * lib/unistr/u8-uctomb-aux.c: Likewise.
44829         * lib/unistr/u8-uctomb.c: Likewise.
44830         * lib/unitypes.h: Likewise.
44831         * lib/uniwidth.h: Likewise.
44832         * lib/uniwidth/cjk.h: Likewise.
44833         * lib/uniwidth/u16-strwidth.c: Likewise.
44834         * lib/uniwidth/u16-width.c: Likewise.
44835         * lib/uniwidth/u32-strwidth.c: Likewise.
44836         * lib/uniwidth/u32-width.c: Likewise.
44837         * lib/uniwidth/u8-strwidth.c: Likewise.
44838         * lib/uniwidth/u8-width.c: Likewise.
44839         * lib/uniwidth/width.c: Likewise.
44840
44841 2007-10-07  Bruno Haible  <bruno@clisp.org>
44842
44843         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
44844         The file is still under LGPL (see modules/inttypes).
44845
44846 2007-10-06  Bruno Haible  <bruno@clisp.org>
44847
44848         * modules/trunc (Dependencies): Add 'extensions'.
44849         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
44850         Reported by Ben Pfaff <blp@gnu.org>.
44851
44852 2007-10-06  Bruno Haible  <bruno@clisp.org>
44853
44854         * modules/freopen-tests: New file.
44855         * tests/test-freopen.c: New file.
44856
44857         * modules/fopen-tests: New file.
44858         * tests/test-fopen.c: New file.
44859
44860         * modules/fopen: New file.
44861         * lib/fopen.c: New file.
44862         * m4/fopen.m4: New file.
44863         * modules/freopen: New file.
44864         * lib/freopen.c: New file.
44865         * m4/freopen.m4: New file.
44866         * lib/stdio.in.h (fopen, freopen): New declarations.
44867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
44868         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44869         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
44870         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44871         * doc/functions/fopen.texi: Mention the 'fopen' module.
44872         * doc/functions/freopen.texi: Mention the 'freopen' module.
44873
44874 2007-10-06  Bruno Haible  <bruno@clisp.org>
44875
44876         * modules/open-tests: New file.
44877         * tests/test-open.c: New file.
44878
44879         * modules/open: New file.
44880         * lib/open.c: New file.
44881         * m4/open.m4: New file.
44882         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
44883         lib/open.c does.
44884         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
44885         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
44886         macros.
44887         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
44888         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
44889         REPLACE_OPEN.
44890         * doc/functions/open.texi: Mention the 'open' module.
44891
44892 2007-10-04  Bruno Haible  <bruno@clisp.org>
44893
44894         * modules/ceill-tests: New file.
44895         * tests/test-ceill.c: New file.
44896
44897         * modules/ceill: New file.
44898         * lib/ceill.c: Replace entire file.
44899         * m4/ceill.m4: New file.
44900         * lib/math.in.h (ceill): Replace declaration.
44901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
44902         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
44903         * doc/functions/ceill.texi: Mention the 'ceill' module.
44904         * modules/mathl (Files): Remove lib/ceill.c.
44905         (Depends-on): Add ceill.
44906
44907 2007-10-04  Bruno Haible  <bruno@clisp.org>
44908
44909         * modules/ceilf-tests: New file.
44910         * tests/test-ceilf.c: New file.
44911
44912         * modules/ceilf: New file.
44913         * lib/ceil.c: New file.
44914         * lib/ceilf.c: New file.
44915         * m4/ceilf.m4: New file.
44916         * lib/math.in.h (ceilf): New declaration.
44917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
44918         HAVE_DECL_CEILF.
44919         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
44920         HAVE_DECL_CEILF.
44921         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
44922
44923 2007-10-04  Bruno Haible  <bruno@clisp.org>
44924
44925         * modules/floorl-tests: New file.
44926         * tests/test-floorl.c: New file.
44927
44928         * modules/floorl: New file.
44929         * lib/floorl.c: Replace entire file.
44930         * m4/floorl.m4: New file.
44931         * lib/math.in.h (floorl): Replace declaration.
44932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
44933         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
44934         * doc/functions/floorl.texi: Mention the 'floorl' module.
44935         * modules/mathl (Files): Remove lib/floorl.c.
44936         (Depends-on): Add floorl.
44937
44938 2007-10-04  Bruno Haible  <bruno@clisp.org>
44939
44940         * modules/floorf-tests: New file.
44941         * tests/test-floorf.c: New file.
44942
44943         * modules/floorf: New file.
44944         * lib/floor.c: New file.
44945         * lib/floorf.c: New file.
44946         * m4/floorf.m4: New file.
44947         * lib/math.in.h (floorf): New declaration.
44948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
44949         HAVE_DECL_FLOORF.
44950         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
44951         HAVE_DECL_FLOORF.
44952         * doc/functions/floorf.texi: Mention the 'floorf' module.
44953
44954 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
44955             Bruno Haible  <bruno@clisp.org>
44956
44957         Advertise for the Git server instead of the CVS server.
44958         * doc/gnulib-intro.texi (Steady Development): Mention the Git
44959         repository instead of the CVS one.
44960         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
44961         about all VCS systems generically.
44962         * doc/gnulib.texi (Introduction): Capitalize `Git'.
44963
44964 2007-10-04  Bruno Haible  <bruno@clisp.org>
44965
44966         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
44967         means.
44968         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
44969
44970 2007-10-04  Bruno Haible  <bruno@clisp.org>
44971
44972         * modules/truncl-tests: New file.
44973         * tests/test-truncl.c: New file.
44974
44975         * modules/truncl: New file.
44976         * lib/truncl.c: New file.
44977         * m4/truncl.m4: New file.
44978         * lib/math.in.h (truncl): New declaration.
44979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
44980         HAVE_DECL_TRUNCL.
44981         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
44982         HAVE_DECL_TRUNCL.
44983         * doc/functions/truncl.texi: Mention the 'truncl' module.
44984
44985 2007-10-04  Bruno Haible  <bruno@clisp.org>
44986
44987         * modules/truncf-tests: New file.
44988         * tests/test-truncf.c: New file.
44989
44990         * modules/truncf: New file.
44991         * lib/trunc.c: Make paramerizable through USE_* macros.
44992         * lib/truncf.c: New file.
44993         * m4/truncf.m4: New file.
44994         * lib/math.in.h (truncf): New declaration.
44995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
44996         HAVE_DECL_TRUNCF.
44997         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
44998         HAVE_DECL_TRUNCF.
44999         * doc/functions/truncf.texi: Mention the 'truncf' module.
45000
45001 2007-10-03  Bruno Haible  <bruno@clisp.org>
45002
45003         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45004         augmentation also for tests modules.
45005         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
45006         * modules/atexit-tests (Makefile.am): Likewise.
45007         * modules/binary-io-tests (Makefile.am): Likewise.
45008         * modules/c-strcase-tests (Makefile.am): Likewise.
45009         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
45010         * modules/canonicalize-tests (Makefile.am): Likewise.
45011         * modules/closein-tests (Makefile.am): Likewise.
45012         * modules/fprintf-posix-tests (Makefile.am): Likewise.
45013         * modules/freadahead-tests (Makefile.am): Likewise.
45014         * modules/fseek-tests (Makefile.am): Likewise.
45015         * modules/fseeko-tests (Makefile.am): Likewise.
45016         * modules/ftell-tests (Makefile.am): Likewise.
45017         * modules/ftello-tests (Makefile.am): Likewise.
45018         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
45019         * modules/isnanl-tests (Makefile.am): Likewise.
45020         * modules/lseek-tests (Makefile.am): Likewise.
45021         * modules/mbscasecmp-tests (Makefile.am): Likewise.
45022         * modules/mbscasestr-tests (Makefile.am): Likewise.
45023         * modules/mbschr-tests (Makefile.am): Likewise.
45024         * modules/mbscspn-tests (Makefile.am): Likewise.
45025         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
45026         * modules/mbspbrk-tests (Makefile.am): Likewise.
45027         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
45028         * modules/mbsrchr-tests (Makefile.am): Likewise.
45029         * modules/mbsspn-tests (Makefile.am): Likewise.
45030         * modules/mbsstr-tests (Makefile.am): Likewise.
45031         * modules/printf-posix-tests (Makefile.am): Likewise.
45032         * modules/snprintf-posix-tests (Makefile.am): Likewise.
45033         * modules/sprintf-posix-tests (Makefile.am): Likewise.
45034         * modules/tsearch-tests (Makefile.am): Likewise.
45035         * modules/uniname/uniname-tests (Makefile.am): Likewise.
45036         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
45037         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
45038         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
45039         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
45040         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
45041         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
45042         * modules/vprintf-posix-tests (Makefile.am): Likewise.
45043         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
45044         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
45045         * modules/xstrtoimax-tests (Makefile.am): Likewise.
45046         * modules/xstrtol-tests (Makefile.am): Likewise.
45047         * modules/xstrtoumax-tests (Makefile.am): Likewise.
45048         * modules/yesno-tests (Makefile.am): Likewise.
45049
45050 2007-10-03  Bruno Haible  <bruno@clisp.org>
45051
45052         * modules/trunc-tests: New file.
45053         * tests/test-trunc.c: New file.
45054
45055         * modules/trunc: New file.
45056         * lib/trunc.c: New file.
45057         * m4/trunc.m4: New file.
45058         * lib/math.in.h (trunc): New declaration.
45059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
45060         HAVE_DECL_TRUNC.
45061         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
45062         HAVE_DECL_TRUNC.
45063         * doc/functions/trunc.texi: Mention the 'trunc' module.
45064
45065 2007-10-03  Bruno Haible  <bruno@clisp.org>
45066
45067         * tests/test-fpending.c: New file, mostly copied
45068         from coreutils/lib/t-fpending.c.
45069         * modules/fpending-tests: New file.
45070
45071 2007-10-03  Bruno Haible  <bruno@clisp.org>
45072
45073         Port the stdio extensions to QNX (untested).
45074         * lib/fseterr.c (fseterr): Add support for QNX.
45075         * lib/fbufmode.c (fbufmode): Likewise.
45076         * lib/freadable.c (freadable): Likewise.
45077         * lib/fwritable.c (fwritable): Likewise.
45078         * lib/freading.c (freading): Likewise.
45079         * lib/fwriting.c (fwriting): Likewise.
45080         * lib/freadahead.c (freadahed): Likewise.
45081         * lib/fpurge.c (fpurge): Likewise.
45082         * lib/fseeko.c (rpl_fseeko): Likewise.
45083
45084 2007-10-03  Bruno Haible  <bruno@clisp.org>
45085             Jim Meyering  <jim@meyering.net>
45086             Eric Blake  <ebb9@byu.net>
45087
45088         * doc/relocatable.texi: Use @command instead of @program.
45089
45090 2007-10-02  Jim Meyering  <jim@meyering.net>
45091
45092         Perform one more "_.h" -> ".in.h" substitution.
45093         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
45094         instead of unistd_.h here, too.
45095
45096 2007-10-01  Bruno Haible  <bruno@clisp.org>
45097
45098         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
45099         Needed for the alloca-opt module.
45100
45101 2007-09-30  Bruno Haible  <bruno@clisp.org>
45102
45103         * lib/alloca.in.h: Renamed from lib/alloca_.h.
45104         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
45105         alloca_.h.
45106         * lib/argz.in.h: Renamed from lib/argz_.h.
45107         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
45108         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
45109         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
45110         byteswap_.h.
45111         * lib/dirent.in.h: Renamed from lib/dirent_.h.
45112         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
45113         dirent_.h.
45114         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
45115         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
45116         fcntl_.h.
45117         * lib/float.in.h: Renamed from lib/float_.h.
45118         * modules/float (Files, Makefile.am): Use float.in.h instead of
45119         float_.h.
45120         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
45121         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
45122         fnmatch_.h.
45123         * lib/getopt.in.h: Renamed from lib/getopt_.h.
45124         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
45125         getopt_.h.
45126         * lib/glob.in.h: Renamed from lib/glob_.h.
45127         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
45128         * lib/iconv.in.h: Renamed from lib/iconv_.h.
45129         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
45130         iconv_.h.
45131         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
45132         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
45133         inttypes_.h.
45134         * lib/locale.in.h: Renamed from lib/locale_.h.
45135         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
45136         locale_.h.
45137         * lib/math.in.h: Renamed from lib/math_.h.
45138         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
45139         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
45140         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
45141         of netinet_in_.h. Add dependency.
45142         * lib/poll.in.h: Renamed from lib/poll_.h.
45143         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
45144         * lib/search.in.h: Renamed from lib/search_.h.
45145         * modules/search (Files, Makefile.am): Use search.in.h instead of
45146         search_.h.
45147         * lib/signal.in.h: Renamed from lib/signal_.h.
45148         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
45149         _signal.h.
45150         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
45151         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
45152         stdbool_.h.
45153         * lib/stdint.in.h: Renamed from lib/stdint_.h.
45154         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
45155         stdint_.h.
45156         * lib/stdio.in.h: Renamed from lib/stdio_.h.
45157         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
45158         stdio_.h.
45159         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
45160         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
45161         stdlib_.h.
45162         * lib/string.in.h: Renamed from lib/string_.h.
45163         * modules/string (Files, Makefile.am): Use string.in.h instead of
45164         string_.h.
45165         * doc/gnulib-tool.texi (Initial import): Update.
45166         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
45167         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
45168         of sys_select_.h. Add dependency.
45169         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
45170         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
45171         of sys_socket_.h.
45172         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
45173         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
45174         sys_stat_.h.
45175         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
45176         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
45177         sys_time_.h.
45178         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
45179         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
45180         sysexits_.h.
45181         * lib/time.in.h: Renamed from lib/time_.h.
45182         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
45183         * lib/unistd.in.h: Renamed from lib/unistd_.h.
45184         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
45185         unistd_.h.
45186         * lib/wchar.in.h: Renamed from lib/wchar_.h.
45187         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
45188         wchar_.h.
45189         * lib/wctype.in.h: Renamed from lib/wctype_.h.
45190         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
45191         wctype_.h.
45192         * build-aux/bootstrap (slurp): Update.
45193         * lib/.cppi-disable: Update.
45194
45195 2007-09-30  Bruno Haible  <bruno@clisp.org>
45196
45197         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
45198         Needed on BeOS.
45199
45200 2007-09-30  Bruno Haible  <bruno@clisp.org>
45201
45202         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
45203
45204 2007-09-29  Bruno Haible  <bruno@clisp.org>
45205
45206         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
45207
45208 2007-09-29  Bruno Haible  <bruno@clisp.org>
45209
45210         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
45211         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
45212         * build-aux/install-reloc: Compile also areadlink.c.
45213         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
45214
45215 2007-09-29  Bruno Haible  <bruno@clisp.org>
45216
45217         * gnulib-tool (func_emit_initmacro_done): Indentation.
45218
45219 2007-09-29  Bruno Haible  <bruno@clisp.org>
45220
45221         * README: Add CVS checkout update instructions.
45222         Info from Bob Proulx <bob@proulx.com>.
45223
45224 2007-09-28  Eric Blake  <ebb9@byu.net>
45225
45226         Provide move-if-change.
45227         * build-aux/move-if-change: New file, based on best practice
45228         rather than any canonical upstream location.
45229
45230 2007-09-28  Jim Meyering  <jim@meyering.net>
45231
45232         Fix canonicalize loop-detection corner case.
45233         Do not attempt to stat the symlink values stored via seen_triple.
45234         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
45235         on linux-2.6.18, (but not 2.6.22).
45236         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
45237         triple_compare.  The former compares dev,ino,filename, while the latter
45238         would actually stat dirname(filename) when dev and ino were equal.
45239         * lib/hash-triple.c: Install <string.h>.
45240         (STREQ): Define.
45241         (triple_compare_ino_str): New function.
45242         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
45243
45244 2007-09-28  Eric Blake  <ebb9@byu.net>
45245
45246         Enforce that AC_REPLACE_FUNCS files exist.
45247         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
45248         override check for typos.
45249
45250         Fix test-closein on Solaris 10.
45251         * tests/test-closein.c (main): Don't assume stdin can be inherited
45252         closed on all systems.
45253         * tests/test-closein.sh: Likewise.
45254         Reported by Piotr Tarnowski.
45255
45256 2007-09-28  Jim Meyering  <jim@meyering.net>
45257
45258         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
45259
45260 2007-09-27  Jim Meyering  <jim@meyering.net>
45261
45262         canonicalize: Avoid a false-positive cycle failure.
45263         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
45264         Sort.  Remove cycle-check.
45265         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
45266         not cycle-check.h.
45267         (seen_triple): New function.
45268         (canonicalize_filename_mode): Use it instead of cycle-check.
45269         * tests/test-canonicalize.c: Add a test for this bug.
45270         * tests/test-canonicalize.sh: Set up and run the test.
45271
45272         New module, file-set, from coreutils.
45273         * modules/file-set: Define it.
45274         * lib/file-set.c, lib/file-set.h: Implement.
45275
45276         New module, hash-triple, from coreutils.
45277         * modules/hash-triple: Define it.
45278         * lib/hash-triple.c, lib/hash-triple.h: Implement.
45279
45280 2007-09-25  Eric Blake  <ebb9@byu.net>
45281
45282         Fix strerror on Interix.
45283         * lib/string_.h (strerror): Declare replacement.
45284         * doc/functions/strerror.texi (strerror): Document the Interix
45285         shortcoming.
45286         * modules/string (Makefile.am): Support new hooks.
45287         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
45288         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
45289         gl_FUNC_STRERROR_SEPARATE.
45290         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
45291         * lib/strerror.c (rpl_strerror): Provide replacement.
45292         * modules/strerror (Depends-on): Add string.
45293         (configure.ac): Detect use of module.
45294         * tests/test-strerror.c: New file.
45295         * modules/strerror-tests: New test module.
45296         * modules/argp (Depends-on): Add strerror.
45297         * modules/error (Depends-on): Likewise.
45298         Reported by Martin Koeppe.
45299
45300 2007-09-24  Bruno Haible  <bruno@clisp.org>
45301
45302         * README: Update git instructions.
45303
45304 2007-09-24  Eric Blake  <ebb9@byu.net>
45305
45306         Revert fpending breakage from 2007-09-08.
45307         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
45308         __fpending.c.
45309
45310 2007-09-24  Jim Meyering  <jim@meyering.net>
45311
45312         filenamecat.c: Add a test.
45313         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
45314         showing how the function works when DIR is the empty string.
45315
45316 2007-09-21  Simon Josefsson  <simon@josefsson.org>
45317
45318         * tests/test-canonicalize.sh: Turn on executable bit.
45319
45320 2007-09-19  Eric Blake  <ebb9@byu.net>
45321
45322         * README: Update CVS instructions.
45323
45324 2007-09-18  Bruno Haible  <bruno@clisp.org>
45325
45326         * modules/areadlink: New file.
45327         * lib/areadlink.h (areadlink): New declaration.
45328         * lib/areadlink.c: New file, based on lib/xreadlink.c.
45329
45330 2007-09-17  Jim Meyering  <jim@meyering.net>
45331
45332         * lib/savewd.c (ESTALE) [!defined]: Define.
45333         Reported to be required on Interix by Martin Koeppe.
45334
45335 2007-09-17  Bruno Haible  <bruno@clisp.org>
45336
45337         * gnulib-tool (func_version): Use $version.
45338
45339 2007-09-16  Bruno Haible  <bruno@clisp.org>
45340
45341         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
45342         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
45343         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
45344         Reported by Greg Schafer <gschafer@zip.com.au>.
45345
45346 2007-09-15  Bruno Haible  <bruno@clisp.org>
45347
45348         * gnulib-tool (sed): Try a little harder to make bash understand the
45349         alias.
45350         Reported by Bruce Korb <bruce.korb@gmail.com>.
45351
45352 2007-09-13  Eric Blake  <ebb9@byu.net>
45353
45354         * ChangeLog: Remove conflict markers.
45355
45356 2007-09-13  Simon Josefsson  <simon@josefsson.org>
45357
45358         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
45359         Reported by Bruno Haible <bruno@clisp.org>.
45360
45361 2007-09-12  Bruno Haible  <bruno@clisp.org>
45362
45363         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
45364         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
45365         is not defined.
45366
45367 2007-09-12  Eric Blake  <ebb9@byu.net>
45368
45369         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
45370         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
45371         Autoconf definition.
45372         * modules/euidaccess (Depends-on): Add extensions, for
45373         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
45374         * modules/fnmatch (Depends-on): Likewise.
45375         * modules/getaddrinfo (Depends-on): Likewise.
45376         * modules/getdelim (Depends-on): Likewise.
45377         * modules/getline (Depends-on): Likewise.
45378         * modules/getsubopt (Depends-on): Likewise.
45379         * modules/gettext (Depends-on): Likewise.
45380         * modules/group-member (Depends-on): Likewise.
45381         * modules/mbchar (Depends-on): Likewise.
45382         * modules/memmem (Depends-on): Likewise.
45383         * modules/mempcpy (Depends-on): Likewise.
45384         * modules/memrchr (Depends-on): Likewise.
45385         * modules/pagealign_alloc (Depends-on): Likewise.
45386         * modules/readutmp (Depends-on): Likewise.
45387         * modules/stpcpy (Depends-on): Likewise.
45388         * modules/stpncpy (Depends-on): Likewise.
45389         * modules/strchrnul (Depends-on): Likewise.
45390         * modules/strndup (Depends-on): Likewise.
45391         * modules/strsep (Depends-on): Likewise.
45392         * modules/strverscmp (Depends-on): Likewise.
45393         * modules/vasprintf (Depends-on): Likewise.
45394         * modules/wcwidth (Depends-on): Likewise.
45395         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
45396         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
45397         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
45398         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
45399         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45400         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45401         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
45402         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45403         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
45404         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
45405         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45406         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45407         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45408         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
45409         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
45410         * m4/readutmp.m4 (gl_READUTMP): Likewise.
45411         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45412         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45413         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45414         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45415         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45416         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45417         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45418         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
45419         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
45420         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45421         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
45422         so that lock.m4 can be used in gettext without extensions module.
45423
45424 2007-09-11  Bruno Haible  <bruno@clisp.org>
45425
45426         * m4/isc-posix.m4: Remove file.
45427         Suggested by Eric Blake.
45428
45429 2007-09-11  Eric Blake  <ebb9@byu.net>
45430
45431         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
45432
45433 2007-09-10  Bruno Haible  <bruno@clisp.org>
45434
45435         * posix-modules: Fix typo in error message.
45436         Reported by Matt <mkraai@beckman.com>.
45437
45438 2007-09-09  Bruno Haible  <bruno@clisp.org>
45439
45440         * doc/functions/getdelim.texi: Update list of platforms lacking the
45441         function.
45442         * doc/functions/getline.texi: Likewise.
45443
45444 2007-09-09  Jim Meyering  <jim@meyering.net>
45445
45446         * lib/hash.c (hash_initialize): Detect calloc failure.
45447         Reported by Bruno Haible.
45448
45449 2007-09-09  Bruno Haible  <bruno@clisp.org>
45450
45451         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
45452         malloc or realloc fails.
45453
45454 2007-09-09  Bruno Haible  <bruno@clisp.org>
45455
45456         * modules/getcwd (Depends-on): Add malloc-posix.
45457         * modules/glob (Depends-on): Likewise.
45458         * modules/putenv (Depends-on): Likewise.
45459         * modules/strdup (Depends-on): Likewise.
45460         * modules/getdelim (Depends-on): Add realloc-posix.
45461         * modules/read-file (Depends-on): Likewise.
45462
45463 2007-09-09  Bruno Haible  <bruno@clisp.org>
45464
45465         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
45466         (gl_FUNC_MALLOC_POSIX): Require it.
45467         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
45468         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
45469         * modules/realloc (Files): Add m4/malloc.m4.
45470         * modules/calloc (Files): Likewise.
45471
45472 2007-09-09  Bruno Haible  <bruno@clisp.org>
45473
45474         * modules/malloc-posix: New file.
45475         * modules/malloc (Depends-on): Add malloc-posix.
45476         * lib/malloc.c: Include errno.h.
45477         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
45478         and a POSIX-compatible malloc into a single function. Set ENOMEM
45479         when returning NULL.
45480         * m4/malloc.m4: New file.
45481         * doc/functions/malloc.texi: Mention the malloc-posix module.
45482         * lib/stdlib_.h (malloc): New declaration.
45483         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45484         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
45485         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
45486         and HAVE_MALLOC_POSIX.
45487
45488 2007-09-09  Bruno Haible  <bruno@clisp.org>
45489
45490         * modules/realloc-posix: New file.
45491         * modules/realloc (Depends-on): Add realloc-posix.
45492         * lib/realloc.c: Include errno.h.
45493         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
45494         and a POSIX-compatible realloc into a single function. Set ENOMEM
45495         when returning NULL.
45496         * m4/realloc.m4: New file.
45497         * doc/functions/realloc.texi: Mention the realloc-posix module.
45498         * lib/stdlib_.h (realloc): New declaration.
45499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45500         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
45501         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
45502         and HAVE_REALLOC_POSIX.
45503
45504 2007-09-09  Bruno Haible  <bruno@clisp.org>
45505
45506         * modules/calloc-posix: New file.
45507         * modules/calloc (Depends-on): Add calloc-posix.
45508         * lib/calloc.c: Include errno.h.
45509         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
45510         and a POSIX-compatible calloc into a single function. Set ENOMEM
45511         when returning NULL.
45512         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
45513         * doc/functions/calloc.texi: Mention the calloc-posix module.
45514         * lib/stdlib_.h (calloc): New declaration.
45515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45516         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
45517         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
45518         and HAVE_CALLOC_POSIX.
45519
45520 2007-09-09  Bruno Haible  <bruno@clisp.org>
45521
45522         Allow for modules to show an arbitrary notice.
45523         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
45524         * gnulib-tool: New option --extract-notice.
45525         (func_usage): Document it.
45526         (sed_extract_prog): Update.
45527         (func_get_notice): New function.
45528         (func_modules_notice): New function.
45529         (func_import, func_create_testdir): Invoke it.
45530         Suggested by Jim Meyering.
45531
45532 2007-09-09  Bruno Haible  <bruno@clisp.org>
45533
45534         * gnulib-tool: New options --verbose, --quiet.
45535         (func_usage): Document them.
45536         (verbose): New variable.
45537         (func_execute_command): New function.
45538         (func_import): Don't show the module list and the file list if
45539         $verbose < 0.
45540         (func_create_testdir): Likewise. Use func_execute_command.
45541         (func_create_megatestdir): Use func_execute_command.
45542
45543 2007-09-08  Bruno Haible  <bruno@clisp.org>
45544
45545         * gnulib-tool (func_import): Prefer rsync over wget when available,
45546         for fetching the PO files.
45547
45548 2007-09-08  Bruno Haible  <bruno@clisp.org>
45549
45550         * posix-modules: New file. Portions copied from gnulib-tool.
45551         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
45552
45553 2007-09-08  Jim Meyering  <jim@meyering.net>
45554
45555         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
45556         * lib/fpending.h: Rename from __fpending.h.
45557         * lib/fpending.c: Rename from __fpending.c.
45558         Include "fpending.h", not "__fpending.h".
45559         * lib/__fpending.h, lib/__fpending.c: Remove files.
45560         * modules/fpending (Files): Reflect new file names.
45561         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
45562
45563 2007-09-08  Bruno Haible  <bruno@clisp.org>
45564
45565         * m4/inttypes-h.m4: Remove stub file.
45566
45567 2007-09-07  Simon Josefsson  <simon@josefsson.org>
45568
45569         * doc/headers/stdint.texi: Discuss #include_next issue.
45570
45571 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45572
45573         * build-aux/bootstrap: Remove obsolete comment about wget --help.
45574
45575 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45576
45577         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
45578         in variable name.
45579
45580 2007-09-03  Jim Meyering  <jim@meyering.net>
45581
45582         New module: git-version-gen.
45583         * modules/git-version-gen: New file.
45584
45585         Import changes from coreutils for bootstrap script.
45586
45587         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
45588
45589         bootstrap: uses rsync to download the .po files
45590         * build-aux/bootstrap (po_download_command_format): New global.
45591         (download_po_files): Use rsync.
45592         (update_po_files): Don't remove .po files after download,
45593         so future rsync runs can take advantage of the copies.
45594
45595         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
45596
45597         Solve the unnecessary-.po-file-regeneration problem once and for all.
45598         * build-aux/bootstrap (download_po_files): New function, renamed from
45599         get_translations.  Now, downloads, but doesn't update LINGUAS.
45600         (update_po_files): New function.
45601
45602         bootstrap: Ignore more.
45603         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
45604         uniwidth to e.g., lib/.gitignore.
45605         (slurp): Handle the sys_stat_.h -> sys mapping, too.
45606
45607         * build-aux/bootstrap: New setting: vc_ignore.
45608         (insert_sorted_if_absent): Create $file if absent.
45609         Adapt to new, possibly empty, list: $vc_ignore.
45610
45611         bootstrap: generate more ignorable names
45612         * build-aux/bootstrap (slurp): When generating ignorable names,
45613         also map .sin to .sed, .gperf to .c, and .y to .c.
45614
45615 2007-09-03  Jim Meyering  <jim@meyering.net>
45616
45617         * build-aux/git-version-gen: New file, from coreutils.  For details, see
45618         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
45619
45620 2007-09-02  Bruno Haible  <bruno@clisp.org>
45621
45622         Fix mis-recognition of 'mcs' on QNX 6.
45623         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
45624         output contains the string "Mono".
45625         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
45626         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
45627
45628 2007-09-01  Bruno Haible  <bruno@clisp.org>
45629
45630         Fix collision between uniwidth/* and linebreak modules.
45631         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
45632         u32_width): Remove declarations.
45633         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
45634         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
45635         streq3, streq2, streq1, streq0): Remove functions.
45636         (STREQ): Remove macro.
45637         (is_cjk_encoding): Remove function.
45638         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
45639         (uc_width, u8_width, u16_width, u32_width): Remove functions.
45640         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
45641         * NEWS: Document the change.
45642
45643 2007-09-01  Bruno Haible  <bruno@clisp.org>
45644
45645         * lib/streq.h: Add double-inclusion guard.
45646
45647 2007-09-01  Karl Berry  <karl@gnu.org>
45648
45649         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
45650
45651 2007-08-28  Jim Meyering  <jim@meyering.net>
45652
45653         Rename mreadlink_with_size to areadlink_with_size.
45654         * NEWS: Document the change.
45655         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
45656         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
45657         * lib/mreadlink.h: Rename this to...
45658         * lib/areadlink.h: ...this.
45659         * modules/mreadlink-with-size: Rename this to...
45660         * modules/areadlink-with-size: ...this.
45661         * lib/canonicalize.c: Reflect the renaming.
45662         * modules/canonicalize: Likewise.
45663
45664 2007-08-26  Bruno Haible  <bruno@clisp.org>
45665
45666         * gnulib-tool (func_import): When deciding which files to remove,
45667         consider also dangling symbolic links.
45668         Reported by Eric Blake.
45669
45670 2007-08-26  Bruno Haible  <bruno@clisp.org>
45671
45672         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
45673
45674 2007-08-23  Simon Josefsson  <simon@josefsson.org>
45675
45676         * lib/readline.c: Don't include getline.h, the prototype is now
45677         found in stdio.h.
45678
45679 2007-08-23  Jim Meyering  <jim@meyering.net>
45680
45681         Getdelim touchup.
45682         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
45683         around the funlockfile call, since funlockfile never sets errno.
45684         Don't set errno upon failed realloc.
45685
45686 2007-08-22  Eric Blake  <ebb9@byu.net>
45687
45688         Getline touchups.
45689         * lib/getdelim.c (getdelim): Revert regression that required *n to
45690         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
45691         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
45692         getdelim, rather than whether implementation is missing.
45693         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
45694         * lib/stdio_.h (getline): Also declare if replacement is
45695         required.
45696         * doc/functions/getdelim.texi: New file.
45697         * doc/functions/getline.texi: Likewise.
45698         * doc/gnulib.texi (Function Substitutes): Add new files.
45699         Reported by Bruno Haible.
45700
45701 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
45702
45703         * users.txt: Add Guile.
45704
45705 2007-08-22  Eric Blake  <ebb9@byu.net>
45706
45707         * tests/test-getdelim.c (main): Use remove, not unlink.
45708         * tests/test-getline.c (main): Likewise.
45709
45710         Move getline and getdelim into stdio.h, per POSIX 200x.
45711         * modules/getline (Files): Remove getline.h.
45712         (Depends-on): Add stdio.
45713         (configure.ac): Add module indicator.
45714         * modules/getdelim (Files): Remove getdelim.h.
45715         (Depends-on): Add stdio.
45716         (configure.ac): Add module indicator.
45717         * modules/stdio (Makefile.am): Work with new indicators.
45718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45719         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
45720         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45721         * lib/getdelim.h: Delete.
45722         * lib/getline.h: Delete.
45723         * lib/stdio_.h (getdelim, getline): Declare.
45724         * modules/getdelim-tests: New module.
45725         * modules/getline-tests: Likewise.
45726         * tests/test-getdelim.c: New file.
45727         * tests/test-getline.c: Likewise.
45728         * NEWS: Document the change.
45729         * lib/getline.c: Update choice of header.
45730         * lib/csharpcomp.c: Likewise.
45731         * lib/getpass.c: Likewise.
45732         * lib/javacomp.c: Likewise.
45733         * lib/javaversion.c: Likewise.
45734         * lib/yesno.c: Likewise.
45735         * lib/getdelim.c: Likewise.
45736         (getdelim): Set errno on failure, and avoid memory leak.
45737
45738 2007-08-19  Bruno Haible  <bruno@clisp.org>
45739
45740         * modules/closein (Depends-on): Add freadahead.
45741         * lib/closein.c: Include freadahead.h.
45742         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
45743         is zero.
45744
45745 2007-08-19  Bruno Haible  <bruno@clisp.org>
45746
45747         * modules/freadahead-tests: New file.
45748         * tests/test-freadahead.sh: New file.
45749         * tests/test-freadahead.c: New file.
45750
45751         * modules/freadahead: New file.
45752         * lib/freadahead.h: New file.
45753         * lib/freadahead.c: New file.
45754         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
45755         fbufmode, fpurge, freadable, fwritable.
45756
45757 2007-08-19  Eric Blake  <ebb9@byu.net>
45758
45759         Test yesno in combination with closein.
45760         * lib/yesno.c (yesno): Document use of stdin.
45761         * modules/yesno-tests (Files): New module.
45762         * tests/test-yesno.c (main): New file.
45763         * tests/test-yesno.sh: Likewise.
45764
45765 2007-08-19  Bruno Haible  <bruno@clisp.org>
45766
45767         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
45768         * lib/fseeko.c (rpl_fseeko): Likewise.
45769         * lib/fseterr.c (fseterr): Likewise.
45770
45771 2007-08-19  Bruno Haible  <bruno@clisp.org>
45772
45773         * tests/test-lseek.c (main): Disable a test for BeOS.
45774         * doc/functions/lseek.texi: Document the BeOS bug.
45775
45776 2007-08-19  Bruno Haible  <bruno@clisp.org>
45777             Eric Blake  <ebb9@byu.net>
45778
45779         * lib/lseek.c: Include <sys/stat.h>.
45780         (rpl_lseek): Add workaround code also for Unix platforms.
45781         Needed for BeOS.
45782         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
45783         * doc/functions/lseek.texi: Document BeOS definiency.
45784
45785 2007-08-18  Bruno Haible  <bruno@clisp.org>
45786
45787         * modules/fstrcmp-tests: New file.
45788         * tests/test-fstrcmp.c: New file.
45789
45790 2007-08-18  Bruno Haible  <bruno@clisp.org>
45791
45792         * modules/fstrcmp: New file, from GNU gettext with modifications.
45793         * lib/fstrcmp.h: New file, from GNU gettext.
45794         * lib/fstrcmp.c: New file, from GNU gettext.
45795         * MODULES.html.sh (String handling): Add fstrcmp.
45796
45797 2007-08-18  Bruno Haible  <bruno@clisp.org>
45798
45799         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
45800         'bool'.
45801         (diag, compareseq): Remove const from the ctxt argument.
45802         (USE_HEURISTIC): Undefine at the end.
45803
45804 2007-08-18  Jim Meyering  <jim@meyering.net>
45805
45806         New file: lib/idcache.h
45807         * NEWS: Mention the addition.
45808         * modules/idcache (Files): Add lib/idcache.h
45809         * lib/idcache.c: Include "idcache.h".
45810         Don't include <sys/types.h>.
45811         Add a FIXME comment.
45812         Move file-scoped "static" declarations to the top.
45813         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
45814
45815 2007-08-17  Bruno Haible  <bruno@clisp.org>
45816         and Paul Eggert  <eggert@cs.ucla.edu>
45817
45818         * MODULES.html.sh: Add diffseq.
45819         * modules/diffseq: New file.
45820         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
45821         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
45822
45823 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45824
45825         Import changes from coreutils for bootstrap script.
45826
45827         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
45828
45829         * build-aux/bootstrap (slurp): Work even in environments where
45830         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
45831         current code does not slurp files whose names start with ".", and
45832         this looks like it might be a troublesome area.
45833
45834         2007-07-11  Jim Meyering  <jim@meyering.net>
45835
45836         If there's a GPL vN copyright comment, require that N == 3.
45837
45838         2007-07-08  Jim Meyering  <jim@meyering.net>
45839
45840         Run the coreutils-specific code only if tests/Makefile.am.in exists.
45841         * build-aux/bootstrap (mam_template): Move definition out of loop.
45842
45843         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
45844
45845         * build-aux/bootstrap (symlink_to_dir): Rename function from
45846         symlink_to_gnulib.  Add a directory parameter.  Update all
45847         callers.
45848         (cp_mark_as_generated): Also check for -- and link to -- files in
45849         gl/.
45850
45851         2007-07-08  Jim Meyering  <jim@meyering.net>
45852
45853         Adapt to deeper hierarchy in gnulib.
45854         * build-aux/bootstrap (symlink_to_dir): If the destination
45855         directory doesn't exist, create it. This is required at least for
45856         "lib/uniwidth/cjk.h".
45857
45858         2007-05-15  Jim Meyering  <jim@meyering.net>
45859
45860         * build-aux/bootstrap: Now that generated Makefile.am files
45861         are no longer under version control, they must be created at
45862         bootstrap time.
45863
45864 2007-08-14  Ben Pfaff  <blp@gnu.org>
45865
45866         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
45867
45868 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45869
45870         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
45871         given the changes below.
45872         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
45873         even on hosts that have padding bits beyond the supported 64.
45874
45875 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45876
45877         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
45878         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
45879         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
45880         depends on it.
45881         (xstrtol_error): Remove.
45882         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
45883         but with a different signature.
45884         (ATTRIBUTE_NORETURN, __attribute__): New macros.
45885         * lib/xstrtol-error.c: Include exitfail.h.
45886         (xstrtol_fatal): New function, with a different signature from the
45887         old xstrtol_error, so that the caller need not worry about passing
45888         in an exit status, or about storage management of the option argument.
45889         (xstrtol_error): Now a static function.  Redo signature to
45890         implement xstrtol_fatal.  Output the correct number of hyphens in
45891         front of the option so that the caller need not worry about
45892         storage management.
45893         (N_): New macro.
45894         (_): Remove; not used now.
45895         * modules/xstrtol: Depend on getopt.
45896         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
45897         of old STRTOL_FATAL_ERROR macro.
45898         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
45899         of test program.
45900         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
45901         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
45902
45903 2007-08-08  Eric Blake  <ebb9@byu.net>
45904
45905         * lib/xstrtol-error.c: Add missing include.
45906
45907         Move xstrtol messages into gnulib domain, when --pobase is used.
45908         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
45909         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
45910         * modules/xstrtol (Files): Distribute new file.
45911         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
45912         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
45913         * tests/test-xstrtol.c: ...into new file.
45914         * tests/test-xstrtoul.c: Also test xstrtoul.
45915         * tests/test-xstrtoimax.c: Also test xstrtoimax.
45916         * tests/test-xstrtoumax.c: Also test xstrtoumax.
45917         * tests/test-xstrtol.sh: Drive the tests.
45918         * tests/test-xstrtoimax.sh: Likewise.
45919         * tests/test-xstrtoumax.sh: Likewise.
45920         * modules/xstrtol-tests: New module.
45921         * modules/xstrtoimax-tests: Likewise.
45922         * modules/xstrtoumax-tests: Likewise.
45923
45924 2007-08-08  Jim Meyering  <jim@meyering.net>
45925
45926         New function: mfile_name_concat.
45927         * lib/filenamecat.c (mfile_name_concat): New function, just like
45928         file_name_concat, but return NULL upon failure rather than exiting
45929         with a diagnostic.
45930         * lib/filenamecat.h: Declare it.
45931
45932 2007-08-07  Bruno Haible  <bruno@clisp.org>
45933
45934         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
45935         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
45936         warning from gcc.
45937         Reported by Eric Blake.
45938
45939 2007-08-07  Simon Josefsson  <simon@josefsson.org>
45940
45941         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
45942         * modules/crypto/arcfour (License): Likewise.
45943         * modules/crypto/des-tests (License): Likewise.
45944         * modules/crypto/gc-arctwo-tests (License): Likewise.
45945         * modules/crypto/gc-des-tests (License): Likewise.
45946         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
45947         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
45948         * modules/crypto/gc-md2-tests (License): Likewise.
45949         * modules/crypto/gc-md4-tests (License): Likewise.
45950         * modules/crypto/gc-md5-tests (License): Likewise.
45951         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
45952         * modules/crypto/gc-rijndael-tests (License): Likewise.
45953         * modules/crypto/gc-sha1-tests (License): Likewise.
45954         * modules/crypto/gc-tests (License): Likewise.
45955         * modules/crypto/hmac-md5 (License): Likewise.
45956         * modules/crypto/hmac-sha1 (License): Likewise.
45957         * modules/crypto/md2-tests (License): Likewise.
45958         * modules/crypto/md4-tests (License): Likewise.
45959         * modules/crypto/md5 (License): Likewise.
45960         * modules/crypto/rijndael (License): Likewise.
45961         * modules/crypto/sha1 (License): Likewise.
45962         * modules/memxor (License): Likewise.
45963
45964 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
45965         and Bruno Haible  <bruno@clisp.org>
45966
45967         * NEWS: Describe interface changes to human, xstrtol.
45968         * lib/human.h: Include <xstrtol.h>.
45969         (human_options): Return enum strtol_error, not int.  Remove
45970         bool arg; take int * instead.
45971         * lib/human.c: Don't include "gettext.h".
45972         (_): Remove; no longer used.
45973         Don't include <xstrtol.h>, since human.h does it.
45974         (human_options): Adjust to abovementioned interface changes.
45975         Do not report error to stderr; that's now the caller's
45976         responsibility.
45977         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
45978         interface change.
45979         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
45980         Str, Argument_type_string.  All uses changed.  Put " argument"
45981         in diagnostics to make them clearer.  Change wording of suffix
45982         message for clarity.
45983         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
45984         Argument_type_string.
45985         (STRTOL_FATAL_WARN): Remove; no longer used.
45986         * modules/human (Depends-on): Remove gettext-h.
45987
45988 2007-08-06  Simon Josefsson  <simon@josefsson.org>
45989
45990         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
45991
45992 2007-07-31  Bruno Haible  <bruno@clisp.org>
45993
45994         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
45995         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
45996         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
45997
45998 2007-07-31  Bruno Haible  <bruno@clisp.org>
45999
46000         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
46001         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
46002
46003 2007-07-30  Bruno Haible  <bruno@clisp.org>
46004
46005         * modules/base64 (License): Use the synonymous term "LGPLv2+".
46006         * modules/c-ctype (License): Likewise.
46007         * modules/c-strcase (License): Likewise.
46008         * modules/check-version (License): Likewise.
46009         * modules/iconv (License): Likewise.
46010         * modules/iconv_open (License): Likewise.
46011         * modules/read-file (License): Likewise.
46012         * modules/striconv (License): Likewise.
46013         * modules/strverscmp (License): Likewise.
46014         * modules/vasprintf (License): Likewise.
46015         * modules/crypto/des (License): Likewise.
46016         * modules/crypto/gc (License): Likewise.
46017         * modules/crypto/gc-arcfour (License): Likewise.
46018         * modules/crypto/gc-arctwo (License): Likewise.
46019         * modules/crypto/gc-des (License): Likewise.
46020         * modules/crypto/gc-hmac-md5 (License): Likewise.
46021         * modules/crypto/gc-hmac-sha1 (License): Likewise.
46022         * modules/crypto/gc-md2 (License): Likewise.
46023         * modules/crypto/gc-md4 (License): Likewise.
46024         * modules/crypto/gc-md5 (License): Likewise.
46025         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
46026         * modules/crypto/gc-random (License): Likewise.
46027         * modules/crypto/gc-rijndael (License): Likewise.
46028         * modules/crypto/gc-sha1 (License): Likewise.
46029         * modules/crypto/md2 (License): Likewise.
46030         * modules/crypto/md4 (License): Likewise.
46031
46032 2007-07-30  Jim Meyering  <jim@meyering.net>
46033
46034         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
46035         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
46036         it has valid stat data.  This bug would cause du not to count the
46037         sizes of inaccessible directories.
46038         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
46039         in <http://bugzilla.redhat.com/250077>.
46040
46041 2007-07-25  Peter O'Gorman  <peter@pogma.com>
46042             Bruno Haible  <bruno@clisp.org>
46043
46044         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
46045         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
46046         #include_next, gives a diagnostic about it, but reports no error in
46047         the exit code.
46048         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46049
46050 2007-07-24  Ben Pfaff  <blp@gnu.org>
46051
46052         Improve name: "count-one-bits" is better than "popcount".
46053         * MODULES.html.sh: Update name.
46054         * lib/popcount.h: Renamed lib/count-one-bits.h.
46055         (popcount): Renamed count_one_bits.
46056         (popcountl): Renamed count_one_bits_l.
46057         (popcountll): Renamed count_one_bits_ll.
46058         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
46059         * modules/popcount: Renamed module/count-one-bits.
46060         * modules/popcount-tests: Renamed module/count-one-bits-tests.
46061         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
46062
46063 2007-07-23  Ben Pfaff  <blp@gnu.org>
46064
46065         * lib/popcount.h (popcount32): Reduce size of constants, to allow
46066         better code generation, and add U to large constants to avoid
46067         warnings, in non-GCC case.
46068         Suggested by Bruno Haible.
46069
46070 2007-07-23  Ben Pfaff  <blp@gnu.org>
46071
46072         * lib/popcount.h: Use verify_true instead of if...abort.
46073         * modules/popcount: Depend on verify module.
46074         Suggested by Jim Meyering.
46075
46076 2007-07-23  Bruno Haible  <bruno@clisp.org>
46077
46078         * gnulib-tool (func_import): Create a .cvsignore file also when the
46079         directory is not yet in CVS but the toplevel directory is. When
46080         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
46081         Reported by Karl Berry.
46082
46083 2007-07-22  Ben Pfaff  <blp@gnu.org>
46084
46085         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
46086         case.
46087         Suggested by Eric Blake.
46088
46089 2007-07-22  Ben Pfaff  <blp@gnu.org>
46090
46091         New module: popcount.
46092         * MODULES.html.sh: Add popcount.
46093         * modules/popcount: New file.
46094         * modules/popcount-tests: New file.
46095         * tests/test-popcount.c: New file.
46096         * lib/popcount.h: New file.
46097         * m4/popcount.m4: New file.
46098
46099 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46100
46101         * build-aux/announce-gen: Update to GPLv3.
46102
46103         * build-aux/config.guess: Update from config.
46104
46105 2007-07-21  Bruno Haible  <bruno@clisp.org>
46106
46107         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
46108         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
46109
46110 2007-07-20  Jim Meyering  <jim@meyering.net>
46111
46112         * check-module: Diagnose a self-dependency.
46113
46114 2007-07-19  Bruno Haible  <bruno@clisp.org>
46115
46116         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
46117         empty.
46118         Reported by Eric Blake.
46119
46120 2007-07-18  Bruno Haible  <bruno@clisp.org>
46121
46122         * gnulib-tool: New options --po-base, --po-domain.
46123         (func_usage): Document them.
46124         (pobase, po_domain): New variables.
46125         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
46126         DEFAULT_TEXT_DOMAIN.
46127         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
46128         (func_import): Consider pobase and po_domain. Create a po/ directory.
46129         (func_create_testdir): Set pobase and po_domain to empty.
46130         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
46131         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
46132
46133 2007-07-18  Bruno Haible  <bruno@clisp.org>
46134
46135         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46136         EXTRA_DIST augmentation for files in build-aux/.
46137
46138 2007-07-16  Bruno Haible  <bruno@clisp.org>
46139
46140         * modules/lseek (License): Use the synonymous term "LGPLv2+".
46141         * modules/getdelim (License): Likewise.
46142
46143 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46144
46145         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
46146         * modules/d-type (License): Likewise.
46147         * modules/extensions (License): Likewise.
46148         * modules/fnmatch (License): Likewise.
46149         * modules/fseeko (License): Likewise.
46150         * modules/getaddrinfo (License): Likewise.
46151         * modules/getline (License): Likewise.
46152         * modules/getlogin_r (License): Likewise.
46153         * modules/getpass (License): Likewise.
46154         * modules/gettimeofday (License): Likewise.
46155         * modules/glob (License): Likewise.
46156         * modules/inet_ntop (License): Likewise.
46157         * modules/malloc (License): Likewise.
46158         * modules/malloca (License): Likewise.
46159         * modules/memmem (License): Likewise.
46160         * modules/mempcpy (License): Likewise.
46161         * modules/memset (License): Likewise.
46162         * modules/minmax (License): Likewise.
46163         * modules/mktime (License): Likewise.
46164         * modules/netinet_in (License): Likewise.
46165         * modules/pathmax (License): Likewise.
46166         * modules/poll (License): Likewise.
46167         * modules/regex (License): Likewise.
46168         * modules/snprintf (License): Likewise.
46169         * modules/stdbool (License): Likewise.
46170         * modules/stdint (License): Likewise.
46171         * modules/stdio (License): Likewise.
46172         * modules/strcase (License): Likewise.
46173         * modules/strcasestr (License): Likewise.
46174         * modules/strdup (License): Likewise.
46175         * modules/string (License): Likewise.
46176         * modules/strndup (License): Likewise.
46177         * modules/strnlen (License): Likewise.
46178         * modules/strpbrk (License): Likewise.
46179         * modules/strptime (License): Likewise.
46180         * modules/strsep (License): Likewise.
46181         * modules/sys_select (License): Likewise.
46182         * modules/sys_socket (License): Likewise.
46183         * modules/sys_stat (License): Likewise.
46184         * modules/sys_time (License): Likewise.
46185         * modules/time (License): Likewise.
46186         * modules/time_r (License): Likewise.
46187         * modules/timegm (License): Likewise.
46188         * modules/unistd (License): Likewise.
46189         * modules/vsnprintf (License): Likewise.
46190         * modules/wctype (License): Likewise.
46191
46192 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46193
46194         * modules/argz (License): LGPLv2+.
46195
46196 2007-07-15  Karl Berry  <karl@gnu.org>
46197
46198         * doc/gnulib.texi: revise node structure per new fdl.texi.
46199
46200 2007-07-14  Bruno Haible  <bruno@clisp.org>
46201
46202         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
46203         the output file.
46204         * lib/uniname/uninames.h: Regenerated.
46205
46206 2007-07-14  Karl Berry  <karl@gnu.org>
46207
46208         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
46209         omitting sectioning and index commands.
46210
46211 2007-07-13  Bruno Haible  <bruno@clisp.org>
46212
46213         New gnulib-tool option --more-symlinks.
46214         * gnulib-tool (func_usage): Document --more-symlinks.
46215         (do_copyrights): New variable.
46216         Recognize option --more-symlinks.
46217         (func_import): Don't add a copyright notice transform to
46218         sed_transform_lib_file if do_copyrights is empty.
46219
46220 2007-07-13  Bruno Haible  <bruno@clisp.org>
46221
46222         * lib/vasnprintf.c (decimal_point_char): Define also if
46223         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
46224         && !NEED_PRINTF_DIRECTIVE_A.
46225         Reported by Clemens Koller <clemens.koller@anagramm.de> via
46226         Gary V. Vaughan <gary@gnu.org>.
46227
46228 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
46229
46230         * lib/inttypes_.h: Undo previous change, since it was fixed
46231         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
46232
46233 2007-07-13  Bruno Haible  <bruno@clisp.org>
46234
46235         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
46236         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
46237
46238 2007-07-13  Jim Meyering  <jim@meyering.net>
46239
46240         df: Don't fail for Tru64's "file-on-file mount".
46241         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
46242         so we fall through and use statfs instead.  Details here:
46243         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
46244         Reported by Albert Chin.
46245
46246 2007-07-13  Bruno Haible  <bruno@clisp.org>
46247
46248         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
46249         * modules/configmake (License): Likewise.
46250         * modules/gettext (License): Likewise.
46251         * modules/gettext-h (License): Likewise.
46252         * modules/include_next (License): Likewise.
46253         * modules/link-warning (License): Likewise.
46254         * modules/localcharset (License): Likewise.
46255         * modules/localename (License): Likewise.
46256         * modules/lock (License): Likewise.
46257         * modules/relocatable-lib-lgpl (License): Likewise.
46258         * modules/size_max (License): Likewise.
46259         * modules/vasnprintf (License): Likewise.
46260         * modules/wchar (License): Likewise.
46261         * modules/xsize (License): Likewise.
46262
46263 2007-07-13  Bruno Haible  <bruno@clisp.org>
46264
46265         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
46266         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
46267
46268 2007-07-12  Bruno Haible  <bruno@clisp.org>
46269
46270         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
46271         in the modules files.
46272
46273 2007-07-11  Karl Berry  <karl@gnu.org>
46274
46275         * MODULES.html.sh (func_module): use
46276          sed -e '\|^'"${includefile}"'$|d'
46277          instead of /.../d, to avoid errors on $includefile's containing /.
46278
46279 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46280
46281         * gnulib-tool (func_import): Avoid duplication of --avoid
46282         statements
46283         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
46284         names to `_' in variable names.
46285
46286 2007-07-10  Eric Blake  <ebb9@byu.net>
46287
46288         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
46289         * NEWS: Document this change.
46290
46291 2007-07-08  Bruno Haible  <bruno@clisp.org>
46292
46293         Update to Unicode 5.0.
46294         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
46295         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
46296         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
46297         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
46298         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
46299         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
46300         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
46301         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
46302         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
46303         U+10A3F, U+1D242..U+1D244.
46304         (nonspacing_table_ind): Update.
46305         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
46306         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
46307
46308 2007-07-08  Bruno Haible  <bruno@clisp.org>
46309
46310         Update to Unicode 5.0.
46311         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
46312         code transform. Extend the name index field of unicode_name_to_code and
46313         unicode_code_to_name from 16 to 24 bits.
46314         * lib/uniname/uniname.c (unicode_character_name,
46315         unicode_name_character): Add the range 0x12xxx to the code transform.
46316         * lib/uniname/uninames.h: Regenerated.
46317         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
46318
46319 2007-07-07  Bruno Haible  <bruno@clisp.org>
46320
46321         * modules/wcwidth-tests: New file.
46322         * tests/test-wcwidth.c: New file.
46323
46324         Work around MacOS X wcwidth() bug.
46325         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
46326         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
46327         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
46328         original wcwidth in non-UTF-8 locales.
46329         * modules/wcwidth (Depends-on): Add localcharset, streq,
46330         uniwidth/width.
46331         * doc/functions/wcwidth.texi: Update.
46332
46333 2007-07-07  Bruno Haible  <bruno@clisp.org>
46334
46335         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
46336         (wcwidth): New declaration.
46337         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
46338         macros.
46339         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
46340         here. Prepare for creating <wchar.h> unconditionally.
46341         * modules/wchar (Depends-on): Add link-warning.
46342         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
46343         REPLACE_WCWIDTH, and GL_LINK_WARNING.
46344         * lib/wcwidth.h: Remove file.
46345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
46346         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
46347         * modules/wcwidth (Files): Remove lib/wcwidth.h.
46348         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
46349         (Include): Replace wcwidth.h with <wchar.h>.
46350         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
46351         * lib/mbchar.h: Don't include wcwidth.h.
46352         * lib/mbswidth.c: Likewise.
46353         * NEWS: Mention the change.
46354
46355 2007-07-07  Bruno Haible  <bruno@clisp.org>
46356
46357         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
46358         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
46359         definition with an external declaration.
46360         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
46361         defined as a function. Remove AC_C_INLINE requirement.
46362         * modules/wcwidth (Files): Add lib/wcwidth.c.
46363         (Makefile.am): Remove redundant statement.
46364
46365 2007-07-07  Bruno Haible  <bruno@clisp.org>
46366
46367         * MODULES.html.sh (Unicode string functions): Add the new modules.
46368
46369         * tests/uniwidth/test-u32-strwidth.c: New file.
46370         * modules/uniwidth/u32-strwidth-tests: New file.
46371
46372         * lib/uniwidth/u32-strwidth.c: New file.
46373         * modules/uniwidth/u32-strwidth: New file.
46374
46375         * tests/uniwidth/test-u16-strwidth.c: New file.
46376         * modules/uniwidth/u16-strwidth-tests: New file.
46377
46378         * lib/uniwidth/u16-strwidth.c: New file.
46379         * modules/uniwidth/u16-strwidth: New file.
46380
46381         * tests/uniwidth/test-u8-strwidth.c: New file.
46382         * modules/uniwidth/u8-strwidth-tests: New file.
46383
46384         * lib/uniwidth/u8-strwidth.c: New file.
46385         * modules/uniwidth/u8-strwidth: New file.
46386
46387         * tests/uniwidth/test-u32-width.c: New file.
46388         * modules/uniwidth/u32-width-tests: New file.
46389
46390         * lib/uniwidth/u32-width.c: New file.
46391         * modules/uniwidth/u32-width: New file.
46392
46393         * tests/uniwidth/test-u16-width.c: New file.
46394         * modules/uniwidth/u16-width-tests: New file.
46395
46396         * lib/uniwidth/u16-width.c: New file.
46397         * modules/uniwidth/u16-width: New file.
46398
46399         * tests/uniwidth/test-u8-width.c: New file.
46400         * modules/uniwidth/u8-width-tests: New file.
46401
46402         * lib/uniwidth/u8-width.c: New file.
46403         * modules/uniwidth/u8-width: New file.
46404
46405         * tests/uniwidth/test-uc_width.c: New file.
46406         * modules/uniwidth/width-tests: New file.
46407
46408         * lib/uniwidth/width.c: New file, from GNU libiconv.
46409         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
46410         * modules/uniwidth/width: New file.
46411
46412         * lib/uniwidth.h: New file, from GNU libiconv.
46413         * modules/uniwidth/base: New file.
46414
46415 2007-07-07  Bruno Haible  <bruno@clisp.org>
46416
46417         * lib/uniname.h: New file, from GNU gettext.
46418         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
46419         * lib/uniname/uninames.h: New file, from GNU gettext.
46420         * lib/uniname/uniname.c: New file, from GNU gettext.
46421         * tests/uniname/test-uninames.sh: New file.
46422         * tests/uniname/test-uninames.c: New file, from GNU gettext.
46423         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
46424         * modules/uniname/base: New file.
46425         * modules/uniname/uniname: New file.
46426         * modules/uniname/uniname-tests: New file.
46427         * MODULES.html.sh (Unicode string functions): Add the new modules.
46428
46429 2007-07-06  Bruno Haible  <bruno@clisp.org>
46430
46431         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
46432
46433 2007-07-06  Bruno Haible  <bruno@clisp.org>
46434
46435         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
46436         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
46437         includes <cygwin/sys_time.h> which includes <sys/select.h> which
46438         include <sys/time.h>.
46439         Reported by Eric Blake.
46440
46441 2007-07-06  Eric Blake  <ebb9@byu.net>
46442
46443         Fix testing canonicalize on cygwin.
46444         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46445         Revert patch from 2007-06-19.
46446         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
46447         canonicalize module is also in use.
46448         * tests/test-canonicalize.c: New file.
46449         * tests/test-canonicalize.sh: Likewise.
46450         * modules/canonicalize-tests: Likewise.
46451
46452 2007-07-06  Jim Meyering  <jim@meyering.net>
46453
46454         * lib/getugroups.c (getugroups): Detect getgrent failure.
46455         Adjust comment to reflect reality: this function may return -1.
46456
46457 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
46458
46459         * build-aux/bootstrap (TP_URL,get_translations): Update to use
46460         the new TP address.
46461         (usage): Fix typo
46462         (gnulib_mk): New variable.
46463
46464 2007-07-05  Jim Meyering  <jim@meyering.net>
46465
46466         Don't let endgrent clobber errno, no matter how improbable.
46467         * lib/getugroups.c (getugroups): Save and restore errno around
46468         endgrent call.
46469
46470         Close the group DB even when failing with 2^31 or more members.
46471         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
46472
46473 2007-07-04  Jim Meyering  <jim@meyering.net>
46474
46475         * lib/getugroups.h: New file.
46476         * lib/getugroups.c: Include "getugroups.h".
46477         Remove uses of "register" keyword.
46478         Move local variable, "cp", down into scope where used.
46479         Give "username" parameter the "const" attribute.
46480         * modules/getugroups (Files): Add lib/getugroups.h
46481
46482 2007-07-04  Karl Berry  <karl@gnu.org>
46483
46484         * MODULES.html.sh (func_all_modules): Complete rename of
46485         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
46486
46487 2007-07-02  Bruno Haible  <bruno@clisp.org>
46488
46489         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
46490         mode, when inttypes.h comes from gnulib.
46491         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46492
46493 2007-07-02  Simon Josefsson  <simon@josefsson.org>
46494
46495         * NEWS: Mention lgpl module name change.
46496
46497         * modules/lgpl-2.1: Renamed from lgpl.
46498
46499         * NEWS: Mention gpl module name change.
46500
46501         * modules/gpl-3.0: New file, based on gpl-2.0.
46502
46503         * modules/gpl-2.0: Renamed from gpl.
46504
46505         * modules/gpl: Fix filename, doc/gpl.texi is now found at
46506         doc/gpl-2.0.texi.
46507
46508 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46509
46510         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
46511         #define __STDC_LIMIT_MACROS temporarily while including
46512         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
46513         Problem reported by Joel E. Denny in
46514         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
46515
46516 2007-07-01  Bruno Haible  <bruno@clisp.org>
46517
46518         * lib/unistdio.h: New file.
46519         * lib/unistdio/u-asnprintf.h: New file.
46520         * lib/unistdio/u-asprintf.h: New file.
46521         * lib/unistdio/u-printf-args.c: New file.
46522         * lib/unistdio/u-printf-args.h: New file.
46523         * lib/unistdio/u-printf-parse.h: New file.
46524         * lib/unistdio/u-snprintf.h: New file.
46525         * lib/unistdio/u-sprintf.h: New file.
46526         * lib/unistdio/u-vasprintf.h: New file.
46527         * lib/unistdio/u-vsnprintf.h: New file.
46528         * lib/unistdio/u-vsprintf.h: New file.
46529         * lib/unistdio/ulc-asnprintf.c: New file.
46530         * lib/unistdio/ulc-asprintf.c: New file.
46531         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
46532         * lib/unistdio/ulc-printf-parse.c: New file.
46533         * lib/unistdio/ulc-snprintf.c: New file.
46534         * lib/unistdio/ulc-sprintf.c: New file.
46535         * lib/unistdio/ulc-vasnprintf.c: New file.
46536         * lib/unistdio/ulc-vasprintf.c: New file.
46537         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
46538         * lib/unistdio/ulc-vsnprintf.c: New file.
46539         * lib/unistdio/ulc-vsprintf.c: New file.
46540         * lib/unistdio/u8-asnprintf.c: New file.
46541         * lib/unistdio/u8-asprintf.c: New file.
46542         * lib/unistdio/u8-printf-parse.c: New file.
46543         * lib/unistdio/u8-snprintf.c: New file.
46544         * lib/unistdio/u8-sprintf.c: New file.
46545         * lib/unistdio/u8-vasnprintf.c: New file.
46546         * lib/unistdio/u8-vasprintf.c: New file.
46547         * lib/unistdio/u8-vsnprintf.c: New file.
46548         * lib/unistdio/u8-vsprintf.c: New file.
46549         * lib/unistdio/u8-u8-asnprintf.c: New file.
46550         * lib/unistdio/u8-u8-asprintf.c: New file.
46551         * lib/unistdio/u8-u8-snprintf.c: New file.
46552         * lib/unistdio/u8-u8-sprintf.c: New file.
46553         * lib/unistdio/u8-u8-vasnprintf.c: New file.
46554         * lib/unistdio/u8-u8-vasprintf.c: New file.
46555         * lib/unistdio/u8-u8-vsnprintf.c: New file.
46556         * lib/unistdio/u8-u8-vsprintf.c: New file.
46557         * lib/unistdio/u16-asnprintf.c: New file.
46558         * lib/unistdio/u16-asprintf.c: New file.
46559         * lib/unistdio/u16-printf-parse.c: New file.
46560         * lib/unistdio/u16-snprintf.c: New file.
46561         * lib/unistdio/u16-sprintf.c: New file.
46562         * lib/unistdio/u16-vasnprintf.c: New file.
46563         * lib/unistdio/u16-vasprintf.c: New file.
46564         * lib/unistdio/u16-vsnprintf.c: New file.
46565         * lib/unistdio/u16-vsprintf.c: New file.
46566         * lib/unistdio/u16-u16-asnprintf.c: New file.
46567         * lib/unistdio/u16-u16-asprintf.c: New file.
46568         * lib/unistdio/u16-u16-snprintf.c: New file.
46569         * lib/unistdio/u16-u16-sprintf.c: New file.
46570         * lib/unistdio/u16-u16-vasnprintf.c: New file.
46571         * lib/unistdio/u16-u16-vasprintf.c: New file.
46572         * lib/unistdio/u16-u16-vsnprintf.c: New file.
46573         * lib/unistdio/u16-u16-vsprintf.c: New file.
46574         * lib/unistdio/u32-asnprintf.c: New file.
46575         * lib/unistdio/u32-asprintf.c: New file.
46576         * lib/unistdio/u32-printf-parse.c: New file.
46577         * lib/unistdio/u32-snprintf.c: New file.
46578         * lib/unistdio/u32-sprintf.c: New file.
46579         * lib/unistdio/u32-vasnprintf.c: New file.
46580         * lib/unistdio/u32-vasprintf.c: New file.
46581         * lib/unistdio/u32-vsnprintf.c: New file.
46582         * lib/unistdio/u32-vsprintf.c: New file.
46583         * lib/unistdio/u32-u32-asnprintf.c: New file.
46584         * lib/unistdio/u32-u32-asprintf.c: New file.
46585         * lib/unistdio/u32-u32-snprintf.c: New file.
46586         * lib/unistdio/u32-u32-sprintf.c: New file.
46587         * lib/unistdio/u32-u32-vasnprintf.c: New file.
46588         * lib/unistdio/u32-u32-vasprintf.c: New file.
46589         * lib/unistdio/u32-u32-vsnprintf.c: New file.
46590         * lib/unistdio/u32-u32-vsprintf.c: New file.
46591         * tests/unistdio/test-ulc-asnprintf1.c: New file.
46592         * tests/unistdio/test-ulc-asnprintf1.h: New file.
46593         * tests/unistdio/test-ulc-printf1.h: New file.
46594         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
46595         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
46596         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
46597         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
46598         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
46599         * tests/unistdio/test-ulc-vasprintf1.c: New file.
46600         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
46601         * tests/unistdio/test-ulc-vsprintf1.c: New file.
46602         * tests/unistdio/test-u8-asnprintf1.c: New file.
46603         * tests/unistdio/test-u8-asnprintf1.h: New file.
46604         * tests/unistdio/test-u8-printf1.h: New file.
46605         * tests/unistdio/test-u8-vasnprintf1.c: New file.
46606         * tests/unistdio/test-u8-vasnprintf2.c: New file.
46607         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
46608         * tests/unistdio/test-u8-vasnprintf3.c: New file.
46609         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
46610         * tests/unistdio/test-u8-vasprintf1.c: New file.
46611         * tests/unistdio/test-u8-vsnprintf1.c: New file.
46612         * tests/unistdio/test-u8-vsprintf1.c: New file.
46613         * tests/unistdio/test-u16-asnprintf1.c: New file.
46614         * tests/unistdio/test-u16-asnprintf1.h: New file.
46615         * tests/unistdio/test-u16-printf1.h: New file.
46616         * tests/unistdio/test-u16-vasnprintf1.c: New file.
46617         * tests/unistdio/test-u16-vasnprintf2.c: New file.
46618         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
46619         * tests/unistdio/test-u16-vasnprintf3.c: New file.
46620         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
46621         * tests/unistdio/test-u16-vasprintf1.c: New file.
46622         * tests/unistdio/test-u16-vsnprintf1.c: New file.
46623         * tests/unistdio/test-u16-vsprintf1.c: New file.
46624         * tests/unistdio/test-u32-asnprintf1.c: New file.
46625         * tests/unistdio/test-u32-asnprintf1.h: New file.
46626         * tests/unistdio/test-u32-printf1.h: New file.
46627         * tests/unistdio/test-u32-vasnprintf1.c: New file.
46628         * tests/unistdio/test-u32-vasnprintf2.c: New file.
46629         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
46630         * tests/unistdio/test-u32-vasnprintf3.c: New file.
46631         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
46632         * tests/unistdio/test-u32-vasprintf1.c: New file.
46633         * tests/unistdio/test-u32-vsnprintf1.c: New file.
46634         * tests/unistdio/test-u32-vsprintf1.c: New file.
46635         * modules/unistdio/base: New file.
46636         * modules/unistdio/u-printf-args: New file.
46637         * modules/unistdio/ulc-asnprintf: New file.
46638         * modules/unistdio/ulc-asprintf: New file.
46639         * modules/unistdio/ulc-fprintf: New file.
46640         * modules/unistdio/ulc-printf-parse: New file.
46641         * modules/unistdio/ulc-snprintf: New file.
46642         * modules/unistdio/ulc-sprintf: New file.
46643         * modules/unistdio/ulc-vasnprintf: New file.
46644         * modules/unistdio/ulc-vasprintf: New file.
46645         * modules/unistdio/ulc-vfprintf: New file.
46646         * modules/unistdio/ulc-vsnprintf: New file.
46647         * modules/unistdio/ulc-vsprintf: New file.
46648         * modules/unistdio/u8-asnprintf: New file.
46649         * modules/unistdio/u8-asprintf: New file.
46650         * modules/unistdio/u8-printf-parse: New file.
46651         * modules/unistdio/u8-snprintf: New file.
46652         * modules/unistdio/u8-sprintf: New file.
46653         * modules/unistdio/u8-vasnprintf: New file.
46654         * modules/unistdio/u8-vasprintf: New file.
46655         * modules/unistdio/u8-vsnprintf: New file.
46656         * modules/unistdio/u8-vsprintf: New file.
46657         * modules/unistdio/u8-u8-asnprintf: New file.
46658         * modules/unistdio/u8-u8-asprintf: New file.
46659         * modules/unistdio/u8-u8-snprintf: New file.
46660         * modules/unistdio/u8-u8-sprintf: New file.
46661         * modules/unistdio/u8-u8-vasnprintf: New file.
46662         * modules/unistdio/u8-u8-vasprintf: New file.
46663         * modules/unistdio/u8-u8-vsnprintf: New file.
46664         * modules/unistdio/u8-u8-vsprintf: New file.
46665         * modules/unistdio/u16-asnprintf: New file.
46666         * modules/unistdio/u16-asprintf: New file.
46667         * modules/unistdio/u16-printf-parse: New file.
46668         * modules/unistdio/u16-snprintf: New file.
46669         * modules/unistdio/u16-sprintf: New file.
46670         * modules/unistdio/u16-vasnprintf: New file.
46671         * modules/unistdio/u16-vasprintf: New file.
46672         * modules/unistdio/u16-vsnprintf: New file.
46673         * modules/unistdio/u16-vsprintf: New file.
46674         * modules/unistdio/u16-u16-asnprintf: New file.
46675         * modules/unistdio/u16-u16-asprintf: New file.
46676         * modules/unistdio/u16-u16-snprintf: New file.
46677         * modules/unistdio/u16-u16-sprintf: New file.
46678         * modules/unistdio/u16-u16-vasnprintf: New file.
46679         * modules/unistdio/u16-u16-vasprintf: New file.
46680         * modules/unistdio/u16-u16-vsnprintf: New file.
46681         * modules/unistdio/u16-u16-vsprintf: New file.
46682         * modules/unistdio/u32-asnprintf: New file.
46683         * modules/unistdio/u32-asprintf: New file.
46684         * modules/unistdio/u32-printf-parse: New file.
46685         * modules/unistdio/u32-snprintf: New file.
46686         * modules/unistdio/u32-sprintf: New file.
46687         * modules/unistdio/u32-vasnprintf: New file.
46688         * modules/unistdio/u32-vasprintf: New file.
46689         * modules/unistdio/u32-vsnprintf: New file.
46690         * modules/unistdio/u32-vsprintf: New file.
46691         * modules/unistdio/u32-u32-asnprintf: New file.
46692         * modules/unistdio/u32-u32-asprintf: New file.
46693         * modules/unistdio/u32-u32-snprintf: New file.
46694         * modules/unistdio/u32-u32-sprintf: New file.
46695         * modules/unistdio/u32-u32-vasnprintf: New file.
46696         * modules/unistdio/u32-u32-vasprintf: New file.
46697         * modules/unistdio/u32-u32-vsnprintf: New file.
46698         * modules/unistdio/u32-u32-vsprintf: New file.
46699         * modules/unistdio/ulc-asnprintf-tests: New file.
46700         * modules/unistdio/ulc-vasnprintf-tests: New file.
46701         * modules/unistdio/ulc-vasprintf-tests: New file.
46702         * modules/unistdio/ulc-vsnprintf-tests: New file.
46703         * modules/unistdio/ulc-vsprintf-tests: New file.
46704         * modules/unistdio/u8-asnprintf-tests: New file.
46705         * modules/unistdio/u8-vasnprintf-tests: New file.
46706         * modules/unistdio/u8-vasprintf-tests: New file.
46707         * modules/unistdio/u8-vsnprintf-tests: New file.
46708         * modules/unistdio/u8-vsprintf-tests: New file.
46709         * modules/unistdio/u16-asnprintf-tests: New file.
46710         * modules/unistdio/u16-vasnprintf-tests: New file.
46711         * modules/unistdio/u16-vasprintf-tests: New file.
46712         * modules/unistdio/u16-vsnprintf-tests: New file.
46713         * modules/unistdio/u16-vsprintf-tests: New file.
46714         * modules/unistdio/u32-asnprintf-tests: New file.
46715         * modules/unistdio/u32-vasnprintf-tests: New file.
46716         * modules/unistdio/u32-vasprintf-tests: New file.
46717         * modules/unistdio/u32-vsnprintf-tests: New file.
46718         * modules/unistdio/u32-vsprintf-tests: New file.
46719         * MODULES.html.sh (Unicode string functions): Add the new modules.
46720
46721 2007-07-01  Bruno Haible  <bruno@clisp.org>
46722
46723         * lib/sprintf.c (sprintf): Limit the available length estimation,
46724         to avoid address wraparound.
46725         * lib/vsprintf.c (vsprintf): Likewise.
46726         * modules/sprintf-posix (Dependencies): Add stdint.
46727         * modules/vsprintf-posix (Dependencies): Likewise.
46728
46729 2007-07-01  Bruno Haible  <bruno@clisp.org>
46730
46731         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
46732         Windows PATH as well. Conservative double-quoting. Comments.
46733
46734 2007-07-01  Bruno Haible  <bruno@clisp.org>
46735             Eric Blake  <ebb9@byu.net>
46736             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46737
46738         * gnulib-tool (self_abspathname): Fix algorithm to cope with
46739         empty components in $PATH, denoting '.'.
46740
46741 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46742
46743         * gnulib-tool: Fix indentation.
46744         (func_create_megatestdir): Likewise.
46745         Report by Bruno Haible.
46746
46747 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46748
46749         Sync from Automake.
46750         * build-aux/gnupload: Fix shell portability issues with for loops.
46751         Report by Karl Berry.
46752
46753 2007-06-29  Simon Josefsson  <simon@josefsson.org>
46754
46755         * build-aux/maint.mk (POURL): Use translationproject.org.
46756
46757 2007-06-27  Simon Josefsson  <simon@josefsson.org>
46758             Bruno Haible  <bruno@clisp.org>
46759
46760         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
46761         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
46762         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
46763         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
46764         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
46765
46766 2007-06-27  Bruno Haible  <bruno@clisp.org>
46767
46768         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
46769         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
46770
46771 2007-06-26  Karl Berry  <karl@gnu.org>
46772
46773         * MODULES.html.sh: remove xreadlink-with-size.
46774
46775 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46776
46777         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
46778         method that I hope also handles the double-include problem noted
46779         by Bruno Haible in
46780         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
46781
46782 2007-06-23  Bruno Haible  <bruno@clisp.org>
46783
46784         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46785         Don't let the 'mostlyclean' target fail if the last subdirectory could
46786         not be removed.
46787         Reported by Karl Berry.
46788
46789 2007-06-23  Bruno Haible  <bruno@clisp.org>
46790
46791         * gnulib-tool (echo): Add a speedier workaround for ksh.
46792         * tests/test-echo.sh: Likewise.
46793
46794 2007-06-23  Bruno Haible  <bruno@clisp.org>
46795
46796         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
46797         * tests/test-echo.sh: Likewise.
46798
46799 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46800
46801         * gnulib-tool (IFS): Initialize early, so we don't set it to
46802         empty later.
46803         (self_abspathname): Rewrite algorithm to set it, reindent.
46804         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
46805         (func_create_megatestdir): Merge some sed scripts.
46806
46807 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46808
46809         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
46810         exposed by Sun Studio 11 cc on Solaris 8.
46811
46812 2007-06-22  Bruno Haible  <bruno@clisp.org>
46813
46814         * gnulib-tool (echo): Ensure the echo primitive does not interpret
46815         backslashes.
46816         * tests/test-echo.sh: New file.
46817
46818 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46819
46820         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
46821         simplify `sed_replace_build_aux' scripts, they are portable but
46822         echoing them with `echo' is not.
46823         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
46824
46825 2007-06-21  Karl Berry  <karl@gnu.org>
46826
46827         * config/srclist.txt: guess we can't handle the licenses via
46828         srclist at the moment.
46829
46830 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46831
46832         * MODULES.html.sh: Add include_next.
46833         * modules/include_next: New file.
46834
46835 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46836
46837         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
46838         INCLUDE_NEXT.
46839         (gl_CHECK_NEXT_HEADERS): New macro.
46840         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
46841         the obsolescent gl_ABSOLUTE_HEADER.
46842         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
46843         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
46844         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
46845         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46846         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
46847         * m4/math_h.m4 (gl_MATH_H): Likewise.
46848         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46849         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
46850         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
46851         * m4/stdint.m4 (gl_STDINT_H): Likewise.
46852         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
46853         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
46854         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
46855         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46856         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46857         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
46858         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
46859         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46860         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
46861         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
46862         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46863         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46864         * m4/inttypes.m4 (gl_INTTYPES_H): Define
46865         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
46866         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
46867         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
46868         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
46869         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
46870         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
46871         * lib/float_.h: Likewise.
46872         * lib/inttypes_.h: Likewise.
46873         * lib/math_.h: Likewise.
46874         * lib/search_.h: Likewise.
46875         * lib/signal_.h: Likewise.
46876         * lib/stdint_.h: Likewise.
46877         * lib/stdio_.h: Likewise.
46878         * lib/stdlib_.h: Likewise.
46879         * lib/string_.h: Likewise.
46880         * lib/sys_stat_.h: Likewise.
46881         * lib/sys_time_.h: Likewise.
46882         * lib/time_.h: Likewise.
46883         * lib/unistd_.h: Likewise.
46884         * lib/wchar_.h: Likewise.
46885         * lib/wctype_.h: Likewise.
46886         * lib/dirent_.h: Likewise.
46887         * lib/iconv_.h: Likewise.
46888         * lib/locale_.h: Likewise.
46889         * lib/netinet_in_.h: Likewise.
46890         * lib/sys_select_.h: Likewise.
46891         * lib/sys_socket_.h: Likewise.
46892         * lib/sysexits_.h: Likewise.
46893         * modules/fcntl (Depends-on): Depend on include_next, not
46894         absolute_header.
46895         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
46896         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
46897         * modules/fchdir: Likewise.
46898         * modules/float: Likewise.
46899         * modules/iconv_open: Likewise.
46900         * modules/inttypes: Likewise.
46901         * modules/locale: Likewise.
46902         * modules/math: Likewise.
46903         * modules/netinet_in: Likewise.
46904         * modules/search: Likewise.
46905         * modules/signal: Likewise.
46906         * modules/stdint: Likewise.
46907         * modules/stdio: Likewise.
46908         * modules/stdlib: Likewise.
46909         * modules/string: Likewise.
46910         * modules/sys_select: Likewise.
46911         * modules/sys_socket: Likewise.
46912         * modules/sys_stat: Likewise.
46913         * modules/sys_time: Likewise.
46914         * modules/sysexits: Likewise.
46915         * modules/time: Likewise.
46916         * modules/unistd: Likewise.
46917         * modules/wchar: Likewise.
46918         * modules/wctype: Likewise.
46919         * modules/sys_stat: Change maintainer to "all".
46920         * modules/unistd: Likewise.
46921
46922 2007-06-20  Karl Berry  <karl@gnu.org>
46923
46924         * config/srclist.txt: track www changes in license files.
46925
46926 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
46927
46928         * build-aux/bootstrap: Remove stray dot.
46929         Make sure build_aux settings are honored when linking
46930         gnulib_extra_files.
46931
46932 2007-06-19  Eric Blake  <ebb9@byu.net>
46933
46934         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46935         Allow compilation on cygwin.
46936
46937 2007-06-19  Jim Meyering  <jim@meyering.net>
46938
46939         xreadlink-with-size: Remove module.  No longer used.
46940         Ex-callers now use xreadlink or mreadlink-with-size.
46941         * modules/xreadlink-with-size: Remove module.
46942         * lib/xreadlink-with-size.c: Remove file.
46943         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
46944         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
46945         just before the function definition *is* accurate.
46946
46947         Eliminate one way canonicalize_filename_mode could exit.
46948         * lib/canonicalize.c (canonicalize_filename_mode):
46949         Use mreadlink_with_size, not xreadlink_with_size.
46950
46951 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
46952
46953         Detect porting problems to FreeBSD/arm, which has time_t wider than
46954         long int.  Original problem reported for GNU diff by Xin Li in
46955         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
46956         * modules/getdate (Depends-on): Add intprops, verify.
46957         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
46958         is an integer type no wider than long int.
46959
46960 2007-06-18  Jim Meyering  <jim@meyering.net>
46961
46962         New module: mreadlink-with-size.
46963         * MODULES.html.sh: Add mreadlink-with-size.
46964         * modules/mreadlink-with-size: New module
46965         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
46966         not xreadlink-with-size.
46967         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
46968
46969 2007-06-16  Bruno Haible  <bruno@clisp.org>
46970
46971         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
46972         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
46973         Reported by Gary V. Vaughan <gary@gnu.org>.
46974
46975 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
46976
46977         Revamp lchown so that it lives in unistd.h where it belongs.
46978         * lib/lchown.h: Remove.
46979         * lib/dirchownmod.c: Don't include lib/lchown.h.
46980         * lib/fchownat.c: Likewise.
46981         * lib/openat.c: Likewise.
46982         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
46983         does not follow symlinks.
46984         (EOPNOTSUPP): Define if not defined.
46985         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
46986         is defined to 0.
46987         (lchown): New decl.
46988         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
46989         Do not check for lchown decl.
46990         Set REPLACE_LCHOWN.
46991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
46992         REPLACE_LCHOWN.
46993         * modules/chown: Make it clear it follows symlinks.
46994         * modules/lchown: Make it clear it doesn't follow symlinks.
46995         (Files): Remove lib/lchown.h
46996         (Depends-on): Add unistd.
46997         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
46998         (Include): Include <unistd.h>, not "lchown.h".
46999         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
47000         REPLACE_LCHOWN.
47001
47002 2007-06-15  Jim Meyering  <jim@meyering.net>
47003
47004         Change license (GPL to LGPL) of fsusage and dependents.
47005         * modules/fsusage (License): Change to LGPL.
47006         * modules/full-read (License): Likewise.
47007         * modules/full-write (License): Likewise.
47008         * modules/safe-read (License): Likewise.
47009         * modules/safe-write (License): Likewise.
47010
47011 2007-06-14  Ben Pfaff  <blp@gnu.org>
47012
47013         Missing part of allocsa -> malloca transition.
47014         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
47015         gl_MALLOCA.
47016
47017 2007-06-12  Bruno Haible  <bruno@clisp.org>
47018
47019         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
47020         to ia64, x86_64, i386.
47021         Reported by Eric Blake.
47022
47023 2007-06-12  Bruno Haible  <bruno@clisp.org>
47024
47025         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
47026         cross-compiling to x86_64.
47027
47028 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
47029
47030         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
47031         glitch reported by Ralf Wildenhues in
47032         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
47033
47034         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
47035         Vin Shelton.
47036
47037 2007-06-11  Bruno Haible  <bruno@clisp.org>
47038
47039         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
47040         replacement string.
47041         Reported by Eric Blake.
47042
47043 2007-06-10  Bruno Haible  <bruno@clisp.org>
47044
47045         Prepare vasnprintf code for use with Unicode strings.
47046         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
47047         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
47048         TYPE_U32_STRING.
47049         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
47050         a_u32_string variants.
47051         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47052         * lib/printf-args.c: Don't include config.h and the specification
47053         header if PRINTF_FETCHARGS is already defined.
47054         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47055         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
47056         TYPE_U16_STRING, TYPE_U32_STRING.
47057         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
47058         u16_directive, u16_directives, u32_directive, u32_directives): New
47059         types.
47060         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
47061         New declarations.
47062         * lib/printf-parse.c: Don't include config.h and the specification
47063         header if PRINTF_PARSE is already defined. Eliminate the set of
47064         parameters for WIDE_CHAR_VERSION; the user of this file must provide
47065         them now. Include c-ctype.h.
47066         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
47067         directive and CHAR_T_ONLY_ASCII.
47068         * lib/vasnprintf.c: Don't include config.h and the specification header
47069         if VASNPRINTF is already defined.
47070         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
47071         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
47072         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
47073         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
47074         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
47075         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
47076         code accordingly.
47077         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
47078         pad_ourselves also in this case, with the 'c' and 's' directives, and
47079         with a different notion of "width".
47080         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
47081
47082 2007-06-10  Bruno Haible  <bruno@clisp.org>
47083
47084         * modules/unistr/u32-mbsnlen: New file.
47085         * lib/unistr/u32-mbsnlen.c: New file.
47086
47087         * modules/unistr/u16-mbsnlen: New file.
47088         * lib/unistr/u16-mbsnlen.c: New file.
47089
47090         * modules/unistr/u8-mbsnlen: New file.
47091         * lib/unistr/u8-mbsnlen.c: New file.
47092
47093         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
47094         declarations.
47095
47096 2007-06-10  Bruno Haible  <bruno@clisp.org>
47097
47098         * lib/string_.h (mbsnlen): New declaration.
47099         * lib/mbsnlen.c: New file.
47100         * m4/mbsnlen.m4: New file.
47101         * modules/mbsnlen: New file.
47102         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
47103         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
47104         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
47105
47106 2007-06-10  Bruno Haible  <bruno@clisp.org>
47107
47108         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
47109
47110 2007-06-10  Bruno Haible  <bruno@clisp.org>
47111
47112         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
47113         * lib/mbuiter.h: Likewise.
47114
47115 2007-06-10  Bruno Haible  <bruno@clisp.org>
47116
47117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
47118         declaration.
47119
47120 2007-06-10  Karl Berry  <karl@gnu.org>
47121
47122         * config/srclist.txt: remove gettext entries, Bruno prefers
47123         to update individually.
47124
47125 2007-06-10  Bruno Haible  <bruno@clisp.org>
47126
47127         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
47128         'maxlen'. Ensure only length + width bytes are allocated, not
47129         length + 1 + width.
47130
47131 2007-06-09  Bruno Haible  <bruno@clisp.org>
47132
47133         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
47134         (CHAR_T): Remove macro.
47135         (VASNPRINTF): Update.
47136
47137 2007-06-09  Bruno Haible  <bruno@clisp.org>
47138
47139         * MODULES.html.sh (Unicode string functions): Add the new modules.
47140
47141         * modules/uniconv/u32-conv-to-enc: New file.
47142         * lib/uniconv/u32-conv-to-enc.c: New file.
47143         * modules/uniconv/u32-conv-to-enc-tests: New file.
47144         * tests/uniconv/test-u32-conv-to-enc.c: New file.
47145
47146         * modules/uniconv/u16-conv-to-enc: New file.
47147         * lib/uniconv/u16-conv-to-enc.c: New file.
47148         * lib/uniconv/u-conv-to-enc.h: New file.
47149         * modules/uniconv/u16-conv-to-enc-tests: New file.
47150         * tests/uniconv/test-u16-conv-to-enc.c: New file.
47151
47152         * modules/uniconv/u8-conv-to-enc: New file.
47153         * lib/uniconv/u8-conv-to-enc.c: New file.
47154         * modules/uniconv/u8-conv-to-enc-tests: New file.
47155         * tests/uniconv/test-u8-conv-to-enc.c: New file.
47156
47157         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47158         u32_conv_to_encoding): New declarations.
47159
47160 2007-06-09  Bruno Haible  <bruno@clisp.org>
47161
47162         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
47163
47164 2007-06-09  Bruno Haible  <bruno@clisp.org>
47165
47166         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
47167         * modules/malloca: Renamed from modules/allocsa, updated.
47168         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
47169         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
47170         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
47171         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
47172         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
47173         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
47174         * modules/xmalloca: Renamed from modules/xallocsa, updated.
47175         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
47176         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
47177         * modules/c-strcasestr (Depends-on): Update.
47178         * lib/c-strcasestr.c: Update.
47179         * modules/c-strstr (Depends-on): Update.
47180         * lib/c-strstr.c: Update.
47181         * modules/canonicalize-lgpl (Depends-on): Update.
47182         * lib/canonicalize-lgpl.c: Update.
47183         * modules/clean-temp (Depends-on): Update.
47184         * lib/clean-temp.c: Update.
47185         * modules/csharpcomp (Depends-on): Update.
47186         * lib/csharpcomp.c: Update.
47187         * modules/csharpexec (Depends-on): Update.
47188         * lib/csharpexec.c: Update.
47189         * modules/javacomp (Depends-on): Update.
47190         * lib/javacomp.c: Update.
47191         * modules/javaexec (Depends-on): Update.
47192         * lib/javaexec.c: Update.
47193         * modules/mbscasestr (Depends-on): Update.
47194         * lib/mbscasestr.c: Update.
47195         * modules/mbsstr (Depends-on): Update.
47196         * lib/mbsstr.c: Update.
47197         * modules/setenv (Depends-on): Update.
47198         * lib/setenv.c: Update.
47199         * modules/strcasestr (Depends-on): Update.
47200         * lib/strcasestr.c: Update.
47201         * modules/striconveha (Depends-on): Update.
47202         * lib/striconveha.c: Update.
47203         * modules/relocatable-prog-wrapper (Files): Update.
47204         * lib/relocwrapper.c: Update.
47205         * build-aux/install-reloc: Update.
47206         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
47207
47208 2007-06-08  Bruno Haible  <bruno@clisp.org>
47209
47210         Port to uClibc.
47211         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
47212         * lib/fpurge.c (fpurge): Likewise.
47213         * lib/freading.c (freading): Likewise.
47214         * lib/fseeko.c (rpl_fseeko): Likewise.
47215         * lib/fseterr.c (fseterr): Likewise.
47216         * lib/fwriting.c (fwriting): Likewise.
47217         * tests/test-fflush.c (main): Avoid a failure on uClibc.
47218
47219 2007-06-08  Bruno Haible  <bruno@clisp.org>
47220
47221         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
47222         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
47223         * modules/gettext (Files): Add m4/intlmacosx.m4.
47224
47225 2007-06-07  Bruno Haible  <bruno@clisp.org>
47226
47227         * modules/localename-tests: New file.
47228         * tests/test-localename.c: New file.
47229
47230         New module 'localename'.
47231         * lib/localename.h: New file.
47232         * lib/localename.c: New file, from GNU gettext.
47233         * m4/localename.m4: New file.
47234         * modules/localename: New file.
47235
47236 2007-06-07  Bruno Haible  <bruno@clisp.org>
47237
47238         Work around the lack of <wchar.h> on some builds of uClibc.
47239         * doc/headers/wchar.texi: Update.
47240         * lib/wchar_.h: Include <wchar.h> only if it exists.
47241         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
47242         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
47243         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
47244         doesn't exist.
47245         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
47246         * modules/mbfile (Depends-on): Add wchar.
47247         * modules/mbiter (Depends-on): Likewise.
47248         * modules/mbuiter (Depends-on): Likewise.
47249         Reported by Simon Josefsson.
47250
47251 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
47252
47253         Work around problem reported by Steven M. Schweda in
47254         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
47255         Tru64 5.1B with the Compaq compiler environment installed declares
47256         an 'isblank' function but does not define it in the C library.
47257         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
47258         * lib/regex_internal.h (isblank): Likewise.
47259         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
47260         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47261
47262 2007-06-05  Bruno Haible  <bruno@clisp.org>
47263
47264         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
47265         ia64.
47266         * modules/printf-safe: New file.
47267         * modules/fprintf-posix (Depends-on): Add printf-safe.
47268         * modules/printf-posix (Depends-on): Likewise.
47269         * modules/snprintf-posix (Depends-on): Likewise.
47270         * modules/sprintf-posix (Depends-on): Likewise.
47271         * modules/vasnprintf-posix (Depends-on): Likewise.
47272         * modules/vasprintf-posix (Depends-on): Likewise.
47273         * modules/vfprintf-posix (Depends-on): Likewise.
47274         * modules/vprintf-posix (Depends-on): Likewise.
47275         * modules/vsnprintf-posix (Depends-on): Likewise.
47276         * modules/vsprintf-posix (Depends-on): Likewise.
47277         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47278         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
47279         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
47280         "no" on i386, x86_64, ia64.
47281         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
47282         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47283         on i386, x86_64, ia64.
47284         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
47285         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47286         on i386, x86_64, ia64.
47287         * tests/test-vasnprintf-posix.c: Include float.h.
47288         (LDBL80_WORDS): New macro.
47289         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47290         on i386, x86_64, ia64.
47291         * tests/test-vasprintf-posix.c: Include float.h.
47292         (LDBL80_WORDS): New macro.
47293         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47294         on i386, x86_64, ia64.
47295         * tests/test-snprintf-posix.c: Include float.h.
47296         * tests/test-sprintf-posix.c: Likewise.
47297         * tests/test-vsnprintf-posix.c: Likewise.
47298         * tests/test-vsprintf-posix.c: Likewise.
47299
47300 2007-06-05  Bruno Haible  <bruno@clisp.org>
47301
47302         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
47303         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
47304         non-IEEE numbers on i386, x86_64, ia64.
47305         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
47306         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
47307         * tests/test-isnanl.h: Include float.h.
47308         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
47309
47310 2007-06-05  Bruno Haible  <bruno@clisp.org>
47311
47312         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
47313         also the %a / %A. Handle the %a / %A code before this extra handling.
47314
47315 2007-06-05  Bruno Haible  <bruno@clisp.org>
47316
47317         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
47318         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
47319
47320 2007-06-05  Bruno Haible  <bruno@clisp.org>
47321
47322         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
47323         typo in variable name.
47324
47325 2007-06-05  Eric Blake  <ebb9@byu.net>
47326
47327         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
47328         Reported by Simon Josefsson.
47329
47330 2007-06-04  Bruno Haible  <bruno@clisp.org>
47331
47332         Avoid test failures on some PowerPC platforms.
47333         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
47334         Define differently for PowerPC.
47335         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
47336         Reported by Gary V. Vaughan <gary@gnu.org>.
47337
47338 2007-06-02  Bruno Haible  <bruno@clisp.org>
47339
47340         Fix test-stdint failure on FreeBSD/ia64.
47341         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
47342         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
47343         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
47344         * doc/headers/stdint.texi: Update.
47345
47346 2007-06-01  Bruno Haible  <bruno@clisp.org>
47347
47348         * tests/test-binary-io.c (main): Pass a third argument to open().
47349         Reported by Gary V. Vaughan <gary@gnu.org>.
47350
47351 2007-06-01  Bruno Haible  <bruno@clisp.org>
47352
47353         * doc/functions/frexpl.texi: Update for mingw.
47354
47355 2007-06-01  Bruno Haible  <bruno@clisp.org>
47356
47357         * tests/test-lseek.c (main): Disable test of errno for invalid third
47358         argument.
47359         * doc/functions/lseek.texi: Update.
47360         Reported by Gary V. Vaughan <gary@gnu.org>.
47361
47362 2007-05-28  Bruno Haible  <bruno@clisp.org>
47363
47364         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
47365
47366 2007-05-31  Eric Blake  <ebb9@byu.net>
47367
47368         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
47369         cross compiling.
47370
47371 2007-05-30  Eric Blake  <ebb9@byu.net>
47372         and Bruno Haible  <bruno@clisp.org>
47373
47374         Work around mingw test failures exposed by m4-1.4.9b.
47375         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
47376         * tests/test-unistd.c: Disable uid_t and git_t tests for the
47377         moment.
47378
47379 2007-05-30  Bruno Haible  <bruno@clisp.org>
47380
47381         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
47382         assuming that they are closed. Needed on HP-UX 11.
47383
47384 2007-05-29  Bruno Haible  <bruno@clisp.org>
47385
47386         Fix a problem with #include_next.
47387         * lib/dirent_.h: Split the double-inclusion guard.
47388         * lib/fcntl_.h: Likewise.
47389         * lib/float_.h: Likewise.
47390         * lib/iconv_.h: Likewise.
47391         * lib/inttypes_.h: Likewise.
47392         * lib/locale_.h: Likewise.
47393         * lib/math_.h: Likewise.
47394         * lib/netinet_in_.h: Likewise.
47395         * lib/search_.h: Likewise.
47396         * lib/signal_.h: Likewise.
47397         * lib/stdint_.h: Likewise.
47398         * lib/stdio_.h: Likewise.
47399         * lib/stdlib_.h: Likewise.
47400         * lib/string_.h: Likewise.
47401         * lib/sys_select_.h: Likewise.
47402         * lib/sys_socket_.h: Likewise.
47403         * lib/sys_stat_.h: Likewise.
47404         * lib/sys_time_.h: Likewise.
47405         * lib/sysexits_.h: Likewise.
47406         * lib/time_.h: Likewise.
47407         * lib/unistd_.h: Likewise.
47408         * lib/wchar_.h: Likewise.
47409         * lib/wctype_.h: Likewise.
47410
47411 2007-05-29  Bruno Haible  <bruno@clisp.org>
47412
47413         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
47414         for the moment.
47415
47416 2007-05-29  Bruno Haible  <bruno@clisp.org>
47417
47418         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
47419         invocation.
47420         Reported by Eric Blake.
47421
47422 2007-05-29  Bruno Haible  <bruno@clisp.org>
47423
47424         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
47425         compiling case.
47426
47427 2007-05-29  Eric Blake  <ebb9@byu.net>
47428             Bruno Haible  <bruno@clisp.org>
47429
47430         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
47431         cross compiles.
47432
47433 2007-05-28  Eric Blake  <ebb9@byu.net>
47434
47435         * modules/closein-tests (test_closein_LDADD): Support test on
47436         cygwin with libtool.
47437
47438 2007-05-28  Bruno Haible  <bruno@clisp.org>
47439
47440         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
47441         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47442         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47443         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47444         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47445         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47446         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47447         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47448         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47449
47450 2007-05-28  Eric Blake  <ebb9@byu.net>
47451
47452         Unconditionally include <config.h> in unit tests.
47453         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
47454         * tests/test-allocsa.c, tests/test-arcfour.c,
47455         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
47456         tests/test-array_list.c, tests/test-array_oset.c,
47457         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
47458         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
47459         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
47460         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
47461         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
47462         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
47463         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
47464         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
47465         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
47466         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
47467         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
47468         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
47469         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
47470         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
47471         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
47472         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
47473         test-md5.c, test-memmem.c, test-printf-posix.c,
47474         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
47475         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
47476         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
47477         test-strcasestr.c, test-striconv.c, test-striconveh.c,
47478         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
47479         test-vasnprintf-posix2.c, test-vasnprintf.c,
47480         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
47481         test-vfprintf-posix.c, test-vprintf-posix.c,
47482         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
47483         test-xvasprintf.c: Likewise.
47484
47485 2007-05-28  Bruno Haible  <bruno@clisp.org>
47486
47487         * gnulib-tool (func_import): Remember the --with-tests command-line
47488         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
47489         Reported by Eric Blake.
47490
47491 2007-05-28  Bruno Haible  <bruno@clisp.org>
47492
47493         * modules/ftell-tests: New file.
47494         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
47495         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
47496
47497         * lib/ftell.c: New file.
47498         * modules/ftell: New file.
47499         * m4/ftell.m4: New file.
47500         * doc/functions/ftell.texi: Update.
47501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
47502         REPLACE_FTELL.
47503         * lib/stdio_.h (rpl_ftell): New declaration.
47504         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
47505         REPLACE_FTELL.
47506
47507 2007-05-28  Eric Blake  <ebb9@byu.net>
47508
47509         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
47510
47511 2007-05-28  Bruno Haible  <bruno@clisp.org>
47512
47513         * modules/fseek-tests: New file.
47514         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
47515         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
47516
47517         * lib/fseek.c: New file.
47518         * modules/fseek: New file.
47519         * m4/fseek.m4: New file.
47520         * doc/functions/fseek.texi: Update.
47521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
47522         REPLACE_FSEEK.
47523         * lib/stdio_.h (rpl_fseek): New declaration.
47524         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
47525         REPLACE_FSEEK.
47526
47527 2007-05-28  Bruno Haible  <bruno@clisp.org>
47528
47529         * lib/stdio_.h (fflush): More comments.
47530
47531 2007-05-28  Bruno Haible  <bruno@clisp.org>
47532
47533         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
47534         runtime test.
47535
47536 2007-05-28  Eric Blake  <ebb9@byu.net>
47537
47538         Improve lseek module.
47539         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
47540         * lib/unistd_.h (lseek): Scale back link warning message.
47541         * tests/test-lseek.c: Beef up test.
47542         * tests/test-lseek.sh: Exercise more facets of lseek.
47543         Reported by Bruno Haible.
47544
47545 2007-05-28  Bruno Haible  <bruno@clisp.org>
47546
47547         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
47548         to define.
47549
47550 2007-05-27  Bruno Haible  <bruno@clisp.org>
47551
47552         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
47553
47554 2007-05-27  Bruno Haible  <bruno@clisp.org>
47555
47556         * modules/openmp: New file.
47557         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
47558         Noah Misch.
47559
47560 2007-05-26  Bruno Haible  <bruno@clisp.org>
47561
47562         * modules/chdir-long (Depends-on): Add fchdir.
47563         * modules/chdir-safer (Depends-on): Likewise.
47564         * modules/fts (Depends-on): Likewise.
47565         * modules/fts-lgpl (Depends-on): Likewise.
47566         * modules/openat (Depends-on): Likewise.
47567         * modules/savewd (Depends-on): Likewise.
47568
47569 2007-05-24  Eric Blake  <ebb9@byu.net>
47570
47571         Fix lseek on mingw.
47572         * modules/lseek: New module.
47573         * m4/lseek.m4: New file.
47574         * lib/lseek.c: New file.
47575         * modules/lseek-tests: New file.
47576         * tests/test-lseek.c: New file.
47577         * tests/test-lseek.sh: New file.
47578         * MODULES.html.sh: Document lseek module.
47579         * modules/fflush (Depends-on): Add lseek, fseeko.
47580         * modules/fseeko (Depends-on): Likewise.
47581         * modules/ftello (Depends-on): Likewise.
47582         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
47583         broken.
47584         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
47585         broken.
47586         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
47587         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
47588         * lib/ftello.c (rpl_ftello): Likewise.
47589         * tests/test-fseeko.c (main): Test this.
47590         * tests/test-fseeko.sh: Likewise.
47591         * tests/test-ftello.c (main): Likewise.
47592         * tests/test-ftello.sh: Likewise.
47593         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
47594         implies replacing fseek.
47595         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
47596         HAVE_FTELLO.
47597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
47598         * modules/unistd (Makefile.am): Likewise.
47599         * lib/unistd_.h (lseek): Declare a replacement.
47600         * doc/functions/lseek.texi (lseek): Document this fix.
47601         * doc/functions/fseek.texi (fseek): Likewise.
47602         * doc/functions/ftell.texi (ftell): Likewise.
47603
47604 2007-05-24  Bruno Haible  <bruno@clisp.org>
47605
47606         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
47607         in the printed representation of a NaN.
47608         * tests/test-vasprintf-posix.c (test_function): Likewise.
47609         * tests/test-snprintf-posix.h (test_function): Likewise.
47610         * tests/test-sprintf-posix.h (test_function): Likewise.
47611         Reported by Eric Blake.
47612
47613 2007-05-23  Eric Blake  <ebb9@byu.net>
47614
47615         Fix fseeko/ftello on cygwin 1.5.24.
47616         * doc/functions/fseeko.texi (fseeko): Document the fix.
47617         * doc/functions/ftello.texi (ftello): Document the fix.
47618         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
47619         * doc/functions/stdout.text (stdout): New file.
47620         * doc/functions/stderr.text (stderr): New file.
47621         * doc/gnulib.texi (Function Substitutes): Use new files.
47622         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
47623         prior to 1.7.0.
47624         * tests/test-ftello.c (main): Likewise for ftello.
47625         * tests/test-fseeko.sh: New file.
47626         * tests/test-ftello.sh: New file.
47627         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
47628         with seekable stdin.
47629         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
47630         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
47631         (gl_REPLACE_FSEEKO): New macro.
47632         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
47633         * modules/fseeko (Files): Distribute fseeko.c.
47634         * modules/ftello (Files): Distribute ftello.c.
47635         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
47636         mode.
47637         * lib/ftello.c (rpl_ftello): New file.
47638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
47639         fseeko, ftello.
47640         (gl_STDIN_LARGE_OFFSET): New macro.
47641         * modules/stdio (Makefile.am): Perform the replacement.
47642         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
47643
47644 2007-05-23  Bruno Haible  <bruno@clisp.org>
47645
47646         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
47647         GNULIB_POSIXCHECK is defined.
47648
47649 2007-05-21  Bruno Haible  <bruno@clisp.org>
47650
47651         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
47652         Check also the output for NaN arguments. When cross-compiling, guess
47653         no on IRIX.
47654         * lib/vasnprintf.c: Update comments.
47655         * tests/test-vasnprintf-posix.c (strisnan): New function.
47656         (test_function): Use it.
47657         * tests/test-vasprintf-posix.c (strisnan): New function.
47658         (test_function): Use it.
47659         * tests/test-snprintf-posix.h (strisnan): New function.
47660         (test_function): Use it.
47661         * tests/test-sprintf-posix.h (strisnan): New function.
47662         (test_function): Use it.
47663         Reported by Eric Blake.
47664
47665 2007-05-20  Bruno Haible  <bruno@clisp.org>
47666
47667         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
47668         numbers that fails on BeOS.
47669         * doc/functions/frexpl.texi: Update.
47670
47671 2007-05-20  Jim Meyering  <jim@meyering.net>
47672
47673         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
47674         forced upon us by glibc-2.6.
47675
47676 2007-05-20  Bruno Haible  <bruno@clisp.org>
47677
47678         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
47679         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
47680         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
47681         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
47682         NEED_PRINTF_INFINITE.
47683         (is_infinitel): New function.
47684         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
47685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
47686         gl_PREREQ_VASNPRINTF_INFINITE.
47687         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
47688         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47689         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
47690         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
47691         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
47692         gl_PREREQ_VASNPRINTF_INFINITE.
47693         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47694         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47695         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47696         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47697         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47698         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47699         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47700         * doc/functions/fprintf.texi: Update.
47701         * doc/functions/printf.texi: Update.
47702         * doc/functions/snprintf.texi: Update.
47703         * doc/functions/sprintf.texi: Update.
47704         * doc/functions/vfprintf.texi: Update.
47705         * doc/functions/vprintf.texi: Update.
47706         * doc/functions/vsnprintf.texi: Update.
47707         * doc/functions/vsprintf.texi: Update.
47708
47709 2007-05-20  Bruno Haible  <bruno@clisp.org>
47710
47711         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
47712         was not found in libc.
47713         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47714
47715 2007-05-20  Bruno Haible  <bruno@clisp.org>
47716
47717         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47718         printed as "-nan" instead of "nan".
47719         * tests/test-vasprintf-posix.c (test_function): Likewise.
47720         * tests/test-snprintf-posix.h (test_function): Likewise.
47721         * tests/test-sprintf-posix.h (test_function): Likewise.
47722         Needed for HP-UX 11.
47723
47724 2007-05-20  Jim Meyering  <jim@meyering.net>
47725
47726         Fix buggy test for the fchownat-deref bug.
47727         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
47728         symlink required for the run-test.  Without it, this test would
47729         always declare that fchownat doesn't work, and client code would
47730         unnecessarily use the replacement function with fixed libc.
47731         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
47732         Reported by Greg Schafer.
47733
47734 2007-05-19  Bruno Haible  <bruno@clisp.org>
47735
47736         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
47737         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
47738         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
47739         Needed for IRIX 6.5 and Solaris 2.5.1.
47740
47741 2007-05-19  Bruno Haible  <bruno@clisp.org>
47742
47743         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
47744         (test_function): Skip tests involving -0.0 on platforms where
47745         -0.0 = 0.0.
47746         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
47747         (test_function): Skip tests involving -0.0 on platforms where
47748         -0.0 = 0.0.
47749         * tests/test-snprintf-posix.h (have_minus_zero): New function.
47750         (test_function): Skip tests involving -0.0 on platforms where
47751         -0.0 = 0.0.
47752         * tests/test-sprintf-posix.h (have_minus_zero): New function.
47753         (test_function): Skip tests involving -0.0 on platforms where
47754         -0.0 = 0.0.
47755         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
47756         tests.
47757         * tests/test-printf-posix.h (test_function): Likewise.
47758         * tests/test-printf-posix.output: Remove all -0.0 related results.
47759         Needed for IRIX 6.5.
47760
47761 2007-05-19  Bruno Haible  <bruno@clisp.org>
47762
47763         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47764         printed as "nan0x7fffffff" instead of "nan".
47765         * tests/test-vasprintf-posix.c (test_function): Likewise.
47766         * tests/test-snprintf-posix.h (test_function): Likewise.
47767         * tests/test-sprintf-posix.h (test_function): Likewise.
47768         * tests/test-fprintf-posix.h (NaN): Remove macro.
47769         (test_function): Remove all NaN related tests.
47770         * tests/test-printf-posix.h (NaN): Remove macro.
47771         (test_function): Remove all NaN related tests.
47772         * tests/test-printf-posix.output: Remove all NaN related results.
47773         Needed for IRIX 6.5.
47774
47775 2007-05-19  Bruno Haible  <bruno@clisp.org>
47776
47777         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
47778         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47779
47780 2007-05-19  Bruno Haible  <bruno@clisp.org>
47781
47782         * lib/float_.h: New file.
47783         * m4/float_h.m4: New file.
47784         * modules/float: New file.
47785         * modules/isnanl (Dependencies): Add float.
47786         * modules/isnanl-nolibm (Dependencies): Likewise.
47787         * modules/mathl (Dependencies): Likewise.
47788         * modules/printf-frexpl (Dependencies): Likewise.
47789         * modules/signbit (Dependencies): Likewise.
47790         * modules/vasnprintf (Dependencies): Likewise.
47791         * doc/headers/float.texi: Update.
47792
47793 2007-05-19  Jim Meyering  <jim@meyering.net>
47794
47795         * lib/utimens.c (gl_futimens): Rename from futimens,
47796         now that glibc-2.6 declares futimens.
47797         * lib/utimens.h: Likewise.
47798
47799 2007-05-19  Bruno Haible  <bruno@clisp.org>
47800
47801         Avoid test failures on mingw.
47802         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
47803         * tests/test-printf-posix.sh: Likewise.
47804         * tests/test-vfprintf-posix.sh: Likewise.
47805         * tests/test-vprintf-posix.sh: Likewise.
47806
47807 2007-05-19  Bruno Haible  <bruno@clisp.org>
47808
47809         Fix *printf result for NaN, Inf, -0.0 on mingw.
47810         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
47811         * lib/vasnprintf.c: Include math.h and isnan.h.
47812         (is_infinite_or_zero): New function.
47813         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
47814         values in the %f, %F, %e, %E, %g, %G directives.
47815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
47816         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47817         gl_PRINTF_INFINITE and test its result. Invoke
47818         gl_PREREQ_VASNPRINTF_INFINITE.
47819         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47820         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47821         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47822         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47823         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47825         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47826         * doc/functions/fprintf.texi: Update.
47827         * doc/functions/printf.texi: Update.
47828         * doc/functions/snprintf.texi: Update.
47829         * doc/functions/sprintf.texi: Update.
47830         * doc/functions/vfprintf.texi: Update.
47831         * doc/functions/vprintf.texi: Update.
47832         * doc/functions/vsnprintf.texi: Update.
47833         * doc/functions/vsprintf.texi: Update.
47834
47835 2007-05-19  Bruno Haible  <bruno@clisp.org>
47836
47837         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
47838         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
47839         Instead of multiplying with 10^k, set extra_zeroes to k.
47840         (scale10_round_long_double): Remove function.
47841
47842 2007-05-18  Bruno Haible  <bruno@clisp.org>
47843
47844         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
47845         introduced on 2007-05-06.
47846
47847 2007-05-18  Bruno Haible  <bruno@clisp.org>
47848
47849         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
47850         %g directives.
47851         * tests/test-vasprintf-posix.c (test_function): Likewise.
47852         * tests/test-snprintf-posix.h (test_function): Likewise.
47853         * tests/test-sprintf-posix.h (test_function): Likewise.
47854
47855 2007-05-18  Bruno Haible  <bruno@clisp.org>
47856
47857         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
47858         (strmatch): New function.
47859         (test_function): Test the %f directive on numbers of various exponents.
47860         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
47861         (strmatch): New function.
47862         (test_function): Test the %f directive on numbers of various exponents.
47863         * tests/test-snprintf-posix.h (strmatch): New function.
47864         (test_function): Test the %f directive on numbers of various exponents.
47865         * tests/test-sprintf-posix.h (strmatch): New function.
47866         (test_function): Test the %f directive on numbers of various exponents.
47867         * tests/test-snprintf-posix.c (SIZEOF): New macro.
47868         * tests/test-sprintf-posix.c (SIZEOF): New macro.
47869         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
47870         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
47871
47872 2007-05-18  Bruno Haible  <bruno@clisp.org>
47873
47874         Add support for 'long double' number output.
47875         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
47876         * lib/vasnprintf.c: Include math.h and float+.h.
47877         (mp_limb_t): New type.
47878         (GMP_LIMB_BITS): New macro.
47879         (mp_twolimb_t): New type.
47880         (GMP_TWOLIMB_BITS): New macro.
47881         (mpn_t): New type.
47882         (multiply, divide, convert_to_decimal, decode_long_double,
47883         scale10_round_long_double, scale10_round_decimal_long_double,
47884         floorlog10l): New functions.
47885         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
47886         for the %f, %F, %e, %E, %g, %G directives.
47887         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
47888         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47889         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
47890         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
47891         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47892         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47893         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47894         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47895         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47896         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47897         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47898         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
47899         * modules/snprintf-posix (Depends-on): Likewise.
47900         * modules/sprintf-posix (Depends-on): Likewise.
47901         * modules/vasnprintf-posix (Depends-on): Likewise.
47902         * modules/vasprintf-posix (Depends-on): Likewise.
47903         * modules/vfprintf-posix (Depends-on): Likewise.
47904         * modules/vsnprintf-posix (Depends-on): Likewise.
47905         * modules/vsprintf-posix (Depends-on): Likewise.
47906         * modules/vasnprintf (Files): Add lib/float+.h.
47907         * doc/functions/fprintf.texi: Update.
47908         * doc/functions/printf.texi: Update.
47909         * doc/functions/snprintf.texi: Update.
47910         * doc/functions/sprintf.texi: Update.
47911         * doc/functions/vfprintf.texi: Update.
47912         * doc/functions/vprintf.texi: Update.
47913         * doc/functions/vsnprintf.texi: Update.
47914         * doc/functions/vsprintf.texi: Update.
47915
47916 2007-05-18  Bruno Haible  <bruno@clisp.org>
47917
47918         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
47919
47920 2007-05-18  Bruno Haible  <bruno@clisp.org>
47921
47922         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
47923         for printing 64-bit integers. Needed for mingw.
47924
47925 2007-05-18  Bruno Haible  <bruno@clisp.org>
47926
47927         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
47928         gl_FUNC_FREXPL_WORKS.
47929         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
47930
47931 2007-05-18  Bruno Haible  <bruno@clisp.org>
47932
47933         * modules/frexpl-nolibm-tests: New file.
47934
47935         * modules/frexpl-nolibm: New file.
47936         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
47937
47938 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
47939
47940         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
47941         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47942         GCC 4.2, which otherwise issues a lot of warnings.
47943         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
47944         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
47945         Likewise.
47946         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
47947         * modules/iconv_open (iconv.h): Likewise.
47948         * modules/locale (locale.h): Likewise.
47949         * modules/netinet_in (netinet/in.h): Likewise.
47950         * modules/sys_select (sys_select.h): Likewise.
47951         * modules/sys_socket (sys/socket.h): Likewise.
47952         * modules/sys_stat (sys/stat.h): Likewise.
47953         * modules/sysexits (sysexits.h): Likewise.
47954         * modules/unistd (unistd.h): Likewise.
47955
47956 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47957
47958         * modules/closein-tests (Makefile.am): Distribute
47959         `test-closein.sh'.
47960
47961 2007-05-17  Bruno Haible  <bruno@clisp.org>
47962
47963         * tests/test-printf-posix.output: Renamed from
47964         tests/test-fprintf-posix.out.
47965         * modules/fprintf-posix-tests: Update.
47966         * modules/printf-posix-tests: Update.
47967         * modules/vfprintf-posix-tests: Update.
47968         * modules/vprintf-posix-tests: Update.
47969         * tests/test-fprintf-posix.sh: Update.
47970         * tests/test-printf-posix.sh: Update.
47971         * tests/test-vfprintf-posix.sh: Update.
47972         * tests/test-vprintf-posix.sh: Update.
47973         Reported by Ralf Wildenhues.
47974
47975 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
47976
47977         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
47978         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47979         GCC 4.2, which otherwise issues a lot of warnings.
47980         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
47981         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
47982         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
47983         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
47984         it should no longer be needed.
47985         * lib/string_.h: Likewise.
47986         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
47987         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
47988         * modules/inttypes (inttypes.h): Likewise.
47989         * modules/math (math.h): Likewise.
47990         * modules/search (search.h): Likewise.
47991         * modules/signal (signal.h): Likewise.
47992         * modules/stdint (stdint.h): Likewise.
47993         * modules/stdio (stdio.h): Likewise.
47994         * modules/stdlib (stdlib.h): Likewise.
47995         * modules/string (string.h): Likewise.
47996         * modules/sys_time (sys/time.h): Likewise.
47997         * modules/time (time.h): Likewise.
47998         * modules/wchar (wchar.h): Likewise.
47999         * modules/wctype (wtype.h): Likewise.
48000
48001 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48002
48003         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
48004
48005 2007-05-13  Bruno Haible  <bruno@clisp.org>
48006
48007         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
48008         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48009         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
48010         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48011         (gl_PREREQ_STRTOK_R): Don't require it here.
48012
48013 2007-05-13  Bruno Haible  <bruno@clisp.org>
48014
48015         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
48016         when used in C++ mode.
48017
48018 2007-05-12  Bruno Haible  <bruno@clisp.org>
48019
48020         * lib/linebuffer.h: Tweak doc.
48021         * lib/linebuffer.c: Likewise.
48022
48023 2007-05-12  James Youngman  <jay@gnu.org>
48024
48025         * lib/linebuffer.c (readlinebuffer_delim): New function,
48026         like readlinebuffer, but use a caller-specified delimiter.
48027         (readlinebuffer): Just call readlinebuffer_delim with '\n'
48028         as the delimiter.
48029         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
48030
48031 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48032
48033         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
48034         * modules/openat (Files): Remove openat-die.c.
48035         (Depends-on): Add openat-die.
48036         * modules/openat-die: New module.
48037
48038 2007-05-06  Bruno Haible  <bruno@clisp.org>
48039
48040         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
48041         Update with info about Cygwin.
48042         * doc/functions/fprintf.texi: Update.
48043         * doc/functions/printf.texi: Update.
48044         * doc/functions/snprintf.texi: Update.
48045         * doc/functions/sprintf.texi: Update.
48046         * doc/functions/vfprintf.texi: Update.
48047         * doc/functions/vprintf.texi: Update.
48048         * doc/functions/vsnprintf.texi: Update.
48049         * doc/functions/vsprintf.texi: Update.
48050         Reported by Eric Blake.
48051
48052 2007-05-06  Bruno Haible  <bruno@clisp.org>
48053
48054         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
48055         padding ourselves for the floating-point directives.
48056         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
48057         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
48058         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48059         gl_PRINTF_FLAG_ZERO and test its result. Invoke
48060         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
48061         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48062         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48063         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48064         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48065         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48066         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48067         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48068         * tests/test-snprintf-posix.h (test_function): Also check the width
48069         and some flags in the %f directive.
48070         * tests/test-sprintf-posix.h (test_function): Likewise.
48071         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48072         * tests/test-vasprintf-posix.c (test_function): Likewise.
48073         * doc/functions/fprintf.texi: Update.
48074         * doc/functions/printf.texi: Update.
48075         * doc/functions/snprintf.texi: Update.
48076         * doc/functions/sprintf.texi: Update.
48077         * doc/functions/vfprintf.texi: Update.
48078         * doc/functions/vprintf.texi: Update.
48079         * doc/functions/vsnprintf.texi: Update.
48080         * doc/functions/vsprintf.texi: Update.
48081
48082 2007-05-06  Bruno Haible  <bruno@clisp.org>
48083
48084         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
48085         pass the ' flag character to sprintf or snprintf.
48086         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
48087         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
48088         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48089         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
48090         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
48091         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48092         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48093         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48094         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48095         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48096         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48097         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48098         * tests/test-snprintf-posix.h (test_function): Also check the grouping
48099         flag.
48100         * tests/test-sprintf-posix.h (test_function): Likewise.
48101         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48102         * tests/test-vasprintf-posix.c (test_function): Likewise.
48103         * doc/functions/fprintf.texi: Update.
48104         * doc/functions/printf.texi: Update.
48105         * doc/functions/snprintf.texi: Update.
48106         * doc/functions/sprintf.texi: Update.
48107         * doc/functions/vfprintf.texi: Update.
48108         * doc/functions/vprintf.texi: Update.
48109         * doc/functions/vsnprintf.texi: Update.
48110         * doc/functions/vsprintf.texi: Update.
48111
48112 2007-05-01  Bruno Haible  <bruno@clisp.org>
48113
48114         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
48115
48116 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
48117
48118         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
48119         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
48120
48121 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48122
48123         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
48124         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
48125         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
48126
48127 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
48128
48129         * lib/argp-help.c (struct hol_entry): New member `ord'.
48130         (HOL_ENTRY_PTRCMP): Use ord for comparison
48131         (hol_sort): Initialize ord.
48132
48133 2007-05-01  Bruno Haible  <bruno@clisp.org>
48134
48135         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
48136         Reported by Eric Blake.
48137         * doc/gnulib.texi (Function Substitutes): Update.
48138
48139 2007-05-01  Bruno Haible  <bruno@clisp.org>
48140
48141         * doc/functions.texi: Remove file, now redundant through
48142         doc/functions/*.texi.
48143
48144 2007-05-01  Bruno Haible  <bruno@clisp.org>
48145
48146         * modules/argp (Depends-on): Add sleep.
48147
48148 2007-05-01  Bruno Haible  <bruno@clisp.org>
48149
48150         * modules/sleep-tests: New file.
48151         * tests/test-sleep.c: New file.
48152
48153         * modules/sleep: New file.
48154         * lib/sleep.c: New file.
48155         * m4/sleep.m4: New file.
48156         * lib/unistd_.h (sleep): New declaration.
48157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
48158         HAVE_SLEEP.
48159         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
48160         * doc/functions/sleep.texi: Document the sleep module.
48161
48162 2007-05-01  Bruno Haible  <bruno@clisp.org>
48163
48164         * lib/sigprocmask.h: Remove file.
48165         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
48166         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
48167         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
48168         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
48169         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48170         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
48171         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
48172         HAVE_SIGSET_T as a shell variable.
48173         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
48174         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
48175         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
48176         (Depends-on): Add signal. Remove verify.
48177         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
48178         (Include): Mention <signal.h> instead of sigprocmask.h.
48179         * NEWS: Mention the change.
48180         * lib/fatal-signal.c: Don't include sigprocmask.h.
48181
48182 2007-05-01  Bruno Haible  <bruno@clisp.org>
48183
48184         * modules/signal: New file.
48185         * lib/signal_.h: New file.
48186         * m4/signal_h.m4: New file.
48187
48188 2007-05-01  Bruno Haible  <bruno@clisp.org>
48189
48190         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
48191         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
48192         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
48193         HAVE_WCTYPE_CTMP_BUG into wctype.h.
48194
48195 2007-05-01  Bruno Haible  <bruno@clisp.org>
48196
48197         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
48198         configure time.
48199         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
48200         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
48201         * modules/sys_stat (Makefile.am): Substitute their values into
48202         sys/stat.h.
48203
48204 2007-05-01  Bruno Haible  <bruno@clisp.org>
48205
48206         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
48207         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
48208         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
48209
48210 2007-05-01  Bruno Haible  <bruno@clisp.org>
48211
48212         * doc/header/assert.texi: Undo last change: don't mention the gnulib
48213         'assert' module here.
48214
48215 2007-05-01  Bruno Haible  <bruno@clisp.org>
48216
48217         * doc/functions/*.texi: New files.
48218         * doc/functions/google-ranking.txt: New file.
48219         * doc/gnulib.texi (Function Substitutes): New chapter.
48220         (ctime, inet_ntoa): Remove sections.
48221         * doc/ctime.texi: Remove file.
48222         * doc/inet_ntoa.texi: Remove file.
48223         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
48224         dependencies.
48225         (%.info): New rule, specifying a --reference-limit.
48226
48227 2007-05-01  Bruno Haible  <bruno@clisp.org>
48228
48229         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
48230
48231 2007-05-01  Bruno Haible  <bruno@clisp.org>
48232
48233         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
48234         the portability of 'mkdir' to mingw systems.
48235
48236 2007-05-01  Bruno Haible  <bruno@clisp.org>
48237
48238         * doc/headers/google-ranking.txt: New file.
48239
48240 2007-04-30  Eric Blake  <ebb9@byu.net>
48241
48242         Prefer fseeko to fseek.
48243         * modules/getpass (Depends-on): Add fseeko.
48244         * lib/getpass.c (getpass): Use fseeko, not fseek.
48245
48246 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
48247
48248         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
48249         assumes the sorting is stable, while most qsort implementations
48250         are not.  Use argument addresses to ensure they never compare as
48251         equal.
48252
48253         * tests/test-argp-2.sh (usage-indent test): Fix output
48254         (func_compare): Restore diff options
48255         * tests/test-argp.c: Restore #include "progname.h"
48256
48257 2007-04-29  Bruno Haible  <bruno@clisp.org>
48258
48259         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
48260         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48261         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
48262         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48263         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
48264         (configure.ac): Define CHECK_SNPRINTF_POSIX.
48265         (TESTS, check_PROGRAMS): Add test-snprintf.
48266         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
48267         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
48268         (TESTS, check_PROGRAMS): Add test-vsnprintf.
48269         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
48270         assertions that fail on HP-UX, OSF/1, or IRIX.
48271         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
48272
48273 2007-04-29  Bruno Haible  <bruno@clisp.org>
48274
48275         * MODULES.html.sh (posix_functions): Remove 'contents'.
48276
48277 2007-04-29  Karl Berry  <karl@gnu.org>
48278
48279         * config/srclist.txt (gendocs_template_min): new entry.
48280
48281 2007-04-29  Bruno Haible  <bruno@clisp.org>
48282
48283         Work around fpurge bug on BSD systems.
48284         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
48285         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
48286         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
48287         fpurge to rpl_fpurge if the system already has this function.
48288         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
48289         the case where the system already has this function. Correct invariants
48290         on BSD systems.
48291         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
48292         BSD systems.
48293
48294 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48295
48296         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
48297         proposed by Sven Verdoolaege.
48298
48299         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
48300         options.
48301         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
48302         (usage and help tests): Update
48303
48304 2007-04-29  Bruno Haible  <bruno@clisp.org>
48305
48306         * tests/test-fflush.c (main): Use a file of size 17, not 10.
48307         Print more information in case of failure. Disable a test on BeOS.
48308
48309 2007-04-29  Bruno Haible  <bruno@clisp.org>
48310
48311         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
48312         This helps debugging on systems on which no gdb is available.
48313
48314 2007-04-29  Bruno Haible  <bruno@clisp.org>
48315
48316         * lib/freading.h: Improve comments.
48317         * lib/fwriting.h: Likewise.
48318         * tests/test-freading.c (main): Don't check freading immediately after
48319         repositioning. Needed for glibc.
48320
48321 2007-04-29  Bruno Haible  <bruno@clisp.org>
48322
48323         * lib/freading.c (freading): Trivial simplification.
48324
48325 2007-04-28  Bruno Haible  <bruno@clisp.org>
48326
48327         * tests/test-fwriting.c (main): Also test the interaction between
48328         fflush and fwriting.
48329         * modules/fwriting-tests (Depends-on): Add fflush.
48330
48331         * tests/test-freading.c (main): Also test the interaction between
48332         fflush and freading.
48333         * modules/freading-tests (Depends-on): Add fflush.
48334
48335 2007-04-28  Bruno Haible  <bruno@clisp.org>
48336
48337         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
48338         fseeko and ftello.
48339         Suggested by Eric Blake.
48340
48341 2007-04-28  Jim Meyering  <jim@meyering.net>
48342
48343         Avoid false-negative in gl_STDINT_H's C99 conformance test.
48344         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
48345         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
48346
48347 2007-04-27  Eric Blake  <ebb9@byu.net>
48348
48349         * doc/headers/assert.texi (assert.h): Document assert module use.
48350
48351 2007-04-27  Bruno Haible  <bruno@clisp.org>
48352
48353         * doc/headers/*.texi: New files.
48354         * doc/gnulib.texi (Header File Substitutes): New chapter.
48355         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
48356         dependencies.
48357         (standards.info ,standards.html, standards.dvi): Update dependencies.
48358         (mostlyclean, clean): New targets.
48359
48360 2007-04-27  Bruno Haible  <bruno@clisp.org>
48361
48362         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
48363         * modules/sysexits (Files, Makefile.am): Update.
48364
48365         * lib/sys_socket_.h: Renamed from lib/socket_.h.
48366         * modules/sys_socket (Files, Makefile.am): Update.
48367
48368         * lib/sys_stat_.h: Renamed from lib/stat_.h.
48369         * modules/sys_stat (Files, Makefile.am): Update.
48370
48371 2007-04-27  Eric Blake  <ebb9@byu.net>
48372
48373         * lib/freading.h: Improve comments.
48374         * lib/fwriting.h: Likewise.
48375         * lib/fflush.c: Likewise.
48376
48377         Fix closein for mingw.
48378         * modules/closein-tests: Add tests for closein.
48379         * tests/test-closein.c: New file.
48380         * tests/test-closein.sh: Likewise.
48381         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
48382         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
48383
48384 2007-04-27  Bruno Haible  <bruno@clisp.org>
48385
48386         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
48387         version is < 6.
48388         * lib/math_.h [__DECC]: Likewise.
48389         * lib/stdio_.h [__DECC]: Likewise.
48390         * lib/stdlib_.h [__DECC]: Likewise.
48391         * lib/string_.h [__DECC]: Likewise.
48392         * lib/time_.h [__DECC]: Likewise.
48393         * lib/wchar_.h [__DECC]: Likewise.
48394         * lib/wctype_.h [__DECC]: Likewise.
48395
48396 2007-04-27  Bruno Haible  <bruno@clisp.org>
48397
48398         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
48399
48400 2007-04-27  Bruno Haible  <bruno@clisp.org>
48401
48402         * lib/fflush.c: Add comments.
48403         * modules/fpurge-tests (Depends-on): Add fflush.
48404         * modules/freadable-tests (Depends-on): Likewise.
48405         * modules/fwritable-tests (Depends-on): Likewise.
48406
48407 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
48408
48409         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
48410         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
48411         Report by Bruno Haible <bruno@clisp.org>.
48412
48413 2007-04-26  Eric Blake  <ebb9@byu.net>
48414
48415         Fix fflush on mingw.
48416         * modules/fflush (Depends-on): Add freading.
48417         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
48418         but unread data.
48419
48420 2007-04-26  Eric Blake  <ebb9@byu.net>
48421         and Bruno Haible  <bruno@clisp.org>
48422
48423         Implement freading and fwriting.
48424         * lib/freading.c: New file.
48425         * lib/freading.h: Likewise.
48426         * m4/freading.m4: Likewise.
48427         * modules/freading: Likewise.
48428         * modules/freading-tests: Likewise.
48429         * tests/test-freading.c: Likewise.
48430         * lib/fwriting.c: New file.
48431         * lib/fwriting.h: Likewise.
48432         * m4/fwriting.m4: Likewise.
48433         * modules/fwriting: Likewise.
48434         * modules/fwriting-tests: Likewise.
48435         * tests/test-fwriting.c: Likewise.
48436         * MODULES.html.sh (File stream based Input/Output): Mention them.
48437
48438 2007-04-26  Bruno Haible  <bruno@clisp.org>
48439
48440         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
48441         'long' when we assume it.
48442         Suggested by Eric Blake.
48443
48444 2007-04-26  Bruno Haible  <bruno@clisp.org>
48445
48446         Ensure fseeko, ftello are declared on glibc systems.
48447         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
48448         * modules/fseeko (configure.ac-early): Likewise.
48449         * modules/ftello (configure.ac-early): Likewise.
48450         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
48451         AC_FUNC_FSEEKO for this.
48452         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
48453         (gl_CHECK_FSEEKO): Remove macro.
48454
48455 2007-04-26  Bruno Haible  <bruno@clisp.org>
48456
48457         * tests/test-fflush.c (main): Also check the ftell result after
48458         fflush and fseek/fseeko.
48459         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
48460         file descriptor position cache in the stream.
48461         * lib/fseeko.c (rpl_fseeko): Likewise.
48462
48463 2007-04-26  Bruno Haible  <bruno@clisp.org>
48464
48465         * modules/fflush-tests (Depends-on): Add fseeko.
48466
48467 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
48468             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48469
48470         * lib/argz_.h: ensure error_t definition is obtained in same
48471         mechanism system argz.h would have.
48472         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
48473         argz facilities are known bad.  Err on the side of caution if
48474         cross-compiling.
48475
48476 2007-04-25  Eric Blake  <ebb9@byu.net>
48477
48478         * lib/fpurge.c (includes): Use stdlib.h for free.
48479         * tests/test-fflush.c (main): Also test fflush-fseeko.
48480
48481 2007-04-25  Bruno Haible  <bruno@clisp.org>
48482
48483         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
48484         * lib/fseeko.c: New file.
48485         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
48486         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
48487         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
48488         gl_FUNC_FSEEKO.
48489         (gl_FUNC_FSEEKO): Invoke it.
48490         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
48491         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
48492         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
48493
48494 2007-04-25  Bruno Haible  <bruno@clisp.org>
48495
48496         * modules/fflush (Depends-on): Add ftello.
48497
48498 2007-04-25  Bruno Haible  <bruno@clisp.org>
48499
48500         * modules/ftello-tests: New file.
48501         * tests/test-ftello.c: New file.
48502
48503         * modules/ftello: New file.
48504         * m4/ftello.m4: New file.
48505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
48506         HAVE_FTELLO.
48507         * lib/stdio_.h (ftello): New declaration.
48508         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
48509         HAVE_FTELLO.
48510
48511 2007-04-25  Bruno Haible  <bruno@clisp.org>
48512
48513         * modules/fseeko-tests: New file.
48514         * tests/test-fseeko.c: New file.
48515
48516         * modules/fseeko: New file.
48517         * m4/fseeko.m4: New file.
48518         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
48519         HAVE_FSEEKO.
48520         * lib/stdio_.h (fseeko): New declaration.
48521         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
48522         HAVE_FSEEKO.
48523
48524 2007-04-25  Bruno Haible  <bruno@clisp.org>
48525
48526         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
48527
48528 2007-04-25  Bruno Haible  <bruno@clisp.org>
48529
48530         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
48531         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
48532         * tests/test-unistd.c: Likewise.
48533         * tests/test-fcntl.c: Likewise.
48534
48535 2007-04-23  Eric Blake  <ebb9@byu.net>
48536
48537         * lib/fflush.c: Fix missing include.
48538         Reported by Bruno Haible.
48539
48540 2007-04-23  Bruno Haible  <bruno@clisp.org>
48541
48542         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
48543         Reported by Eric Blake.
48544
48545 2007-04-23  Bruno Haible  <bruno@clisp.org>
48546
48547         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
48548
48549 2007-04-23  Bruno Haible  <bruno@clisp.org>
48550
48551         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
48552
48553 2007-04-23  Bruno Haible  <bruno@clisp.org>
48554
48555         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
48556         Needed on HP-UX 11.
48557
48558 2007-04-16  Eric Blake  <ebb9@byu.net>
48559
48560         Make fflush rely on fpurge.
48561         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
48562         open coding all variants.
48563         * modules/fflush (Depends-on): Add fpurge and unistd.
48564         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
48565         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
48566
48567         Fix --with-tests compilation on cygwin.
48568         * modules/argmatch-tests (Makefile.am): List gnulib library first
48569         in LDADD.
48570         * modules/argp-tests (Makefile.am): Likewise.
48571         * modules/array-list-tests (Makefile.am): Likewise.
48572         * modules/array-oset-tests (Makefile.am): Likewise.
48573         * modules/avltree-list-tests (Makefile.am): Likewise.
48574         * modules/avltree-oset-tests (Makefile.am): Likewise.
48575         * modules/avltreehash-list-tests (Makefile.am): Likewise.
48576         * modules/carray-list-tests (Makefile.am): Likewise.
48577         * modules/dirname-tests (Makefile.am): Likewise.
48578         * modules/frexp-tests (Makefile.am): Likewise.
48579         * modules/isnanl-tests (Makefile.am): Likewise.
48580         * modules/linked-list-tests (Makefile.am): Likewise.
48581         * modules/linkedhash-list-tests (Makefile.am): Likewise.
48582         * modules/lock-tests (Makefile.am): Likewise.
48583         * modules/rbtree-list-tests (Makefile.am): Likewise.
48584         * modules/rbtree-oset-tests (Makefile.am): Likewise.
48585         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
48586         * modules/tls-tests (Makefile.am): Likewise.
48587         * modules/tsearch-tests (Makefile.am): Likewise.
48588         * modules/xvasprintf-tests (Makefile.am): Likewise.
48589
48590         Fix fpurge for cygwin.
48591         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
48592         value.
48593         * modules/fpurge-tests (Depends-on): Clean up trash.
48594
48595 2007-04-16  Simon Josefsson  <simon@josefsson.org>
48596
48597         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
48598
48599         * m4/autobuild.m4: Re-indent.
48600
48601 2007-04-13  Bruno Haible  <bruno@clisp.org>
48602
48603         * modules/fpurge-tests: New file.
48604         * tests/test-fpurge.c: New file.
48605
48606         * modules/fpurge: New file.
48607         * lib/fpurge.h: New file.
48608         * lib/fpurge.c: New file.
48609         * m4/fpurge.m4: New file.
48610
48611 2007-04-13  Bruno Haible  <bruno@clisp.org>
48612
48613         * modules/fbufmode-tests: New file.
48614         * tests/test-fbufmode.c: New file.
48615
48616         * modules/fbufmode: New file.
48617         * lib/fbufmode.h: New file.
48618         * lib/fbufmode.c: New file.
48619         * m4/fbufmode.m4: New file.
48620
48621 2007-04-13  Bruno Haible  <bruno@clisp.org>
48622
48623         * modules/fwritable-tests: New file.
48624         * tests/test-fwritable.c: New file.
48625
48626         * modules/fwritable: New file.
48627         * lib/fwritable.h: New file.
48628         * lib/fwritable.c: New file.
48629         * m4/fwritable.m4: New file.
48630
48631 2007-04-13  Bruno Haible  <bruno@clisp.org>
48632
48633         * modules/freadable-tests: New file.
48634         * tests/test-freadable.c: New file.
48635
48636         * modules/freadable: New file.
48637         * lib/freadable.h: New file.
48638         * lib/freadable.c: New file.
48639         * m4/freadable.m4: New file.
48640
48641 2007-04-13  Bruno Haible  <bruno@clisp.org>
48642
48643         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
48644         MOSTLYCLEANFILES.
48645
48646 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
48647
48648         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
48649         gzip bootstrap.conf to avoid dragging in i18n machinery.
48650         (gnulib_tool_option): Use it.
48651
48652 2007-04-13  Bruno Haible  <bruno@clisp.org>
48653
48654         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
48655         %F directives.
48656         * tests/test-vasprintf-posix.c (test_function): Likewise.
48657         * tests/test-snprintf-posix.h (test_function): Likewise.
48658         * tests/test-sprintf-posix.h (test_function): Likewise.
48659         * tests/test-fprintf-posix.h (test_function): Likewise.
48660         * tests/test-printf-posix.h (test_function): Likewise.
48661         * tests/test-fprintf-posix.out: Likewise.
48662
48663 2007-04-13  Bruno Haible  <bruno@clisp.org>
48664
48665         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
48666         * modules/tls-tests (configure.ac): Likewise.
48667         Reported by Arto C. Nirkko <anirkko@insel.ch>.
48668
48669 2007-04-13  Bruno Haible  <bruno@clisp.org>
48670
48671         * lib/tls.c (glthread_tls_get): Fix return type.
48672         Patch by Arto C. Nirkko <anirkko@insel.ch>.
48673
48674 2007-04-12  Eric Blake  <ebb9@byu.net>
48675
48676         * modules/gettime (Depends-on): Remove gettime.
48677         Reported by Dmitry V. Levin.
48678
48679 2007-04-12  Bruno Haible  <bruno@clisp.org>
48680
48681         * modules/fflush (Include): Mention <stdio.h>.
48682         * modules/strtoimax (Include): Mention <inttypes.h>.
48683         * modules/strtoumax (Include): Likewise.
48684
48685 2007-04-12  Eric Blake  <ebb9@byu.net>
48686
48687         * .cvsignore: New file.
48688         * .gitignore: Likewise.
48689
48690 2007-04-12  Bruno Haible  <bruno@clisp.org>
48691
48692         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
48693         not before, since $(LDADD) often contains libgnu.a.
48694         * modules/striconv-tests (test_striconv_LDADD): Likewise.
48695         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
48696         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
48697         Needed on Cygwin.
48698
48699 2007-04-12  Eric Blake  <ebb9@byu.net>
48700
48701         Work around glibc's failure to flush stdin on fclose.
48702         * lib/closein.c (close_stdin): Flush stdin before closing.
48703
48704         Work around glibc's failure to reset seekable stdin on exit.
48705         * modules/closein: New module.
48706         * lib/closein.c: New file.
48707         * lib/closein.h: Likewise.
48708         * m4/closein.m4: Likewise.
48709         * MODULES.html.sh (File stream based Input/Output): Document it.
48710
48711 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48712
48713         * gnulib-tool: Rename generated 'autobuild' script to
48714         'do-autobuild' in --create-megatestdir output.
48715
48716         * doc/gnulib.texi (Build robot for gnulib): Fix.
48717
48718 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48719
48720         * modules/sysexits (Depends-on): Add absolute-header.
48721
48722 2007-04-12  Eric Blake  <ebb9@byu.net>
48723
48724         No need to preserve errno on success.
48725         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
48726         Reported by Bruno Haible.
48727
48728 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48729
48730         * MODULES.html.sh (Support for maintaining and releasing
48731         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
48732
48733 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48734
48735         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
48736
48737 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48738
48739         * modules/autobuild: New module.
48740
48741         * m4/autobuild.m4: New file.
48742
48743 2007-04-11  Bruno Haible  <bruno@clisp.org>
48744
48745         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
48746         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
48747         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
48748         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
48749         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48750         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48751         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48752         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48753         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48754         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48755         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
48756         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48757         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48758         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
48759         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48760         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48761         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
48762         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48763         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48764         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
48765         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48766         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48767         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
48768         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48769         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48770         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
48771         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48772         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48773         Reported by Eric Blake.
48774
48775 2007-04-11  Bruno Haible  <bruno@clisp.org>
48776
48777         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
48778
48779 2007-04-10  Bruno Haible  <bruno@clisp.org>
48780
48781         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
48782         for NaN and Infinity. Needed on FreeBSD 6.1.
48783         * tests/test-vasnprintf-posix.c (test_function): Undo last change
48784         regarding results for "%010a" of Infinity and NaN.
48785         * tests/test-vasprintf-posix.c (test_function): Likewise.
48786         * tests/test-snprintf-posix.h (test_function): Likewise.
48787         * tests/test-sprintf-posix.h (test_function): Likewise.
48788         * tests/test-fprintf-posix.h (test_function): Likewise.
48789         * tests/test-printf-posix.h (test_function): Likewise.
48790         * tests/test-fprintf-posix.out: Likewise.
48791
48792 2007-04-10  Bruno Haible  <bruno@clisp.org>
48793
48794         * modules/locale-tests: New file.
48795         * tests/test-locale.c: New file.
48796
48797         * modules/locale: New file.
48798         * lib/locale_.h: New file.
48799         * m4/locale_h.m4: New file.
48800
48801 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
48802             Bruno Haible  <bruno@clisp.org>
48803
48804         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
48805         be determined, test for availability of the copysignf, copysign,
48806         copysignl functions.
48807         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
48808         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
48809         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
48810
48811 2007-04-09  Eric Blake  <ebb9@byu.net>
48812
48813         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
48814         * modules/stdio (Makefile.am): Support fflush.
48815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48816         * modules/fflush: New file.
48817         * lib/fflush.c: Likewise.
48818         * m4/fflush.m4: Likewise.
48819         * modules/fflush-tests: New test.
48820         * tests/test-fflush.c: Likewise.
48821         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
48822
48823 2007-04-06  Bruno Haible  <bruno@clisp.org>
48824
48825         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
48826         (VASNPRINTF): Use signbit for faster determination whether to print a
48827         minus sign.
48828         * modules/vasnprintf (Files): Remove lib/float+.h.
48829         * modules/fprintf-posix (Depends-on): Add signbit.
48830         * modules/snprintf-posix (Depends-on): Likewise.
48831         * modules/sprintf-posix (Depends-on): Likewise.
48832         * modules/vasnprintf-posix (Depends-on): Likewise.
48833         * modules/vasprintf-posix (Depends-on): Likewise.
48834         * modules/vfprintf-posix (Depends-on): Likewise.
48835         * modules/vsnprintf-posix (Depends-on): Likewise.
48836         * modules/vsprintf-posix (Depends-on): Likewise.
48837
48838 2007-04-06  Bruno Haible  <bruno@clisp.org>
48839
48840         * tests/test-frexp.c (main): Test also the sign bit of zero results.
48841         * tests/test-frexpl.c (main): Likewise.
48842         * tests/test-ldexpl.c (main): Likewise.
48843         * modules/frexp-tests (Depends-on): Add signbit.
48844         * modules/frexpl-tests (Depdends-on): Likewise.
48845         * modules/ldexpl-tests (Depdends-on): Likewise.
48846
48847 2007-04-06  Bruno Haible  <bruno@clisp.org>
48848
48849         * modules/signbit-tests: New file.
48850         * tests/test-signbit.c: New file.
48851
48852         * modules/signbit: New file.
48853         * lib/signbitf.c: New file.
48854         * lib/signbitd.c: New file.
48855         * lib/signbitl.c: New file.
48856         * m4/signbit.m4: New file.
48857         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
48858         (signbit): New macro.
48859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
48860         REPLACE_SIGNBIT.
48861         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
48862         REPLACE_FREXPL into math.h.
48863
48864 2007-04-06  Bruno Haible  <bruno@clisp.org>
48865
48866         * modules/isnanf-nolibm-tests: New file.
48867         * tests/test-isnanf.c: New file.
48868
48869         * modules/isnanf-nolibm: New file.
48870         * lib/isnanf.h: New file.
48871         * lib/isnanf.c: New file.
48872         * lib/isnan.c: Consider the USE_FLOAT macro.
48873         * m4/isnanf.m4: New file.
48874
48875 2007-04-06  Bruno Haible  <bruno@clisp.org>
48876
48877         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
48878         (Link): New section.
48879
48880         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
48881
48882 2007-04-06  Bruno Haible  <bruno@clisp.org>
48883
48884         Assume the 'long double' type.
48885         * m4/longdouble.m4: Remove file.
48886         * config/srclist.txt: Don't mention longdouble.m4.
48887         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
48888         * lib/float+.h: Likewise.
48889         * lib/frexp.c: Likewise.
48890         * lib/printf-args.h: Likewise.
48891         * lib/printf-args.c: Likewise.
48892         * lib/printf-frexp.c: Likewise.
48893         * lib/printf-parse.c: Likewise.
48894         * lib/vasnprintf.c: Likewise.
48895         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
48896         * m4/intl.m4: Likewise.
48897         * m4/isnanl.m4: Likewise.
48898         * m4/printf.m4: Likewise.
48899         * m4/printf-frexpl.m4: Likewise.
48900         * m4/vasnprintf.m4: Likewise.
48901         * modules/allocsa (Files): Remove m4/longdouble.m4.
48902         * modules/gettext (Files): Likewise.
48903         * modules/relocatable-prog-wrapper (Files): Likewise.
48904         * modules/vasnprintf (Files): Likewise.
48905         * modules/isnanl (Files): Likewise.
48906         (Include): Simplify.
48907         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
48908         (Include): Simplify.
48909         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
48910         (Include): Simplify.
48911         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
48912         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48913         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
48914         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48915         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48916         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48917         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
48918         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48919         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48920         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48921         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
48922         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48923         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
48924         * tests/test-isnanl.c: Likewise.
48925         * tests/test-snprintf-posix.h: Likewise.
48926         * tests/test-sprintf-posix.h: Likewise.
48927         * tests/test-vasnprintf-posix.c: Likewise.
48928         * tests/test-vasnprintf-posix2.c: Likewise.
48929         * tests/test-vasprintf-posix.c: Likewise.
48930
48931 2007-04-06  Bruno Haible  <bruno@clisp.org>
48932
48933         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
48934         * lib/math_.h [__DECC]: Include the overridden include file through
48935         #include_next, outside the double-inclusion guard.
48936         * lib/stdio_.h [__DECC]: Likewise.
48937         * lib/stdlib_.h [__DECC]: Likewise.
48938         * lib/string_.h [__DECC]: Likewise.
48939         * lib/time_.h [__DECC]: Likewise.
48940         * lib/wchar_.h [__DECC]: Likewise.
48941         * lib/wctype_.h [__DECC]: Likewise.
48942         * lib/inttypes_.h [__DECC]: Likewise.
48943         Reported by Albert Chin <china@thewrittenword.com> in
48944         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
48945
48946 2007-04-04  Eric Blake  <ebb9@byu.net>
48947
48948         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
48949         1.5.x.
48950
48951 2007-04-04  Bruno Haible  <bruno@clisp.org>
48952
48953         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
48954         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
48955
48956 2007-04-04  Bruno Haible  <bruno@clisp.org>
48957
48958         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
48959         results for "%010a" of Infinity and NaN.
48960         * tests/test-vasprintf-posix.c (test_function): Likewise.
48961         * tests/test-snprintf-posix.h (test_function): Likewise.
48962         * tests/test-sprintf-posix.h (test_function): Likewise.
48963         * tests/test-fprintf-posix.h (test_function): Remove these tests.
48964         * tests/test-printf-posix.h (test_function): Likewise.
48965         * tests/test-fprintf-posix.out: Update.
48966         Needed for FreeBSD 6.1.
48967
48968 2007-04-04  Bruno Haible  <bruno@clisp.org>
48969
48970         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
48971         directly used by the gnulib modules nor by gnulib-tool.
48972
48973 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
48974
48975         * DEPENDENCIES: Give overall description of version dependency
48976         desirability.  Use more-typical names for apps.
48977         Add shell, coreutils, diffutils, grep, tar, gzip.
48978
48979 2007-04-04  Simon Josefsson  <simon@josefsson.org>
48980
48981         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
48982
48983 2007-04-04  Karl Berry  <karl@gnu.org>
48984
48985         * MODULES.html.sh (func_module): missing '.
48986
48987 2007-04-03  Bruno Haible  <bruno@clisp.org>
48988
48989         * modules/argmatch-tests (Makefile.am): New variable
48990         test_argmatch_LDADD.
48991         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
48992         * modules/array-list-tests (Makefile.am): New variable
48993         test_array_list_LDADD.
48994         * modules/array-oset-tests (Makefile.am): New variable
48995         test_array_oset_LDADD.
48996         * modules/avltree-list-tests (Makefile.am): New variable
48997         test_avltree_list_LDADD.
48998         * modules/avltree-oset-tests (Makefile.am): New variable
48999         test_avltree_oset_LDADD.
49000         * modules/avltreehash-list-tests (Makefile.am): New variable
49001         test_avltreehash_list_LDADD.
49002         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
49003         test_canonicalize_lgpl_LDADD.
49004         * modules/carray-list-tests (Makefile.am): New variable
49005         test_carray_list_LDADD.
49006         * modules/dirname-tests (Makefile.am): New variable
49007         test_dirname_LDADD.
49008         * modules/linked-list-tests (Makefile.am): New variable
49009         test_linked_list_LDADD.
49010         * modules/linkedhash-list-tests (Makefile.am): New variable
49011         test_linkedhash_list_LDADD.
49012         * modules/rbtree-list-tests (Makefile.am): New variable
49013         test_rbtree_list_LDADD.
49014         * modules/rbtree-oset-tests (Makefile.am): New variable
49015         test_rbtree_oset_LDADD.
49016         * modules/rbtreehash-list-tests (Makefile.am): New variable
49017         test_rbtreehash_list_LDADD.
49018         * modules/xvasprintf-tests (Makefile.am): New variable
49019         test_xvasprintf_LDADD.
49020         Reported by Eric Blake.
49021
49022 2007-04-03  Eric Blake  <ebb9@byu.net>
49023
49024         * DEPENDENCIES: Weaken m4 requirements.
49025
49026 2007-04-03  Bruno Haible  <bruno@clisp.org>
49027
49028         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
49029         * modules/isnanl-tests (configure.ac): Likewise.
49030
49031 2007-04-03  Ben Pfaff  <blp@gnu.org>
49032
49033         * modules/iconv_open: Add $(srcdir)/ to source directory
49034         references in Makefile fragments that call gperf, to fix VPATH
49035         builds.
49036
49037 2007-04-03  Bruno Haible  <bruno@clisp.org>
49038
49039         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
49040         * lib/ldexpl.c: Undo last change.
49041
49042 2007-04-03  Bruno Haible  <bruno@clisp.org>
49043
49044         * modules/printf-frexpl (Depends-on): Undo last change.
49045         (Files): Add m4/ldexpl.m4.
49046
49047 2007-04-03  Bruno Haible  <bruno@clisp.org>
49048
49049         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
49050         * modules/isnanl (Link): New section.
49051
49052         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
49053         * modules/frexp (Link): New section.
49054
49055         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
49056         * modules/frexpl (Link): New section.
49057
49058         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
49059         * modules/ldexpl (Link): New section.
49060
49061 2007-04-03  Bruno Haible  <bruno@clisp.org>
49062
49063         * modules/TEMPLATE-EXTENDED: New file.
49064         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
49065
49066 2007-04-03  Bruno Haible  <bruno@clisp.org>
49067
49068         * DEPENDENCIES: New file.
49069         Suggested by Simon Josefsson.
49070
49071 2007-04-03  Bruno Haible  <bruno@clisp.org>
49072
49073         * doc/gnulib.texi: Escape @.
49074
49075 2007-04-03  James Youngman  <jay@gnu.org>
49076         and Paul Eggert  <eggert@cs.ucla.edu>
49077
49078         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
49079         birthtime on all systems that have birthtime, not just those which
49080         use st_birthtimensec rather than st_birthtim.  Putting zero in
49081         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
49082         that the birth time is not available for files on an NFS mount.
49083
49084 2007-04-03  Simon Josefsson  <simon@josefsson.org>
49085
49086         * modules/memxor: Move back from crypto/, suggested by Bruno.
49087         * modules/crypto/hmac-sha1: Fix memxor dependency.
49088
49089         * modules/crypto/gc: Moved from ../.
49090
49091 2007-04-02  Eric Blake  <ebb9@byu.net>
49092
49093         * lib/ldexpl.c (includes): Avoid libm.
49094
49095         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
49096
49097 2007-04-02  Bruno Haible  <bruno@clisp.org>
49098
49099         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
49100         on IRIX.
49101
49102 2007-04-02  Bruno Haible  <bruno@clisp.org>
49103
49104         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
49105         x86 or x86_64 platforms running MacOS X.
49106         Reported by Ryan Schmidt <@ryandesign.com>.
49107
49108 2007-04-02  Bruno Haible  <bruno@clisp.org>
49109
49110         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
49111         i386.
49112
49113 2007-04-01  Simon Josefsson  <simon@josefsson.org>
49114
49115         * modules/crypto/arcfour: Moved from ../.
49116         * modules/crypto/arcfour-tests: Moved from ../.
49117         * modules/crypto/arctwo: Moved from ../.
49118         * modules/crypto/arctwo-tests: Moved from ../.
49119         * modules/crypto/des: Moved from ../.
49120         * modules/crypto/des-tests: Moved from ../.
49121         * modules/crypto/gc-arcfour: Moved from ../.
49122         * modules/crypto/gc-arcfour-tests: Moved from ../.
49123         * modules/crypto/gc-arctwo: Moved from ../.
49124         * modules/crypto/gc-arctwo-tests: Moved from ../.
49125         * modules/crypto/gc-des: Moved from ../.
49126         * modules/crypto/gc-des-tests: Moved from ../.
49127         * modules/crypto/gc-hmac-md5: Moved from ../.
49128         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
49129         * modules/crypto/gc-hmac-sha1: Moved from ../.
49130         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
49131         * modules/crypto/gc-md2: Moved from ../.
49132         * modules/crypto/gc-md2-tests: Moved from ../.
49133         * modules/crypto/gc-md4: Moved from ../.
49134         * modules/crypto/gc-md4-tests: Moved from ../.
49135         * modules/crypto/gc-md5: Moved from ../.
49136         * modules/crypto/gc-md5-tests: Moved from ../.
49137         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
49138         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
49139         * modules/crypto/gc-random: Moved from ../.
49140         * modules/crypto/gc-rijndael: Moved from ../.
49141         * modules/crypto/gc-rijndael-tests: Moved from ../.
49142         * modules/crypto/gc-sha1: Moved from ../.
49143         * modules/crypto/gc-sha1-tests: Moved from ../.
49144         * modules/crypto/gc-tests: Moved from ../.
49145         * modules/crypto/hmac-md5: Moved from ../.
49146         * modules/crypto/hmac-md5-tests: Moved from ../.
49147         * modules/crypto/hmac-sha1: Moved from ../.
49148         * modules/crypto/hmac-sha1-tests: Moved from ../.
49149         * modules/crypto/md2: Moved from ../.
49150         * modules/crypto/md2-tests: Moved from ../.
49151         * modules/crypto/md4: Moved from ../.
49152         * modules/crypto/md4-tests: Moved from ../.
49153         * modules/crypto/md5: Moved from ../.
49154         * modules/crypto/md5-tests: Moved from ../.
49155         * modules/crypto/memxor: Moved from ../.
49156         * modules/crypto/rijndael: Moved from ../.
49157         * modules/crypto/rijndael-tests: Moved from ../.
49158         * modules/crypto/sha1: Moved from ../.
49159
49160 2007-03-30  James Youngman  <jay@gnu.org>
49161
49162         * tests/test-stat-time.c (prepare_test): use chmod() rather than
49163         rename() to change the ctime of a file (because ctime is unaffected
49164         by rename on jfs2 on AIX 5.1).
49165         (main): Start by doing cleanup, in case a previous run failed leaving
49166         test files behind.
49167
49168 2007-03-31  Bruno Haible  <bruno@clisp.org>
49169
49170         Support old proprietary implementations of iconv.
49171         * modules/iconv_open: New file.
49172         * lib/iconv_.h: New file.
49173         * m4/iconv_h.m4: New file.
49174         * lib/iconv_open.c: New file.
49175         * lib/iconv_open-aix.gperf: New file.
49176         * lib/iconv_open-hpux.gperf: New file.
49177         * lib/iconv_open-irix.gperf: New file.
49178         * lib/iconv_open-osf.gperf: New file.
49179         * m4/iconv_open.m4: New file.
49180         * modules/linebreak (Depends-on): Add iconv_open.
49181         * modules/striconv (Depends-on): Likewise.
49182         * modules/striconveh (Depends-on): Likewise.
49183         * modules/unicodeio (Depends-on): Likewise.
49184         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
49185         (iconv_t)(-1).
49186         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
49187         conversion if cd is (iconv_t)(-1).
49188         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
49189         is not possible.
49190
49191 2007-03-31  Bruno Haible  <bruno@clisp.org>
49192
49193         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49194         work on Solaris either. Protect also second use of "autodetect_jp".
49195
49196 2007-03-31  Bruno Haible  <bruno@clisp.org>
49197
49198         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
49199         the function is not present.
49200
49201 2007-03-31  Bruno Haible  <bruno@clisp.org>
49202
49203         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
49204         the function is not present.
49205
49206 2007-03-31  Bruno Haible  <bruno@clisp.org>
49207
49208         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
49209         a bug in HP-UX iconv_open().
49210
49211 2007-03-31  Bruno Haible  <bruno@clisp.org>
49212
49213         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
49214         (Mathematics <math.h>): New section, add fpieee.
49215         (Input/output <stdio.h>): Add fseterr.
49216         (Mathematics <math.h>): New section, add printf-frexp.
49217         (Container data structures): Add sublist.
49218         (Core language properties): Add fpucw, inline.
49219         (Functions for greatest-width integer types <inttypes.h>): Add
49220         imaxabs, imaxdiv, inttypes.
49221         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
49222         isnanl-nolibm, ldexp.
49223         (Mathematics <math.h>): New section, add printf-frexpl.
49224         (Support for systems lacking POSIX:2001): Add fprintf-posix,
49225         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
49226         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
49227         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
49228         (Unicode string functions): Add unistr/u*-mbtoucr.
49229         (Java): Add javacomp-script, javaexec-script.
49230         (C#): Add csharpcomp-script, csharpexec-script.
49231         (Support for building libraries and executables): Add havelib,
49232         relocatable-*.
49233         (Support for maintaining and releasing projects): Renamed from
49234         'Support for maintaining and release projects'. Add announce-gen.
49235
49236 2007-03-31  Bruno Haible  <bruno@clisp.org>
49237
49238         * README: Talk primarily about git.
49239         (git and CVS): Renamed from CVS.
49240         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
49241         gnulib is available through git.
49242         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
49243
49244 2007-03-30  Bruno Haible  <bruno@clisp.org>
49245
49246         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
49247         * lib/poll_.h: Likewise.
49248         * lib/stat_.h: Likewise.
49249         * lib/sys_time_.h: Likewise.
49250         * lib/sysexit_.h: Likewise.
49251         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
49252         * lib/stdbool_.h: Likewise.
49253         * lib/byteswap_.h: Add double-inclusion guard.
49254
49255 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
49256
49257         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
49258
49259 2007-03-30  Karl Berry  <karl@gnu.org>
49260
49261         * config/srclist-update: double space after USA in the license
49262         substitution, since that's how it's usually (?) written.
49263
49264 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49265
49266         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
49267         reported by Bruno Haible.
49268
49269 2007-03-29  Bruno Haible  <bruno@clisp.org>
49270
49271         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
49272         a bug in AIX iconv().
49273
49274 2007-03-29  Bruno Haible  <bruno@clisp.org>
49275
49276         * modules/ldexpl-tests: New file.
49277         * tests/test-ldexpl.c: New file.
49278
49279 2007-03-29  Bruno Haible  <bruno@clisp.org>
49280
49281         * lib/ldexpl.c: Include fpucw.h.
49282         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
49283         multiplication.
49284         * modules/ldexpl (Depends-on): Add fpucw.
49285
49286 2007-03-29  Bruno Haible  <bruno@clisp.org>
49287
49288         * modules/ldexpl: New file.
49289         * m4/ldexpl.m4: New file.
49290         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
49291         set.
49292         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
49293         REPLACE_LDEXPL.
49294         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
49295         REPLACE_LDEXPL.
49296         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49297         gl_FUNC_LDEXPL_WORKS.
49298         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
49299         * modules/mathl (Files): Remove lib/ldexpl.c.
49300         (Depends-on): Add ldexpl.
49301
49302 2007-03-29  Bruno Haible  <bruno@clisp.org>
49303
49304         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
49305
49306 2007-03-29  Bruno Haible  <bruno@clisp.org>
49307
49308         * tests/test-striconveh.c (main): Don't assume that a direct conversion
49309         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
49310         and possibly also HP-UX.
49311         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49312         work on AIX, IRIX, HP-UX, OSF/1.
49313         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
49314         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
49315         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
49316         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
49317         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
49318         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
49319
49320 2007-03-29  Bruno Haible  <bruno@clisp.org>
49321
49322         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
49323
49324 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49325
49326         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
49327         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
49328
49329 2007-03-29  Eric Blake  <ebb9@byu.net>
49330
49331         * lib/acl-internal.h: Remove redundant include.
49332         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
49333         Cygwin when a file is locked.
49334
49335 2007-03-29  Bruno Haible  <bruno@clisp.org>
49336
49337         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
49338         file.
49339         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
49340
49341 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49342
49343         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
49344         try to remove a parent directory if the child couldn't be removed
49345         (except for the first rmdir, which could fail because the child
49346         doesn't exist).  Problem reported by Jeff Blaine in
49347         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
49348
49349 2007-03-28  Bruno Haible  <bruno@clisp.org>
49350
49351         * lib/striconveh.c (utf8conv_carefully): New function.
49352         (mem_cd_iconveh_internal): Invoke it.
49353
49354 2007-03-28  Bruno Haible  <bruno@clisp.org>
49355
49356         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
49357         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
49358         input.
49359         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
49360         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
49361         unistr/u8-uctomb.
49362
49363 2007-03-28  Bruno Haible  <bruno@clisp.org>
49364
49365         * modules/unistr/u8-mbtoucr: New file.
49366         * lib/unistr/u8-mbtoucr.c: New file.
49367         * modules/unistr/u16-mbtoucr: New file.
49368         * lib/unistr/u16-mbtoucr.c: New file.
49369         * modules/unistr/u16-mbtoucr: New file.
49370         * lib/unistr/u16-mbtoucr.c: New file.
49371         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
49372
49373 2007-03-27  Simon Josefsson  <simon@josefsson.org>
49374             Bruno Haible  <bruno@clisp.org>
49375
49376         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
49377         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
49378         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
49379
49380         * m4/stdio_h.m4: Add stubs for vasprintf too.
49381
49382         * modules/stdio: Support vasprintf in sed command.
49383
49384         * modules/vasprintf: Depend on stdio for prototypes.  Remove
49385         vasprintf.h.  Add stdio module indicator.
49386
49387         * lib/stdio_.h: Declare asprintf and vasprintf, based on
49388         vasprintf.h.
49389
49390         * lib/vasprintf.h: File removed.
49391
49392         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
49393         * lib/vasprintf.c: Ditto.
49394         * lib/xvasprintf.c: Ditto.
49395         * tests/test-vasprintf-posix.c: Ditto.
49396         * tests/test-vasprintf.c: Ditto.
49397
49398 2007-03-27  Bruno Haible  <bruno@clisp.org>
49399
49400         Make vasnprintf multithread-safe.
49401         * lib/vasnprintf.c (decimal_point_char): New function.
49402         (VASNPRINTF): Use it.
49403         Suggested by Simon Josefsson.
49404
49405 2007-03-27  Eric Blake  <ebb9@byu.net>
49406
49407         Support sub-second birthtime on cygwin.
49408         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
49409         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
49410         (get_stat_birthtime): Also work with st_birthtim.
49411
49412 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
49413
49414         * lib/stat-time.h (USE_BIRTHTIME): Remove.
49415         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
49416         (get_stat_birthtime_ns): Do not try to use "spare" fields.
49417         (get_stat_birthtime_ns): Simplify compile-time tests.
49418         (get_stat_birthtime): Change the API to look like
49419         get_stat_mtime etc., except return a negative tv_nsec on error.
49420         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
49421         Don't check for "spare" fields.
49422         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
49423         or for struct stat.st_birthtime, as these tests aren't used.
49424         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
49425
49426 2007-03-27  Bruno Haible  <bruno@clisp.org>
49427
49428         * lib/stat-time.h: Include <sys/stat.h>.
49429
49430 2007-03-27  James Youngman  <jay@gnu.org>
49431
49432         * lib/stat-time.h (get_stat_birthtime): New function for
49433           retrieving st_birthtime as provided by UFS2 (hence *BSD).
49434         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
49435           and its variants.
49436         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
49437         * modules/stat-time-test: New file.
49438         * tests/test-stat-time.c: New test, devised by Bruno Haible.
49439
49440 2007-03-26  Bruno Haible  <bruno@clisp.org>
49441
49442         Better support of signalling NaNs.
49443         * lib/atanl.c: Include isnanl.h.
49444         (atanl): Perform test for NaN at the beginning of the function and
49445         through a call to isnanl.
49446         * lib/cosl.c: Include isnanl.h.
49447         (cosl): Perform test for NaN at the beginning of the function and
49448         through a call to isnanl.
49449         * lib/ldexpl.c: Include isnanl.h.
49450         (ldexpl): Perform test for NaN through a call to isnanl.
49451         * lib/logl.c: Include isnanl.h.
49452         (logl): Perform test for NaN at the beginning of the function and
49453         through a call to isnanl.
49454         * lib/sinl.c: Include isnanl.h.
49455         (sinl): Perform test for NaN at the beginning of the function and
49456         through a call to isnanl.
49457         * lib/sqrtl.c: Include isnanl.h.
49458         (sqrtl): Perform test for NaN at the beginning of the function and
49459         through a call to isnanl.
49460         * lib/tanl.c: Include isnanl.h.
49461         (tanl): Perform test for NaN at the beginning of the function and
49462         through a call to isnanl.
49463         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
49464         * modules/mathl (Depends-on): Add isnanl.
49465
49466 2007-03-26  Eric Blake  <ebb9@byu.net>
49467
49468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
49469         regression in logic sense of previous patch.
49470
49471 2007-03-26  Bruno Haible  <bruno@clisp.org>
49472
49473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
49474         unportable shell command "if ! ...".
49475         Reported by Ralf Wildenhues.
49476
49477 2007-03-25  Bruno Haible  <bruno@clisp.org>
49478
49479         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
49480         <sysexits.h> file, and only add EX_CONFIG.
49481         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
49482         absolute file name and whether it is sufficient. Substitute also
49483         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
49484         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
49485         ABSOLUTE_SYSEXITS_H into sysexits.h.
49486
49487 2007-03-25  Bruno Haible  <bruno@clisp.org>
49488
49489         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
49490         hints is NULL.
49491
49492 2007-03-25  Bruno Haible  <bruno@clisp.org>
49493
49494         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
49495         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
49496
49497 2007-03-25  Bruno Haible  <bruno@clisp.org>
49498
49499         * lib/vasnprintf.c: Include langinfo.h.
49500         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
49501         multithread-safe.
49502         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
49503         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
49504         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49505         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49506         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49507         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49508         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49509         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
49510         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49511         Reported by Simon Josefsson.
49512
49513 2007-03-25  Bruno Haible  <bruno@clisp.org>
49514
49515         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
49516         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
49517         * modules/vasnprintf (Depends-on): Add stdint.
49518
49519 2007-03-25  Bruno Haible  <bruno@clisp.org>
49520
49521         * modules/fpieee: New file.
49522         * m4/fpieee.m4: New file.
49523         * modules/isnan-nolibm (Depends-on): Add fpieee.
49524         * modules/isnanl-nolibm (Depends-on): Add fpieee.
49525         * modules/isnanl (Depends-on): Add fpieee.
49526
49527 2007-03-25  Bruno Haible  <bruno@clisp.org>
49528
49529         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
49530
49531 2007-03-25  Bruno Haible  <bruno@clisp.org>
49532
49533         Avoid test failures on IRIX 6.5.
49534         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
49535         (main): Use it.
49536         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
49537         macros.
49538         (main): Use them.
49539
49540 2007-03-25  Bruno Haible  <bruno@clisp.org>
49541
49542         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
49543         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
49544         exists but doesn't work.
49545         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
49546         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
49547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
49548         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
49549
49550 2007-03-25  Bruno Haible  <bruno@clisp.org>
49551
49552         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
49553         returns inf. Needed on IRIX 6.5.
49554
49555 2007-03-25  Bruno Haible  <bruno@clisp.org>
49556
49557         * tests/test-frexpl.c: Include isnanl-nolibm.h.
49558         (main): Use isnanl instead of x != x idiom.
49559         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
49560
49561         * tests/test-frexp.c: Include isnan.h.
49562         (main): Use isnan instead of x != x idiom.
49563         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
49564
49565 2007-03-25  Bruno Haible  <bruno@clisp.org>
49566
49567         * tests/test-frexp.c (NaN): New function/macro.
49568         (main): Use it instead of 0.0 / 0.0.
49569         * tests/test-isnan.c (NaN): New function/macro.
49570         (main): Use it instead of 0.0 / 0.0.
49571         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
49572         (test_function): Use it instead of 0.0 / 0.0.
49573         * tests/test-vasprintf-posix.c (NaN): New function/macro.
49574         (test_function): Use it instead of 0.0 / 0.0.
49575         * tests/test-snprintf-posix.h (NaN): New function/macro.
49576         (test_function): Use it instead of 0.0 / 0.0.
49577         * tests/test-sprintf-posix.h (NaN): New function/macro.
49578         (test_function): Use it instead of 0.0 / 0.0.
49579         * tests/test-fprintf-posix.h (NaN): New function/macro.
49580         (test_function): Use it instead of 0.0 / 0.0.
49581         * tests/test-printf-posix.h (NaN): New function/macro.
49582         (test_function): Use it instead of 0.0 / 0.0.
49583
49584         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
49585
49586 2007-03-25  Bruno Haible  <bruno@clisp.org>
49587
49588         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
49589
49590 2007-03-25  Bruno Haible  <bruno@clisp.org>
49591
49592         * lib/regexec.c (merge_state_with_log): Make static.
49593
49594 2007-03-25  Bruno Haible  <bruno@clisp.org>
49595
49596         * lib/trigl.c (kernel_rem_pio2): Make static.
49597
49598 2007-03-25  Bruno Haible  <bruno@clisp.org>
49599
49600         * lib/sincosl.c (sincosl_table): Make static.
49601
49602 2007-03-25  Bruno Haible  <bruno@clisp.org>
49603
49604         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
49605         if the compiler does not support C99.
49606
49607 2007-03-25  Bruno Haible  <bruno@clisp.org>
49608
49609         * modules/time (Makefile.am): Ensure all rule action lines start with a
49610         tab.
49611
49612 2007-03-24  Bruno Haible  <bruno@clisp.org>
49613
49614         * modules/tsearch-tests: New file.
49615         * tests/test-tsearch.sh: New file.
49616         * tests/test-tsearch.c: New file, mostly copied from glibc.
49617
49618         * modules/search-tests: New file.
49619         * tests/test-search.c: New file.
49620
49621         * modules/search: New file.
49622         * lib/search_.h: New file, incorporating lib/tsearch.h.
49623         * m4/search_h.m4: New file.
49624         * lib/tsearch.h: Remove file.
49625         * lib/tsearch.c: Include search.h instead of tsearch.h.
49626         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
49627         HAVE_TSEARCH.
49628         * modules/tsearch (Files): Remove lib/tsearch.h.
49629         (Depends-on): Add search.
49630         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
49631         (Include): Change tsearch.h into search.h.
49632
49633 2007-03-24  Bruno Haible  <bruno@clisp.org>
49634
49635         * modules/fpucw: New file.
49636         * lib/fpucw.h: New file.
49637         * lib/frexp.c: Include fpucw.h.
49638         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49639         (FUNC): Use them.
49640         * lib/printf-frexp.c: Include fpucw.h.
49641         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49642         (FUNC): Use them.
49643         * lib/vasnprintf.c: Include fpucw.h.
49644         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
49645         'long double' calculations.
49646         * tests/test-frexpl.c: Include fpucw.h.
49647         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49648         * tests/test-printf-frexpl.c: Include fpucw.h.
49649         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49650         * modules/frexpl (Depends-on): Add fpucw.
49651         * modules/printf-frexpl (Depends-on): Likewise.
49652         * modules/fprintf-posix (Depends-on): Likewise.
49653         * modules/snprintf-posix (Depends-on): Likewise.
49654         * modules/sprintf-posix (Depends-on): Likewise.
49655         * modules/vasnprintf-posix (Depends-on): Likewise.
49656         * modules/vasprintf-posix (Depends-on): Likewise.
49657         * modules/vfprintf-posix (Depends-on): Likewise.
49658         * modules/vsnprintf-posix (Depends-on): Likewise.
49659         * modules/vsprintf-posix (Depends-on): Likewise.
49660         * modules/frexpl-tests (Depends-on): Likewise.
49661         * modules/printf-frexpl-tests (Depends-on): Likewise.
49662
49663 2007-03-24  Bruno Haible  <bruno@clisp.org>
49664
49665         * lib/float+.h: New file.
49666         * lib/isnan.c: Include float+.h.
49667         (SIZE): New macro.
49668         (FUNC): Compare only SIZE bytes of the value.
49669         * lib/vasnprintf.c: Include float+.h.
49670         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
49671         SIZEOF_LDBL or SIZEOF_DBL bytes.
49672         * modules/isnan-nolibm (Files): Add lib/float+.h.
49673         * modules/isnanl-nolibm (Files): Add lib/float+.h.
49674         * modules/isnanl (Files): Add lib/float+.h.
49675         * modules/vasnprintf (Files): Add lib/float+.h.
49676
49677 2007-03-24  Bruno Haible  <bruno@clisp.org>
49678
49679         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
49680         include isnanl-nolibm.h.
49681
49682 2007-03-24  Bruno Haible  <bruno@clisp.org>
49683
49684         * tests/test-read-file.c (main): Don't produce spurious output for
49685         expected situations. Make the test fail if it encountered unexpected
49686         results.
49687
49688 2007-03-24  Bruno Haible  <bruno@clisp.org>
49689
49690         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
49691         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
49692
49693 2007-03-24  Bruno Haible  <bruno@clisp.org>
49694
49695         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
49696
49697 2007-03-24  Bruno Haible  <bruno@clisp.org>
49698
49699         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
49700         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
49701
49702         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
49703         * modules/utf8-ucs4: Turn into a symbolic link to module
49704         unistr/u8-mbtouc.
49705
49706         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
49707         utf8-ucs4-unsafe.
49708         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
49709         unistr/u8-mbtouc-unsafe.
49710
49711         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
49712         * modules/utf16-ucs4: Turn into a symbolic link to module
49713         unistr/u16-mbtouc.
49714
49715         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
49716         utf16-ucs4-unsafe.
49717         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
49718         unistr/u16-mbtouc-unsafe.
49719
49720         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
49721         * modules/ucs4-utf8: Turn into a symbolic link to module
49722         unistr/u8-ubtomb.
49723
49724         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
49725         * modules/ucs4-utf16: Turn into a symbolic link to module
49726         unistr/u16-ubtomb.
49727
49728 2007-03-24  Bruno Haible  <bruno@clisp.org>
49729
49730         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
49731         Enable the function only if HAVE_INLINE.
49732         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
49733         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49734         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
49735         Enable the function only if HAVE_INLINE.
49736         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
49737         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49738         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
49739         Enable the function only if HAVE_INLINE.
49740         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
49741         Enable the function only if HAVE_INLINE.
49742         * modules/utf8-ucs4: Update.
49743         * modules/utf8-ucs4-unsafe: Update.
49744         * modules/utf16-ucs4: Update.
49745         * modules/utf16-ucs4-unsafe: Update.
49746         * modules/ucs4-utf8: Update.
49747         * modules/ucs4-utf16: Update.
49748
49749 2007-03-24  Bruno Haible  <bruno@clisp.org>
49750
49751         * lib/utf8-ucs4.h: Remove file.
49752         * lib/utf8-ucs4-unsafe.h: Remove file.
49753         * lib/utf16-ucs4.h: Remove file.
49754         * lib/utf16-ucs4-unsafe.h: Remove file.
49755         * lib/ucs4-utf8.h: Remove file.
49756         * lib/ucs4-utf16.h: Remove file.
49757         * lib/unistr.h: Include their previous contents.
49758         * m4/utf-ucs4.m4: Remove file.
49759         * m4/ucs4-utf.m4: Remove file.
49760         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
49761         (Depends-on): Add unistr/base.
49762         (configure.ac): Remove gl_UTF_UCS4.
49763         (Makefile.am): Update.
49764         (Include): Change to unistr.h.
49765         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
49766         (Depends-on): Add unistr/base.
49767         (configure.ac): Remove gl_UTF_UCS4.
49768         (Makefile.am): Update.
49769         (Include): Change to unistr.h.
49770         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
49771         (Depends-on): Add unistr/base.
49772         (configure.ac): Remove gl_UTF_UCS4.
49773         (Makefile.am): Update.
49774         (Include): Change to unistr.h.
49775         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
49776         (Depends-on): Add unistr/base.
49777         (configure.ac): Remove gl_UTF_UCS4.
49778         (Makefile.am): Update.
49779         (Include): Change to unistr.h.
49780         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
49781         (Depends-on): Add unistr/base.
49782         (configure.ac): Remove gl_UCS4_UTF.
49783         (Makefile.am): Update.
49784         (Include): Change to unistr.h.
49785         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
49786         (Depends-on): Add unistr/base.
49787         (configure.ac): Remove gl_UCS4_UTF.
49788         (Makefile.am): Update.
49789         (Include): Change to unistr.h.
49790         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
49791         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
49792         utf8-ucs4-unsafe.h.
49793         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
49794         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
49795         utf16-ucs4-unsafe.h.
49796         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
49797         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
49798         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
49799         * lib/unistr/u8-strchr.c: Likewise.
49800         * lib/unistr/u8-strrchr.c: Likewise.
49801         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
49802         * lib/unistr/u16-strchr.c: Likewise.
49803         * lib/unistr/u16-strrchr.c: Likewise.
49804         * lib/striconveh.c: Update.
49805         * lib/linebreak.c: Update.
49806
49807 2007-03-24  Bruno Haible  <bruno@clisp.org>
49808
49809         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
49810         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
49811
49812 2007-03-22  Bruno Haible  <bruno@clisp.org>
49813
49814         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
49815
49816 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
49817
49818         * MODULES.html.sh (File system functions): New module write-any-file.
49819         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
49820         * m4/write-any-file.m4: New files.
49821
49822 2007-03-23  Eric Blake  <ebb9@byu.net>
49823
49824         * gnulib-tool: Rearrange space-tab sequences, since some editors
49825         like to eat them.
49826
49827 2007-03-23  Eric Blake  <ebb9@byu.net>
49828
49829         * lib/version-etc.c (version_etc_va): Update license wording to
49830         be more concise.  Recommended by Richard Stallman.
49831
49832 2007-03-22  Bruno Haible  <bruno@clisp.org>
49833
49834         * lib/poll.c (MSG_PEEK): New fallback definition.
49835
49836 2007-03-22  Bruno Haible  <bruno@clisp.org>
49837
49838         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
49839         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
49840         (main): Update.
49841         Fixes a compilation error on BeOS.
49842
49843 2007-03-22  Bruno Haible  <bruno@clisp.org>
49844
49845         * modules/frexpl-tests: New file.
49846         * tests/test-frexpl.c: New file.
49847
49848         * modules/frexpl: New file.
49849         * m4/frexpl.m4: New file.
49850         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
49851         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
49852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
49853         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
49854         (Depends-on): Add frexpl. Remove isnanl-nolibm.
49855         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
49856
49857 2007-03-22  Bruno Haible  <bruno@clisp.org>
49858
49859         * lib/frexpl.c: Share code with lib/frexp.c.
49860         * modules/mathl (Files): Add lib/frexp.c.
49861         (Depends-on): Add isnanl-nolibm.
49862
49863 2007-03-22  Bruno Haible  <bruno@clisp.org>
49864
49865         * modules/printf-frexp (Files): Add m4/frexp.m4.
49866         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
49867         only if the found frexp function actually works.
49868
49869 2007-03-22  Bruno Haible  <bruno@clisp.org>
49870
49871         * lib/frexp.c: Remove older implementation that uses divisions.
49872
49873 2007-03-21  Bruno Haible  <bruno@clisp.org>
49874
49875         * modules/frexp-tests: New file.
49876         * tests/test-frexp.c: New file.
49877
49878         * modules/frexp: New file.
49879         * lib/frexp.c: New file.
49880         * m4/frexp.m4: New file.
49881         * lib/math_.h (frexp): New declaration.
49882         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
49883         REPLACE_FREXP.
49884         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
49885
49886 2007-03-21  Bruno Haible  <bruno@clisp.org>
49887
49888         * modules/isnanl-tests: New file.
49889         * tests/test-isnanl.c: New file.
49890
49891         * modules/isnanl: New file.
49892         * lib/isnanl.h: New file.
49893         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
49894         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
49895         gl_FUNC_ISNANL_WORKS.
49896         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
49897         New macros.
49898
49899 2007-03-21  Bruno Haible  <bruno@clisp.org>
49900
49901         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
49902         lib/isnanl.h.
49903         (Include): Update.
49904         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
49905         * lib/vasnprintf.c: Update.
49906         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
49907         tests/test-isnanl.h, remove tests/test-isnanl.c.
49908         (Makefile.am): Update.
49909         * tests/test-isnanl-nolibm.c: New file.
49910         * tests/test-isnanl.h: New file.
49911         * tests/test-isnanl.c: Remove file.
49912
49913 2007-03-21  Jim Meyering  <jim@meyering.net>
49914
49915         When trying to open ".", treat ESTALE like EACCES.
49916         * lib/savewd.c (savewd_save): Resort to forking not just upon
49917         failure with EACCES, but also when errno is ESTALE.
49918
49919 2007-03-20  Bruno Haible  <bruno@clisp.org>
49920
49921         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
49922         Needed on AIX 5.1. Reported by Matthew Woehlke.
49923
49924 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49925
49926         Suggestions by Bruno Haible:
49927         * lib/acl-internal.h: Include "gettext.h" rather than rolling
49928         our own.
49929         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
49930         * modules/acl (Depends-on): Add gettext.
49931
49932 2007-03-19  Bruno Haible  <bruno@clisp.org>
49933
49934         * modules/iconvme: Remove file.
49935         * lib/iconvme.h: Remove file.
49936         * lib/iconvme.c: Remove file.
49937         * m4/iconvme.m4: Remove file.
49938
49939 2007-03-19  Bruno Haible  <bruno@clisp.org>
49940
49941         * doc/relocatable-maint.texi: Break long shell script line.
49942         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49943
49944 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49945
49946         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
49947         handle file_has_acl.
49948         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
49949         * lib/acl.c: Move header inclusions and related macro defns into
49950         lib/acl-internal.h.
49951         (S_ISLNK): Remove defn, since that's now done for us.
49952         (file_has_acl): Move to lib/file-has-acl.c.
49953         Call acl_trivial if available.  This is the crucial part of the fix.
49954         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
49955         shared within the library.  Rewrite a bit, partly to make it compatible
49956         with the GNU coding style.
49957         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
49958         Remove unnecessary double-quotes.
49959         Don't test for acl_to_text; the build will catch that.
49960         Replace acl_entries if it doesn't exist and it is needed.
49961         Check for -lsec and acl_trivial (as used on Solaris 10).
49962         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
49963         lib/file-has-acl.c.
49964         (Depends-on): Add sys_stat, for S_ISLNK.
49965
49966 2007-03-19  Ben Pfaff  <blp@gnu.org>
49967
49968         * doc/gnulib.texi: Fix typos.
49969         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49970
49971 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49972
49973         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
49974         If size is zero here, buf must be zero.
49975
49976 2007-03-19  Simon Josefsson  <simon@josefsson.org>
49977
49978         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
49979         <bruno@clisp.org>.
49980
49981 2007-03-18  Bruno Haible  <bruno@clisp.org>
49982
49983         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
49984         Suggested by Eric Blake.
49985
49986 2007-03-18  Ben Pfaff  <blp@gnu.org>
49987
49988         * doc/relocatable.texi: Recommend using as prefix a directory
49989         that does not exist and will never be created.  Based on
49990         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
49991         and others.
49992
49993 2007-03-17  Bruno Haible  <bruno@clisp.org>
49994
49995         * lib/fchownat.c: Include lchown.h.
49996
49997 2007-03-17  Bruno Haible  <bruno@clisp.org>
49998
49999         Fix endless loop when the given allocated size was > INT_MAX.
50000         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
50001         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
50002         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
50003         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
50004         * lib/sprintf.c (sprintf): Likewise.
50005
50006 2007-03-17  Bruno Haible  <bruno@clisp.org>
50007
50008         * tests/test-argp-2.sh (func_compare): Output a context diff.
50009
50010 2007-03-17  Bruno Haible  <bruno@clisp.org>
50011
50012         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
50013         locale's decimal-point character.
50014
50015 2007-03-17  Bruno Haible  <bruno@clisp.org>
50016
50017         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
50018         before comparing it. Needed because on some platforms (e.g. x86) a
50019         'long double' occupies less bytes than sizeof (long double).
50020
50021 2007-03-17  Bruno Haible  <bruno@clisp.org>
50022
50023         * tests/test-crc.c (main): Make printf statements 64-bit clean.
50024         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
50025         * tests/test-getaddrinfo.c (simple): Likewise.
50026         * tests/test-read-file.c (main): Likewise.
50027
50028 2007-03-17  Bruno Haible  <bruno@clisp.org>
50029
50030         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
50031
50032 2007-03-17  Bruno Haible  <bruno@clisp.org>
50033
50034         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
50035         unused variable.
50036
50037 2007-03-17  Bruno Haible  <bruno@clisp.org>
50038
50039         * tests/test-c-strcasecmp.c: Include c-strcase.h.
50040         * tests/test-c-strncasecmp.c: Likewise.
50041
50042 2007-03-17  Bruno Haible  <bruno@clisp.org>
50043
50044         * modules/stdlib (Depends-on): Add unistd.
50045         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
50046         Needed for MacOS X 10.3.
50047
50048 2007-03-17  Bruno Haible  <bruno@clisp.org>
50049
50050         * lib/unistr/u-strdup.h: Include <stdlib.h>.
50051
50052 2007-03-17  Bruno Haible  <bruno@clisp.org>
50053
50054         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
50055
50056 2007-03-17  Bruno Haible  <bruno@clisp.org>
50057
50058         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
50059         to reflect files copied from gnulib (with or without modifications).
50060         Suggested by Jim Meyering.
50061
50062 2007-03-17  Eric Blake  <ebb9@byu.net>
50063
50064         * NEWS: Document stdlib change from 2007-02-18.
50065
50066 2007-03-17  Jim Meyering  <jim@meyering.net>
50067
50068         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
50069         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
50070         someone uses a name containing shell meta-characters.
50071         Reported by Alfred M. Szmidt.
50072
50073         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
50074
50075 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50076
50077         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
50078         and copy gettext configuration files only if configure.ac contains
50079         a use of AM_GNU_GETTEXT_VERSION.
50080
50081 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50082
50083         * build-aux/bootstrap (gnulib_name): New variable.
50084         (gnulib_tool_options): Use it.
50085
50086 2007-03-13  Simon Josefsson  <simon@josefsson.org>
50087
50088         * tests/test-des.c: Use new namespace.
50089
50090 2007-03-15  Bruno Haible  <bruno@clisp.org>
50091
50092         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
50093         Reported by James Youngman <jay@gnu.org>.
50094
50095 2007-03-15  Bruno Haible  <bruno@clisp.org>
50096
50097         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
50098         declared prototype. Needed with cc on OSF/1 5.1.
50099
50100 2007-03-15  Bruno Haible  <bruno@clisp.org>
50101
50102         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
50103         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
50104         (struct gl_list_implementation): Add dispose_fn argument to the
50105         'create_empty', 'create' methods.
50106         (struct gl_list_impl_base): Add field 'dispose_fn'.
50107         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
50108         argument.
50109         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
50110         dispose_fn argument.
50111         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
50112         dispose_fn on the dropped values.
50113         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
50114         dispose_fn argument.
50115         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
50116         dropped values.
50117         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
50118         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50119         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
50120         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50121         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
50122         argument.
50123         (gl_tree_list_free): Call dispose_fn on the dropped values.
50124         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
50125         the dropped values.
50126         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50127         Add dispose_fn argument.
50128         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
50129         Call dispose_fn on the dropped values.
50130         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
50131         Add dispose_fn argument.
50132         (gl_sublist_create): Initialize the 'dispose_fn' field.
50133         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
50134         * tests/test-array_list.c (main): Update.
50135         * tests/test-carray_list.c (main): Update.
50136         * tests/test-avltree_list.c (main): Update.
50137         * tests/test-rbtree_list.c (main): Update.
50138         * tests/test-avltreehash_list.c (main): Update.
50139         * tests/test-rbtreehash_list.c (main): Update.
50140         * tests/test-linked_list.c (main): Update.
50141         * tests/test-linkedhash_list.c (main): Update.
50142         * tests/test-array_oset.c (main): Update.
50143
50144 2007-03-15  Bruno Haible  <bruno@clisp.org>
50145
50146         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
50147         (gl_oset_create_empty): Add dispose_fn argument.
50148         (struct gl_oset_implementation): Add dispose_fn argument to
50149         'create_empty' method.
50150         (struct gl_oset_impl_base): Add dispose_fn field.
50151         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
50152         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
50153         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
50154         values.
50155         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
50156         (gl_tree_oset_free): Call dispose_fn on the dropped values.
50157         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50158         dropped value.
50159         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50160         dropped value.
50161         * tests/test-array_oset.c (main): Update.
50162         * tests/test-avltree_oset.c (main): Update.
50163         * tests/test-rbtree_oset.c (main): Update.
50164         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
50165
50166 2007-03-13  Bruno Haible  <bruno@clisp.org>
50167
50168         * tests/test-stdbool.c (i): Update after last patch.
50169
50170 2007-03-12  Bruno Haible  <bruno@clisp.org>
50171
50172         * lib/quotearg.c: Include <wctype.h> early, before the definition of
50173         the iswprint macro. Needed on Solaris 2.5.1.
50174
50175 2007-03-12  Bruno Haible  <bruno@clisp.org>
50176
50177         * tests/test-printf-frexp.c (main): Declare x as volatile.
50178
50179 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50180
50181         * doc/gnulib.texi (Build robot for gnulib): New section.
50182
50183 2007-03-12  Jim Meyering  <jim@meyering.net>
50184
50185         * build-aux/bootstrap: New file.
50186         * build-aux/bootstrap.conf: New file, from coreutils.
50187
50188 2007-03-11  Bruno Haible  <bruno@clisp.org>
50189
50190         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
50191
50192 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50193
50194         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
50195         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
50196         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
50197
50198 2007-03-11  Bruno Haible  <bruno@clisp.org>
50199
50200         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
50201         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
50202
50203 2007-03-11  Bruno Haible  <bruno@clisp.org>
50204
50205         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
50206         formula. Needed for SunPRO C 5.0.
50207
50208 2007-03-11  Bruno Haible  <bruno@clisp.org>
50209
50210         * modules/long-options (Depends-on): Add getopt.
50211
50212 2007-03-11  Bruno Haible  <bruno@clisp.org>
50213
50214         * modules/modechange (Depends-on): Add stdbool.
50215
50216 2007-03-11  Bruno Haible  <bruno@clisp.org>
50217
50218         * modules/i-ring (Depends-on): Add stdbool.
50219
50220 2007-03-11  Bruno Haible  <bruno@clisp.org>
50221
50222         * modules/gc-des (Depends-on): Add stdbool.
50223
50224 2007-03-11  Bruno Haible  <bruno@clisp.org>
50225
50226         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
50227
50228 2007-03-11  Bruno Haible  <bruno@clisp.org>
50229
50230         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
50231
50232 2007-03-11  Bruno Haible  <bruno@clisp.org>
50233
50234         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
50235
50236 2007-03-11  Bruno Haible  <bruno@clisp.org>
50237
50238         * lib/vasnprintf.c (sprintf): Undefine.
50239
50240 2007-03-11  Bruno Haible  <bruno@clisp.org>
50241
50242         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
50243         initializers in SunPRO C and Compaq C compilers.
50244
50245 2007-03-11  Bruno Haible  <bruno@clisp.org>
50246
50247         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
50248         decrementing code ANSI C compliant.
50249
50250 2007-03-11  Bruno Haible  <bruno@clisp.org>
50251
50252         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
50253         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
50254
50255 2007-03-11  Bruno Haible  <bruno@clisp.org>
50256
50257         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
50258         <stdbool.h> substitute doesn't pass.
50259
50260 2007-03-11  Bruno Haible  <bruno@clisp.org>
50261
50262         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
50263
50264 2007-03-11  Bruno Haible  <bruno@clisp.org>
50265
50266         * gnulib-tool (func_create_megatestdir): Create also an autobuild
50267         script, for submission to autobuild.josefsson.org.
50268
50269 2007-03-10  Bruno Haible  <bruno@clisp.org>
50270
50271         * modules/canonicalize-lgpl-tests: New file.
50272         * tests/test-canonicalize-lgpl.sh: New file.
50273         * tests/test-canonicalize-lgpl.c: New file.
50274
50275         * modules/c-strcase-tests: New file.
50276         * tests/test-c-strcase.sh: New file.
50277         * tests/test-c-strcasecmp.c: New file.
50278         * tests/test-c-strncasecmp.c: New file.
50279
50280         * modules/atexit-tests: New file.
50281         * tests/test-atexit.sh: New file.
50282         * tests/test-atexit.c: New file.
50283
50284 2007-03-10  Bruno Haible  <bruno@clisp.org>
50285
50286         * tests/test-binary-io.sh: Use temporary filenames that are not so
50287         likely to clash with those of other tests (in a parallel make).
50288         * tests/test-binary-io.c: Likewise.
50289
50290 2007-03-10  Bruno Haible  <bruno@clisp.org>
50291
50292         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
50293         fallback; use #error instead.
50294         Suggested by Simon Josefsson.
50295
50296 2007-03-10  Bruno Haible  <bruno@clisp.org>
50297
50298         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
50299         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
50300         first and the last.
50301
50302 2007-03-10  Bruno Haible  <bruno@clisp.org>
50303
50304         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
50305
50306 2007-03-10  Bruno Haible  <bruno@clisp.org>
50307
50308         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
50309         "make distcheck".
50310         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
50311         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
50312         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
50313
50314 2007-03-10  Bruno Haible  <bruno@clisp.org>
50315
50316         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
50317         variable.
50318         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
50319         variable.
50320
50321 2007-03-09  Eric Blake  <ebb9@byu.net>
50322         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
50323
50324         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
50325         types are not being provided by gnulib.
50326         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
50327         types are supported.
50328
50329 2007-03-10  Bruno Haible  <bruno@clisp.org>
50330
50331         * lib/stdio_.h (__attribute__): New macro.
50332         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
50333         vsprintf): Specify __attribute__ __format__ for GCC.
50334         Suggested by Eric Blake.
50335
50336 2007-03-09  Bruno Haible  <bruno@clisp.org>
50337
50338         * modules/printf-posix-tests: New file.
50339         * tests/test-printf-posix.sh: New file.
50340         * tests/test-printf-posix.c: New file.
50341
50342         * modules/printf-posix: New file.
50343         * lib/printf.c: New file.
50344         * m4/printf-posix-rpl.m4: New file.
50345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
50346         REPLACE_PRINTF.
50347         * lib/stdio_.h (printf): New declaration.
50348         (format, __format__, ____printf____, ____scanf____, ____strftime____,
50349         ____strfmon____): New macros.
50350         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
50351         REPLACE_PRINTF.
50352
50353 2007-03-09  Bruno Haible  <bruno@clisp.org>
50354
50355         * tests/test-vasnprintf-posix2.sh: New file.
50356         * tests/test-vasnprintf-posix2.c: New file.
50357         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
50358         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50359         (Makefile.am): Activate test-vasnprintf-posix2.sh.
50360
50361         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
50362         a locale dependent decimal point, rather than always '.'.
50363
50364 2007-03-09  Eric Blake  <ebb9@byu.net>
50365
50366         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
50367         spite of platforms like Tandem/NSK that define it to -1.
50368
50369 2007-03-08  Bruno Haible  <bruno@clisp.org>
50370
50371         * modules/vprintf-posix-tests: New file.
50372         * tests/test-vprintf-posix.sh: New file.
50373         * tests/test-vprintf-posix.c: New file.
50374         * tests/test-printf-posix.h: New file.
50375
50376         * modules/vprintf-posix: New file.
50377         * lib/vprintf.c: New file.
50378         * m4/vprintf-posix.m4: New file.
50379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
50380         REPLACE_VPRINTF.
50381         * lib/stdio_.h (vprintf): New declaration.
50382         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
50383         REPLACE_VPRINTF.
50384
50385 2007-03-08  Bruno Haible  <bruno@clisp.org>
50386
50387         * modules/fprintf-posix-tests: New file.
50388         * tests/test-fprintf-posix.sh: New file.
50389         * tests/test-fprintf-posix.c: New file.
50390
50391         * modules/fprintf-posix: New file.
50392         * lib/fprintf.c: New file.
50393         * m4/fprintf-posix.m4: New file.
50394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
50395         REPLACE_FPRINTF.
50396         * lib/stdio_.h (fprintf): New declaration.
50397         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
50398         REPLACE_FPRINTF.
50399
50400 2007-03-08  Bruno Haible  <bruno@clisp.org>
50401
50402         * modules/vfprintf-posix-tests: New file.
50403         * tests/test-vfprintf-posix.sh: New file.
50404         * tests/test-vfprintf-posix.c: New file.
50405         * tests/test-fprintf-posix.h: New file.
50406         * tests/test-fprintf-posix.out: New file.
50407
50408         * modules/vfprintf-posix: New file.
50409         * lib/vfprintf.c: New file.
50410         * m4/vfprintf-posix.m4: New file.
50411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
50412         REPLACE_VFPRINTF.
50413         * lib/stdio_.h (vfprintf): New declaration.
50414         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
50415         REPLACE_VFPRINTF.
50416
50417 2007-03-08  Bruno Haible  <bruno@clisp.org>
50418
50419         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
50420
50421 2007-03-08  Bruno Haible  <bruno@clisp.org>
50422
50423         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
50424         instead of 'expr' invocations.
50425         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50426         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50427         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50429         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50430         Suggested by Paul Eggert.
50431
50432 2007-03-08  Bruno Haible  <bruno@clisp.org>
50433
50434         * modules/fseterr-tests: New file.
50435         * tests/test-fseterr.c: New file.
50436
50437         * modules/fseterr: New file.
50438         * lib/fseterr.h: New file.
50439         * lib/fseterr.c: New file.
50440
50441 2007-03-08  Bruno Haible  <bruno@clisp.org>
50442
50443         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
50444         * lib/getopt_.h: Likewise.
50445         * lib/mbswidth.h: Likewise.
50446         * lib/setenv.h: Likewise.
50447         * lib/vasnprintf.h: Likewise.
50448         * lib/vasprintf.h: Likewise.
50449         * lib/verror.h: Likewise.
50450         * lib/xsetenv.h: Likewise.
50451         * lib/xvasprintf.h: Likewise.
50452
50453 2007-03-08  Jim Meyering  <jim@meyering.net>
50454
50455         * users.txt: Add parted.
50456
50457         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
50458
50459 2007-03-07  Bruno Haible  <bruno@clisp.org>
50460
50461         * m4/printf.m4: Make the shell script snippets copy&pastable.
50462
50463 2007-03-02  Bruno Haible  <bruno@clisp.org>
50464
50465         * lib/netinet_in_.h: New file.
50466         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
50467         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
50468         * modules/netinet_in (Files): Add lib/netinet_in_.h.
50469         (Depends-on): Add absolute-header.
50470         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
50471         into netinet/in.h.
50472
50473 2007-03-03  Bruno Haible  <bruno@clisp.org>
50474
50475         * lib/sys_select_.h: New file.
50476         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
50477         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
50478         * modules/sys_select (Files): Add lib/sys_select_.h.
50479         (Depends-on): Add absolute-header.
50480         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
50481         into sys/select.h.
50482
50483 2007-03-02  Bruno Haible  <bruno@clisp.org>
50484
50485         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
50486         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
50487         values.
50488         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
50489         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
50490         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
50491         * modules/sys_socket (Depends-on): Add absolute-header.
50492         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
50493         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
50494         (Include): Remove requirement of inclusion of <sys/types.h>.
50495
50496 2007-03-02  Bruno Haible  <bruno@clisp.org>
50497
50498         * lib/byteswap_.h (bswap_32): Fix formula.
50499
50500 2007-03-06  Bruno Haible  <bruno@clisp.org>
50501
50502         * modules/sprintf-posix-tests: New file.
50503         * tests/test-sprintf-posix.c: New file.
50504
50505         * modules/sprintf-posix: New file.
50506         * lib/sprintf.c: New file.
50507         * m4/sprintf-posix.m4: New file.
50508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
50509         REPLACE_SPRINTF.
50510         * lib/stdio_.h (sprintf): New declaration.
50511         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
50512         REPLACE_SPRINTF.
50513
50514 2007-03-06  Bruno Haible  <bruno@clisp.org>
50515
50516         * modules/vsprintf-posix-tests: New file.
50517         * tests/test-vsprintf-posix.c: New file.
50518         * tests/test-sprintf-posix.h: New file.
50519
50520         * modules/vsprintf-posix: New file.
50521         * lib/vsprintf.c: New file.
50522         * m4/vsprintf-posix.m4: New file.
50523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
50524         REPLACE_VSPRINTF.
50525         * lib/stdio_.h (vsprintf): New declaration.
50526         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
50527         REPLACE_VSPRINTF.
50528
50529 2007-03-06  Bruno Haible  <bruno@clisp.org>
50530
50531         * modules/vsnprintf (Depend-on): Remove minmax.
50532
50533 2007-03-06  Bruno Haible  <bruno@clisp.org>
50534
50535         * modules/snprintf-posix-tests: New file.
50536         * tests/test-snprintf-posix.c: New file.
50537
50538         * modules/snprintf-posix: New file.
50539         * m4/snprintf-posix.m4: New file.
50540         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
50541         gl_FUNC_SNPRINTF.
50542         (gl_FUNC_SNPRINTF): Invoke it.
50543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
50544         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
50545         is set.
50546         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
50547
50548 2007-03-06  Bruno Haible  <bruno@clisp.org>
50549
50550         * modules/vsnprintf-posix-tests: New file.
50551         * tests/test-vsnprintf-posix.c: New file.
50552         * tests/test-snprintf-posix.h: New file.
50553
50554         * modules/vsnprintf-posix: New file.
50555         * m4/vsnprintf-posix.m4: New file.
50556         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
50557         gl_FUNC_VSNPRINTF.
50558         (gl_FUNC_VSNPRINTF): Invoke it.
50559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
50560         * lib/stdio_.h (vsnprintf): Define as a replacement if
50561         REPLACE_VSNPRINTF is set.
50562         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
50563
50564 2007-03-06  Bruno Haible  <bruno@clisp.org>
50565
50566         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
50567         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
50568
50569 2007-03-06  Bruno Haible  <bruno@clisp.org>
50570
50571         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
50572         (asinl): Declare also if HAVE_DECL_ASINL is set.
50573         (atanl): Declare also if HAVE_DECL_ATANL is set.
50574         (ceill): Declare also if HAVE_DECL_CEILL is set.
50575         (cosl): Declare also if HAVE_DECL_COSL is set.
50576         (expl): Declare also if HAVE_DECL_EXPL is set.
50577         (floorl): Declare also if HAVE_DECL_FLOORL is set.
50578         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
50579         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
50580         (logl): Declare also if HAVE_DECL_LOGL is set.
50581         (sinl): Declare also if HAVE_DECL_SINL is set.
50582         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
50583         (tanl): Declare also if HAVE_DECL_TANL is set.
50584         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
50585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
50586         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
50587         declaration of frexpl, ldexpl.
50588         * modules/printf-frexpl (Depends-on): Add math.
50589         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
50590
50591 2007-03-05  Bruno Haible  <bruno@clisp.org>
50592
50593         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
50594         frexpl and ldexpl are declared.
50595         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
50596
50597 2007-03-05  Bruno Haible  <bruno@clisp.org>
50598
50599         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
50600         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
50601
50602 2007-03-05  Bruno Haible  <bruno@clisp.org>
50603
50604         * lib/stdio_.h: Include <stddef.h>.
50605
50606 2007-03-05  Bruno Haible  <bruno@clisp.org>
50607
50608         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
50609
50610 2007-03-05  Bruno Haible  <bruno@clisp.org>
50611
50612         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
50613         NetBSD 4, from Ralf Wildenhues.
50614
50615 2007-03-04  Bruno Haible  <bruno@clisp.org>
50616
50617         * lib/vasprintf.h: Update #if logic for the case when the functions
50618         exist but are overridden.
50619
50620 2007-03-04  Bruno Haible  <bruno@clisp.org>
50621
50622         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
50623         implementations: glibc-2.4 and MacOS X 10.3.
50624         * tests/test-vasnprintf-posix.c (test_function): Test also the case
50625         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
50626         * tests/test-vasprintf-posix.c (test_function): Likewise.
50627
50628 2007-03-04  Bruno Haible  <bruno@clisp.org>
50629
50630         * modules/vasprintf-posix-tests: New file.
50631         * tests/test-vasprintf-posix.c: New file.
50632
50633         * modules/vasprintf-posix: New file.
50634         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
50635         defined.
50636         * m4/vasprintf-posix.m4: New file.
50637         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
50638         gl_FUNC_VASPRINTF.
50639         (gl_FUNC_VASPRINTF): Invoke it.
50640         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
50641         here.
50642         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
50643
50644 2007-03-04  Bruno Haible  <bruno@clisp.org>
50645
50646         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
50647         REPLACE_GETTIMEOFDAY.
50648         * modules/sys_time (Makefile.am): Likewise.
50649         * m4/sys_time_h.m4: Likewise.
50650         * m4/gettimeofday.m4: Likewise.
50651
50652 2007-03-04  Bruno Haible  <bruno@clisp.org>
50653
50654         * modules/vasnprintf-posix-tests: New file.
50655         * tests/test-vasnprintf-posix.c: New file.
50656
50657         * modules/vasnprintf-posix: New file.
50658         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
50659         printf-frexpl.h.
50660         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
50661         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
50662         REPLACE_VASNPRINTF is defined.
50663         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
50664         gl_FUNC_VASNPRINTF.
50665         (gl_FUNC_VASNPRINTF): Invoke it.
50666         * m4/vasnprintf-posix.m4: New file.
50667         * m4/printf.m4: New file.
50668
50669 2007-03-04  Bruno Haible  <bruno@clisp.org>
50670
50671         Compile progreloc.c only if --enable-relocatable is specified.
50672         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
50673         if --enable-relocatable was specified.
50674         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
50675         lib_SOURCES.
50676
50677 2007-03-04  Jim Meyering  <jim@meyering.net>
50678
50679         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
50680         Use it consistently, rather than enumerating errno constants.
50681
50682 2007-03-04  Bruno Haible  <bruno@clisp.org>
50683
50684         * modules/xvasprintf-tests: New file.
50685         * tests/test-xvasprintf.c: New file.
50686
50687         * modules/vasprintf-tests: New file.
50688         * tests/test-vasprintf.c: New file.
50689
50690         * modules/vasnprintf-tests: New file.
50691         * tests/test-vasnprintf.c: New file.
50692
50693         * modules/vsnprintf-tests: New file.
50694         * tests/test-vsnprintf.c: New file.
50695
50696         * modules/snprintf-tests: New file.
50697         * tests/test-snprintf.c: New file.
50698
50699 2007-03-04  Bruno Haible  <bruno@clisp.org>
50700
50701         Compile relocatable.c only if --enable-relocatable is specified.
50702         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
50703         gl_RELOCATABLE_LIBRARY.
50704         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
50705         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
50706         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
50707         gl_RELOCATABLE_LIBRARY.
50708         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
50709         (Makefile.am): Remove lib_SOURCES.
50710         * modules/relocatable-lib-lgpl (configure.ac): Invoke
50711         gl_RELOCATABLE_LIBRARY.
50712         (Makefile.am): Remove lib_SOURCES.
50713         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
50714         always.
50715         * modules/relocatable-prog-wrapper (configure.ac): Invoke
50716         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
50717
50718 2007-03-04  Bruno Haible  <bruno@clisp.org>
50719
50720         * modules/argmatch-tests: New file.
50721         * tests/test-argmatch.c: New file.
50722
50723         * tests/test-allocsa.c (main): Halve the number of loop runs.
50724
50725         * modules/alloca-opt-tests: New file.
50726         * tests/test-alloca-opt.c: New file.
50727
50728 2007-03-04  Jim Meyering  <jim@meyering.net>
50729
50730         Work around difference between Linux ACLs and Solaris 10 ZFS.
50731         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
50732         for EINVAL.
50733
50734 2007-03-03  Bruno Haible  <bruno@clisp.org>
50735
50736         * modules/relocatable-prog (Depends-on): Add back progreloc's
50737         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
50738
50739 2007-03-03  Bruno Haible  <bruno@clisp.org>
50740
50741         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
50742         * modules/relocatable-lib: New file.
50743
50744 2007-03-03  Bruno Haible  <bruno@clisp.org>
50745
50746         * modules/relocatable-prog: Renamed from modules/relocatable.
50747         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
50748
50749 2007-03-03  Bruno Haible  <bruno@clisp.org>
50750
50751         * modules/relocatable-script (Files): Add doc/relocatable.texi,
50752         m4/relocatable-lib.m4.
50753         (Depends-on): Remove 'relocatable'.
50754         (configure.ac): Add gl_RELOCATABLE_NOP.
50755
50756 2007-03-03  Bruno Haible  <bruno@clisp.org>
50757
50758         * modules/relocatable-prog-wrapper: New file.
50759         * modules/relocatable (Depends-on): Add it. Remove all other
50760         dependencies except progname.
50761         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
50762
50763         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
50764         (gl_FUNC_STRERROR): Nop.
50765         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
50766
50767         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
50768         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
50769
50770         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
50771         (gl_FUNC_READLINK): Update.
50772
50773         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
50774
50775 2007-03-03  Bruno Haible  <bruno@clisp.org>
50776
50777         * lib/xreadlink.c: Include <unistd.h> unconditionally.
50778         * modules/xreadlink (Depends-on): Add unistd.
50779         * modules/xreadlink-with-size (Depends-on): Likewise.
50780
50781 2007-03-03  Bruno Haible  <bruno@clisp.org>
50782
50783         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
50784         extracted from gt_FUNC_SETENV.
50785         (gt_FUNC_SETENV): Remove macro.
50786         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
50787         remove gt_FUNC_SETENV.
50788
50789 2007-03-03  Bruno Haible  <bruno@clisp.org>
50790
50791         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
50792         ENABLE_RELOCATABLE here.
50793         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
50794
50795 2007-03-03  Bruno Haible  <bruno@clisp.org>
50796
50797         * modules/rbtreehash-list-tests (Depends-on): Add progname.
50798         * tests/test-rbtreehash_list.c: Include progname.h.
50799         (main): Call set_program_name.
50800
50801         * modules/rbtree-oset-tests (Depends-on): Add progname.
50802         * tests/test-rbtree_oset.c: Include progname.h.
50803         (main): Call set_program_name.
50804
50805         * modules/rbtree-list-tests (Depends-on): Add progname.
50806         * tests/test-rbtree_list.c: Include progname.h.
50807         (main): Call set_program_name.
50808
50809         * modules/linked-list-tests (Depends-on): Add progname.
50810         * tests/test-linked_list.c: Include progname.h.
50811         (main): Call set_program_name.
50812
50813 2007-03-03  Bruno Haible  <bruno@clisp.org>
50814
50815         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
50816         All uses of __restrict changed to _Restrict_.
50817         * lib/glob_.h (__restrict): Remove macro.
50818
50819 2007-03-02  Bruno Haible  <bruno@clisp.org>
50820
50821         * modules/gettext (configure.ac): Require gettext infrastructure
50822         from version 0.16.1.
50823
50824 2007-03-02  Bruno Haible  <bruno@clisp.org>
50825
50826         * modules/linkedhash-list-tests (Depends-on): Add progname.
50827         * tests/test-linkedhash_list.c: Include progname.h.
50828         (main): Call set_program_name.
50829
50830         * modules/carray-list-tests (Depends-on): Add progname.
50831         * tests/test-carray_list.c: Include progname.h.
50832         (main): Call set_program_name.
50833
50834         * modules/avltreehash-list-tests (Depends-on): Add progname.
50835         * tests/test-avltreehash_list.c: Include progname.h.
50836         (main): Call set_program_name.
50837
50838         * modules/avltree-oset-tests (Depends-on): Add progname.
50839         * tests/test-avltree_oset.c: Include progname.h.
50840         (main): Call set_program_name.
50841
50842         * modules/avltree-list-tests (Depends-on): Add progname.
50843         * tests/test-avltree_list.c: Include progname.h.
50844         (main): Call set_program_name.
50845
50846         * modules/array-oset-tests (Depends-on): Add progname.
50847         * tests/test-array_oset.c: Include progname.h.
50848         (main): Call set_program_name.
50849
50850         * modules/array-list-tests (Depends-on): Add progname.
50851         * tests/test-array_list.c: Include progname.h.
50852         (main): Call set_program_name.
50853
50854         * modules/argp-tests (Depends-on): Add progname.
50855         * tests/test-argp.c: Include argp.h first. Include progname.h.
50856         (main): Call set_program_name.
50857
50858 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
50859
50860         * doc/gnulib-tool.texi (Initial import): Reword description of
50861         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
50862         limited effect even if defined after the first system include.
50863
50864 2007-03-01  Bruno Haible  <bruno@clisp.org>
50865
50866         * build-aux/config.libpath: Update to libtool-1.5.22.
50867         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50868
50869 2007-03-01  Bruno Haible  <bruno@clisp.org>
50870
50871         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
50872         foo_CFLAGS.
50873         Reported by Ralf Wildenhues.
50874
50875 2007-03-01  Bruno Haible  <bruno@clisp.org>
50876
50877         * build-aux/install-reloc: Remove object files left over by some
50878         compilers.
50879         Reported by Ralf Wildenhues.
50880
50881 2007-03-01  Bruno Haible  <bruno@clisp.org>
50882
50883         * build-aux/install-reloc: Break long lines.
50884
50885 2007-03-01  Bruno Haible  <bruno@clisp.org>
50886
50887         * doc/relocatable.texi: Document that it may not work on OpenBSD.
50888         Reported by Ralf Wildenhues.
50889
50890 2007-03-01  Bruno Haible  <bruno@clisp.org>
50891
50892         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
50893         include ordering constraints.
50894
50895 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50896
50897         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
50898         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
50899         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
50900         as another example.
50901         * lib/time_.h: Fix misspelling.
50902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50903         Require gl_HEADER_TIME_H_DEFAULTS.
50904         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
50905         * m4/time_r.m4 (gl_TIME_R): Likewise.
50906         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
50907
50908 2007-03-01  Bruno Haible  <bruno@clisp.org>
50909
50910         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
50911         * m4/utimens.m4 (gl_UTIMENS): Likewise.
50912
50913 2007-03-01  Jim Meyering  <jim@meyering.net>
50914
50915         * modules/xreadlink (Maintainer): Add my name.
50916         * modules/xreadlink-with-size (Depends-on): Alphabetize.
50917
50918 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
50919             Bruno Haible  <bruno@clisp.org>
50920
50921         * build-aux/install-reloc: Compile also c-ctype.c.
50922         * build-aux/relocatable.sh.in: New file.
50923         * doc/relocatable.texi: New file.
50924         * doc/relocatable-maint.texi: New file.
50925         * doc/gnulib.texi: Include relocatable-maint.texi.
50926         * lib/progreloc.c: Include unistd.h unconditionally.
50927         * lib/relocwrapper.c: Include unistd.h unconditionally.
50928         Include c-ctype.h.
50929         (add_dotbin): Use c_tolower.
50930         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
50931         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
50932         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
50933         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
50934         to m4/relocatable-lib.m4.
50935         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
50936         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
50937         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
50938         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
50939         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
50940         * modules/relocatable: New file.
50941         * modules/relocatable-lib: New file.
50942         * modules/relocatable-script: New file.
50943
50944 2007-02-28  Bruno Haible  <bruno@clisp.org>
50945
50946         Import --enable-relocatable infrastructure.
50947         * build-aux/config.libpath: New file, from GNU gettext.
50948         * build-aux/install-reloc: New file, from GNU gettext.
50949         * build-aux/reloc-ldflags: New file, from GNU gettext.
50950         * lib/relocatable.h: New file, from GNU gettext.
50951         * lib/relocatable.c: New file, from GNU gettext.
50952         * lib/relocwrapper.c: New file, from GNU gettext.
50953         * m4/relocatable.m4: New file, from GNU gettext.
50954
50955 2007-02-28  Bruno Haible  <bruno@clisp.org>
50956
50957         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
50958
50959         * modules/xreadlink: New file, from GNU gettext with modifications.
50960         * lib/xreadlink.c: New file, from GNU gettext.
50961         * lib/xreadlink.h: Add comments.
50962         (xreadlink): New declaration.
50963
50964         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
50965         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
50966         lib/xreadlink-with-size.c.
50967         (configure.ac): Remove gl_XREADLINK invocation.
50968         (Makefile.am): Augment lib_SOURCES.
50969         * m4/xreadlink.m4: Remove file.
50970         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
50971         (xreadlink_with_size): Renamed from xreadink.
50972         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
50973         * modules/canonicalize (Depends-on): Replace xreadlink with
50974         xreadlink-with-size.
50975         * lib/canonicalize.c (canonicalize_filename_mode): Update.
50976
50977 2007-02-25  Jim Meyering  <jim@meyering.net>
50978
50979         * build-aux/announce-gen: When complaining about excess arguments,
50980         list them.
50981
50982 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
50983
50984         * README: Document signed integer overflow situation more
50985         accurately.
50986
50987 2007-02-25  Bruno Haible  <bruno@clisp.org>
50988
50989         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
50990         'a' or 'A' conversion.
50991
50992 2007-02-25  Bruno Haible  <bruno@clisp.org>
50993
50994         * modules/filename: Renamed from modules/pathname.
50995         (Files): Replace lib/pathname.h with lib/filename.h. Replace
50996         lib/concatpath.c with lib/concat-filename.c.
50997         (Makefile.am): Update.
50998         (Include): Replace pathname.h with filename.h.
50999         * lib/filename.h: Renamed from lib/pathname.h.
51000         (concatenated_filename): Renamed from concatenated_pathname.
51001         * lib/concat-filename.c: Renamed from lib/concatpath.c.
51002         (concatenated_filename): Renamed from concatenated_pathname.
51003         * lib/findprog.c: Include filename.h instead of pathname.h.
51004         (find_in_path): Update.
51005         * lib/javacomp.c: Include filename.h instead of pathname.h.
51006         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
51007         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
51008         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
51009         is_oldgcj_14_13_usable, is_javac_usable): Update.
51010         * lib/javaexec.c: Include filename.h instead of pathname.h.
51011         (execute_java_class): Update.
51012         * modules/findprog: Update.
51013         * modules/javacomp: Update.
51014         * modules/javaexec: Update.
51015         * MODULES.html.sh (File system functions): Add 'filename', remove
51016         'pathname'.
51017
51018 2007-02-25  Bruno Haible  <bruno@clisp.org>
51019
51020         * modules/printf-frexpl-tests: New file.
51021         * tests/test-printf-frexpl.c: New file.
51022
51023         * modules/printf-frexpl: New file.
51024         * lib/printf-frexpl.h: New file.
51025         * lib/printf-frexpl.c: New file.
51026         * m4/printf-frexpl.m4: New file.
51027
51028 2007-02-25  Bruno Haible  <bruno@clisp.org>
51029
51030         * modules/printf-frexp-tests: New file.
51031         * tests/test-printf-frexp.c: New file.
51032
51033         * modules/printf-frexp: New file.
51034         * lib/printf-frexp.h: New file.
51035         * lib/printf-frexp.c: New file.
51036         * m4/printf-frexp.m4: New file.
51037
51038 2007-02-25  Bruno Haible  <bruno@clisp.org>
51039
51040         Assume automake >= 1.10 for the tests.
51041         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
51042         * modules/arctwo-tests: Likewise.
51043         * modules/argp-tests: Likewise.
51044         * modules/avltree-list-tests: Likewise.
51045         * modules/avltree-oset-tests: Likewise.
51046         * modules/avltreehash-list-tests: Likewise.
51047         * modules/carray-list-tests: Likewise.
51048         * modules/crc-tests: Likewise.
51049         * modules/des-tests: Likewise.
51050         * modules/gc-arcfour-tests: Likewise.
51051         * modules/gc-arctwo-tests: Likewise.
51052         * modules/gc-des-tests: Likewise.
51053         * modules/gc-hmac-md5-tests: Likewise.
51054         * modules/gc-hmac-sha1-tests: Likewise.
51055         * modules/gc-md2-tests: Likewise.
51056         * modules/gc-md4-tests: Likewise.
51057         * modules/gc-md5-tests: Likewise.
51058         * modules/gc-pbkdf2-sha1-tests: Likewise.
51059         * modules/gc-rijndael-tests: Likewise.
51060         * modules/gc-sha1-tests: Likewise.
51061         * modules/gc-tests: Likewise.
51062         * modules/getaddrinfo-tests: Likewise.
51063         * modules/hmac-md5-tests: Likewise.
51064         * modules/hmac-sha1-tests: Likewise.
51065         * modules/linked-list-tests: Likewise.
51066         * modules/linkedhash-list-tests: Likewise.
51067         * modules/lock-tests: Likewise.
51068         * modules/md2-tests: Likewise.
51069         * modules/md4-tests: Likewise.
51070         * modules/md5-tests: Likewise.
51071         * modules/rbtree-list-tests: Likewise.
51072         * modules/rbtree-oset-tests: Likewise.
51073         * modules/rbtreehash-list-tests: Likewise.
51074         * modules/read-file-tests: Likewise.
51075         * modules/rijndael-tests: Likewise.
51076         * modules/stdint-tests: Likewise.
51077         * modules/tls-tests: Likewise.
51078
51079 2007-02-24  Bruno Haible  <bruno@clisp.org>
51080
51081         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
51082         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
51083         function; instead check whether isnan with a double argument links.
51084         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
51085         function; instead check whether isnan with a 'long double' argument
51086         links.
51087         Reported by Eric Blake <ebb9@byu.net>.
51088
51089 2007-02-24  Bruno Haible  <bruno@clisp.org>
51090
51091         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
51092         defined.
51093         * lib/isnanl.c: Remove all code. Just include isnan.c.
51094         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
51095
51096 2007-02-25  Jim Meyering  <jim@meyering.net>
51097
51098         Avoid conflicting types for 'unsetenv' on FreeBSD.
51099         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
51100         conflicting with FreeBSD's (5.0 and 6.1) function declaration
51101         in stdlib.h.
51102
51103 2007-02-24  Bruno Haible  <bruno@clisp.org>
51104
51105         * modules/isnanl-nolibm-tests: New file.
51106         * tests/test-isnanl.c: New file.
51107
51108         * modules/isnanl-nolibm: New file.
51109         * lib/isnanl.h: New file.
51110         * lib/isnanl.c: New file.
51111         * m4/isnanl.m4: New file.
51112
51113 2007-02-24  Bruno Haible  <bruno@clisp.org>
51114
51115         * modules/isnan-nolibm-tests: New file.
51116         * tests/test-isnan.c: New file.
51117
51118         * modules/isnan-nolibm: New file.
51119         * lib/isnan.h: New file.
51120         * lib/isnan.c: New file.
51121         * m4/isnan.m4: New file.
51122
51123 2007-02-24  Bruno Haible  <bruno@clisp.org>
51124
51125         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
51126         assume that an exponent fits in 20 bits.
51127
51128 2007-02-24  Jim Meyering  <jim@meyering.net>
51129
51130         * m4/regex.m4: Update the description of the configure-time option,
51131         --without-included-regex, to state accurately what the defaults are,
51132         and perhaps to give people an idea why using this option is risky.
51133
51134 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51135
51136         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
51137         loops on small arguments.  This attempts to avoid the problem
51138         Bruno Haible reported for AIX 4.3.2 in
51139         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
51140
51141 2007-02-23  Bruno Haible  <bruno@clisp.org>
51142
51143         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
51144         Needed for help2man.
51145
51146 2007-02-23  Karl Berry  <karl@gnu.org>
51147
51148         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
51149         exists, foo.h should be cvs-ignored, not committed.
51150
51151 2007-02-23  Eric Blake  <ebb9@byu.net>
51152
51153         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
51154         * lib/stat-time.h (includes): Likewise.
51155         * lib/utimecmp.c (includes): Likewise.
51156         * lib/utimens.h (includes): Likewise.
51157         * lib/getdate.y (includes): Also include "timespec.h" for use
51158         internal to the module.
51159         * modules/utimens (Depends-on): Revert yesterday's patch.
51160         * modules/nanosleep (Depends-on): Add missing dependency.
51161
51162 2007-02-22  Bruno Haible  <bruno@clisp.org>
51163
51164         * lib/glob.c: Don't include getlogin_r.h.
51165
51166 2007-02-22  Jim Meyering  <jim@meyering.net>
51167
51168         * modules/utimens (Depends-on): Add timespec, required for
51169         utimens.h's inclusion of timespec.h.
51170
51171 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
51172
51173         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
51174         long unreadable paths in GNU/Linux.  Problem reported by Andreas
51175         Schwab in
51176         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
51177         I'll try to think of a better way to fix the Solaris problem.
51178
51179         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
51180         like glibc; on Solaris 10, it fails with errno == EINVAL.
51181         POSIX says the behavior is unspecified if the first argument is NULL,
51182         so play it safe and never pass NULL to the system getcwd.
51183
51184 2007-02-21  Jim Meyering  <jim@meyering.net>
51185
51186         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
51187         of gettimeofday.  It would conflict with the one now always
51188         provided via sys_time_.h.  Reported by Matthew Woehlke, as
51189         an IRIX 6.5 build failure.
51190
51191 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51192
51193         Minor fixups to port to Solaris 10 with Sun C 5.8.
51194         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
51195         * modules/getcwd (Depends-on): Add dirfd.
51196         * lib/putenv.c (putenv): #undef it.
51197         (rpl_putenv): New decl.
51198         (malloc, free): Include <stdlib.h> rather than prototyping separately.
51199
51200 2007-02-20  Bruno Haible  <bruno@clisp.org>
51201
51202         * modules/stdio-tests: New file.
51203         * tests/test-stdio.c: New file.
51204
51205         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
51206         (Depends-on): Add stdio.
51207         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51208         (Include): Use <stdio.h> instead of vsnprintf.h.
51209         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51210         HAVE_DECL_VSNPRINTF.
51211         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
51212
51213         * modules/snprintf (Files): Remove lib/snprintf.h.
51214         (Depends-on): Add stdio.
51215         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51216         (Include): Use <stdio.h> instead of snprintf.h.
51217         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51218         HAVE_DECL_SNPRINTF.
51219         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
51220         * lib/getaddrinfo.c: Likewise.
51221
51222         * modules/stdio: New file.
51223         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
51224         * lib/snprintf.h: Remove file.
51225         * lib/vsnprintf.h: Remove file.
51226         * lib/.cppi-disable: Remove snprintf.h.
51227         * m4/stdio_h.m4: New file.
51228         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
51229
51230 2007-02-20  Jim Meyering  <jim@meyering.net>
51231
51232         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
51233         used by e.g., mingw.  From Bruno Haible.
51234
51235 2007-02-19  Bruno Haible  <bruno@clisp.org>
51236
51237         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
51238         warnings.
51239         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51240
51241 2007-02-19  Bruno Haible  <bruno@clisp.org>
51242
51243         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
51244         from mingw users.
51245
51246 2007-02-19  Bruno Haible  <bruno@clisp.org>
51247
51248         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
51249         warnings.
51250         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
51251
51252 2007-02-19  Jim Meyering  <jim@meyering.net>
51253
51254         Don't use FD after a successful "fdopendir (fd)".
51255         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
51256         Reset it by calling dirfd on the just-obtained DIR*.
51257
51258         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
51259         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
51260
51261 2007-02-18  Bruno Haible  <bruno@clisp.org>
51262
51263         * lib/readlink.c: Include <unistd.h>.
51264         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
51265         HAVE_READLINK.
51266         * modules/readlink (Depends-on): Add unistd.
51267         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51268         (Include): Add <unistd.h>.
51269
51270         * lib/getlogin_r.h: Remove file.
51271         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
51272         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
51273         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
51274         HAVE_DECL_GETLOGIN_R.
51275         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
51276         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51277         (Include): Use <unistd.h> instead of getlogin_r.h.
51278
51279         * lib/getcwd.h: Remove file.
51280         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
51281         * lib/xgetcwd.c: Likewise.
51282         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
51283         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
51284         * modules/getcwd (Files): Remove lib/getcwd.h.
51285         (Depends-on): Add unistd.
51286         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51287         (Include): Use <unistd.h> instad of getcwd.h.
51288
51289         * lib/ftruncate.c: Include <unistd.h> first.
51290         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
51291         Set HAVE_FTRUNCATE.
51292         * modules/ftruncate (Depends-on): Add unistd.
51293         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51294
51295         * lib/fchdir.c: Include <unistd.h> first.
51296         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
51297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
51298         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
51299         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51300         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
51301
51302         * lib/dup2.c: Include <unistd.h> first.
51303         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
51304         HAVE_DUP2.
51305         * modules/dup2 (Depends-on): Add unistd.
51306         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51307
51308         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
51309         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
51310         REPLACE_CHOWN. Don't define chown as a macro here.
51311         * modules/chown (Depends-on): Add unistd.
51312         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51313
51314         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
51315         Add definition for GL_LINK_WARNING.
51316         (chown, dup2): New declarations.
51317         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
51318         link warning.
51319         (ftruncate): New declaration.
51320         (getcwd): New declaration, taken from old getcwd.h.
51321         (getlogin_r): New declaration, taken from old getlogin_r.h.
51322         (readlink): New declaration.
51323         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
51324         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
51325         (gl_PREREQ_UNISTD): Remove macro.
51326         (gl_UNISTD_MODULE_INDICATOR): New macro.
51327         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
51328         many new variables. Don't set UNISTD_H.
51329         * modules/unistd (Description): Change.
51330         (Depends-on): Add link-warning.
51331         (configure.ac): Update.
51332         (Makefile.am): Create unistd.h always. Substitute many new variables
51333         into it.
51334
51335 2007-02-18  Bruno Haible  <bruno@clisp.org>
51336
51337         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
51338         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
51339         HAVE_GETSUBOPT.
51340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
51341         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
51342         * lib/getsubopt.h: Remove file.
51343         * modules/getsubopt (Files): Remove lib/getsubopt.h.
51344         (Depends-on): Add stdlib.
51345         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51346         (Includes): Use <stdlib.h> instead of getsubopt.h.
51347         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
51348         Set HAVE_GETSUBOPT.
51349         * lib/getsubopt.c: Don't include getsubopt.h.
51350
51351 2007-02-18  Bruno Haible  <bruno@clisp.org>
51352
51353         * modules/fchdir (Depends-on): Add dup2.
51354
51355 2007-02-18  Bruno Haible  <bruno@clisp.org>
51356
51357         * lib/stdlib_.h: Handle glibc's special invocation convention
51358         specially.
51359
51360 2007-02-18  Bruno Haible  <bruno@clisp.org>
51361
51362         * modules/stdlib-tests: New file.
51363         * tests/test-stdlib.c: New file.
51364
51365         * modules/mkstemp (Files): Remove lib/mkstemp.h.
51366         (Depends-on): Add stdlib.
51367         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51368         (Includes): Use <stdlib.h> instead of mkstemp.h.
51369         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51370         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
51371         * lib/mkstemp.c: Don't include mkstemp.h.
51372         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
51373         * lib/stdlib--.h: Don't include mkstemp.h.
51374
51375         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
51376         (Depends-on): Add stdlib.
51377         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51378         (Includes): Use <stdlib.h> instead of mkdtemp.h.
51379         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51380         HAVE_MKDTEMP.
51381         * lib/mkdtemp.c: Don't include mkdtemp.h.
51382         * lib/clean-temp.c: Don't include mkdtemp.h.
51383
51384         * modules/exit (Files): Remove lib/exit.h.
51385         (Depends-on): Add stdlib.
51386         (Makefile.am): Remove lib_SOURCES.
51387         (Include): Use <stdlib.h> instead of exit.h.
51388         * lib/argmatch.c: Don't include exit.h.
51389         * lib/execute.c: Likewise.
51390         * lib/pagealign_alloc.c: Likewise.
51391         * lib/pipe.c: Likewise.
51392         * lib/wait-process.c: Likewise.
51393         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
51394         * lib/exitfail.c: Likewise.
51395         * lib/savewd.c: Likewise.
51396         * lib/xsetenv.c: Likewise.
51397
51398         * modules/stdlib: New file.
51399         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
51400         and extra comments about mkstemp().
51401         * lib/exit.h: Remove file.
51402         * lib/mkdtemp.h: Remove file.
51403         * lib/mkstemp.h: Remove file.
51404         * m4/stdlib_h.m4: New file.
51405         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
51406
51407 2007-02-18  Bruno Haible  <bruno@clisp.org>
51408
51409         * modules/math-tests: New file.
51410         * tests/test-math.c: New file.
51411
51412         * modules/math: New file.
51413         * modules/mathl (Files): Remove lib/mathl.h.
51414         (Depends-on): Add math.
51415         (Makefile.am): Don't mention mathl.h.
51416         (Include): Use <math.h> instead of mathl.h.
51417         * lib/math_.h: New file.
51418         * lib/mathl.h: Remove file.
51419         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
51420         mathl.h.
51421         * lib/asinl.c: Likewise.
51422         * lib/atanl.c: Likewise.
51423         * lib/ceill.c: Likewise.
51424         * lib/cosl.c: Likewise.
51425         * lib/expl.c: Likewise.
51426         * lib/floorl.c: Likewise.
51427         * lib/frexpl.c: Likewise.
51428         * lib/ldexpl.c: Likewise.
51429         * lib/logl.c: Likewise.
51430         * lib/sincosl.c: Likewise.
51431         * lib/sinl.c: Likewise.
51432         * lib/sqrtl.c: Likewise.
51433         * lib/tanl.c: Likewise.
51434         * lib/trigl.c: Likewise.
51435         * m4/math_h.m4: New file.
51436         * MODULES.html.sh (Mathematics): Add math.
51437
51438 2007-02-17  Bruno Haible  <bruno@clisp.org>
51439
51440         * modules/wctype-tests: New file.
51441         * tests/test-wctype.c: New file.
51442
51443         * modules/wchar-tests: New file.
51444         * tests/test-wchar.c: New file.
51445
51446         * modules/unistd-tests: New file.
51447         * tests/test-unistd.c: New file.
51448
51449         * modules/time-tests: New file.
51450         * tests/test-time.c: New file.
51451
51452         * modules/sysexits-tests: New file.
51453         * tests/test-sysexits.c: New file.
51454
51455         * modules/sys_time-tests: New file.
51456         * tests/test-sys_time.c: New file.
51457
51458         * modules/sys_stat-tests: New file.
51459         * tests/test-sys_stat.c: New file.
51460
51461         * modules/sys_socket-tests: New file.
51462         * tests/test-sys_socket.c: New file.
51463
51464         * modules/sys_select-tests: New file.
51465         * tests/test-sys_select.c: New file.
51466
51467         * modules/string-tests: New file.
51468         * tests/test-string.c: New file.
51469
51470         * modules/stdbool-tests: New file.
51471         * tests/test-stdbool.c: New file.
51472
51473         * modules/netinet_in-tests: New file.
51474         * tests/test-netinet_in.c: New file.
51475
51476         * modules/inttypes-tests: New file.
51477         * tests/test-inttypes.c: New file.
51478
51479         * modules/fcntl-tests: New file.
51480         * tests/test-fcntl.c: New file.
51481
51482         * modules/byteswap-tests: New file.
51483         * tests/test-byteswap.c: New file.
51484
51485         * modules/arpa_inet-tests: New file.
51486         * tests/test-arpa_inet.c: New file.
51487
51488 2007-02-17  Bruno Haible  <bruno@clisp.org>
51489
51490         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
51491         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
51492         if the corresponding module is not enabled. Emit link warnings if
51493         the function is used nevertheless.
51494         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
51495         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
51496         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
51497         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
51498         * modules/inttypes (Depends-on): Add link-warning.
51499         (Makefile.am): Copy the contents of build-aux/link-warning.h into
51500         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
51501         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
51502         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
51503         * modules/imaxdiv (configure.ac): Likewise.
51504         * modules/strtoimax (configure.ac): Likewise.
51505         * modules/strtoumax (configure.ac): Likewise.
51506
51507 2007-02-17  Bruno Haible  <bruno@clisp.org>
51508
51509         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
51510         gl_STRING_MODULE_INDICATOR_DEFAULTS.
51511         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
51512         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
51513
51514 2007-02-17  Bruno Haible  <bruno@clisp.org>
51515
51516         * modules/link-warning: New file.
51517         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
51518         * lib/string_.h (GL_LINK_WARNING): Remove definition.
51519         * modules/string (Depends-on): Add link-warning.
51520         (Makefile.am): Copy the contents of build-aux/link-warning.h into
51521         string.h.
51522         * MODULES.html.sh (Support for building libraries and executables): Add
51523         link-warning.
51524
51525 2007-02-17  Bruno Haible  <bruno@clisp.org>
51526
51527         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
51528         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
51529         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
51530         long lines.
51531
51532 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
51533             Bruno Haible  <bruno@clisp.org>
51534
51535         * modules/tmpfile: New file.
51536         * lib/tmpfile.c: New file.
51537         * m4/tmpfile.m4: New file.
51538         * MODULES.html.sh (func_all_modules): New section "Input/output".
51539
51540 2007-02-15  Bruno Haible  <bruno@clisp.org>
51541
51542         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
51543         (supports_delete_on_close): New function.
51544         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
51545
51546 2007-02-14  Bruno Haible  <bruno@clisp.org>
51547
51548         * modules/mbspcasecmp-tests: New file.
51549         * tests/test-mbspcasecmp.sh: New file.
51550         * tests/test-mbspcasecmp.c: New file.
51551
51552         New module mbspcasecmp.
51553         * modules/mbspcasecmp: New file.
51554         * lib/mbspcasecmp.c: New file.
51555         * lib/string_.h (strncasecmp): Change warning message.
51556         (mbspcasecmp): New declaration.
51557         * m4/mbspcasecmp.m4: New file.
51558         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51559         GNULIB_MBSPCASECMP.
51560         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
51561         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
51562
51563 2007-02-14  Bruno Haible  <bruno@clisp.org>
51564
51565         * modules/mbsncasecmp-tests: New file.
51566         * tests/test-mbsncasecmp.sh: New file.
51567         * tests/test-mbsncasecmp.c: New file.
51568
51569         New module mbsncasecmp.
51570         * modules/mbsncasecmp: New file.
51571         * lib/mbsncasecmp.c: New file.
51572         * lib/string_.h (mbsncasecmp): New declaration.
51573         * m4/mbsncasecmp.m4: New file.
51574         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51575         GNULIB_MBSNCASECMP.
51576         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
51577         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
51578
51579 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
51580
51581         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
51582         Verify that it doesn't overlap with our flags.
51583         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
51584         do not have the desired effect in multibyte locales; instead, use
51585         mbscasecmp.
51586         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
51587         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
51588         we don't require GNU fnmatch ourselves (if our users require it, they
51589         should do so explicitly).
51590
51591         Fix regex code so it doesn't rely on strcasecmp.
51592         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
51593         Otherwise, include gnulib's langinfo.h.
51594         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
51595         undesirable behavior in non-C locales.  Instead, rely on localecharset.
51596         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
51597         * modules/regex (FILES): Remove m4/codeset.m4.
51598         (Depends-on): Add localcharset.  Remove strcase.
51599
51600 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51601
51602         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
51603         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
51604
51605 2007-02-13  Bruno Haible  <bruno@clisp.org>
51606
51607         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
51608         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51609
51610 2007-02-12  Bruno Haible  <bruno@clisp.org>
51611
51612         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
51613         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
51614         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
51615         time warning rather than a link error.
51616
51617 2007-02-12  Bruno Haible  <bruno@clisp.org>
51618
51619         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
51620         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51621         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51622
51623 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51624
51625         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
51626         args, not 2.
51627
51628 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51629
51630         New module 'time', so that apps can include <time.h> as per
51631         POSIX and GNU instead of separate include files like time_r.h
51632         and timegm.h.  This implementation tries out a simpler approach
51633         for replacing decls in standard include files (as compared to
51634         the string module), somewhat as an experiment.
51635
51636         * config/srclist.txt: Comment out mktime.c for now.
51637         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
51638         since it doesn't apply any more.  Use generic wording instead.
51639         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
51640         'time'.
51641         * lib/time_.h, m4/time_h.m4, modules/time: New files.
51642         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
51643         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
51644         Don't include <sys/types.h>; no longer needed since we assume C89.
51645         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
51646         * lib/strftime.c: Likewise.
51647         * lib/time_r.c: Likewise.
51648         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
51649         * lib/nanosleep.c: Include <time.h> first, to check interface.
51650         * lib/strptime.c: Likewise.
51651         * lib/time_r.c: Likewise.
51652         * lib/timegm.c: Likewise.
51653         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
51654         needed.
51655         * lib/timegm.c: Don't include timegm.h; no longer needed.
51656         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
51657         time.h now handles any problems in that area.
51658         (struct timespec, nanosleep): Remove; time.h now arranges for these.
51659         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
51660         that time.h defines struct timespec.
51661         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
51662         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
51663         handles that.
51664         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
51665         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
51666         needed.  Set REPLACE_LOCALTIME.
51667         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
51668         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
51669         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
51670         nanosleep; time_h.m4 now does that.  Don't require
51671         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
51672         module handles this now.
51673         * modules/getdate (Depends-on): Remove timespec.  Add time.
51674         * modules/nanosleep (Depends-on): Likewise.
51675         * modules/stat-time (Depends-on): Likewise.
51676         * modules/nanosleep (Include): Include time.h, not timespec.h.
51677         * modules/strptime (Files): Remove lib/strptime.h.
51678         (Depends-on): Add extensions, time.
51679         (Include): Include time.h, not strptime.h.
51680         * modules/time_r (Files): Remove lib/time_r.h.
51681         (Depends-on): Add time.
51682         (Include): Include time.h, not time_r.h.
51683         * modules/timegm: Likewise.
51684         * modules/timespec (Description): Now does timespec-related decls
51685         of our own, instead of struct timespec itself.
51686         (Depends-on): Add time; remove extensions.
51687         (Maintainer): Add self.
51688         * modules/utimecmp (Depends-on): Add time; remove timespec.
51689         * modules/utimens (Depends-on): Likewise.
51690         * modules/xnanosleep (Depends-on): Likewise.
51691
51692 2007-02-11  Bruno Haible  <bruno@clisp.org>
51693
51694         * lib/c-strstr.c: Include allocsa.h.
51695         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51696         * lib/c-strcasestr.c: Include allocsa.h.
51697         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51698         * lib/strcasestr.c: Include allocsa.h.
51699         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51700         * lib/mbsstr.c: Include allocsa.h.
51701         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51702         allocsa/freesa instead of malloc/free.
51703         * lib/mbscasestr.c: Include allocsa.h.
51704         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51705         allocsa/freesa instead of malloc/free.
51706         * modules/c-strstr (Depends-on): Add allocsa.
51707         * modules/c-strcasestr (Depends-on): Likewise.
51708         * modules/strcasestr (Depends-on): Likewise.
51709         * modules/mbsstr (Depends-on): Likewise.
51710         * modules/mbscasestr (Depends-on): Likewise.
51711
51712 2007-02-11  Bruno Haible  <bruno@clisp.org>
51713
51714         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
51715
51716         * modules/mbsspn-tests: New file.
51717         * tests/test-mbsspn.sh: New file.
51718         * tests/test-mbsspn.c: New file.
51719
51720 2007-02-11  Bruno Haible  <bruno@clisp.org>
51721
51722         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
51723
51724         * modules/mbspbrk-tests: New file.
51725         * tests/test-mbspbrk.sh: New file.
51726         * tests/test-mbspbrk.c: New file.
51727
51728 2007-02-11  Bruno Haible  <bruno@clisp.org>
51729
51730         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
51731         unneeded cast.
51732
51733         * modules/mbscspn-tests: New file.
51734         * tests/test-mbscspn.sh: New file.
51735         * tests/test-mbscspn.c: New file.
51736
51737 2007-02-11  Bruno Haible  <bruno@clisp.org>
51738
51739         * modules/mbscasecmp-tests: New file.
51740         * tests/test-mbscasecmp.sh: New file.
51741         * tests/test-mbscasecmp.c: New file.
51742
51743 2007-02-11  Bruno Haible  <bruno@clisp.org>
51744
51745         Ensure O(n) worst-case complexity of mbscasestr.
51746         * lib/mbscasestr.c: Include stdbool.h.
51747         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51748         functions.
51749         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
51750         the bookkeeping indicates that it's worth it.
51751         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
51752
51753         * modules/mbscasestr-tests: New file.
51754         * tests/test-mbscasestr1.c: New file.
51755         * tests/test-mbscasestr2.sh: New file.
51756         * tests/test-mbscasestr2.c: New file.
51757         * tests/test-mbscasestr3.sh: New file.
51758         * tests/test-mbscasestr3.c: New file.
51759         * tests/test-mbscasestr4.sh: New file.
51760         * tests/test-mbscasestr4.c: New file.
51761         * m4/locale-tr.m4: New file.
51762
51763 2007-02-11  Bruno Haible  <bruno@clisp.org>
51764
51765         Ensure O(n) worst-case complexity of mbsstr.
51766         * lib/mbsstr.c: Include stdbool.h.
51767         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51768         functions.
51769         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
51770         bookkeeping indicates that it's worth it.
51771         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
51772
51773         * modules/mbsstr-tests: New file.
51774         * tests/test-mbsstr1.c: New file.
51775         * tests/test-mbsstr2.sh: New file.
51776         * tests/test-mbsstr2.c: New file.
51777         * tests/test-mbsstr3.sh: New file.
51778         * tests/test-mbsstr3.c: New file.
51779         * m4/locale-fr.m4: New file.
51780
51781 2007-02-11  Bruno Haible  <bruno@clisp.org>
51782
51783         * lib/mbsrchr.c (mbsrchr): Fix bug.
51784
51785         * modules/mbsrchr-tests: New file.
51786         * tests/test-mbsrchr.sh: New file.
51787         * tests/test-mbsrchr.c: New file.
51788
51789 2007-02-11  Bruno Haible  <bruno@clisp.org>
51790
51791         * lib/mbschr.c (mbschr): Fix bug.
51792
51793         * modules/mbschr-tests: New file.
51794         * tests/test-mbschr.sh: New file.
51795         * tests/test-mbschr.c: New file.
51796         * m4/locale-zh.m4: New file.
51797
51798 2007-02-11  Bruno Haible  <bruno@clisp.org>
51799
51800         Support for copying multibyte string iterators.
51801         * lib/mbiter.h: Include <string.h>.
51802         (mbiter_multi_copy): New function.
51803         (mbi_copy): New macro.
51804         * lib/mbuiter.h: Include <string.h>.
51805         (mbuiter_multi_copy): New function.
51806         (mbui_copy): New macro.
51807
51808 2007-02-11  Bruno Haible  <bruno@clisp.org>
51809
51810         New module mbslen.
51811         * modules/mbslen: New file.
51812         * lib/mbslen.c: New file.
51813         * lib/string_.h (mbslen): New declaration.
51814         * m4/mbslen.m4: New file.
51815         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51816         GNULIB_MBSLEN.
51817         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
51818         * MODULES.html.sh (Internationalization functions): Add mbslen.
51819
51820 2007-02-11  Bruno Haible  <bruno@clisp.org>
51821
51822         Ensure O(n) worst-case complexity of strcasestr substitute.
51823         * lib/strcasestr.c: Include stdbool.h.
51824         (knuth_morris_pratt): New function.
51825         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51826         bookkeeping indicates that it's worth it.
51827         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
51828
51829         * modules/strcasestr-tests: New file.
51830         * tests/test-strcasestr.c: New file.
51831
51832 2007-02-11  Bruno Haible  <bruno@clisp.org>
51833
51834         Ensure O(n) worst-case complexity of c_strcasestr.
51835         * lib/c-strcasestr.c: Include stdbool.h, string.h.
51836         (knuth_morris_pratt): New function.
51837         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
51838         the bookkeeping indicates that it's worth it.
51839         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
51840
51841         * modules/c-strcasestr-tests: New file.
51842         * tests/test-c-strcasestr.c: New file.
51843
51844 2007-02-11  Bruno Haible  <bruno@clisp.org>
51845
51846         Ensure O(n) worst-case complexity of c_strstr.
51847         * lib/c-strstr.c: Include stdbool.h, string.h.
51848         (knuth_morris_pratt): New function.
51849         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51850         bookkeeping indicates that it's worth it.
51851         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
51852
51853         * lib/c-strstr.c: Complete rewrite for maintainability.
51854
51855         * modules/c-strstr-tests: New file.
51856         * tests/test-c-strstr.c: New file.
51857
51858 2007-02-11  Bruno Haible  <bruno@clisp.org>
51859
51860         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
51861         5.2.1 and earlier, whereby \055 was treated just like the range
51862         delimiter '-'.
51863         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51864
51865 2007-02-08  Bruno Haible  <bruno@clisp.org>
51866
51867         * modules/regex (Depends-on): Add stdbool.
51868         Reported by Dalibor Topic <robilad@kaffe.org>.
51869
51870 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
51871
51872         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
51873         Prefer returning from main to exiting from it.
51874         Remove unnecessary parens after sizeof.
51875
51876 2007-02-05  Bruno Haible  <bruno@clisp.org>
51877
51878         New module mbssep.
51879         * modules/mbssep: New file.
51880         * lib/mbssep.c: New file.
51881         * lib/string_.h (strsep): Add a conditional link warning.
51882         (mbssep): New declaration.
51883         * m4/mbssep.m4: New file.
51884         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51885         GNULIB_MBSSEP.
51886         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
51887         * MODULES.html.sh (Internationalization functions): Add mbssep.
51888
51889 2007-02-05  Bruno Haible  <bruno@clisp.org>
51890
51891         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
51892         Optimize search in case of 1 delimiter.
51893
51894 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51895
51896         * lib/acl.h: Include sys/types.h before sys/acl.h.
51897
51898 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51899
51900         Merge upstream fix for glibc bugzilla #3957:
51901
51902         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
51903
51904         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
51905         bit for RE_HAT_LISTS_NOT_NEWLINE.
51906         (build_charclass_op): Remove bogus comment.
51907
51908 2007-02-05  Simon Josefsson  <simon@josefsson.org>
51909
51910         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
51911
51912 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51913
51914         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
51915         * lib/memmem.c [!defined _LIBC]: Include config.h.
51916
51917 2007-02-04  Bruno Haible  <bruno@clisp.org>
51918
51919         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
51920         warning message.
51921
51922 2007-02-04  Bruno Haible  <bruno@clisp.org>
51923
51924         New module mbstok_r.
51925         * modules/mbstok_r: New file.
51926         * lib/mbstok_r.c: New file.
51927         * lib/string_.h (strtok_r): Change argument names to match the
51928         comments. Add a conditional link warning.
51929         (mbstok_r): New declaration.
51930         * m4/mbstok_r.m4: New file.
51931         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51932         GNULIB_MBSTOK_R.
51933         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
51934         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
51935
51936 2007-02-04  Bruno Haible  <bruno@clisp.org>
51937
51938         New module mbsspn.
51939         * modules/mbsspn: New file.
51940         * lib/mbsspn.c: New file.
51941         * lib/string_.h (strspn): Add a conditional link warning.
51942         (mbsspn): New declaration.
51943         * m4/mbsspn.m4: New file.
51944         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51945         GNULIB_MBSSPN.
51946         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
51947         * MODULES.html.sh (Internationalization functions): Add mbsspn.
51948
51949 2007-02-04  Bruno Haible  <bruno@clisp.org>
51950
51951         New module mbspbrk.
51952         * modules/mbspbrk: New file.
51953         * lib/mbspbrk.c: New file.
51954         * lib/string_.h (strpbrk): Add a conditional link warning.
51955         (mbspbrk): New declaration.
51956         * m4/mbspbrk.m4: New file.
51957         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51958         GNULIB_MBSPBRK.
51959         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
51960         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
51961
51962 2007-02-04  Bruno Haible  <bruno@clisp.org>
51963
51964         New module mbscspn.
51965         * modules/mbscspn: New file.
51966         * lib/mbscspn.c: New file.
51967         * lib/string_.h (strcspn): Add a conditional link warning.
51968         (mbscspn): New declaration.
51969         * m4/mbscspn.m4: New file.
51970         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51971         GNULIB_MBSCSPN.
51972         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
51973         * MODULES.html.sh (Internationalization functions): Add mbscspn.
51974
51975 2007-02-04  Bruno Haible  <bruno@clisp.org>
51976
51977         New module mbscasestr, reduced goal of strcasestr.
51978         * modules/mbscasestr: New file.
51979         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
51980         (mbscasestr): Renamed from strcasestr.
51981         * lib/strcasestr.c: Don't include mbuiter.h.
51982         (strcasestr): Remove support for multibyte locales.
51983         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
51984         Change the conditional link warning.
51985         (mbscasestr): New declaration.
51986         * m4/mbscasestr.m4: New file.
51987         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
51988         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
51989         REPLACE_STRCASESTR.
51990         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
51991         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51992         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51993         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
51994         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
51995         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51996         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
51997         (Depends-on): Remove mbuiter.
51998         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
51999
52000 2007-02-04  Bruno Haible  <bruno@clisp.org>
52001
52002         Simplify handling of strncasecmp.
52003         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
52004         the conditional link warning.
52005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52006         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
52007         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
52008         * modules/strcase (configure.ac): Don't invoke
52009         gl_STRING_MODULE_INDICATOR.
52010         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
52011
52012 2007-02-04  Bruno Haible  <bruno@clisp.org>
52013
52014         New module mbscasecmp, reduced goal of strcasecmp.
52015         * modules/mbscasecmp: New file.
52016         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
52017         (mbscasecmp): Renamed from strcasecmp.
52018         * lib/strcasecmp.c: Don't include mbuiter.h.
52019         (strcasecmp): Remove support for multibyte locales.
52020         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
52021         Change the conditional link warning.
52022         (mbscasecmp): New declaration.
52023         * m4/mbscasecmp.m4: New file.
52024         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
52025         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
52026         REPLACE_STRCASECMP.
52027         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
52028         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52029         GNULIB_MBSCASECMP.
52030         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
52031         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
52032         * modules/strcase (Files): Remove m4/mbrtowc.m4.
52033         (Depends-on): Remove mbuiter.
52034         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
52035
52036 2007-02-04  Bruno Haible  <bruno@clisp.org>
52037
52038         New module mbsstr. Remove module strstr.
52039         * modules/mbsstr: New file.
52040         * modules/strstr: Remove file.
52041         * lib/mbsstr.c: Renamed from lib/strstr.c.
52042         (mbsstr): Renamed from strstr.
52043         * lib/string_.h (strstr): Remove declaration. Change the conditional
52044         link warning.
52045         (mbsstr): New declaration.
52046         * m4/mbsstr.m4: New file.
52047         * m4/strstr.m4: Remove file.
52048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
52049         REPLACE_STRSTR.
52050         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
52051         Don't initialize GNULIB_STRSTR.
52052         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
52053         substitute GNULIB_STRSTR and REPLACE_STRSTR.
52054         * MODULES.html.sh (Internationalization functions): Add mbsstr.
52055         (Support for systems lacking ANSI C 89): Remove strstr.
52056
52057 2007-02-04  Bruno Haible  <bruno@clisp.org>
52058
52059         New module mbsrchr.
52060         * modules/mbsrchr: New file.
52061         * lib/mbsrchr.c: New file.
52062         * lib/string_.h (strrchr): Add a conditional link warning.
52063         (mbsrchr): New declaration.
52064         * m4/mbsrchr.m4: New file.
52065         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52066         GNULIB_MBSRCHR.
52067         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
52068         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
52069
52070 2007-02-04  Bruno Haible  <bruno@clisp.org>
52071
52072         New module mbschr.
52073         * modules/mbschr: New file.
52074         * lib/mbschr.c: New file.
52075         * lib/string_.h (strchr): Add a conditional link warning.
52076         (mbschr): New declaration.
52077         * m4/mbschr.m4: New file.
52078         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52079         GNULIB_MBSCHR.
52080         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
52081         * MODULES.html.sh (Internationalization functions): Add mbschr.
52082
52083 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52084
52085         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
52086
52087         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
52088
52089 2007-02-04  Bruno Haible  <bruno@clisp.org>
52090
52091         New module description section 'configure.ac-early'.
52092         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
52093         (func_get_autoconf_early_snippet): New function.
52094         (func_import, func_create_testdir): Use it. Remove special cases for
52095         modules 'extensions' and 'lock'.
52096         * modules/extensions (configure.ac-early): Require
52097         gl_USE_SYSTEM_EXTENSIONS.
52098         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
52099
52100 2007-02-04  Bruno Haible  <bruno@clisp.org>
52101
52102         Make use of gcj-4.3's -fsource and -ftarget option.
52103         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
52104         and if so try the options -fsource and -ftarget.
52105         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
52106         source_version, ftarget_option, target_version arguments.
52107         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
52108         (is_envjavac_oldgcj_14_14_usable): Renamed from
52109         is_envjavac_gcj_14_14_usable.
52110         (is_envjavac_oldgcj_14_13_usable): Renamed from
52111         is_envjavac_gcj_14_13_usable.
52112         (is_gcj_present): Update.
52113         (is_gcj_43, is_gcj43_usable): New functions.
52114         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
52115         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
52116         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
52117         try the options -fsource and -ftarget.
52118
52119 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52120
52121         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
52122         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
52123         larger value.
52124
52125 2007-02-03  Jim Meyering  <jim@meyering.net>
52126
52127         Give tools a better chance to allocate space for very large buffers.
52128         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
52129
52130         Make pwd and readlink work also when run with an unreadable parent dir
52131         on systems with openat support.
52132         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
52133         provided getcwd function, even when we have openat support.
52134         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
52135
52136 2007-02-02  Bruno Haible  <bruno@clisp.org>
52137
52138         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52139         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
52140         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
52141         portability problems if one of these functions is only used on specific
52142         platforms.
52143         Reported by Paul Eggert.
52144
52145 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
52146
52147         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
52148         is causing more trouble than it's curing.
52149         * lib/regex_internal.h (__mempcpy): Remove.
52150         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
52151         (and make the code a tad smaller to boot).
52152         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
52153
52154 2007-02-02  Jim Meyering  <jim@meyering.net>
52155
52156         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
52157         section, not in the Makefile.am: one.
52158
52159 2007-02-02  Eric Blake  <ebb9@byu.net>
52160
52161         * lib/strchrnul.c: Always include config.h first.
52162
52163         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
52164         gnulib strstr is not necessary here.
52165
52166 2007-02-02  Simon Josefsson  <simon@josefsson.org>
52167
52168         * m4/socklen.m4: Fix typo.
52169
52170 2007-02-02  Eric Blake  <ebb9@byu.net>
52171
52172         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
52173         * modules/netinet_in (Makefile.am): Likewise.
52174
52175 2007-02-01  Bruno Haible  <bruno@clisp.org>
52176
52177         * lib/string_.h (GL_LINK_WARNING): New macro.
52178         (strcasecmp, strstr, strcasestr): If provided by the system,
52179         conditionally define as a macro that leads to a warning instead of to
52180         an error.
52181         (strncasecmp): Conditionally define as a macro that leads to a warning.
52182
52183 2007-02-01  Karl Berry  <karl@gnu.org>
52184
52185         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
52186
52187 2007-02-01  Bruno Haible  <bruno@clisp.org>
52188
52189         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
52190         renamings.
52191
52192 2007-02-01  Eric Blake  <ebb9@byu.net>
52193
52194         * modules/regex (Depends-on): Revert dependence on mempcpy.
52195         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
52196         module's definition of mempcpy.
52197         Reported by Paul Eggert.
52198
52199 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52200
52201         * lib/string_.h: If the gnulib module XYZ is not present, undefine
52202         the symbol XYZ before redefining it.  This fixes a problem with
52203         programs that don't use XYZ, when compiled on systems that define
52204         XYZ to something else.
52205
52206 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
52207
52208         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
52209         occurs when "mkdir -m foo" creates a setgid directory that is (1)
52210         writeable to group or other and (2) is intended to have a special
52211         mode bit that is set or cleared.  In such a case, the directory
52212         should be neither group- nor other-writeable until the special
52213         mode bits are right.
52214
52215 2007-01-31  Eric Blake  <ebb9@byu.net>
52216
52217         * modules/mountlist (Depends-on): Add strstr.
52218
52219         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
52220         bug.
52221         * modules/string (Makefile.am): Remove redundant replacement.
52222         * modules/regex (Depends-on): Add mempcpy.
52223
52224 2007-01-31  Bruno Haible  <bruno@clisp.org>
52225
52226         New module description field 'Link'.
52227         * gnulib-tool (func_usage): Document --extract-link-directive.
52228         (sed_extract_prog): Recognize 'Link' directive.
52229         (func_get_link_directive): New function.
52230         (func_import): Show summary of link directives.
52231         Handle --extract-link-directive option.
52232         * modules/acl (Link): New section.
52233         * modules/clock-time (Link): New section.
52234         * modules/euidaccess (Link): New section.
52235         * modules/gettext (Link): New section.
52236         * modules/iconv (Link): New section.
52237         * modules/lock (Link): New section.
52238         * modules/nanosleep (Link): New section.
52239         * modules/readline (Link): New section.
52240
52241 2007-01-27  Bruno Haible  <bruno@clisp.org>
52242
52243         Enforce the use of gnulib modules for unportable <string.h> functions.
52244         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
52245         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
52246         (gl_HEADER_STRING_H_BODY): Require it.
52247         * lib/string_.h: If the gnulib module XYZ is not present, redefine
52248         the symbol XYZ to one that gives a link error.
52249         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
52250         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
52251         * modules/mempcpy (configure.ac): Likewise.
52252         * modules/memrchr (configure.ac): Likewise.
52253         * modules/stpcpy (configure.ac): Likewise.
52254         * modules/stpncpy (configure.ac): Likewise.
52255         * modules/strcase (configure.ac): Likewise.
52256         * modules/strcasestr (configure.ac): Likewise.
52257         * modules/strchrnul (configure.ac): Likewise.
52258         * modules/strdup (configure.ac): Likewise.
52259         * modules/strndup (configure.ac): Likewise.
52260         * modules/strnlen (configure.ac): Likewise.
52261         * modules/strpbrk (configure.ac): Likewise.
52262         * modules/strsep (configure.ac): Likewise.
52263         * modules/strstr (configure.ac): Likewise.
52264         * modules/strtok_r (configure.ac): Likewise.
52265
52266 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
52267
52268         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
52269
52270 2007-01-30  Jim Meyering  <jim@meyering.net>
52271
52272         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
52273
52274 2007-01-29  Bruno Haible  <bruno@clisp.org>
52275
52276         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
52277         * lib/execute.c: Likewise.
52278         * lib/pipe.c: Likewise.
52279         * lib/printf-args.h: Likewise.
52280         * lib/printf-args.c: Likewise.
52281         * lib/printf-parse.c: Likewise.
52282         * lib/vasnprintf.c: Likewise.
52283
52284 2007-01-29  Eric Blake  <ebb9@byu.net>
52285
52286         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
52287         declaration.
52288
52289 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
52290
52291         * lib/strptime.h (strptime): Use 'restrict' for args where
52292         POSIX requires this.
52293         * lib/strptime.c (strptime): Likewise.
52294         Change license notice from LGPL to GPL, since gnulib-tool will
52295         change this as needed.
52296         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
52297         defined.
52298         Include "strptime.h" first, to check interface.
52299         Do not #undef _LIBC and _NL_CURRENT.
52300         Do not include <stdlib.h>; no longer needed.
52301         Include "time_r.h" and declare ptime_locale_status
52302         only if _LIBC is not defined.
52303         (__P): Remove unused macro.
52304         (match_string): Bring back glibc version, but use it only if _LIBC
52305         is defined.
52306         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
52307         Remove unnecessary assertion and abort() call.
52308         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
52309         * m4/strptime.m4: Fix serial number comment.
52310         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
52311         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
52312         (Depends-on): Add time_r.
52313
52314 2007-01-29  Bruno Haible  <bruno@clisp.org>
52315
52316         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52317         strptime.
52318         * modules/strptime (Depends-on): Add stdbool.
52319         * lib/strptime.h: Include <time.h> always. Add comments.
52320
52321 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52322
52323         * modules/strptime: New file.
52324         * lib/strptime.h: New file.
52325         * lib/strptime.c: New file.
52326         * m4/strptime.m4: New file.
52327
52328 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52329
52330         * MODULES.html.sh: New module mpsort.
52331         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
52332
52333         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
52334         a circularity problem with HP-UX ia64 reported by Bob Proulx in
52335         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
52336         All uses changed.
52337         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
52338         All uses changed.
52339         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
52340         to _Restrict_.
52341         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
52342         the parameter matches the prototype.
52343
52344 2007-01-28  Jim Meyering  <jim@meyering.net>
52345
52346         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
52347         sys/time.h here, reverting that part of the previous patch:
52348         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
52349
52350 2007-01-28  Bruno Haible  <bruno@clisp.org>
52351
52352         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
52353         value of $(SYS_TIME_H).
52354         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
52355         remove it conditionally, too. [added by Jim Meyering]
52356         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
52357         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52358         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
52359         GETTIMEOFDAY_REPLACEMENT to 1.
52360
52361 2007-01-28  Bruno Haible  <bruno@clisp.org>
52362
52363         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
52364         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
52365         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
52366         Set UNISTD_H instead of UNISTD_H2.
52367         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
52368
52369 2007-01-28  Bruno Haible  <bruno@clisp.org>
52370
52371         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
52372         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
52373
52374 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52375
52376         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
52377         (func_create_testdir): Ensure C locale for `grep' and `tr'
52378         character ranges.
52379         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
52380         ACLOCAL_AMFLAGS parsing state machine.
52381
52382 2007-01-27  Bruno Haible  <bruno@clisp.org>
52383
52384         * modules/unistr/base: Update.
52385
52386 2007-01-27  Bruno Haible  <bruno@clisp.org>
52387
52388         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
52389         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
52390         * modules/unistr/u32-mbtouc-unsafe: Renamed from
52391         modules/unistr/u32-mbtouc.
52392         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
52393         * lib/unistr.h: Update.
52394         * lib/linebreak.c: Update.
52395         * modules/unistr/u32-mbtouc: Renamed from
52396         modules/unistr/u32-mbtouc-safe.
52397         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
52398         * lib/unistr.h: Update.
52399         * lib/unistr/u32-to-u8.c: Update.
52400         * lib/unistr/u32-to-u16.c: Update.
52401
52402 2007-01-27  Bruno Haible  <bruno@clisp.org>
52403
52404         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
52405         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
52406         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
52407         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
52408         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
52409         * modules/unistr/u16-mbtouc-unsafe: Renamed from
52410         modules/unistr/u16-mbtouc.
52411         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
52412         * lib/unistr.h: Update.
52413         * lib/linebreak.c: Update.
52414         * modules/linebreak: Update.
52415         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
52416         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
52417         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
52418         * modules/unistr/u16-mbtouc: Renamed from
52419         modules/unistr/u16-mbtouc-safe.
52420         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
52421         * lib/unistr.h: Update.
52422         * lib/unistr/u16-to-u8.c: Update.
52423         * modules/unistr/u16-to-u8: Update.
52424         * lib/unistr/u16-to-u32.c: Update.
52425         * modules/unistr/u16-to-u32: Update.
52426
52427 2007-01-27  Bruno Haible  <bruno@clisp.org>
52428
52429         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
52430         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
52431         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
52432         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
52433         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
52434         * modules/unistr/u8-mbtouc-unsafe: Renamed from
52435         modules/unistr/u8-mbtouc.
52436         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
52437         * lib/unistr.h: Update.
52438         * lib/striconveh.c: Update.
52439         * modules/striconveh: Update.
52440         * lib/linebreak.c: Update.
52441         * modules/linebreak: Update.
52442         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
52443         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
52444         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
52445         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
52446         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
52447         * lib/unistr.h: Update.
52448         * lib/striconveh.c: Update.
52449         * modules/striconveh: Update.
52450         * lib/unistr/u8-to-u16.c: Update.
52451         * modules/unistr/u8-to-u16: Update.
52452         * lib/unistr/u8-to-u32.c: Update.
52453         * modules/unistr/u8-to-u32: Update.
52454
52455 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52456
52457         Sync from Libtool.
52458         * lib/argz.c: Do not include strings.h nor memory.h, include
52459         string.h unconditionally.  Patch by Simon Josefsson.
52460
52461 2007-01-27  Bruno Haible  <bruno@clisp.org>
52462
52463         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
52464         from gl_HEADER_STRING_H_BODY.
52465         (gl_HEADER_STRING_H_BODY): Require it.
52466         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
52467         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52468         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52469         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52470         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52471         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
52472         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52473         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52474         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
52475         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52476         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52477         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
52478         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52479         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52480         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52481
52482 2007-01-27  Bruno Haible  <bruno@clisp.org>
52483
52484         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
52485         check_PROGRAMS into noinst_PROGRAMS.
52486         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
52487         check_PROGRAMS in this case.
52488         (func_import): Set for_test to false.
52489         (func_create_testdir): Set for_test to true.
52490
52491 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52492             Bruno Haible  <bruno@clisp.org>
52493
52494         * modules/strcasestr (Files): Remove lib/strcasestr.h.
52495         (Depends-on): Add string.
52496         (Includes): Use <string.h> instead of strcasestr.h.
52497         * modules/string (Makefile.am): Also substitute the value of
52498         REPLACE_STRCASESTR.
52499         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
52500         assume strcasestr is declared in <string.h> not <strings.h>. Also
52501         set REPLACE_STRCASESTR.
52502         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
52503         REPLACE_STRCASESTR.
52504         * lib/strcasestr.h: Remove file.
52505         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
52506         * lib/string_.h (strcasestr): New declaration.
52507
52508 2007-01-27  Bruno Haible  <bruno@clisp.org>
52509
52510         * lib/string_.h: Use 'extern'.
52511
52512 2007-01-27  Jim Meyering  <jim@meyering.net>
52513
52514         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
52515         of set-but-not-used local, "q".
52516
52517         * lib/mempcpy.c: Include <config.h> before <string.h>.
52518         This fixes a compilation error on HP-UX, due to the system's
52519         "restrict"-using mempcpy prototype.
52520
52521 2007-01-26  Bruno Haible  <bruno@clisp.org>
52522
52523         Small optimization.
52524         * lib/javacomp.c: Include c-strstr.h.
52525          (is_envjavac_gcj): Use c_strstr instead of strstr.
52526         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
52527
52528 2007-01-26  Bruno Haible  <bruno@clisp.org>
52529
52530         * MODULES.html.sh (Unicode string functions): Add the new modules.
52531
52532         * modules/uniconv/u32-strconv-to-locale: New file.
52533         * lib/uniconv/u32-strconv-to-locale.c: New file.
52534
52535         * modules/uniconv/u16-strconv-to-locale: New file.
52536         * lib/uniconv/u16-strconv-to-locale.c: New file.
52537
52538         * modules/uniconv/u8-strconv-to-locale: New file.
52539         * lib/uniconv/u8-strconv-to-locale.c: New file.
52540
52541         * modules/uniconv/u32-strconv-from-locale: New file.
52542         * lib/uniconv/u32-strconv-from-locale.c: New file.
52543
52544         * modules/uniconv/u16-strconv-from-locale: New file.
52545         * lib/uniconv/u16-strconv-from-locale.c: New file.
52546
52547         * modules/uniconv/u8-strconv-from-locale: New file.
52548         * lib/uniconv/u8-strconv-from-locale.c: New file.
52549
52550         * modules/uniconv/u32-strconv-to-enc: New file.
52551         * lib/uniconv/u32-strconv-to-enc.c: New file.
52552         * modules/uniconv/u32-strconv-to-enc-tests: New file.
52553         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
52554
52555         * modules/uniconv/u16-strconv-to-enc: New file.
52556         * lib/uniconv/u16-strconv-to-enc.c: New file.
52557         * lib/uniconv/u-strconv-to-enc.h: New file.
52558         * modules/uniconv/u16-strconv-to-enc-tests: New file.
52559         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
52560
52561         * modules/uniconv/u8-strconv-to-enc: New file.
52562         * lib/uniconv/u8-strconv-to-enc.c: New file.
52563         * modules/uniconv/u8-strconv-to-enc-tests: New file.
52564         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
52565
52566         * modules/uniconv/u32-strconv-from-enc: New file.
52567         * lib/uniconv/u32-strconv-from-enc.c: New file.
52568         * modules/uniconv/u32-strconv-from-enc-tests: New file.
52569         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
52570
52571         * modules/uniconv/u16-strconv-from-enc: New file.
52572         * lib/uniconv/u16-strconv-from-enc.c: New file.
52573         * modules/uniconv/u16-strconv-from-enc-tests: New file.
52574         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
52575
52576         * modules/uniconv/u8-strconv-from-enc: New file.
52577         * lib/uniconv/u8-strconv-from-enc.c: New file.
52578         * lib/uniconv/u-strconv-from-enc.h: New file.
52579         * modules/uniconv/u8-strconv-from-enc-tests: New file.
52580         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
52581
52582         * modules/uniconv/u32-conv-from-enc: New file.
52583         * lib/uniconv/u32-conv-from-enc.c: New file.
52584         * modules/uniconv/u32-conv-from-enc-tests: New file.
52585         * tests/uniconv/test-u32-conv-from-enc.c: New file.
52586
52587         * modules/uniconv/u16-conv-from-enc: New file.
52588         * lib/uniconv/u16-conv-from-enc.c: New file.
52589         * lib/uniconv/u-conv-from-enc.h: New file.
52590         * modules/uniconv/u16-conv-from-enc-tests: New file.
52591         * tests/uniconv/test-u16-conv-from-enc.c: New file.
52592
52593         * modules/uniconv/u8-conv-from-enc: New file.
52594         * lib/uniconv/u8-conv-from-enc.c: New file.
52595         * modules/uniconv/u8-conv-from-enc-tests: New file.
52596         * tests/uniconv/test-u8-conv-from-enc.c: New file.
52597
52598         * modules/uniconv/base: New file.
52599         * lib/uniconv.h: New file.
52600
52601 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52602
52603         * doc/gnulib-tool.texi (Initial import): Update to match current
52604         behavior with strdup module.
52605         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
52606         * lib/memmem.h: Remove; all uses removed.  This is now done
52607         by <string.h>.
52608         * lib/mempcpy.h: Likewise.
52609         * lib/memrchr.h: Likewise.
52610         * lib/stpcpy.h: Likewise.
52611         * lib/stpncpy.h: Likewise.
52612         * lib/strcase.h: Likewise.
52613         * lib/strchrnul.h: Likewise.
52614         * lib/strdup.h: Likewise.
52615         * lib/strndup.h: Likewise.
52616         * lib/strnlen.h: Likewise.
52617         * lib/strpbrk.h: Likewise.
52618         * lib/strsep.h: Likewise.
52619         * lib/strstr.h: Likewise.
52620         * lib/strtok_r.h: Likewise.
52621         * lib/string_.h: New file.
52622         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
52623         Rely on <string.h> instead.
52624         * lib/canon-host.c: Likewise.
52625         * lib/chdir-long.c: Likewise.
52626         * lib/concatpath.c: Likewise.
52627         * lib/exclude.c: Likewise.
52628         * lib/fchdir.c: Likewise.
52629         * lib/getaddrinfo.c: Likewise.
52630         * lib/getcwd.c: Likewise.
52631         * lib/getsubopt.c: Likewise.
52632         * lib/glob.c: Likewise.
52633         * lib/hard-locale.c: Likewise.
52634         * lib/iconvme.c: Likewise.
52635         * lib/javacomp.c: Likewise.
52636         * lib/mempcpy.c: Likewise.
52637         * lib/memrchr.c: Likewise.
52638         * lib/regex_internal.h: Likewise.
52639         * lib/stpncpy.c: Likewise.
52640         * lib/strcasecmp.c: Likewise.
52641         * lib/strchrnul.c: Likewise.
52642         * lib/strdup.c: Likewise.
52643         * lib/striconv.c: Likewise.
52644         * lib/striconveh.c: Likewise.
52645         * lib/striconveha.c: Likewise.
52646         * lib/strncasecmp.c: Likewise.
52647         * lib/strndup.c: Likewise.
52648         * lib/strnlen.c: Likewise.
52649         * lib/strsep.c: Likewise.
52650         * lib/strstr.c: Likewise.
52651         * lib/strtok_r.c: Likewise.
52652         * lib/userspec.c: Likewise.
52653         * lib/w32spawn.h: Likewise.
52654         * lib/xstrndup.c: Likewise.
52655         * lib/mountlist.c (strstr): Remove decl.
52656         * m4/string_h.m4: New file.
52657         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
52658         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
52659         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
52660         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
52661         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
52662         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
52663         Set REPLACE_STRCASECMP if necessary.
52664         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
52665         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
52666         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
52667         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
52668         HAVE_DECL_STRDUP if necessary.
52669         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
52670         since gl_FUNC_STRNDUP does that now.
52671         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
52672         Check for decl here...
52673         (gl_PREREQ_STRNLEN): ... not here.
52674         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
52675         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
52676         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
52677         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
52678         necessary.
52679         * modules/string: New file.
52680         * modules/memmem (Files): Remove special-purpose include file.
52681         (Depends-on): Add string.
52682         (Include): Include <string.h>, not the removed file.
52683         * modules/mempcpy: Likewise.
52684         * modules/memrchr: Likewise.
52685         * modules/stpcpy: Likewise.
52686         * modules/stpncpy: Likewise.
52687         * modules/strcase: Likewise.
52688         * modules/strchrnul: Likewise.
52689         * modules/strdup: Likewise.
52690         * modules/strndup: Likewise.
52691         * modules/strnlen: Likewise.
52692         * modules/strpbrk: Likewise.
52693         * modules/strsep: Likewise.
52694         * modules/strstr: Likewise.
52695         * modules/strtok_r: Likewise.
52696         * tests/test-dirname.c: Don't include "strdup.h", since
52697         <string.h> now suffices.
52698         * tests/test-memmem.c: Don't include "memmem.h", since
52699         <string.h> now suffices.
52700
52701 2007-01-25  Bruno Haible  <bruno@clisp.org>
52702
52703         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
52704         *resultp is 0.
52705
52706         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
52707         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
52708         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
52709         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
52710
52711         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
52712         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
52713         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
52714         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
52715         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
52716         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
52717
52718 2007-01-24  Bruno Haible  <bruno@clisp.org>
52719
52720         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
52721         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
52722         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
52723         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
52724         gl_FUNC_FTS_CORE.
52725         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
52726         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
52727         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52728         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
52729         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
52730         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
52731         gl_FUNC_FCHOWNAT.
52732         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
52733         gl_FUNC_STRFTIME.
52734         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
52735         Reported by Ralf Wildenhues.
52736
52737 2007-01-24  Bruno Haible  <bruno@clisp.org>
52738
52739         Drop AC_REQUIRE calls that are redundant with the module dependencies.
52740         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
52741         gl_GETADDRINFO.
52742         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
52743         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
52744         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
52745
52746 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
52747
52748         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
52749         Don't use 'exit'; just return from 'main'.
52750         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
52751
52752         * lib/fnmatch_.h: Readjust white space and comments to match
52753         glibc, to avoid spurious diffs.
52754
52755 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52756
52757         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
52758         2004-12-01 change by Jakub Jelinek, since this code won't compile
52759         if !LIBC.  Problem reported by Bob Proulx.
52760
52761 2007-01-23  Bruno Haible  <bruno@clisp.org>
52762
52763         * lib/striconveh.c: Include c-strcaseeq.h.
52764         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
52765         * modules/striconveh (Depends-on): Add c-strcaseeq.
52766
52767 2007-01-23  Bruno Haible  <bruno@clisp.org>
52768
52769         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
52770
52771         * modules/c-strcaseeq: New file.
52772         * lib/c-strcaseeq.h: New file.
52773
52774         * modules/streq: New file.
52775         * lib/streq.h: New file.
52776
52777 2007-01-23  Bruno Haible  <bruno@clisp.org>
52778
52779         * modules/striconveha-tests: New file.
52780         * tests/test-striconveha.c: New file.
52781
52782         * lib/striconveha.h: Include <stdbool.h>.
52783         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
52784         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
52785         (mem_iconveha_notranslit): Renamed from mem_iconveha.
52786         (mem_iconveha): New function.
52787         (str_iconveha_notranslit): Renamed from str_iconveha.
52788         (str_iconveha): New function.
52789         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
52790         c-strcase.
52791
52792 2007-01-23  Bruno Haible  <bruno@clisp.org>
52793
52794         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
52795         encodings without forgiving before trying any encoding with handler.
52796         (str_iconveha): Try all encodings without forgiving before trying any
52797         encoding with handler.
52798
52799 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52800
52801         Import the following changes from libc.
52802
52803         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52804
52805         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
52806
52807         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52808
52809         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
52810         normal_bracket label.
52811
52812         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
52813
52814         [BZ #361]
52815         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
52816         to normal_bracket after fetching the next character.
52817
52818 2007-01-22  Bruno Haible  <bruno@clisp.org>
52819
52820         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
52821         argument.
52822         * lib/striconveh.c (iconv_carefully_1): New function.
52823         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
52824         argument.
52825         (str_cd_iconveh): Update.
52826         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
52827         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
52828         * tests/test-striconveh.c (MAGIC): New macro.
52829         (new_offsets): New function.
52830         (main): Test call with and without offsets.
52831
52832 2007-01-22  Bruno Haible  <bruno@clisp.org>
52833
52834         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
52835         * modules/sys_select (Makefile.am): Likewise.
52836         * modules/sys_socket (Makefile.am): Likewise.
52837         * modules/sys_time (Makefile.am): Likewise.
52838
52839 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52840
52841         * modules/gettimeofday (License): Change from GPL to LGPL, since
52842         gettimeofday is a library function.
52843
52844 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52845
52846         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
52847
52848 2007-01-21  Bruno Haible  <bruno@clisp.org>
52849
52850         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
52851
52852 2007-01-21  Bruno Haible  <bruno@clisp.org>
52853
52854         * modules/striconveha: New file.
52855         * lib/striconveha.h: New file.
52856         * lib/striconveha.c: New file.
52857         * MODULES.html.sh (Internationalization functions): Add striconveha.
52858         * lib/striconv.c (str_iconv): Optimize the case of an empty input
52859         string.
52860         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
52861
52862 2007-01-21  Bruno Haible  <bruno@clisp.org>
52863
52864         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
52865         * lib/striconveh.c (str_iconveh): Likewise.
52866
52867 2007-01-21  Bruno Haible  <bruno@clisp.org>
52868
52869         * lib/striconveh.h (mem_iconveh): New declaration.
52870         * lib/striconveh.c (mem_iconveh): New function.
52871         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
52872
52873 2007-01-21  Bruno Haible  <bruno@clisp.org>
52874
52875         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
52876
52877         * lib/striconveh.h (mem_cd_iconveh): Change specification.
52878         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
52879         original result buffer.
52880         (str_cd_iconveh): Update.
52881         * tests/test-striconveh.c (main): Update.
52882
52883         * lib/striconv.h (mem_cd_iconv): Change specification.
52884         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
52885         result buffer.
52886         (str_cd_iconv): Update.
52887         * tests/test-striconv.c (main): Update.
52888
52889 2007-01-21  Bruno Haible  <bruno@clisp.org>
52890
52891         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
52892
52893 2007-01-20  Jim Meyering  <jim@meyering.net>
52894
52895         * lib/userspec.c (parse_with_separator): If a user or group string
52896         starts with "+", skip the corresponding name-to-ID look-up, since
52897         such a look-up must fail: user and group names may not include "+".
52898
52899 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52900
52901         * lib/poll.c: Include sys/time.h and time.h unconditionally,
52902         since we now assume the sys_time module.
52903         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
52904         check for sys/time.h; no longer needed.
52905         * modules/poll (Depends-on): Depend on sys_time.
52906
52907 2007-01-18  Bruno Haible  <bruno@clisp.org>
52908
52909         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
52910         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52911
52912         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
52913         gettimeofday.
52914
52915         * tests/test-gettimeofday.c: Include <time.h>.
52916         (dummy): Remove variable.
52917
52918         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
52919         gl_HEADER_SYS_TIME_H.
52920         (gl_HEADER_SYS_TIME_H): New macro.
52921
52922         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
52923         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52924         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
52925         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
52926         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52927         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
52928         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
52929         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52930         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
52931         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
52932         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52933
52934         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
52935         last change; it caused a compilation error when cross-compiling to
52936         Cygwin.
52937
52938 2007-01-18  Jim Meyering  <jim@meyering.net>
52939
52940         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
52941         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
52942         than the race-prone "test -d sys || mkdir sys".
52943         (configure.ac): Use AC_PROG_MKDIR_P.
52944         * modules/sys_select: Likewise.
52945         * modules/sys_socket: Likewise.
52946         * modules/sys_time: Likewise.
52947
52948 2007-01-18  Eric Blake  <ebb9@byu.net>
52949
52950         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
52951         replace gettimeofday.
52952         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
52953         name, to avoid infinite recursion.
52954
52955 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
52956
52957         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
52958         module sys_time.
52959         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
52960         assume timespec.h defines struct timeval.
52961         * lib/settime.c: Likewise.
52962         * lib/utimens.c: Likewise.
52963         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
52964         since we now assume the gettimeofday module.
52965         * lib/tempname.c (__gen_tempname): Likewise.
52966         * lib/gettimeofday.h: Remove.
52967         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
52968         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
52969         Include <time.h>, for 'time()'.
52970         (localtime_buffer_addr): Also use this workaround if
52971         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
52972         to simplify the uses.  All uses changed.
52973         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
52974         that #undef is inside {}, and 'const' follows type name consistently.
52975         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
52976         (gettimeofday): Do not use the maximum possible value for
52977         tv->tv_usec, since that might break usages other than ls.c.
52978         Instead, we'll leave ls.c alone.  This undoes today's patch
52979         by Bruno.  Add a compile-time warning for 1s-clock resolution;
52980         we've never observed the problem but might as well keep the
52981         canary.
52982         * lib/nanosleep.c: Include timespec.h first, for interface check.
52983         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
52984         now assume the sys_time module.
52985         * lib/tempname.c: Likewise.
52986         * lib/timespec.h: Likewise.
52987         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
52988         needed.
52989         * lib/strftime.c: Likewise.
52990         * lib/timespec.h: Likewise.
52991         * lib/posixtm.c: Include posixtm.h first, for interface check.
52992         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
52993         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
52994         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
52995         * lib/sys_time_.h: New file.
52996         * lib/timespec.h (struct timespec): Use long int, not long.
52997         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52998         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
52999         Remove obsolescent call to AC_HEADER_TIME.
53000         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
53001         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53002         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53003         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
53004         Likewise.
53005         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
53006         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
53007         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
53008         into the sys_time module.  Check for gettimeofday just once.
53009         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
53010         for gettimeofday signature to just check the signature.  Merely
53011         compile it, since linking doesn't test signature.  Improve test for
53012         whether gettimeofday.o is actually needed.
53013         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
53014         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
53015         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
53016         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53017         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
53018         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
53019         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
53020         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
53021         than worrying about sys/time.h.
53022         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53023         Don't bother worrying about TIME_WITH_SYS_TIME.
53024         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
53025         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
53026         * m4/sys_time_h.m4: New file.
53027         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
53028         Don't include sys/time.h.  Return from main rather than exiting.
53029         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
53030         all uses changed.
53031         * modules/gethrxtime (Depends-on): Add sys_time.
53032         * modules/gettime (Depends-on): Likewise.
53033         * modules/gettimeofday (Depends-on): Likewise.
53034         * modules/nanosleep (Depends-on): Likewise.
53035         * modules/settime (Depends-on): Likewise.
53036         * modules/tempname (Depends-on): Likewise.
53037         * modules/utimens (Depends-on): Likewise.
53038         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
53039         (Include:) Change back to <sys/time.h>.
53040         (Maintainer:) Add self.
53041         * modules/sys_time: New file.
53042         * modules/tempname (Depends-on): Add gettimeofday.
53043         * tests/test-gettimeofday.c: Include <sys/time.h>
53044         rather than gettimeofday.h.
53045
53046 2007-01-17  Bruno Haible  <bruno@clisp.org>
53047
53048         * gnulib-tool (func_get_license): Revert last patch. Instead, let
53049         the license default to GPL.
53050         (func_create_testdir): Don't complain if a module is LGPL and its
53051         tests module depends on GPLed modules.
53052
53053 2007-01-17  Bruno Haible  <bruno@clisp.org>
53054
53055         * lib/gettimeofday.c (gettimeofday): Add code for the case
53056         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
53057         maximum possible value for tv->tv_usec, rather than the minimum one.
53058
53059 2005-10-08  Martin Lambers  <marlam@marlam.de>
53060 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53061 2007-01-16  Bruno Haible  <bruno@clisp.org>
53062
53063         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
53064         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
53065         gl_FUNC_GETTIMEOFDAY.
53066         (Include): Add gettimeofday.h.
53067         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
53068         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
53069         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
53070         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
53071         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
53072         * lib/gettimeofday.h: New file.
53073         * lib/gettimeofday.c: Include <sys/timeb.h>.
53074         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
53075         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53076         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
53077         fall back on time().
53078
53079         * tests/test-gettimeofday.c: New file.
53080         * modules/gettimeofday-tests: New file.
53081
53082 2007-01-16  Eric Blake  <ebb9@byu.net>
53083
53084         * modules/fnmatch (Depends-on): Depend on wchar.
53085         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
53086         * m4/fnmatch.m4: Likewise.
53087         * modules/mbchar (Makefile.am): Assume <wchar.h>.
53088         * m4/mbchar.m4: Likewise.
53089         * modules/mbswidth (Depends-on): Depend on wchar.
53090         * lib/mbswidth.c: Assume <wchar.h>.
53091         * m4/mbswidth.m4: Likewise.
53092         * modules/quotearg (Depends-on): Depend on wchar.
53093         * lib/quotearg.c: Assume <wchar.h>.
53094         * m4/quotearg.m4: Likewise.
53095         * modules/regex (Depends-on): Depend on wchar.
53096         * lib/regex_internal.h: Assume <wchar.h>.
53097         * m4/regex.m4: Likewise.
53098         * modules/stdint (Depends-on): Depend on wchar.
53099         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
53100         * m4/stdint.m4: Likewise.
53101         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
53102         * modules/strftime (Depends-on): Depend on wchar.
53103         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
53104         * modules/strtol (Depends-on): Depend on wchar.
53105         * lib/strtol.c: Assume <wchar.h>.
53106         * modules/wcwidth (Depends-on): Depend on wchar.
53107         * lib/wcwidth.h: Assume <wchar.h>.
53108         * m4/wcwidth.m4: Likewise.
53109
53110 2007-01-16  Bruno Haible  <bruno@clisp.org>
53111
53112         * modules/csharpexec-script: New, created from...
53113         * modules/csharpexec: ... this.
53114
53115 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53116
53117         * modules/javaexec-script: New, created from...
53118         * modules/javaexec: ... this.
53119
53120 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53121
53122         * modules/poll (Dependencies): Add sys_select.
53123
53124 2007-01-15  Jim Meyering  <jim@meyering.net>
53125
53126         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
53127         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
53128         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
53129         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
53130
53131 2007-01-15  Bruno Haible  <bruno@clisp.org>
53132
53133         * modules/striconveh: New file.
53134         * lib/striconveh.h: New file.
53135         * lib/striconveh.c: New file.
53136         * MODULES.html.sh (Internationalization functions): Add striconveh.
53137
53138         * modules/striconveh-tests: New file.
53139         * tests/test-striconveh.c: New file.
53140
53141 2007-01-15  Bruno Haible  <bruno@clisp.org>
53142
53143         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
53144         not from GNU libiconv or GNU libc.
53145
53146 2007-01-15  Bruno Haible  <bruno@clisp.org>
53147
53148         * doc/gnulib-intro.texi (Copyright): Explain the different license
53149         terms for module descriptions, autoconf macros, tests, documentation.
53150
53151 2007-01-14  Bruno Haible  <bruno@clisp.org>
53152
53153         * modules/striconv-tests: New file.
53154         * tests/test-striconv.c: New file.
53155
53156 2007-01-14  Bruno Haible  <bruno@clisp.org>
53157
53158         * modules/iconv-tests: New file.
53159         * tests/test-iconv.c: New file.
53160
53161 2007-01-14  Bruno Haible  <bruno@clisp.org>
53162
53163         * gnulib-tool (func_get_license): For test modules, use the license of
53164         the main module.
53165
53166 2007-01-14  Bruno Haible  <bruno@clisp.org>
53167
53168         * modules/iconv (Include): Clarify that <iconv.h> can only be included
53169         if iconv is found to exist.
53170
53171 2007-01-14  Bruno Haible  <bruno@clisp.org>
53172
53173         * modules/c-ctype-tests: New file.
53174         * tests/test-c-ctype.c: New file.
53175
53176 2007-01-14  Bruno Haible  <bruno@clisp.org>
53177
53178         * modules/binary-io-tests: New file.
53179         * tests/test-binary-io.sh: New file.
53180         * tests/test-binary-io.c: New file.
53181
53182 2007-01-14  Bruno Haible  <bruno@clisp.org>
53183
53184         * modules/array-oset-tests: New file.
53185         * tests/test-array_oset.c: New file.
53186
53187 2007-01-14  Bruno Haible  <bruno@clisp.org>
53188
53189         * modules/array-list-tests: New file.
53190         * tests/test-array_list.c: New file.
53191
53192 2007-01-14  Bruno Haible  <bruno@clisp.org>
53193
53194         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
53195         and make.
53196         Reported by Simon Josefsson in
53197         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
53198
53199 2007-01-14  Bruno Haible  <bruno@clisp.org>
53200
53201         * modules/allocsa-tests: New file.
53202         * tests/test-allocsa.c: New file.
53203
53204 2007-01-14  Bruno Haible  <bruno@clisp.org>
53205
53206         * modules/fchdir (Depends-on): Add absolute-header.
53207         * modules/unistd (Depends-on): Likewise.
53208
53209 2006-12-30  Bruno Haible  <bruno@clisp.org>
53210
53211         * modules/fchdir: New file.
53212         * modules/unistd (Files): Add lib/unistd_.h.
53213         (Makefile.am): Generate unistd.h from unistd_.h.
53214         * lib/fchdir.c: New file.
53215         * lib/dirent_.h: New file.
53216         * lib/unistd_.h: New file.
53217         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
53218         * m4/fchdir.m4: New file.
53219         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
53220         (gl_HEADER_UNISTD): Invoke it.
53221         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
53222         function.
53223         * lib/backupfile.c (opendir, closedir): Undefine.
53224         * lib/chown.c (open, close): Undefine.
53225         * lib/clean-temp.c (open, close): Undefine.
53226         * lib/copy-file.c (open, close): Undefine.
53227         * lib/execute.c (open, close): Undefine.
53228         * lib/fsusage.c (open, close): Undefine.
53229         * lib/gc-gnulib.c (open, close): Undefine.
53230         * lib/getcwd.c (opendir, closedir): Undefine.
53231         * lib/glob.c (opendir, closedir): Undefine.
53232         * lib/javacomp.c (open, close): Undefine.
53233         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
53234         * lib/openat-proc.c (open, close): Undefine.
53235         * lib/pagealign_alloc.c (open, close): Undefine.
53236         * lib/pipe.c (open, close): Undefine.
53237         * lib/progreloc.c (open, close): Undefine.
53238         * lib/savedir.c (opendir, closedir): Undefine.
53239         * lib/utime.c (open, close): Undefine.
53240         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
53241
53242 2007-01-10  Bruno Haible  <bruno@clisp.org>
53243
53244         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
53245
53246 2007-01-12  Eric Blake  <ebb9@byu.net>
53247
53248         Provide a robust <wchar.h>.  Further simplifications are now
53249         possible in other modules, but not included here.
53250         * modules/wchar: New module.
53251         * m4/wchar.m4: New file.
53252         * lib/wchar_.h: Likewise.
53253         * modules/mbchar (Depends-on): Depend on wchar, as the first use
53254         of the new module.
53255         * MODULES.html.sh (Extended multibyte and wide character utilities):
53256         New section.
53257
53258 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
53259
53260         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
53261         to a reasonable default for memory allocation.
53262         (xreadlink): Don't allocate a huge buffer, to work around a buggy
53263         file system that reports garbage st_size values for symlinks.
53264         Problem reported by Liyang Hu.
53265
53266 2007-01-11  Simon Josefsson  <simon@josefsson.org>
53267
53268         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
53269         Emacs .#* auto-save files).
53270
53271 2007-01-11  Bruno Haible  <bruno@clisp.org>
53272
53273         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
53274         directory.
53275
53276 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53277
53278         Use @...@ consistently in lib/wctype_.h.
53279         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
53280         on it being set to 1 or 0.
53281         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
53282         go back to AC_SUBSTing it.
53283         * modules/wctype (Makefile.am): Undo previous change.
53284
53285 2007-01-10  Eric Blake  <ebb9@byu.net>
53286
53287         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
53288         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
53289         * modules/wctype (Makefile.am): Likewise.
53290         Reported by Chris McGuire.
53291
53292 2007-01-10  Jim Meyering  <jim@meyering.net>
53293
53294         fts.c: a small readability/maintainability improvement
53295         * lib/fts.c (fts_read): Make this code slightly more readable and
53296         maintainable by hoisting the "sp->fts_cur = p" assignments to
53297         immediately follow the statements that set P.  Derived from
53298         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
53299
53300 2007-01-10  Eric Blake  <ebb9@byu.net>
53301
53302         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
53303         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
53304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53305         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53306         Reported by Chris McGuire.
53307
53308 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53309
53310         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
53311         in sed script.
53312
53313 2007-01-09  Bruno Haible  <bruno@clisp.org>
53314
53315         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
53316         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
53317         variables.
53318         (func_module): Use them.
53319
53320 2007-01-09  Bruno Haible  <bruno@clisp.org>
53321
53322         * modules/unistr/base: New file.
53323         * lib/unistr.h: New file.
53324
53325         * modules/unistr/u8-to-u16: New file.
53326         * lib/unistr/u8-to-u16.c: New file.
53327
53328         * modules/unistr/u8-to-u32: New file.
53329         * lib/unistr/u8-to-u32.c: New file.
53330
53331         * modules/unistr/u16-to-u8: New file.
53332         * lib/unistr/u16-to-u8.c: New file.
53333
53334         * modules/unistr/u16-to-u32: New file.
53335         * lib/unistr/u16-to-u32.c: New file.
53336
53337         * modules/unistr/u32-to-u8: New file.
53338         * lib/unistr/u32-to-u8.c: New file.
53339
53340         * modules/unistr/u32-to-u16: New file.
53341         * lib/unistr/u32-to-u16.c: New file.
53342
53343         * modules/unistr/u8-check: New file.
53344         * modules/unistr/u16-check: New file.
53345         * modules/unistr/u32-check: New file.
53346         * lib/unistr/u8-check.c: New file.
53347         * lib/unistr/u16-check.c: New file.
53348         * lib/unistr/u32-check.c: New file.
53349
53350         * modules/unistr/u8-chr: New file.
53351         * modules/unistr/u16-chr: New file.
53352         * modules/unistr/u32-chr: New file.
53353         * lib/unistr/u8-chr.c: New file.
53354         * lib/unistr/u16-chr.c: New file.
53355         * lib/unistr/u32-chr.c: New file.
53356
53357         * modules/unistr/u8-cmp: New file.
53358         * modules/unistr/u16-cmp: New file.
53359         * modules/unistr/u32-cmp: New file.
53360         * lib/unistr/u8-cmp.c: New file.
53361         * lib/unistr/u16-cmp.c: New file.
53362         * lib/unistr/u32-cmp.c: New file.
53363
53364         * modules/unistr/u8-cpy: New file.
53365         * modules/unistr/u16-cpy: New file.
53366         * modules/unistr/u32-cpy: New file.
53367         * lib/unistr/u8-cpy.c: New file.
53368         * lib/unistr/u16-cpy.c: New file.
53369         * lib/unistr/u32-cpy.c: New file.
53370         * lib/unistr/u-cpy.h: New file.
53371
53372         * modules/unistr/u8-cpy-alloc: New file.
53373         * modules/unistr/u16-cpy-alloc: New file.
53374         * modules/unistr/u32-cpy-alloc: New file.
53375         * lib/unistr/u8-cpy-alloc.c: New file.
53376         * lib/unistr/u16-cpy-alloc.c: New file.
53377         * lib/unistr/u32-cpy-alloc.c: New file.
53378         * lib/unistr/u-cpy-alloc.h: New file.
53379
53380         * modules/unistr/u8-endswith: New file.
53381         * modules/unistr/u16-endswith: New file.
53382         * modules/unistr/u32-endswith: New file.
53383         * lib/unistr/u8-endswith.c: New file.
53384         * lib/unistr/u16-endswith.c: New file.
53385         * lib/unistr/u32-endswith.c: New file.
53386         * lib/unistr/u-endswith.h: New file.
53387
53388         * modules/unistr/u8-mblen: New file.
53389         * modules/unistr/u16-mblen: New file.
53390         * modules/unistr/u32-mblen: New file.
53391         * lib/unistr/u8-mblen.c: New file.
53392         * lib/unistr/u16-mblen.c: New file.
53393         * lib/unistr/u32-mblen.c: New file.
53394
53395         * modules/unistr/u8-mbtouc: New file.
53396         * modules/unistr/u16-mbtouc: New file.
53397         * modules/unistr/u32-mbtouc: New file.
53398         * lib/unistr/u8-mbtouc.c: New file.
53399         * lib/unistr/u16-mbtouc.c: New file.
53400         * lib/unistr/u32-mbtouc.c: New file.
53401
53402         * modules/unistr/u8-mbtouc-safe: New file.
53403         * modules/unistr/u16-mbtouc-safe: New file.
53404         * modules/unistr/u32-mbtouc-safe: New file.
53405         * lib/unistr/u8-mbtouc-safe.c: New file.
53406         * lib/unistr/u16-mbtouc-safe.c: New file.
53407         * lib/unistr/u32-mbtouc-safe.c: New file.
53408
53409         * modules/unistr/u8-move: New file.
53410         * modules/unistr/u16-move: New file.
53411         * modules/unistr/u32-move: New file.
53412         * lib/unistr/u8-move.c: New file.
53413         * lib/unistr/u16-move.c: New file.
53414         * lib/unistr/u32-move.c: New file.
53415         * lib/unistr/u-move.h: New file.
53416
53417         * modules/unistr/u8-next: New file.
53418         * modules/unistr/u16-next: New file.
53419         * modules/unistr/u32-next: New file.
53420         * lib/unistr/u8-next.c: New file.
53421         * lib/unistr/u16-next.c: New file.
53422         * lib/unistr/u32-next.c: New file.
53423
53424         * modules/unistr/u8-prev: New file.
53425         * modules/unistr/u16-prev: New file.
53426         * modules/unistr/u32-prev: New file.
53427         * lib/unistr/u8-prev.c: New file.
53428         * lib/unistr/u16-prev.c: New file.
53429         * lib/unistr/u32-prev.c: New file.
53430
53431         * modules/unistr/u8-set: New file.
53432         * modules/unistr/u16-set: New file.
53433         * modules/unistr/u32-set: New file.
53434         * lib/unistr/u8-set.c: New file.
53435         * lib/unistr/u16-set.c: New file.
53436         * lib/unistr/u32-set.c: New file.
53437         * lib/unistr/u-set.h: New file.
53438
53439         * modules/unistr/u8-startswith: New file.
53440         * modules/unistr/u16-startswith: New file.
53441         * modules/unistr/u32-startswith: New file.
53442         * lib/unistr/u8-startswith.c: New file.
53443         * lib/unistr/u16-startswith.c: New file.
53444         * lib/unistr/u32-startswith.c: New file.
53445         * lib/unistr/u-startswith.h: New file.
53446
53447         * modules/unistr/u8-stpcpy: New file.
53448         * modules/unistr/u16-stpcpy: New file.
53449         * modules/unistr/u32-stpcpy: New file.
53450         * lib/unistr/u8-stpcpy.c: New file.
53451         * lib/unistr/u16-stpcpy.c: New file.
53452         * lib/unistr/u32-stpcpy.c: New file.
53453         * lib/unistr/u-stpcpy.h: New file.
53454
53455         * modules/unistr/u8-stpncpy: New file.
53456         * modules/unistr/u16-stpncpy: New file.
53457         * modules/unistr/u32-stpncpy: New file.
53458         * lib/unistr/u8-stpncpy.c: New file.
53459         * lib/unistr/u16-stpncpy.c: New file.
53460         * lib/unistr/u32-stpncpy.c: New file.
53461         * lib/unistr/u-stpncpy.h: New file.
53462
53463         * modules/unistr/u8-strcat: New file.
53464         * modules/unistr/u16-strcat: New file.
53465         * modules/unistr/u32-strcat: New file.
53466         * lib/unistr/u8-strcat.c: New file.
53467         * lib/unistr/u16-strcat.c: New file.
53468         * lib/unistr/u32-strcat.c: New file.
53469         * lib/unistr/u-strcat.h: New file.
53470
53471         * modules/unistr/u8-strchr: New file.
53472         * modules/unistr/u16-strchr: New file.
53473         * modules/unistr/u32-strchr: New file.
53474         * lib/unistr/u8-strchr.c: New file.
53475         * lib/unistr/u16-strchr.c: New file.
53476         * lib/unistr/u32-strchr.c: New file.
53477
53478         * modules/unistr/u8-strcmp: New file.
53479         * modules/unistr/u16-strcmp: New file.
53480         * modules/unistr/u32-strcmp: New file.
53481         * lib/unistr/u8-strcmp.c: New file.
53482         * lib/unistr/u16-strcmp.c: New file.
53483         * lib/unistr/u32-strcmp.c: New file.
53484
53485         * modules/unistr/u8-strcpy: New file.
53486         * modules/unistr/u16-strcpy: New file.
53487         * modules/unistr/u32-strcpy: New file.
53488         * lib/unistr/u8-strcpy.c: New file.
53489         * lib/unistr/u16-strcpy.c: New file.
53490         * lib/unistr/u32-strcpy.c: New file.
53491         * lib/unistr/u-strcpy.h: New file.
53492
53493         * modules/unistr/u8-strcspn: New file.
53494         * modules/unistr/u16-strcspn: New file.
53495         * modules/unistr/u32-strcspn: New file.
53496         * lib/unistr/u8-strcspn.c: New file.
53497         * lib/unistr/u16-strcspn.c: New file.
53498         * lib/unistr/u32-strcspn.c: New file.
53499         * lib/unistr/u-strcspn.h: New file.
53500
53501         * modules/unistr/u8-strdup: New file.
53502         * modules/unistr/u16-strdup: New file.
53503         * modules/unistr/u32-strdup: New file.
53504         * lib/unistr/u8-strdup.c: New file.
53505         * lib/unistr/u16-strdup.c: New file.
53506         * lib/unistr/u32-strdup.c: New file.
53507         * lib/unistr/u-strdup.h: New file.
53508
53509         * modules/unistr/u8-strlen: New file.
53510         * modules/unistr/u16-strlen: New file.
53511         * modules/unistr/u32-strlen: New file.
53512         * lib/unistr/u8-strlen.c: New file.
53513         * lib/unistr/u16-strlen.c: New file.
53514         * lib/unistr/u32-strlen.c: New file.
53515         * lib/unistr/u-strlen.h: New file.
53516
53517         * modules/unistr/u8-strmblen: New file.
53518         * modules/unistr/u16-strmblen: New file.
53519         * modules/unistr/u32-strmblen: New file.
53520         * lib/unistr/u8-strmblen.c: New file.
53521         * lib/unistr/u16-strmblen.c: New file.
53522         * lib/unistr/u32-strmblen.c: New file.
53523
53524         * modules/unistr/u8-strmbtouc: New file.
53525         * modules/unistr/u16-strmbtouc: New file.
53526         * modules/unistr/u32-strmbtouc: New file.
53527         * lib/unistr/u8-strmbtouc.c: New file.
53528         * lib/unistr/u16-strmbtouc.c: New file.
53529         * lib/unistr/u32-strmbtouc.c: New file.
53530
53531         * modules/unistr/u8-strncat: New file.
53532         * modules/unistr/u16-strncat: New file.
53533         * modules/unistr/u32-strncat: New file.
53534         * lib/unistr/u8-strncat.c: New file.
53535         * lib/unistr/u16-strncat.c: New file.
53536         * lib/unistr/u32-strncat.c: New file.
53537         * lib/unistr/u-strncat.h: New file.
53538
53539         * modules/unistr/u8-strncmp: New file.
53540         * modules/unistr/u16-strncmp: New file.
53541         * modules/unistr/u32-strncmp: New file.
53542         * lib/unistr/u8-strncmp.c: New file.
53543         * lib/unistr/u16-strncmp.c: New file.
53544         * lib/unistr/u32-strncmp.c: New file.
53545
53546         * modules/unistr/u8-strncpy: New file.
53547         * modules/unistr/u16-strncpy: New file.
53548         * modules/unistr/u32-strncpy: New file.
53549         * lib/unistr/u8-strncpy.c: New file.
53550         * lib/unistr/u16-strncpy.c: New file.
53551         * lib/unistr/u32-strncpy.c: New file.
53552         * lib/unistr/u-strncpy.h: New file.
53553
53554         * modules/unistr/u8-strnlen: New file.
53555         * modules/unistr/u16-strnlen: New file.
53556         * modules/unistr/u32-strnlen: New file.
53557         * lib/unistr/u8-strnlen.c: New file.
53558         * lib/unistr/u16-strnlen.c: New file.
53559         * lib/unistr/u32-strnlen.c: New file.
53560         * lib/unistr/u-strnlen.h: New file.
53561
53562         * modules/unistr/u8-strpbrk: New file.
53563         * modules/unistr/u16-strpbrk: New file.
53564         * modules/unistr/u32-strpbrk: New file.
53565         * lib/unistr/u8-strpbrk.c: New file.
53566         * lib/unistr/u16-strpbrk.c: New file.
53567         * lib/unistr/u32-strpbrk.c: New file.
53568         * lib/unistr/u-strpbrk.h: New file.
53569
53570         * modules/unistr/u8-strrchr: New file.
53571         * modules/unistr/u16-strrchr: New file.
53572         * modules/unistr/u32-strrchr: New file.
53573         * lib/unistr/u8-strrchr.c: New file.
53574         * lib/unistr/u16-strrchr.c: New file.
53575         * lib/unistr/u32-strrchr.c: New file.
53576
53577         * modules/unistr/u8-strspn: New file.
53578         * modules/unistr/u16-strspn: New file.
53579         * modules/unistr/u32-strspn: New file.
53580         * lib/unistr/u8-strspn.c: New file.
53581         * lib/unistr/u16-strspn.c: New file.
53582         * lib/unistr/u32-strspn.c: New file.
53583         * lib/unistr/u-strspn.h: New file.
53584
53585         * modules/unistr/u8-strstr: New file.
53586         * modules/unistr/u16-strstr: New file.
53587         * modules/unistr/u32-strstr: New file.
53588         * lib/unistr/u8-strstr.c: New file.
53589         * lib/unistr/u16-strstr.c: New file.
53590         * lib/unistr/u32-strstr.c: New file.
53591         * lib/unistr/u-strstr.h: New file.
53592
53593         * modules/unistr/u8-strtok: New file.
53594         * modules/unistr/u16-strtok: New file.
53595         * modules/unistr/u32-strtok: New file.
53596         * lib/unistr/u8-strtok.c: New file.
53597         * lib/unistr/u16-strtok.c: New file.
53598         * lib/unistr/u32-strtok.c: New file.
53599         * lib/unistr/u-strtok.h: New file.
53600
53601         * modules/unistr/u8-uctomb: New file.
53602         * modules/unistr/u16-uctomb: New file.
53603         * modules/unistr/u32-uctomb: New file.
53604         * lib/unistr/u8-uctomb.c: New file.
53605         * lib/unistr/u16-uctomb.c: New file.
53606         * lib/unistr/u32-uctomb.c: New file.
53607
53608         * MODULES.html.sh (Unicode string functions): Add the new modules.
53609
53610 2007-01-08  Bruno Haible  <bruno@clisp.org>
53611
53612         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
53613         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
53614         subdirectories.
53615
53616 2007-01-08  Karl Berry  <karl@gnu.org>
53617
53618         * doc/error.texi: mention that main() fns must set program_name
53619         when progname is used.
53620
53621 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
53622
53623         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
53624         WCTYPE_H is empty, for the benefit of builds from non-distclean
53625         directories.  Problem reported by Eric Blake in
53626         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
53627
53628 2007-01-08  Bruno Haible  <bruno@clisp.org>
53629
53630         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
53631         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
53632         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
53633         PROVIDE_CANONICALIZE_FILENAME_MODE.
53634         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
53635
53636 2007-01-08  Bruno Haible  <bruno@clisp.org>
53637
53638         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
53639         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
53640         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
53641         * lib/fts.c: Likewise.
53642         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
53643
53644 2006-12-25  Bruno Haible  <bruno@clisp.org>
53645
53646         * modules/utf8-ucs4-safe: New file.
53647         * lib/utf8-ucs4-safe.h: New file.
53648         * lib/unistr/utf8-ucs4-safe.c: New file.
53649
53650         * modules/utf16-ucs4-safe: New file.
53651         * lib/utf16-ucs4-safe.h: New file.
53652         * lib/unistr/utf16-ucs4-safe.c: New file.
53653
53654         * MODULES.html.sh (Unicode string functions): Add the new modules.
53655
53656 2007-01-08  Bruno Haible  <bruno@clisp.org>
53657
53658         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
53659         (Depends-on): Add unitypes.
53660         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53661         (u8_mbtouc_aux): Move out to separate file.
53662         (u8_mbtouc): Use ucs4_t, uint8_t types.
53663         * lib/unistr/utf8-ucs4.c: New file.
53664
53665         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
53666         (Depends-on): Add unitypes.
53667         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53668         (u16_mbtouc_aux): Move out to separate file.
53669         (u16_mbtouc): Use ucs4_t, uint16_t types.
53670         * lib/unistr/utf16-ucs4.c: New file.
53671
53672         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
53673         (Depends-on): Add unitypes.
53674         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
53675         (u8_uctomb_aux): Move out to separate file.
53676         (u8_uctomb): Use ucs4_t, uint8_t types.
53677         * lib/unistr/ucs4-utf8.c: New file.
53678
53679         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
53680         (Depends-on): Add unitypes.
53681         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
53682         (u16_uctomb_aux): Move out to separate file.
53683         (u16_uctomb): Use ucs4_t, uint16_t types.
53684         * lib/unistr/ucs4-utf16.c: New file.
53685
53686 2006-12-25  Bruno Haible  <bruno@clisp.org>
53687
53688         * modules/unitypes: New file.
53689         * lib/unitypes.h: New file.
53690         * MODULES.html.sh (func_all_modules): New section "Unicode string
53691         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
53692         this section. Add unitypes.
53693
53694 2007-01-08  Bruno Haible  <bruno@clisp.org>
53695
53696         Avoid variable names that conflict with those from libtool.
53697         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
53698         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
53699         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
53700         library_names_spec to acl_library_names_spec, hardcode_* to
53701         acl_hardcode_*.
53702         Reported by Ralf Wildenhues.
53703
53704 2007-01-08  Bruno Haible  <bruno@clisp.org>
53705
53706         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
53707         definition.
53708         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
53709         definition.
53710         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
53711         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
53712         definition.
53713         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
53714         definition.
53715         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
53716         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
53717         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
53718         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
53719         definition.
53720         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
53721         definition.
53722         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
53723         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
53724         GC_USE_<algorithm>.
53725         * lib/gc-libgcrypt.c: Likewise.
53726         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
53727         * modules/gc-arctwo (configure.ac): Likewise.
53728         * modules/gc-des (configure.ac): Likewise.
53729         * modules/gc-hmac-md5 (configure.ac): Likewise.
53730         * modules/gc-hmac-sha1 (configure.ac): Likewise.
53731         * modules/gc-md2 (configure.ac): Likewise.
53732         * modules/gc-md4 (configure.ac): Likewise.
53733         * modules/gc-md5 (configure.ac): Likewise.
53734         * modules/gc-random (configure.ac): Likewise.
53735         * modules/gc-rijndael (configure.ac): Likewise.
53736         * modules/gc-sha1 (configure.ac): Likewise.
53737
53738 2007-01-08  Bruno Haible  <bruno@clisp.org>
53739
53740         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
53741         macro definition.
53742         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
53743         definition.
53744         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
53745         definition.
53746         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
53747         * modules/fcntl-safer (configure.ac): Likewise.
53748         * modules/fopen-safer (configure.ac): Likewise.
53749         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
53750         GNULIB_FWRITEERROR macro definition.
53751
53752 2007-01-08  Bruno Haible  <bruno@clisp.org>
53753
53754         * m4/gnulib-common.m4: New file.
53755         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
53756         (func_get_filelist): Add m4/gnulib-common.m4.
53757
53758 2007-01-08  Bruno Haible  <bruno@clisp.org>
53759
53760         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
53761         command.
53762
53763 2007-01-08  Jim Meyering  <jim@meyering.net>
53764
53765         Use a more robust test for a "can't happen" condition.
53766         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
53767         narrowed the st_size value.  Presuming the "can't happen" condition
53768         is true, that narrowing could conceivably convert an invalid st_size
53769         value into a valid one.  Instead, use a change based on Matthew
53770         Woehlke's original patch.
53771
53772         Slight readability improvement: use an assert-like macro
53773         in place of literal "abort ()" uses.
53774         * lib/fts.c (fts_assert): Define.
53775         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
53776         Use this macro instead of a bare 'abort'.
53777
53778 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
53779
53780         Don't worry about using IRIX 5.3's wctype.h broken definitions;
53781         simply work around them.
53782         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
53783         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
53784         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
53785         declaring.
53786         Don't bother to define as macros, since the standard doesn't require it.
53787         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
53788         longer worry about IRIX 5.3.
53789         (HAVE_WCTYPE_CTMP_BUG): Remove.
53790
53791 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53792
53793         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
53794         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
53795         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53796         Problems reported by Georg Schwarz for IRIX 5.3.
53797
53798         * gnulib-tool (autoconf_minversion): Take the maximum version number
53799         found, not the minimum.  Problem reported by James Youngman.
53800
53801 2007-01-03  Karl Berry  <karl@gnu.org>
53802
53803         * doc/error.texi: new file, explaining interaction with progname.
53804         * doc/gnulib.texi: include it.  Update copyright.
53805
53806 2007-01-03  Simon Josefsson  <simon@josefsson.org>
53807
53808         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
53809         AC_CANONICAL_HOST, to improve autobuild outputs.
53810
53811 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
53812             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53813
53814         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
53815         sockets, server sockets, and other file descriptors.  Count errors
53816         to compute the return value.  Reorder the code a bit to be easier
53817         to follow.  Don't set event bits that were not requested (except
53818         POLLERR and POLLHUP).
53819
53820 2007-01-01  Bruno Haible  <bruno@clisp.org>
53821
53822         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
53823
53824 2007-01-03  Jim Meyering  <jim@meyering.net>
53825
53826         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
53827
53828 2007-01-02  Bruno Haible  <bruno@clisp.org>
53829
53830         * modules/settime (Include): Require timespec.h.
53831         * modules/nanosleep (Include): Likewise.
53832
53833 2007-01-01  Bruno Haible  <bruno@clisp.org>
53834
53835         * gnulib-tool (func_emit_copyright_notice): Bump year.
53836         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
53837
53838 2007-01-01  Bruno Haible  <bruno@clisp.org>
53839
53840         Improve support for OpenBSD.
53841         * build-aux/config.rpath (libname_spec): Export.
53842         (library_names_spec): New variable. Export.
53843         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
53844         library_names_spec from the config.rpath output. Locate shared library
53845         through the name pattern in library_names_spec.
53846
53847 2007-01-01  Eric Blake  <ebb9@byu.net>
53848
53849         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
53850
53851 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
53852
53853         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
53854         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
53855         assume the C locale, and avoid an "eval" that could cause trouble.
53856         Problem with SORT reported by Bob Proulx.
53857
53858         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
53859         Define.  Trivial patch from Henning Nielsen Lund, originally
53860         sent to bug-grep@gnu.org today.
53861
53862 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53863
53864         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
53865         struct stat.  Problem reported by Henning Nielsen Lund.
53866         * lib/acl.c: Include acl.h first, to check interface.  Don't
53867         bother to include sys/types.h and sys/stat.h again.
53868
53869 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53870
53871         Import the following change from libc; problem reported by
53872         Sven Verdoolaege.
53873
53874         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
53875
53876         [BZ #1373]
53877         * lib/argp.h: Remove __NTH for __argp_usage inline function.
53878
53879 2006-12-28  Jim Meyering  <jim@meyering.net>
53880
53881         * build-aux/announce-gen: Do not assume that the package
53882         builds any of tar.gz, tar.bz2, and .xdelta files.
53883         Suggestion from Simon Josefsson.
53884
53885 2006-12-28  Simon Josefsson  <simon@josefsson.org>
53886
53887         * modules/announce-gen: New file.
53888
53889 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
53890
53891         * lib/mbchar.h: Just include <wctype.h>; the wctype module
53892         handles its gotchas now.
53893         * lib/mbswidth.c: Likewise.
53894         * lib/wcwidth.h: Likewise.
53895         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
53896         and iswcntrl; the wctype module does this stuff now.
53897         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53899         * modules/mbchar (Depends-on): Add wctype.
53900         * modules/mbswidth (Depends-on): Likewise.
53901         * modules/wcwidth (Depends-on): Likewise.
53902
53903 2006-12-27  Eric Blake  <ebb9@byu.net>
53904
53905         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
53906         module uses more than what <wctype.h> is required to provide.
53907
53908 2006-12-26  Eric Blake  <ebb9@byu.net>
53909
53910         * gnulib-tool (sed_extract_prog): Avoid space-tab.
53911
53912 2006-12-26  Eric Blake  <ebb9@byu.net>
53913
53914         * modules/absolute-header: New module.
53915         * modules/fcntl (Depends-on): Depend on it.
53916         * modules/inttypes (Depends-on): Likewise.
53917         * modules/stdint (Depends-on): Likewise.
53918         * modules/sys_stat (Depends-on): Likewise.
53919         * modules/wctype (Depends-on): Likewise.
53920         * MODULES.html.sh (Support for building libraries and
53921         executables): Document it.
53922
53923 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53924
53925         * gnulib-tool (SED): Remove, undoing previous change.
53926         The problem was that it broke coreutils on Solaris, because
53927         "sed --posix" leaked into a makefile.
53928         (sed): New alias, if 'alias' and GNU sed.
53929
53930 2006-12-24  Jim Meyering  <jim@meyering.net>
53931
53932         Work around an fchownat bug in glibc-2.4:
53933         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
53934         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
53935         in spite of the -P option.
53936         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
53937         New macros.
53938         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
53939         * modules/openat (Files): Add lib/fchownat.c.
53940         * lib/openat.c (fchownat): Don't define here.  Move to...
53941         * lib/fchownat.c: ...this new file.
53942
53943 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53944
53945         Fix bug reported by Bruno Haible in
53946         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
53947         where quotearg.c didn't compile on Mac OS X 10.2 because it
53948         lacks <wchar.h> and wint_t.
53949         * lib/wctype_.h (__wctype_wint_t): New type.
53950         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
53951         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
53952         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
53953         Arg is now of type __wctype_wint_t, not wint_t.
53954         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
53955         substitute HAVE_WINT_T.
53956         * modules/wctype (Files): Add m4/wint_t.m4.
53957         (wctype.h): Substitute HAVE_WINT_T.
53958
53959 2006-12-23  Bruno Haible  <bruno@clisp.org>
53960
53961         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
53962
53963 2006-12-23  Bruno Haible  <bruno@clisp.org>
53964
53965         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
53966         S_ISLNK.
53967         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
53968         mingw.
53969
53970 2006-12-22  Bruno Haible  <bruno@clisp.org>
53971
53972         * lib/copy-file.c: Include acl.h.
53973         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
53974         Close the file descriptors only after being done with copy_acl.
53975         * modules/copy-file (Depends-on): Add acl.
53976
53977 2006-12-22  Bruno Haible  <bruno@clisp.org>
53978
53979         * gnulib-tool (SED): New variable.
53980         Use $SED instead of sed everywhere.
53981
53982 2006-12-22  Bruno Haible  <bruno@clisp.org>
53983
53984         * modules/no-c++: New file.
53985         * m4/no-c++.m4: New file.
53986         * MODULES.html.sh (Support for building libraries and executables):
53987         Add no-c++.
53988
53989 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
53990
53991         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53992         Include <limits.h>, and use its INT_MAX to rewrite the
53993         j loop so that it does not overflow 'int'.  Problem reported by
53994         Ralf Wildenhues in
53995         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
53996         Play it safe by shifting left by 1 rather than multiplying by 2,
53997         as GCC is less likely to optimize this away when the value
53998         is signed (when it assumes overflow leads to undefined behavior).
53999         Also, don't assume time_t uses two's complement.
54000
54001 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
54002
54003         * MODULES.html.sh: New module wctype.
54004         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
54005         * lib/fnmatch.c: Don't bother to include <wchar.h> before
54006         <wctype.h>, since the new wctype module should fix this.
54007         * lib/quotearg.c: Include <wctype.h> unconditionally, since
54008         the wctype module should arrange for it.
54009         * lib/regex_internal.h: Likewise.
54010         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
54011         since the wctype module should handle this now.
54012         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
54013         * modules/fnmatch (Depends-on): Add wctype.
54014         * modules/quotearg (Depends-on): Likewise.
54015         * modules/regex (Depends-on): Likewise.
54016
54017 2006-12-19  Bruno Haible  <bruno@clisp.org>
54018
54019         * lib/strdup.h [C++]: Wrap definitions in extern "C".
54020         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
54021
54022 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54023
54024         * modules/savewd (Depends-on): Fix dependency on fcntl.
54025
54026 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54027
54028         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
54029         conforms to C99, rather than relying on the user's environment
54030         setting of STDINT_H.
54031
54032 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54033         and Eric Blake  <ebb9@byu.net>
54034
54035         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
54036         This is more consistent with the other defines here.
54037         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
54038         Port to z/OS.  Problem reported by Paul Gilmartin.
54039         Change local vars to use gl_ prefix rather than ac_.
54040         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
54041         with other defines.
54042         * modules/double-slash-root: New module.
54043         * modules/dirname (Files): Remove m4/double-slash-root.m4.
54044         (Depends-on): Add double-slash-root.
54045         * MODULES.html.sh (File system functions): Mention new module.
54046
54047 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
54048
54049         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
54050         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
54051         This is for the benefit of gzip, which doesn't do i18n.
54052
54053 2006-12-12  Jim Meyering  <jim@meyering.net>
54054
54055         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
54056         Reported by Andreas Schwab <schwab@suse.de>.
54057
54058 2006-12-12  Bruno Haible  <bruno@clisp.org>
54059
54060         Merge these changes.
54061         2006-09-05  Bruno Haible  <bruno@clisp.org>
54062         * lib/iconvme.c (iconv_string): No need to save and restore errno when
54063         iconv_alloc succeeded.
54064         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
54065         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
54066         test for " && dest " at the end - dest is always != NULL there. Call
54067         iconv with 4xNULL arguments initially, to reset the state. Call iconv
54068         with 2xNULL arguments, also to flush the state storage. Handle the
54069         IRIX iconv behaviour. Realloc the final result, to throw away unused
54070         memory.
54071
54072 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
54073
54074         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
54075         and fchmodat unconditionally, since glibc 2.4 has them.
54076         Problem reported by Arkadiusz Miskiewicz.
54077
54078 2006-12-10  Bruno Haible  <bruno@clisp.org>
54079
54080         * gnulib-tool (func_import): Show the include files only for those
54081         modules that are copied and specified.
54082         Reported by Karl Berry.
54083
54084 2006-12-08  Jim Meyering  <jim@meyering.net>
54085
54086         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
54087         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
54088
54089         * build-aux/announce-gen: Add two new options, both optional:
54090         --bootstrap-tools=TOOL_LIST
54091               a comma-separated list of tools, e.g.,
54092               autoconf,automake,bison,gnulib
54093         --gnulib-snapshot-date=DATE
54094               if gnulib is in the bootstrap tool list,
54095               then report this as the snapshot date.
54096               If not specified, use the current date/time.
54097               If you specify a date here, be sure it's UTC.
54098
54099 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54100
54101         * tests/test-argp-2.sh: Fix test to match actual output.
54102         (func_compare): Fix sed script to be portable.
54103
54104 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
54105
54106         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
54107         workaround for this case.  It is not autoconfigured now; offhand
54108         it's hard to see how to autoconfigure it.
54109
54110 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54111
54112         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
54113         a directory that is about to be chowned.  Such a directory's
54114         initial file permissions should permit the owner only and this
54115         should not be changed until after the chown, since the group and
54116         other bits would be incorrect if they granted permission before
54117         the chown.
54118
54119         Fix porting problem for iswctype reported by Georg Schwarz in:
54120         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
54121         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
54122         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
54123         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
54124         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54125
54126 2006-12-03  Jim Meyering  <jim@meyering.net>
54127
54128         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
54129         p->fts_statp may not yet be defined.
54130         (fts_read): Instead, set it in the caller, once p->fts_statp is
54131         sure to be defined, and corresponds to a top-level directory.
54132         This bug made du -x fail.  Here's the coreutils test case:
54133         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
54134         Reported by Mike Frysinger.
54135
54136 2006-12-01  Jim Meyering  <jim@meyering.net>
54137
54138         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
54139         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
54140         Reported by Simon Josefsson.
54141
54142 2006-11-30  Jim Meyering  <jim@meyering.net>
54143
54144         * m4/warning.m4: Use the all-permissive copyright notice
54145         recommended by RMS (rather than LGPL).
54146         * m4/vararrays.m4: Likewise.
54147         * m4/flexmember.m4: Likewise.
54148
54149 2006-11-29  Bruno Haible  <bruno@clisp.org>
54150
54151         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54152         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
54153         using +=.
54154         Reported by Simon Josefsson <simon@josefsson.org>.
54155
54156 2006-11-28  James Youngman <jay@gnu.org>
54157
54158         * README: Advise users that they might find the bug-gnulib@gnu.org
54159         and autotools-announce@gnu.org mailing lists useful.
54160
54161 2006-11-28  Bruno Haible  <bruno@clisp.org>
54162
54163         * m4/ptrdiff_max.m4: Remove file.
54164
54165 2006-11-21  Bruno Haible  <bruno@clisp.org>
54166
54167         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
54168         _AC_COMPUTE_INT.
54169         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54170         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
54171         _AC_COMPUTE_INT.
54172         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54173         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
54174         _AC_COMPUTE_INT.
54175         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54176
54177 2006-11-28  Jim Meyering  <jim@meyering.net>
54178
54179         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
54180         warning from "gcc -Wshadow" about shadowing the builtin.
54181
54182 2006-11-27  Bruno Haible  <bruno@clisp.org>
54183
54184         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
54185         _AC_COMPUTE_INT.
54186         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54187
54188 2006-11-27  Bruno Haible  <bruno@clisp.org>
54189             Paul Eggert  <eggert@cs.ucla.edu>
54190
54191         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
54192
54193 2006-11-26  Bruno Haible  <bruno@clisp.org>
54194
54195         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54196         noinst_LTLIBRARIES.
54197
54198 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54199             Bruno Haible  <bruno@clisp.org>
54200
54201         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
54202         if compiling with "gcc -ansi".
54203
54204 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54205
54206         Fix some incompatibilities with gcc -ansi -pedantic.
54207         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
54208         if compiling pedantically with GCC, unless it's C99 or later.
54209         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
54210         it mishandles gcc -ansi -pedantic as well.
54211         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
54212         if gcc -pedantic.
54213         * lib/regexec.c (check_node_accept_bytes): Don't use auto
54214         initializers for struct if -pedantic, unless it's C99 or later.
54215
54216 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
54217
54218         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
54219         Don't close an fd more than once. Identical atimes indicate
54220         success, not failure.
54221
54222 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
54223
54224         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
54225
54226 2006-11-23  Jim Meyering  <jim@meyering.net>
54227
54228         * build-aux/announce-gen: New file.  From coreutils.
54229
54230 2006-11-22  Jim Meyering  <jim@meyering.net>
54231
54232         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
54233         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
54234         (fts_read): Use a temporary to narrow the overused st_size member
54235         before using it in a switch statement.  Reported by Matthew Woehlke.
54236
54237         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
54238         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
54239
54240 2006-11-20  Bruno Haible  <bruno@clisp.org>
54241
54242         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
54243         changequote instead of pairs of brackets.
54244         Reported by Andreas Schwab <schwab@suse.de>.
54245
54246 2006-11-21  Jim Meyering  <jim@meyering.net>
54247
54248         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
54249         so as to remain compatible with older compilers.
54250         Patch from Michael Deutschmann.
54251
54252 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54253
54254         * MODULES.html.sh (File system functions): Add openat.
54255
54256         * lib/openat.h (rpl_fstatat): New macro, if
54257         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
54258         (fstatat): Define to rpl_fstatat under the same conditions,
54259         unless COMPILING_FSTATAT.
54260         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
54261         seems to have the bug.
54262         * lib/fstatat.c: New file.
54263         * modules/openat (Files): Add it.
54264
54265 2006-11-20  Bruno Haible  <bruno@clisp.org>
54266
54267         * Makefile: New file.
54268
54269 2006-11-20  Jim Meyering  <jim@meyering.net>
54270
54271         The beginnings of syntax-related checks for gnulib.
54272         * lib/Makefile: New file.
54273         * lib/t-idcache: New script.  Ensure that the two halves of
54274         idcache.c stay in sync.
54275
54276         * lib/idcache.c: Adjust comments in user- and group- portions to
54277         be more accurate, and to be consistent with one another.
54278
54279 2006-11-20  Jim Meyering  <jim@meyering.net>
54280
54281         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
54282         continue using the flexible array member (thus, this module performs
54283         half as many malloc calls), with the addition that...
54284         (getgroup, getuser): Consistently record a non-match via an empty
54285         "name" string, and map an empty string match to a NULL return value.
54286         * modules/idcache (Depends-on): Re-add flexmember.
54287
54288         * lib/idcache.c (getuser): Remove all uses of the register keyword.
54289         (getuidbyname, getgroup, getgidbyname): Likewise.
54290
54291         Use cleaner syntax: NULL rather than 0.
54292         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
54293
54294 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54295
54296         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
54297         It mishandled the case where the group was missing.
54298         Problem reported by Greg Schafer.
54299         * modules/idcache: Likewise.
54300
54301 2006-11-18  Jim Meyering  <jim@meyering.net>
54302
54303         * check-module (%exempt_header): Add exception for some
54304         conditionally-included headers.
54305
54306         * modules/i-ring (Depends-on): Add verify.
54307         (License): Change to LGPL.
54308
54309 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54310
54311         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
54312         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
54313         and inttostr.h.  Use snprintf rather than uinttostr, so that
54314         LGPLed code doesn't depend on GPLed.
54315
54316 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54317
54318         * modules/inline (License): Change from GPL to LGPL.
54319
54320 2006-11-17  Jim Meyering  <jim@meyering.net>
54321
54322         * modules/d-type (License): Switch to LGPL.
54323
54324 2006-11-15  Bruno Haible  <bruno@clisp.org>
54325
54326         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
54327
54328 2006-11-15  Eric Blake  <ebb9@byu.net>
54329
54330         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
54331         the module dependency.
54332
54333 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54334             Bruno Haible  <bruno@clisp.org>
54335
54336         * gnulib-tool (func_create_testdir): Add license consistency check.
54337
54338 2006-11-15  Eric Blake  <ebb9@byu.net>
54339
54340         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
54341         random "(cached)" in configure output.
54342
54343 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54344
54345         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
54346         test for conforming inttypes.h is both announced and cached.
54347
54348         * MODULES.html.sh (seen_modules, seen_files): New variables.
54349         (func_module): Rewrite to use a few less gnulib-tool and sed
54350         invocations.  Avoid a couple of quadratic algorithms for ...
54351         (missed_modules, missed_files): ... these, with ...
54352         (func_append, func_tmpdir): ... these new functions, from
54353         gnulib-tool.  Analogously, install traps for cleanup.
54354
54355         * tests/test-gc.c (main): Remove unused variables.
54356         * tests/test-read-file.c: Include stdlib.h, for 'free'.
54357
54358 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
54359
54360         * modules/inttostr (License): Change to LGPL.
54361
54362 2006-11-14  Eric Blake  <ebb9@byu.net>
54363
54364         * modules/tempname (License): Change to LGPL.
54365
54366 2006-11-14  Eric Blake  <ebb9@byu.net>
54367
54368         * doc/functions.texi (Function Portability): *printf functions on
54369         Cygwin now understand all POSIX size specifiers.
54370
54371 2006-11-14  Bruno Haible  <bruno@clisp.org>
54372
54373         * modules/c-ctype (License): Change to LGPL.
54374
54375 2006-11-12  Bruno Haible  <bruno@clisp.org>
54376
54377         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54378         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
54379         for GNOME libraries, for which the include files are installed in
54380         subdirectories of $prefix/include.
54381
54382 2006-11-12  Bruno Haible  <bruno@clisp.org>
54383
54384         * m4/lib-link.m4: Require at least autoconf-2.54.
54385         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
54386         name to underscores for the --with option.
54387
54388 2006-11-13  Bruno Haible  <bruno@clisp.org>
54389
54390         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
54391         the tests directory.
54392         Reported by Ralf Wildenhues.
54393
54394 2006-11-13  Bruno Haible  <bruno@clisp.org>
54395
54396         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
54397         (func_emit_initmacro_end): Undo the override here.
54398         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
54399         Works around the famous automake error in coreutils.
54400
54401 2006-11-13  Eric Blake  <ebb9@byu.net>
54402
54403         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
54404         element, not its node.
54405
54406 2006-11-12  Bruno Haible  <bruno@clisp.org>
54407
54408         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
54409         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
54410
54411 2006-11-12  Bruno Haible  <bruno@clisp.org>
54412
54413         * gnulib-tool: New option --local-symlink.
54414         (func_usage): Document it.
54415         (lsymbolic): New variable.
54416         (func_import, func_create_testdir): If --symlink was not specified,
54417         test whether --local-symlink was specified and the file comes from
54418         the local_gnulib_dir.
54419
54420 2006-11-12  Bruno Haible  <bruno@clisp.org>
54421
54422         * gnulib-tool (func_ln): New function.
54423         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
54424
54425 2006-11-12  Bruno Haible  <bruno@clisp.org>
54426
54427         Finish support for source files in subdirectories.
54428         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
54429         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
54430         AUTOMAKE_OPTIONS.
54431         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
54432
54433 2006-11-12  Bruno Haible  <bruno@clisp.org>
54434
54435         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54436         EXTRA_lib_SOURCES augmentation.
54437         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
54438
54439 2006-11-12  Jim Meyering  <jim@meyering.net>
54440
54441         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
54442         file descriptors.  This also averts a failure on systems with
54443         native openat support when a traversed directory lacks "x" access.
54444         * lib/fts_.h: Include "i-ring.h"
54445         (struct FTS) [fts_fd_ring]: New member.
54446         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
54447         (FCHDIR): Add parentheses.
54448         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
54449         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
54450         When descending, rather than simply closing the previous
54451         fts_cwd_fd value, push that file descriptor onto the ring.
54452         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
54453         (fts_open): Initialize the new fd_ring member.
54454         (fts_close): Clear the ring.
54455         (fts_safe_changedir): When possible, use our new fd_ring to skip
54456         the diropen and fstat and dev/ino comparison that would normally
54457         accompany a virtual `chdir ("..")'.
54458
54459         * modules/fts (Depends-on): Add i-ring.
54460         * modules/i-ring: New module.
54461         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
54462         * m4/i-ring.m4: New file.
54463
54464 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54465
54466         * gnulib-tool (func_create_testdir): Fix replacement of
54467         `build-aux' in configure.ac.  Run autotools in gltests
54468         subdirectory.
54469         (func_create_testdir, func_create_megatestdir, test): There is
54470         no need for '--force' in most autotool invocations in a new
54471         tree.  Actually fail the whole test if any of the tools, or the
54472         configure or make stages fail.
54473
54474         Sync from Automake.
54475         * build-aux/gnupload: Revert last change.  Add pointer to upload
54476         instructions of the GNU Maintenance Instructions.
54477         Suggestion by Karl Berry.
54478
54479 2006-11-10  Jim Meyering  <jim@meyering.net>
54480
54481         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
54482
54483 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54484
54485         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
54486         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
54487         (bind_textdomain_codeset) [! ENABLE_NLS]:
54488         Evaluate all the arguments.  That way, callers get compatible behavior
54489         if the arguments have side effects.  Also, it avoids some GCC
54490         diagnostics in some cases; Joel E. Denny reported problems when Bison
54491         was configured with --enable-gcc-warnigs.
54492
54493 2006-11-10  Jim Meyering  <jim@meyering.net>
54494
54495         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
54496         relevant options in CFLAGS (like -O, -fno-inline) are taken into
54497         account.
54498
54499 2006-11-10  Jim Meyering  <jim@meyering.net>
54500
54501         * modules/inline: New file/module.
54502         * modules/xalloc (Files): Remove m4/inline.m4.
54503         (Depends-on): Add inline, instead.
54504         * modules/oset: Likewise.
54505         * modules/list: Likewise.
54506
54507 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54508
54509         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
54510         Problem reported by Matthew Woehlke.
54511
54512 2006-11-09  Bruno Haible  <bruno@clisp.org>
54513
54514         * lib/tempname.c (gen_tempname): Remove variant that invokes
54515         __gen_tempname.
54516         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
54517         __gen_tempname.
54518
54519 2006-11-08  Bruno Haible  <bruno@clisp.org>
54520
54521         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
54522         to 'yes' instead of 'cross-compiling'.
54523
54524 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
54525
54526         * lib/quotearg.h (quotearg_free): New decl.
54527         * lib/quotearg.c (quotearg_free): New function.
54528         (slot0, nslots, slotvec0, slotvec):
54529         Now file-scope so that quotearg_free can get at them.
54530
54531 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54532
54533         Sync from Automake.
54534         * build-aux/gnupload: Add missing 'gnu' to example URL.
54535         Report by Karl Berry.
54536
54537 2006-11-08  Bruno Haible  <bruno@clisp.org>
54538
54539         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
54540         Suggested by Paul Eggert.
54541
54542 2006-11-08  Jim Meyering  <jim@meyering.net>
54543
54544         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
54545         It's already included if !_LIBC.
54546         (fts_safe_changedir): Add a comment.
54547
54548 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
54549
54550         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
54551         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
54552         Matthew Woehlke.
54553
54554         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
54555         definitions up, to avoid colliding with change below.
54556         (static_inline) [HAVE_INLINE]: New macro.
54557         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
54558         Provide extern decls when !HAVE_INLINE.  Do not define unless
54559         static_inline is defined, either by us or by xmalloc.c.  Use
54560         static_inline rather than static inline.
54561         (XCALLOC): Optimize sizeof(T) = 1 case.
54562         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
54563
54564 2006-11-07  Bruno Haible  <bruno@clisp.org>
54565
54566         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
54567         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
54568         AC_C_INLINE.
54569         * modules/xalloc (Files): Add m4/inline.m4.
54570
54571 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54572
54573         * README: Fix typo.
54574         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
54575         (Miscellanous Notes): ...from this.
54576
54577 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
54578
54579         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
54580         Mention that offsetof should be used instead of sizeof.
54581         From Bruno Haible.
54582
54583 2006-11-07  Bruno Haible  <bruno@clisp.org>
54584
54585         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
54586
54587 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
54588
54589         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
54590         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
54591         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
54592         (gl_tree_add_before, gl_tree_add_after):
54593         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
54594         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
54595         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54596         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
54597         (gl_linked_add_after, gl_linked_add_at): Likewise.
54598         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
54599         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
54600         (gl_tree_add_before, gl_tree_add_after): Likewise.
54601         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
54602         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
54603         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
54604
54605 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54606
54607         * lib/gl_oset.h: Use C comment style, not C++ comment style.
54608
54609 2006-11-06  Bruno Haible  <bruno@clisp.org>
54610
54611         * m4/inline.m4: New file.
54612         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
54613         * modules/list (Files): Add m4/inline.m4.
54614         * modules/oset (Files): Likewise.
54615
54616 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
54617
54618         * lib/idcache.c: Include <stddef.h>, for offsetof.
54619         (struct userid.name): Change from char * to a flexible array member.
54620         All uses changed.
54621         * modules/idcache (Depends-on): Add flexmember.
54622
54623         * MODULES.html.sh (Core language properties): New module flexmember.
54624         * modules/flexmember, m4/flexmember.m4: New files.
54625
54626         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
54627         inline functions that are identical with the old xnmalloc_inline,
54628         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
54629         that we can avoid some unnecessary integer multiplications and
54630         divisions in the common case where the element size is known at
54631         compile time.
54632         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
54633         needed.
54634         (xnboundedmalloc): Remove.
54635         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
54636         arguments, for consistency with rest of this header.
54637         (xcharalloc): Rewrite using XNMALLOC.
54638         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
54639         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
54640         versions have been moved to lib/xalloc.h and renamed to be the
54641         non-*_inline versions.
54642         (xmalloc, xrealloc): Implement without reference to the xnmalloc
54643         and xnrealloc functions, since those functions are now inline and
54644         now call us.
54645         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
54646         renaming described above.
54647         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
54648         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
54649         captures the dependency in AC_C_INLINE.
54650
54651         New module canonicalize-lgpl, proposed by Charles Wilson in
54652         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
54653         with a few small changes afterwards.
54654         * MODULES.html.sh (File system functions): New module
54655         canonicalize-lgpl.
54656         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
54657         and canonicalize_file_name.
54658         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
54659         * modules/canonicalize-lgpl: New files.
54660
54661 2006-11-05  Bruno Haible  <bruno@clisp.org>
54662
54663         * gnulib-tool (func_import, func_create_testdir): Create directories
54664         also for files in subdirectories of lib/.
54665
54666 2006-11-05  Bruno Haible  <bruno@clisp.org>
54667
54668         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
54669         ANSI C compliant.
54670
54671 2006-11-03  Bruno Haible  <bruno@clisp.org>
54672
54673         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
54674         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
54675         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
54676         (xnboundedmalloc): New inline function.
54677         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
54678         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
54679         xmalloc.
54680         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
54681         xmalloc.
54682         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
54683         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
54684         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
54685         xmalloc.
54686         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54687         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
54688         xmalloc.
54689         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
54690         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54691         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
54692         xmalloc.
54693         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54694         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
54695         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54696         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
54697         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
54698         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
54699         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
54700
54701 2006-11-03  Bruno Haible  <bruno@clisp.org>
54702
54703         * lib/c-ctype.h [C++]: Define functions without name mangling.
54704         * lib/fwriteerror.h [C++]: Likewise.
54705         * lib/gcd.h [C++]: Likewise.
54706         * lib/linebreak.h [C++]: Likewise.
54707
54708 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54709
54710         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
54711         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
54712         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
54713         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
54714         Check for functions and headers just once.
54715         Check for declaration of canonicalize_file_name.
54716         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
54717
54718 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54719
54720         * gnulib-tool (func_import): Fix typo in actioncmd.
54721
54722 2006-11-02  Bruno Haible  <bruno@clisp.org>
54723
54724         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
54725         newline sequence in the Makefile.am snippet as a space, like "make"
54726         does.
54727         Reported by Roger Persson <perrog@gmail.com>.
54728
54729 2006-11-01  Bruno Haible  <bruno@clisp.org>
54730
54731         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
54732         already declared in <string.h>.
54733         * lib/strcase.h (strncasecmp): Don't declare it if yes.
54734
54735 2006-11-01  Bruno Haible  <bruno@clisp.org>
54736
54737         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
54738         * lib/strcase.h: Include <string.h>.
54739         (strcasecmp): Define to rpl_strcasecmp here.
54740
54741 2006-11-01  Bruno Haible  <bruno@clisp.org>
54742
54743         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
54744
54745 2006-11-01  Eric Blake  <ebb9@byu.net>
54746
54747         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
54748
54749         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
54750
54751 2006-10-29  Bruno Haible  <bruno@clisp.org>
54752
54753         Make it compile in C++ mode.
54754         * lib/full-write.c (full_rw): Add a cast.
54755
54756 2006-11-01  Bruno Haible  <bruno@clisp.org>
54757
54758         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
54759         be POSIX compliant.
54760         Reported by Roger Persson <perrog@gmail.com>.
54761
54762 2006-11-01  Eric Blake  <ebb9@byu.net>
54763
54764         * lib/getopt_.h: Fix comments.
54765
54766 2006-10-31  Eric Blake  <ebb9@byu.net>
54767
54768         * modules/tmpdir (Depends-on): Add sys_stat.
54769         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
54770         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
54771         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
54772         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
54773         tempname.
54774
54775 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
54776
54777         Avoid some C++ diagnostics reported by Bruno Haible.
54778         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
54779         xmalloc.
54780         (quotearg_alloc): Use xcharalloc rather than xmalloc.
54781         (struct slotvec): Move to top level.
54782         (quotearg_n_options): Rewrite to avoid xmalloc.
54783         * lib/xalloc.h (xcharalloc): New function.
54784         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
54785         [defined __cplusplus]: Add function template that provides result
54786         type propagation.  This part of the change is from Bruno Haible.
54787
54788 2006-10-29  Bruno Haible  <bruno@clisp.org>
54789
54790         Make it compile in C++ mode.
54791         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
54792         * lib/strnlen1.c (strnlen1): Cast memchr result.
54793         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
54794         * lib/clean-temp.c (string_equals, string_hash): Add casts.
54795         (create_temp_dir): Rename local variable 'template'.
54796         (compile_csharp_using_sscli): Add cast.
54797         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
54798         * lib/findprog.c (find_in_path): Likewise.
54799         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
54800         * lib/wait-process.c (register_slave_subprocess): Likewise.
54801
54802 2006-10-22  Bruno Haible  <bruno@clisp.org>
54803
54804         * modules/tsearch: New file.
54805         * lib/tsearch.h: New file.
54806         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
54807         * m4/tsearch.m4: New file.
54808         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
54809
54810 2006-10-29  Eric Blake  <ebb9@byu.net>
54811
54812         * lib/arcfour.c: Assume config.h.
54813         * lib/arctwo.c: Likewise.
54814         * lib/base64.c: Likewise.
54815         * lib/check-version.c: Likewise.
54816         * lib/crc.c: Likewise.
54817         * lib/des.c: Likewise.
54818         * lib/gc-gnulib.c: Likewise.
54819         * lib/gc-libgcrypt.c: Likewise.
54820         * lib/gc-pbkdf2-sha1.c: Likewise.
54821         * lib/getaddrinfo.c: Likewise.
54822         * lib/getdelim.c: Likewise.
54823         * lib/getline.c: Likewise.
54824         * lib/hmac-md5.c: Likewise.
54825         * lib/hmac-sha1.c: Likewise.
54826         * lib/iconvme.c: Likewise.
54827         * lib/md2.c: Likewise.
54828         * lib/md4.c: Likewise.
54829         * lib/memxor.c: Likewise.
54830         * lib/read-file.c: Likewise.
54831         * lib/readline.c: Likewise.
54832         * lib/rijndael-alg-fst.c: Likewise.
54833         * lib/rijndael-api-fst.c: Likewise.
54834         * lib/xgetdomainname.c: Likewise.
54835
54836 2006-10-28  Eric Blake  <ebb9@byu.net>
54837
54838         * lib/xstrndup.c: Assume config.h.
54839
54840 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
54841
54842         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
54843         stat-macros.h is now for our own macros, whereas stat_h is for
54844         macros in the <sys/stat.h> name space.
54845         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
54846         (STAT_MACROS_H): Remove.
54847         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
54848         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
54849         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
54850         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
54851         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
54852         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
54853         Move these macros to ...
54854         * lib/stat_.h: here.  Don't include stat-macros.h.
54855         * lib/canonicalize.c: Don't include stat-macros.h.
54856         * lib/chown.c: Likewise.
54857         * lib/euidaccess.c: Likewise.
54858         * lib/file-type.c: Likewise.
54859         * lib/filemode.c: Likewise.
54860         * lib/glob.c: Likewise.
54861         * lib/isapipe.c: Likewise.
54862         * lib/lchown.c: Likewise.
54863         * lib/lstat.c: Likewise.
54864         * lib/mkdir-p.c: Likewise.
54865         * lib/rmdir.c: Likewise.
54866         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
54867         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
54868         unless mkdir isn't declared, to speed up 'configure'.
54869         Always create sys/stat.h, since it's unlikely any real sys/stat.h
54870         would define all the S_* symbols.
54871         * modules/canonicalize (Depends-on):
54872         Depend on sys_stat, not stat-macros.
54873         * modules/chown: Likewise.
54874         * modules/euidaccess: Likewise.
54875         * modules/filemode: Likewise.
54876         * modules/file-type: Likewise.
54877         * modules/glob: Likewise.
54878         * modules/isapipe: Likewise.
54879         * modules/lchown: Likewise.
54880         * modules/lstat: Likewise.
54881         * modules/mkancesdirs: Likewise.
54882         * modules/rmdir: Likewise.
54883         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
54884         * modules/modechange: Likewise.
54885         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
54886         (configure.ac): Remove gl_STAT_MACROS.
54887         * modules/sys_stat (Depends-on): Remove stat-macros.
54888
54889 2006-10-27  Bruno Haible  <bruno@clisp.org>
54890
54891         * m4/signed.m4: Remove file.
54892         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
54893         invocation.
54894         * modules/vasnprintf (Files): Remove m4/signed.m4.
54895
54896 2006-10-27  Bruno Haible  <bruno@clisp.org>
54897
54898         Update to GNU gettext 0.16.
54899         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
54900         m4/inttypes-h.m4, m4/signed.m4.
54901         * m4/gettext.m4: Update to GNU gettext 0.16.
54902         * m4/intl.m4: New file, from GNU gettext.
54903         * m4/intldir.m4: New file, from GNU gettext.
54904         * config/srclist.txt: Update
54905
54906 2006-10-27  Eric Blake  <ebb9@byu.net>
54907
54908         * MODULES.html.sh: Document tempname.
54909         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
54910         dependencies.
54911         (Files): Move lib/tempname.c...
54912         * modules/tempname: ...to this new module.
54913         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
54914         (gl_PREREQ_TEMPNAME): Move...
54915         * m4/tempname.m4: ...to this new file.
54916         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
54917         * modules/sys_stat (Depends-on): Add stat-macros.
54918         * lib/stat_.h (includes): Pick up stat macros.
54919         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
54920         if stat macros are broken.
54921         * lib/tempname.c (includes): No need to include "stat-macros.h".
54922         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
54923         (direxists, __path_search) [!_LIBC]: Don't compile these in
54924         gnulib; the tmpdir module covers that.
54925         * lib/tempname.h: New file.
54926
54927 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
54928
54929         * COPYING: Explain how gnulib-tool converts licence headers.
54930         Almost all wording by Eric Blake.
54931
54932 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
54933
54934         * lib/mbchar.h (is_basic_table): Make read-only.
54935         * lib/mbchar.c (is_basic_table): Likewise.
54936         Reported by John Darrington.
54937
54938 2006-10-25  Bruno Haible  <bruno@clisp.org>
54939
54940         * lib/progname.h (set_program_name): Undefine before defining.
54941
54942 2006-10-25  Bruno Haible  <bruno@clisp.org>
54943
54944         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
54945         false for non-gcc C++ compilers.
54946         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54947
54948 2006-10-24  Bruno Haible  <bruno@clisp.org>
54949
54950         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
54951         iconv implementations like Irix iconv.
54952
54953 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54954
54955         * modules/vararrays: New file.
54956         * m4/vararrays.m4: New file, taken from diffutils.
54957         * MODULES.html.sh: New module vararrays.
54958
54959 2006-10-24  Karl Berry  <karl@gnu.org>
54960
54961         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
54962         Don't call GNU Unix.
54963
54964 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54965
54966         * users.txt: Add Libtool.
54967
54968         Sync from Libtool:
54969
54970         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54971
54972         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
54973         to gnulib's policy of including config.h unconditionally.
54974
54975 2006-10-24  Bruno Haible  <bruno@clisp.org>
54976
54977         * modules/wcwidth (Files): Add m4/wint_t.m4.
54978         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
54979         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
54980
54981 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54982
54983         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
54984         to pacify GCC with some -W flags enabled.  Problem reported by
54985         Bruno Haible.
54986
54987 2006-10-24  Jim Meyering  <jim@meyering.net>
54988
54989         * MODULES.html.sh: Remove uinttostr.  It's not a module.
54990         Reported by Karl Berry.
54991
54992 2006-10-23  Bruno Haible  <bruno@clisp.org>
54993
54994         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
54995
54996 2006-10-24  Bruno Haible  <bruno@clisp.org>
54997
54998         * lib/gl_list.h: Use C comment style, not C++ comment style.
54999
55000 2006-10-23  Eric Blake  <ebb9@byu.net>
55001
55002         * lib/getaddrinfo.c (includes): Add missing include.
55003
55004 2006-10-23  Bruno Haible  <bruno@clisp.org>
55005             Paul Eggert  <eggert@cs.ucla.edu>
55006
55007         Ability to rename obstack_free.
55008         * lib/obstack.h (__obstack_free): New macro. Declare instead of
55009         obstack_free.
55010         (obstack_free): Invoke the __obstack_free macro.
55011         * lib/obstack.c (obstack_free): Use __obstack_free macro.
55012
55013 2006-10-23  Bruno Haible  <bruno@clisp.org>
55014             Paul Eggert  <eggert@cs.ucla.edu>
55015
55016         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
55017         __argc, __argv from the declaration. (They are defined as macros on
55018         mingw.)
55019
55020 2006-10-22  Bruno Haible  <bruno@clisp.org>
55021
55022         * doc/gnulib-intro.texi: New file.
55023         * doc/gnulib.texi: Include it.
55024
55025 2006-10-21  Bruno Haible  <bruno@clisp.org>
55026
55027         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
55028         "Introduction", "Miscellanous Notes", "Particular Modules".
55029
55030 2006-10-21  Bruno Haible  <bruno@clisp.org>
55031
55032         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55033         Change mostlyclean-local rule to avoid sh syntax error from bash
55034         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
55035
55036 2006-10-23  Jim Meyering  <jim@meyering.net>
55037
55038         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
55039         in place of snprintf.
55040
55041         * modules/inttostr (Files): Add lib/uinttostr.c.
55042         * lib/uinttostr.c (inttostr): New file/function.
55043         * lib/inttostr.h (uinttostr): Declare.
55044         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
55045         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55046         Add uinttostr.
55047         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
55048
55049 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55050
55051         * lib/canonicalize.c (ELOOP): Define if not already defined.
55052         Problem reported by Bruno Haible in
55053         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
55054
55055 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55056
55057         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
55058         Problem reported by Perry Smith and Ville Laurikari.
55059
55060         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
55061         uses.
55062
55063 2006-10-19  Bruno Haible  <bruno@clisp.org>
55064
55065         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
55066         for mingw.
55067
55068 2006-10-19  Bruno Haible  <bruno@clisp.org>
55069
55070         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
55071         Needed for mingw.
55072
55073 2006-10-19  Bruno Haible  <bruno@clisp.org>
55074
55075         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
55076
55077 2006-10-19  Bruno Haible  <bruno@clisp.org>
55078
55079         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
55080         it.
55081
55082 2006-10-19  Bruno Haible  <bruno@clisp.org>
55083
55084         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
55085         invocation.
55086
55087 2006-10-19  Bruno Haible  <bruno@clisp.org>
55088
55089         * gnulib-tool (func_create_testdir): Don't include ftruncate and
55090         mountlist by default.
55091
55092 2006-10-16  Bruno Haible  <bruno@clisp.org>
55093
55094         * lib/c-strstr.c: Include c-strstr.h.
55095
55096 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55097
55098         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
55099         in a slash.
55100
55101 2006-10-18  Bruno Haible  <bruno@clisp.org>
55102
55103         * lib/lock.h [C++]: Wrap definitions in extern "C".
55104
55105 2006-10-18  Bruno Haible  <bruno@clisp.org>
55106
55107         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
55108         gl_LIBOBJS list.
55109
55110 2006-10-18  Bruno Haible  <bruno@clisp.org>
55111
55112         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
55113
55114 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
55115
55116         * lib/xstrtol.h: Include gettext.h.
55117         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
55118         Problem reported by Eric Blake.
55119         * modules/xstrtol (Depends-on): Add gettext-h.
55120
55121 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
55122
55123         * lib/strftime.c (advance): New macro.
55124         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
55125         incomplete type, so you can't add 0 to it.  Problem and patch
55126         reported by Eelco Dolstra for dietlibc.
55127
55128 2006-10-18  Jim Meyering  <jim@meyering.net>
55129
55130         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
55131         type for a local, and rename it: s/up/user_proc/.
55132
55133 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55134
55135         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
55136         READ_UTMP_USER_PROCESS.
55137         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
55138
55139 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55140
55141         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
55142         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
55143
55144 2006-10-17  Eric Blake  <ebb9@byu.net>
55145
55146         * lib/sigprocmask.c (sigprocmask): Fix typo.
55147
55148         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
55149
55150         * modules/clean-temp (Makefile.am): Don't add to make output...
55151         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
55152         config.h.
55153
55154 2006-10-17  Bruno Haible  <bruno@clisp.org>
55155
55156         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
55157         differently if DEFAULT_TEXT_DOMAIN is set.
55158
55159 2006-10-16  Bruno Haible  <bruno@clisp.org>
55160
55161         * lib/clean-temp.c: Include fwriteerror.h.
55162
55163 2006-10-16  Bruno Haible  <bruno@clisp.org>
55164
55165         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
55166
55167 2006-10-16  Bruno Haible  <bruno@clisp.org>
55168
55169         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
55170         * lib/sigprocmask.h: Include <sys/types.h>.
55171         (sigset_t): Use the system's definition if present.
55172
55173 2006-10-17  Eric Blake  <ebb9@byu.net>
55174
55175         * lib/xvasprintf.c (includes): Assume config.h.
55176         * lib/xasprintf.c (includes): Likewise.
55177
55178 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55179
55180         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
55181         at least as wide as intmax_t.
55182
55183 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
55184
55185         (Imported from Automake.)
55186         * build-aux/gnupload: Update to version 1.1 of directive file.
55187
55188 2006-10-16  Eric Blake  <ebb9@byu.net>
55189
55190         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
55191         match Automake 1.10a.
55192
55193 2006-10-14  Bruno Haible  <bruno@clisp.org>
55194
55195         * modules/sigprocmask: New file.
55196         * lib/sigprocmask.h: New file.
55197         * lib/sigprocmask.c: New file.
55198         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
55199         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
55200         request sigprocmask.o.
55201         (gl_PREREQ_SIGPROCMASK): New macro.
55202         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
55203         (Depends-on): Add sigprocmask.
55204         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
55205         gt_SIGNALBLOCKING. Test for 'raise' only once.
55206         * lib/fatal-signal.c: Include sigprocmask.h.
55207         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
55208         unblock_fatal_signals): Define always.
55209         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55210         sigprocmask.
55211
55212 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55213
55214         Sync from Automake.
55215         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
55216         which incorrectly sets the mode of an existing destination
55217         directory.  In some cases the unpatched install-sh could do the
55218         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
55219         system.  We hope this is rare in practice, but it's clearly worth
55220         fixing.  Problem reported by Alex Unleashed in
55221         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
55222         Also, don't bother to check for -m bugs unless we're using -m;
55223         suggested by Stepan Kasal.
55224
55225 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55226
55227         Sync from Automake.
55228         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
55229         `-c' flag, so they appear at the same position as in %FASTDEP%
55230         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
55231         which ignores unknown options only after the first non-option.
55232         Bug report against M4 by Nelson H. F. Beebe.
55233
55234 2006-10-13  Jim Meyering  <jim@meyering.net>
55235
55236         Fix a bug in yesterday's change.
55237         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
55238         p->fts_statp->st_dev would be used uninitialized.
55239         Ensures that we always call fts_stat on the very first entry.
55240         Miklos Szeredi reported that find -xdev stopped working.
55241
55242 2006-10-12  Bruno Haible  <bruno@clisp.org>
55243
55244         * gnulib-tool (func_get_automake_snippet): Append an automatically
55245         computed EXTRA_DIST augmentation.
55246         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
55247         * modules/alloca-opt (Makefile.am): Likewise.
55248         * modules/allocsa (Makefile.am): Likewise.
55249         * modules/arcfour (Makefile.am): Likewise.
55250         * modules/arctwo (Makefile.am): Likewise.
55251         * modules/argmatch (Makefile.am): Likewise.
55252         * modules/argz (Makefile.am): Likewise.
55253         * modules/atexit (Makefile.am): Likewise.
55254         * modules/backupfile (Makefile.am): Likewise.
55255         * modules/byteswap (Makefile.am): Likewise.
55256         * modules/c-strtod (Makefile.am): Likewise.
55257         * modules/c-strtold (Makefile.am): Likewise.
55258         * modules/calloc (Makefile.am): Likewise.
55259         * modules/canon-host (Makefile.am): Likewise.
55260         * modules/canonicalize (Makefile.am): Likewise.
55261         * modules/chdir-long (Makefile.am): Likewise.
55262         * modules/chdir-safer (Makefile.am): Likewise.
55263         * modules/check-version (Makefile.am): Likewise.
55264         * modules/chown (Makefile.am): Likewise.
55265         * modules/cloexec (Makefile.am): Likewise.
55266         * modules/close-stream (Makefile.am): Likewise.
55267         * modules/closeout (Makefile.am): Likewise.
55268         * modules/crc (Makefile.am): Likewise.
55269         * modules/csharpexec (Makefile.am): Likewise.
55270         * modules/cycle-check (Makefile.am): Likewise.
55271         * modules/des (Makefile.am): Likewise.
55272         * modules/dev-ino (Makefile.am): Likewise.
55273         * modules/dirfd (Makefile.am): Likewise.
55274         * modules/dirname (Makefile.am): Likewise.
55275         * modules/dup2 (Makefile.am): Likewise.
55276         * modules/eealloc (Makefile.am): Likewise.
55277         * modules/error (Makefile.am): Likewise.
55278         * modules/euidaccess (Makefile.am): Likewise.
55279         * modules/exclude (Makefile.am): Likewise.
55280         * modules/exitfail (Makefile.am): Likewise.
55281         * modules/fcntl-safer (Makefile.am): Likewise.
55282         * modules/fcntl (Makefile.am): Likewise.
55283         * modules/file-type (Makefile.am): Likewise.
55284         * modules/fileblocks (Makefile.am): Likewise.
55285         * modules/filemode (Makefile.am): Likewise.
55286         * modules/filenamecat (Makefile.am): Likewise.
55287         * modules/fnmatch (Makefile.am): Likewise.
55288         * modules/fopen-safer (Makefile.am): Likewise.
55289         * modules/fpending (Makefile.am): Likewise.
55290         * modules/fprintftime (Makefile.am): Likewise.
55291         * modules/free (Makefile.am): Likewise.
55292         * modules/fsusage (Makefile.am): Likewise.
55293         * modules/ftruncate (Makefile.am): Likewise.
55294         * modules/fts (Makefile.am): Likewise.
55295         * modules/gc-arcfour (Makefile.am): Likewise.
55296         * modules/gc-des (Makefile.am): Likewise.
55297         * modules/gc-hmac-md5 (Makefile.am): Likewise.
55298         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
55299         * modules/gc-md4 (Makefile.am): Likewise.
55300         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55301         * modules/gc-sha1 (Makefile.am): Likewise.
55302         * modules/gc (Makefile.am): Likewise.
55303         * modules/getaddrinfo (Makefile.am): Likewise.
55304         * modules/getcwd (Makefile.am): Likewise.
55305         * modules/getdelim (Makefile.am): Likewise.
55306         * modules/getdomainname (Makefile.am): Likewise.
55307         * modules/getgroups (Makefile.am): Likewise.
55308         * modules/gethostname (Makefile.am): Likewise.
55309         * modules/gethrxtime (Makefile.am): Likewise.
55310         * modules/getline (Makefile.am): Likewise.
55311         * modules/getloadavg (Makefile.am): Likewise.
55312         * modules/getlogin_r (Makefile.am): Likewise.
55313         * modules/getndelim2 (Makefile.am): Likewise.
55314         * modules/getopt (Makefile.am): Likewise.
55315         * modules/getpagesize (Makefile.am): Likewise.
55316         * modules/getpass-gnu (Makefile.am): Likewise.
55317         * modules/getpass (Makefile.am): Likewise.
55318         * modules/getsubopt (Makefile.am): Likewise.
55319         * modules/gettime (Makefile.am): Likewise.
55320         * modules/gettimeofday (Makefile.am): Likewise.
55321         * modules/getugroups (Makefile.am): Likewise.
55322         * modules/getusershell (Makefile.am): Likewise.
55323         * modules/glob (Makefile.am): Likewise.
55324         * modules/group-member (Makefile.am): Likewise.
55325         * modules/hard-locale (Makefile.am): Likewise.
55326         * modules/hash (Makefile.am): Likewise.
55327         * modules/hmac-md5 (Makefile.am): Likewise.
55328         * modules/hmac-sha1 (Makefile.am): Likewise.
55329         * modules/human (Makefile.am): Likewise.
55330         * modules/idcache (Makefile.am): Likewise.
55331         * modules/imaxabs (Makefile.am): Likewise.
55332         * modules/imaxdiv (Makefile.am): Likewise.
55333         * modules/inet_ntop (Makefile.am): Likewise.
55334         * modules/inet_pton (Makefile.am): Likewise.
55335         * modules/intprops (Makefile.am): Likewise.
55336         * modules/inttostr (Makefile.am): Likewise.
55337         * modules/inttypes (Makefile.am): Likewise.
55338         * modules/isapipe (Makefile.am): Likewise.
55339         * modules/javaversion (Makefile.am): Likewise.
55340         * modules/lchmod (Makefile.am): Likewise.
55341         * modules/lchown (Makefile.am): Likewise.
55342         * modules/localcharset (Makefile.am): Likewise.
55343         * modules/long-options (Makefile.am): Likewise.
55344         * modules/lstat (Makefile.am): Likewise.
55345         * modules/malloc (Makefile.am): Likewise.
55346         * modules/mathl (Makefile.am): Likewise.
55347         * modules/mbchar (Makefile.am): Likewise.
55348         * modules/md2 (Makefile.am): Likewise.
55349         * modules/md4 (Makefile.am): Likewise.
55350         * modules/md5 (Makefile.am): Likewise.
55351         * modules/memcasecmp (Makefile.am): Likewise.
55352         * modules/memchr (Makefile.am): Likewise.
55353         * modules/memcmp (Makefile.am): Likewise.
55354         * modules/memcoll (Makefile.am): Likewise.
55355         * modules/memcpy (Makefile.am): Likewise.
55356         * modules/memmem (Makefile.am): Likewise.
55357         * modules/memmove (Makefile.am): Likewise.
55358         * modules/mempcpy (Makefile.am): Likewise.
55359         * modules/memrchr (Makefile.am): Likewise.
55360         * modules/memset (Makefile.am): Likewise.
55361         * modules/memxor (Makefile.am): Likewise.
55362         * modules/mkancesdirs (Makefile.am): Likewise.
55363         * modules/mkdir-p (Makefile.am): Likewise.
55364         * modules/mkdir (Makefile.am): Likewise.
55365         * modules/mkdtemp (Makefile.am): Likewise.
55366         * modules/mkstemp (Makefile.am): Likewise.
55367         * modules/mktime (Makefile.am): Likewise.
55368         * modules/modechange (Makefile.am): Likewise.
55369         * modules/mountlist (Makefile.am): Likewise.
55370         * modules/nanosleep (Makefile.am): Likewise.
55371         * modules/obstack (Makefile.am): Likewise.
55372         * modules/openat (Makefile.am): Likewise.
55373         * modules/pagealign_alloc (Makefile.am): Likewise.
55374         * modules/pathmax (Makefile.am): Likewise.
55375         * modules/physmem (Makefile.am): Likewise.
55376         * modules/poll (Makefile.am): Likewise.
55377         * modules/posixtm (Makefile.am): Likewise.
55378         * modules/posixver (Makefile.am): Likewise.
55379         * modules/putenv (Makefile.am): Likewise.
55380         * modules/quote (Makefile.am): Likewise.
55381         * modules/quotearg (Makefile.am): Likewise.
55382         * modules/raise (Makefile.am): Likewise.
55383         * modules/read-file (Makefile.am): Likewise.
55384         * modules/readline (Makefile.am): Likewise.
55385         * modules/readlink (Makefile.am): Likewise.
55386         * modules/readtokens (Makefile.am): Likewise.
55387         * modules/readutmp (Makefile.am): Likewise.
55388         * modules/realloc (Makefile.am): Likewise.
55389         * modules/regex (Makefile.am): Likewise.
55390         * modules/rename-dest-slash (Makefile.am): Likewise.
55391         * modules/rename (Makefile.am): Likewise.
55392         * modules/rijndael (Makefile.am): Likewise.
55393         * modules/rmdir (Makefile.am): Likewise.
55394         * modules/rpmatch (Makefile.am): Likewise.
55395         * modules/safe-read (Makefile.am): Likewise.
55396         * modules/safe-write (Makefile.am): Likewise.
55397         * modules/same-inode (Makefile.am): Likewise.
55398         * modules/same (Makefile.am): Likewise.
55399         * modules/save-cwd (Makefile.am): Likewise.
55400         * modules/savedir (Makefile.am): Likewise.
55401         * modules/setenv (Makefile.am): Likewise.
55402         * modules/settime (Makefile.am): Likewise.
55403         * modules/sha1 (Makefile.am): Likewise.
55404         * modules/sig2str (Makefile.am): Likewise.
55405         * modules/snprintf (Makefile.am): Likewise.
55406         * modules/stat-macros (Makefile.am): Likewise.
55407         * modules/stat-time (Makefile.am): Likewise.
55408         * modules/stdbool (Makefile.am): Likewise.
55409         * modules/stdint (Makefile.am): Likewise.
55410         * modules/stdlib-safer (Makefile.am): Likewise.
55411         * modules/stpcpy (Makefile.am): Likewise.
55412         * modules/stpncpy (Makefile.am): Likewise.
55413         * modules/strcase (Makefile.am): Likewise.
55414         * modules/strcasestr (Makefile.am): Likewise.
55415         * modules/strchrnul (Makefile.am): Likewise.
55416         * modules/strcspn (Makefile.am): Likewise.
55417         * modules/strdup (Makefile.am): Likewise.
55418         * modules/strerror (Makefile.am): Likewise.
55419         * modules/strftime (Makefile.am): Likewise.
55420         * modules/strndup (Makefile.am): Likewise.
55421         * modules/strnlen (Makefile.am): Likewise.
55422         * modules/strpbrk (Makefile.am): Likewise.
55423         * modules/strsep (Makefile.am): Likewise.
55424         * modules/strstr (Makefile.am): Likewise.
55425         * modules/strtod (Makefile.am): Likewise.
55426         * modules/strtoimax (Makefile.am): Likewise.
55427         * modules/strtok_r (Makefile.am): Likewise.
55428         * modules/strtol (Makefile.am): Likewise.
55429         * modules/strtoll (Makefile.am): Likewise.
55430         * modules/strtoul (Makefile.am): Likewise.
55431         * modules/strtoull (Makefile.am): Likewise.
55432         * modules/strtoumax (Makefile.am): Likewise.
55433         * modules/strverscmp (Makefile.am): Likewise.
55434         * modules/sys_socket (Makefile.am): Likewise.
55435         * modules/sys_stat (Makefile.am): Likewise.
55436         * modules/sysexits (Makefile.am): Likewise.
55437         * modules/time_r (Makefile.am): Likewise.
55438         * modules/timegm (Makefile.am): Likewise.
55439         * modules/timespec (Makefile.am): Likewise.
55440         * modules/tmpfile-safer (Makefile.am): Likewise.
55441         * modules/trim (Makefile.am): Likewise.
55442         * modules/unistd-safer (Makefile.am): Likewise.
55443         * modules/unlinkdir (Makefile.am): Likewise.
55444         * modules/unlocked-io (Makefile.am): Likewise.
55445         * modules/userspec (Makefile.am): Likewise.
55446         * modules/utime (Makefile.am): Likewise.
55447         * modules/utimecmp (Makefile.am): Likewise.
55448         * modules/utimens (Makefile.am): Likewise.
55449         * modules/vasnprintf (Makefile.am): Likewise.
55450         * modules/vasprintf (Makefile.am): Likewise.
55451         * modules/vsnprintf (Makefile.am): Likewise.
55452         * modules/xalloc (Makefile.am): Likewise.
55453         * modules/xgetcwd (Makefile.am): Likewise.
55454         * modules/xnanosleep (Makefile.am): Likewise.
55455         * modules/xreadlink (Makefile.am): Likewise.
55456         * modules/xstrtod (Makefile.am): Likewise.
55457         * modules/xstrtol (Makefile.am): Likewise.
55458         * modules/xstrtold (Makefile.am): Likewise.
55459         * modules/yesno (Makefile.am): Likewise.
55460         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
55461
55462 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55463
55464         * modules/error (Makefile.am): Distribute files through
55465         EXTRA_DIST, not lib_SOURCES.
55466
55467 2006-10-12  Eric Blake  <ebb9@byu.net>
55468
55469         * modules/error (Makefile.am): Distribute files in /lib.
55470         * modules/obstack (Makefile.am): Likewise.
55471
55472 2006-10-12  Bruno Haible  <bruno@clisp.org>
55473
55474         * modules/acl (Makefile.am): Distribute all files in lib/ through
55475         EXTRA_DIST.
55476         * modules/arcfour (Makefile.am): Likewise.
55477         * modules/arctwo (Makefile.am): Likewise.
55478         * modules/argmatch (Makefile.am): Likewise.
55479         * modules/argz (Makefile.am): Likewise.
55480         * modules/atexit (Makefile.am): Likewise.
55481         * modules/backupfile (Makefile.am): Likewise.
55482         * modules/c-strtod (Makefile.am): Likewise.
55483         * modules/c-strtold (Makefile.am): Likewise.
55484         * modules/calloc (Makefile.am): Likewise.
55485         * modules/canon-host (Makefile.am): Likewise.
55486         * modules/canonicalize (Makefile.am): Likewise.
55487         * modules/chdir-long (Makefile.am): Likewise.
55488         * modules/chdir-safer (Makefile.am): Likewise.
55489         * modules/check-version (Makefile.am): Likewise.
55490         * modules/chown (Makefile.am): Likewise.
55491         * modules/cloexec (Makefile.am): Likewise.
55492         * modules/close-stream (Makefile.am): Likewise.
55493         * modules/closeout (Makefile.am): Likewise.
55494         * modules/crc (Makefile.am): Likewise.
55495         * modules/cycle-check (Makefile.am): Likewise.
55496         * modules/des (Makefile.am): Likewise.
55497         * modules/dirfd (Makefile.am): Likewise.
55498         * modules/dirname (Makefile.am): Likewise.
55499         * modules/dup2 (Makefile.am): Likewise.
55500         * modules/euidaccess (Makefile.am): Likewise.
55501         * modules/exclude (Makefile.am): Likewise.
55502         * modules/exitfail (Makefile.am): Likewise.
55503         * modules/fcntl-safer (Makefile.am): Likewise.
55504         * modules/file-type (Makefile.am): Likewise.
55505         * modules/fileblocks (Makefile.am): Likewise.
55506         * modules/filemode (Makefile.am): Likewise.
55507         * modules/filenamecat (Makefile.am): Likewise.
55508         * modules/fnmatch (Makefile.am): Likewise.
55509         * modules/fopen-safer (Makefile.am): Likewise.
55510         * modules/fpending (Makefile.am): Likewise.
55511         * modules/fprintftime (Makefile.am): Likewise.
55512         * modules/free (Makefile.am): Likewise.
55513         * modules/fsusage (Makefile.am): Likewise.
55514         * modules/ftruncate (Makefile.am): Likewise.
55515         * modules/fts (Makefile.am): Likewise.
55516         * modules/gc (Makefile.am): Likewise.
55517         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55518         * modules/getaddrinfo (Makefile.am): Likewise.
55519         * modules/getcwd (Makefile.am): Likewise.
55520         * modules/getdelim (Makefile.am): Likewise.
55521         * modules/getdomainname (Makefile.am): Likewise.
55522         * modules/getgroups (Makefile.am): Likewise.
55523         * modules/gethostname (Makefile.am): Likewise.
55524         * modules/gethrxtime (Makefile.am): Likewise.
55525         * modules/getline (Makefile.am): Likewise.
55526         * modules/getloadavg (Makefile.am): Likewise.
55527         * modules/getlogin_r (Makefile.am): Likewise.
55528         * modules/getopt (Makefile.am): Likewise.
55529         * modules/getpass (Makefile.am): Likewise.
55530         * modules/getpass-gnu (Makefile.am): Likewise.
55531         * modules/getsubopt (Makefile.am): Likewise.
55532         * modules/gettime (Makefile.am): Likewise.
55533         * modules/gettimeofday (Makefile.am): Likewise.
55534         * modules/getugroups (Makefile.am): Likewise.
55535         * modules/getusershell (Makefile.am): Likewise.
55536         * modules/glob (Makefile.am): Likewise.
55537         * modules/group-member (Makefile.am): Likewise.
55538         * modules/hard-locale (Makefile.am): Likewise.
55539         * modules/hash (Makefile.am): Likewise.
55540         * modules/hmac-md5 (Makefile.am): Likewise.
55541         * modules/hmac-sha1 (Makefile.am): Likewise.
55542         * modules/human (Makefile.am): Likewise.
55543         * modules/idcache (Makefile.am): Likewise.
55544         * modules/imaxabs (Makefile.am): Likewise.
55545         * modules/imaxdiv (Makefile.am): Likewise.
55546         * modules/inet_ntop (Makefile.am): Likewise.
55547         * modules/inet_pton (Makefile.am): Likewise.
55548         * modules/inttostr (Makefile.am): Likewise.
55549         * modules/isapipe (Makefile.am): Likewise.
55550         * modules/lchown (Makefile.am): Likewise.
55551         * modules/long-options (Makefile.am): Likewise.
55552         * modules/lstat (Makefile.am): Likewise.
55553         * modules/malloc (Makefile.am): Likewise.
55554         * modules/mathl (Makefile.am): Likewise.
55555         * modules/mbchar (Makefile.am): Likewise.
55556         * modules/md2 (Makefile.am): Likewise.
55557         * modules/md4 (Makefile.am): Likewise.
55558         * modules/md5 (Makefile.am): Likewise.
55559         * modules/memcasecmp (Makefile.am): Likewise.
55560         * modules/memchr (Makefile.am): Likewise.
55561         * modules/memcmp (Makefile.am): Likewise.
55562         * modules/memcoll (Makefile.am): Likewise.
55563         * modules/memcpy (Makefile.am): Likewise.
55564         * modules/memmem (Makefile.am): Likewise.
55565         * modules/memmove (Makefile.am): Likewise.
55566         * modules/mempcpy (Makefile.am): Likewise.
55567         * modules/memrchr (Makefile.am): Likewise.
55568         * modules/memset (Makefile.am): Likewise.
55569         * modules/memxor (Makefile.am): Likewise.
55570         * modules/mkancesdirs (Makefile.am): Likewise.
55571         * modules/mkdir (Makefile.am): Likewise.
55572         * modules/mkdir-p (Makefile.am): Likewise.
55573         * modules/mkdtemp (Makefile.am): Likewise.
55574         * modules/mkstemp (Makefile.am): Likewise.
55575         * modules/mktime (Makefile.am): Likewise.
55576         * modules/modechange (Makefile.am): Likewise.
55577         * modules/mountlist (Makefile.am): Likewise.
55578         * modules/nanosleep (Makefile.am): Likewise.
55579         * modules/openat (Makefile.am): Likewise.
55580         * modules/pagealign_alloc (Makefile.am): Likewise.
55581         * modules/physmem (Makefile.am): Likewise.
55582         * modules/poll (Makefile.am): Likewise.
55583         * modules/posixtm (Makefile.am): Likewise.
55584         * modules/posixver (Makefile.am): Likewise.
55585         * modules/putenv (Makefile.am): Likewise.
55586         * modules/quote (Makefile.am): Likewise.
55587         * modules/quotearg (Makefile.am): Likewise.
55588         * modules/raise (Makefile.am): Likewise.
55589         * modules/read-file (Makefile.am): Likewise.
55590         * modules/readline (Makefile.am): Likewise.
55591         * modules/readlink (Makefile.am): Likewise.
55592         * modules/readtokens (Makefile.am): Likewise.
55593         * modules/readutmp (Makefile.am): Likewise.
55594         * modules/realloc (Makefile.am): Likewise.
55595         * modules/regex (Makefile.am): Likewise.
55596         * modules/rename (Makefile.am): Likewise.
55597         * modules/rename-dest-slash (Makefile.am): Likewise.
55598         * modules/rijndael (Makefile.am): Likewise.
55599         * modules/rmdir (Makefile.am): Likewise.
55600         * modules/rpmatch (Makefile.am): Likewise.
55601         * modules/safe-read (Makefile.am): Likewise.
55602         * modules/safe-write (Makefile.am): Likewise.
55603         * modules/same (Makefile.am): Likewise.
55604         * modules/save-cwd (Makefile.am): Likewise.
55605         * modules/savedir (Makefile.am): Likewise.
55606         * modules/setenv (Makefile.am): Likewise.
55607         * modules/settime (Makefile.am): Likewise.
55608         * modules/sha1 (Makefile.am): Likewise.
55609         * modules/sig2str (Makefile.am): Likewise.
55610         * modules/snprintf (Makefile.am): Likewise.
55611         * modules/stdlib-safer (Makefile.am): Likewise.
55612         * modules/stpcpy (Makefile.am): Likewise.
55613         * modules/stpncpy (Makefile.am): Likewise.
55614         * modules/strcase (Makefile.am): Likewise.
55615         * modules/strcasestr (Makefile.am): Likewise.
55616         * modules/strchrnul (Makefile.am): Likewise.
55617         * modules/strcspn (Makefile.am): Likewise.
55618         * modules/strdup (Makefile.am): Likewise.
55619         * modules/strerror (Makefile.am): Likewise.
55620         * modules/strftime (Makefile.am): Likewise.
55621         * modules/strndup (Makefile.am): Likewise.
55622         * modules/strnlen (Makefile.am): Likewise.
55623         * modules/strpbrk (Makefile.am): Likewise.
55624         * modules/strsep (Makefile.am): Likewise.
55625         * modules/strstr (Makefile.am): Likewise.
55626         * modules/strtod (Makefile.am): Likewise.
55627         * modules/strtoimax (Makefile.am): Likewise.
55628         * modules/strtok_r (Makefile.am): Likewise.
55629         * modules/strtol (Makefile.am): Likewise.
55630         * modules/strtoll (Makefile.am): Likewise.
55631         * modules/strtoul (Makefile.am): Likewise.
55632         * modules/strtoull (Makefile.am): Likewise.
55633         * modules/strtoumax (Makefile.am): Likewise.
55634         * modules/strverscmp (Makefile.am): Likewise.
55635         * modules/time_r (Makefile.am): Likewise.
55636         * modules/timegm (Makefile.am): Likewise.
55637         * modules/tmpfile-safer (Makefile.am): Likewise.
55638         * modules/unistd-safer (Makefile.am): Likewise.
55639         * modules/unlinkdir (Makefile.am): Likewise.
55640         * modules/userspec (Makefile.am): Likewise.
55641         * modules/utime (Makefile.am): Likewise.
55642         * modules/utimecmp (Makefile.am): Likewise.
55643         * modules/utimens (Makefile.am): Likewise.
55644         * modules/vasnprintf (Makefile.am): Likewise.
55645         * modules/vasprintf (Makefile.am): Likewise.
55646         * modules/vsnprintf (Makefile.am): Likewise.
55647         * modules/xalloc (Makefile.am): Likewise.
55648         * modules/xgetcwd (Makefile.am): Likewise.
55649         * modules/xnanosleep (Makefile.am): Likewise.
55650         * modules/xreadlink (Makefile.am): Likewise.
55651         * modules/xstrtod (Makefile.am): Likewise.
55652         * modules/xstrtol (Makefile.am): Likewise.
55653         * modules/xstrtold (Makefile.am): Likewise.
55654         * modules/yesno (Makefile.am): Likewise.
55655
55656 2006-10-12  Jim Meyering  <jim@meyering.net>
55657
55658         * m4/getloadavg.m4: Revert the change below.
55659
55660         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
55661         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
55662         fail with a symlink, which is what coreutils' ./bootstrap now
55663         creates by default.
55664
55665 2006-10-12  Bruno Haible  <bruno@clisp.org>
55666
55667         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
55668         mingw.
55669         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
55670         MSVC and mingw explicitly.
55671
55672 2006-10-11  Simon Josefsson  <jas@extundo.com>
55673             Bruno Haible  <bruno@clisp.org>
55674
55675         Add support for multiple gnulib-tool invocations in the scope of a
55676         single configure.ac file.
55677         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
55678         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
55679         with the same contents as the _LIBADD variable.
55680         (func_emit_initmacro_start, func_emit_initmacro_end,
55681         func_emit_initmacro_done): New functions.
55682         (func_import, func_create_testdir): Invoke them. Allow the identifiers
55683         gl_LIBOBJS and gl_LTLIBOBJS.
55684
55685 2006-10-11  Bruno Haible  <bruno@clisp.org>
55686
55687         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
55688         (func_create_testdir): Don't create po/Makefile.am, don't invoke
55689         autoreconf. Instead, invoke autopoint explicitly but move back the
55690         *.m4 files from gnulib.
55691
55692 2006-10-11  Bruno Haible  <bruno@clisp.org>
55693
55694         * gnulib-tool (func_usage): Make module names after --create-testdir
55695         optional.
55696         (func_create_testdir): If no module was specified, use nearly all
55697         modules.
55698
55699 2006-10-12  Jim Meyering  <jim@meyering.net>
55700
55701         Big performance improvement for fts-based tools that use FTS_NOSTAT.
55702         Avoid spurious inode-mismatch problems on non-POSIX file systems.
55703         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
55704         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
55705         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
55706         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
55707         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
55708         (fts_set_stat_required): New function.
55709         (fts_open): Defer the calls to fts_stat, if possible or requested.
55710         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
55711         into fts_stat itself.
55712         (fts_read): Perform any required (deferred) fts_stat call.
55713         (fts_build): Likewise, for the directory we're about to open and read.
55714         In the readdir loop, carefully decide whether each entry will require
55715         an eventual call to fts_stat, using dirent.d_type info if available.
55716         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
55717         a command line argument into this function.  Update all callers.
55718         Map a return value of FTS_DOT to FTS_D for a command line argument.
55719         * modules/fts (Depends-on): Add d-type.  Alphabetize.
55720         Thanks to Miklos Szeredi for his tenacity and for the initial
55721         bug report about "find" failing on a FUSE-based file system.
55722
55723         * lib/fts.c (fts_open): Use consistent indentation.
55724
55725 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55726
55727         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
55728         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
55729         reported by Jim Meyering.  All uses of cache variables renamed
55730         to match Autoconf's.
55731         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
55732         the other one.
55733
55734         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
55735         Fix misspelling in diagnostic.
55736
55737 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55738
55739         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
55740         defined.  Problem reported by Matthew Woehlke.
55741
55742         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
55743         Add support for Tandem NonStop R series.
55744         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
55745         Use new macro.
55746
55747         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
55748         (has_trailing_slash): Omit size arg; all callers changed.
55749         Omit 'inline', since it doesn't help performance and we'd
55750         need to configure it.
55751         Don't count //, ///, etc. as having a trailing slash.
55752         As a side effect, this removes a C99ism reported by Matthew Woehlke.
55753         (rpl_rename_dest_slash): On failure, use rename's errno rather
55754         than (in some cases) an incorrect or junk errno.
55755         Simplify code by removing need to compute length; this does
55756         cause it to make two passes instead of one over the file name,
55757         but it's worth it.
55758
55759         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
55760         change, since Autoconf's version may no longer be appropriate now
55761         that we are using CVS Autoconf's version.  Add support for Tandem.
55762
55763 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55764             Bruno Haible  <bruno@clisp.org>
55765
55766         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
55767         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
55768         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
55769         gl_AC_TYPE_LONG_LONG.
55770
55771         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
55772         instead of HAVE_LONG_LONG.
55773         * lib/printf-args.c (printf_fetchargs): Likewise.
55774         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
55775         * lib/vasnprintf.c (VASNPRINTF): Likewise.
55776         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
55777         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
55778         gl_AC_TYPE_LONG_LONG.
55779
55780 2006-10-11  Bruno Haible  <bruno@clisp.org>
55781
55782         * m4/longlong.m4: Add comments.
55783         * m4/ulonglong.m4: Likewise.
55784
55785 2006-10-10  Bruno Haible  <bruno@clisp.org>
55786
55787         Make it possible to #define stpcpy, strdup to aliases.
55788         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
55789         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
55790
55791 2006-10-10  Bruno Haible  <bruno@clisp.org>
55792
55793         Make it possible to #define gcd to an alias.
55794         * lib/gcd.c: Include config.h.
55795
55796 2006-10-10  Bruno Haible  <bruno@clisp.org>
55797
55798         Make it possible to #define c_isascii to an alias.
55799         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
55800         defined. Undefine the macros before defining them, to avoid gcc
55801         warnings.
55802         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
55803         define NO_C_CTYPE_MACROS early.
55804
55805 2006-10-10  Bruno Haible  <bruno@clisp.org>
55806
55807         Make it possible to #define set_program_name to an alias.
55808         * lib/progname.c: Don't undefine set_program_name; instead, undefine
55809         ENABLE_RELOCATABLE early.
55810
55811 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55812
55813         Port to Tandem NSK OSS, which has 64-bit signed int but at most
55814         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
55815         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
55816         More generally, don't assume that 64-bit signed int is available
55817         if unsigned int is, and vice versa.
55818         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
55819         unsigned symbols, not on their signed counterparts.
55820         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
55821         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
55822         (UINT64_C, UINTMAX_C):
55823         Likewise.
55824         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
55825         unsigned counterparts.
55826         (Have_long_long, Unsigned): New macros.
55827         (Int): Renamed from INT.
55828         (strtoimax): Use the new macros.
55829         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
55830         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
55831         * modules/inttypes (inttypes.h): Substitute
55832         HAVE_UNSIGNED_LONG_LONG_INT.
55833         * modules/stdint (stdint.h): Likewise.
55834         (Files): Add m4/ulonglong.m4.
55835
55836 2006-10-10  Bruno Haible  <bruno@clisp.org>
55837
55838         Fix a gcc -Wshadow warning.
55839         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
55840         to 'bucket'.
55841         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
55842         gl_linked_indexof_from_to): Likewise.
55843         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
55844         Likewise.
55845         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
55846         Likewise.
55847         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
55848         Reported by Eric Blake.
55849
55850 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
55851
55852         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
55853         for NetBSD.  Problem reported by Bruno Haible.
55854
55855 2006-10-09  Jim Meyering  <jim@meyering.net>
55856
55857         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
55858         Patch from Bruno Haible.
55859
55860 2006-10-09  Jim Meyering  <jim@meyering.net>
55861
55862         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
55863         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
55864         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
55865
55866 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55867
55868         Don't include <config.h> twice; this doesn't work in some cases,
55869         e.g., when config.h has "#define intmax_t long long int" and
55870         we include <config.h>, <inttypes.h>, <config.h> in that order.
55871         Problem reported by Matthew Woehlke in:
55872         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
55873         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
55874         * lib/fts-cycle.c: Don't include config.h.
55875         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
55876         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
55877         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
55878         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
55879         inttypes.h.
55880         * lib/xstrtoumax.c: Likewise.
55881         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
55882         __strtol and the like, so that this module is more like its siblings.
55883         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
55884         Remove; no longer needed now that we assume gnulib inttypes.h.
55885
55886 2006-10-08  Bruno Haible  <bruno@clisp.org>
55887
55888         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
55889         option.
55890
55891 2006-10-07  Jim Meyering  <jim@meyering.net>
55892
55893         * modules/inttypes (inttypes.h): Revert what seems to have been
55894         an inadvertent part of today's change: use "|", not "/" in the
55895         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
55896
55897 2006-10-07  Bruno Haible  <bruno@clisp.org>
55898
55899         * modules/sublist: New file.
55900
55901 2006-10-07  Bruno Haible  <bruno@clisp.org>
55902
55903         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
55904         * modules/argz (argz.h): Likewise.
55905         * modules/arpa_inet (arpa/inet.h): Likewise.
55906         * modules/byteswap (byteswap.h): Likewise.
55907         * modules/configmake (configmake.h): Likewise.
55908         * modules/fcntl (fcntl.h): Likewise.
55909         * modules/fnmatch (fnmatch.h): Likewise.
55910         * modules/getopt (getopt.h): Likewise.
55911         * modules/glob (glob.h): Likewise.
55912         * modules/inttypes (inttypes.h): Likewise.
55913         * modules/netinet_in (netinet/in.h): Likewise.
55914         * modules/poll (poll.h): Likewise.
55915         * modules/stdbool (stdbool.h): Likewise.
55916         * modules/stdint (stdint.h): Likewise.
55917         * modules/sys_select (sys/select.h): Likewise.
55918         * modules/sys_socket (sys/socket.h): Likewise.
55919         * modules/sys_stat (sys/stat.h): Likewise.
55920         * modules/sysexits (sysexits.h): Likewise.
55921         * modules/unistd (unistd.h): Likewise.
55922         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55923         Add a "DO NOT EDIT" comment to the generated file.
55924         (func_import): Likewise for gnulib-comp.m4.
55925
55926 2006-10-07  Bruno Haible  <bruno@clisp.org>
55927
55928         * lib/gl_sublist.h: New file.
55929         * lib/gl_sublist.c: New file.
55930
55931 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55932
55933         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
55934         name (relative to the original working directory) and the file
55935         name component (relative to the temporary working directory).  All
55936         callers changed.
55937         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
55938         * lib/mkdir-p.c (make_dir_parents): Likewise.
55939         * lib/mkdir-p.h (make_dir_parents): Likewise.
55940
55941 2006-10-06  Eric Blake  <ebb9@byu.net>
55942
55943         Define several macros for use by the clean-temp module.
55944         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
55945         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
55946         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
55947
55948         * lib/clean-temp.h (close_stream_temp): New declaration.
55949         * lib/clean-temp.c (includes): Pull in headers according to what
55950         other modules are in use.
55951         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
55952
55953 2006-10-06  Bruno Haible  <bruno@clisp.org>
55954
55955         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
55956         instead of fopen, fwriteerror.
55957
55958 2006-10-06  Bruno Haible  <bruno@clisp.org>
55959
55960         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
55961         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
55962         int.
55963         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
55964         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
55965         Return an error indicator.
55966         Suggested by Eric Blake.
55967
55968 2006-10-06  Bruno Haible  <bruno@clisp.org>
55969
55970         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
55971         Reported by Eric Blake.
55972
55973 2006-10-06  Bruno Haible  <bruno@clisp.org>
55974
55975         * modules/closeout (Description): Mention stderr too.
55976
55977 2006-10-06  Bruno Haible  <bruno@clisp.org>
55978         and Paul Eggert  <eggert@cs.ucla.edu>
55979
55980         * lib/closeout.c (close_stdout): Also close stderr.
55981         * lib/closeout.h: Update comment.
55982
55983 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55984
55985         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
55986         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
55987         * lib/dirchownmod.c: Include lchown.h.
55988         * lib/lchown.c: Don't include files that lchown.h now includes.
55989         Don't declare chown, since lchown.h now does that.
55990         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
55991         (lchown): Define to rpl_chown if lchown is declared but
55992         does not exist.  Declare using a prototype if lchown is not
55993         declared.  Add a copyright notice.
55994         * lib/mkstemp.h: Include <unistd.h>.
55995         * lib/openat.c: Include lchown.h.
55996
55997         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
55998         we now test for that separately.
55999         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
56000         rather than O_NOFOLLOW, when testing whether it's possible to
56001         avoid a race condition reliably.
56002         * lib/savewd.c (savewd_chdir): Likewise.
56003
56004         Remove macros that are no longer needed now that stdint.h is
56005         reliable.
56006         * lib/fsusage.c (UINTMAX_MAX): Remove.
56007         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
56008         * lib/utimecmp.c (SIZE_MAX): Remove.
56009
56010         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
56011
56012         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
56013         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
56014         O_NOATIME works.
56015
56016 2006-10-05  Bruno Haible  <bruno@clisp.org>
56017
56018         * lib/gl_list.h (gl_sortedlist_search_from_to,
56019         gl_sortedlist_indexof_from_to): New declarations.
56020         (gl_list_implementation): New fields sortedlist_search_from_to,
56021         sortedlist_indexof_from_to.
56022         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
56023         inline functions.
56024         * lib/gl_list.c (gl_sortedlist_search_from_to,
56025         gl_sortedlist_indexof_from_to): New functions.
56026         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
56027         function.
56028         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
56029         (gl_array_sortedlist_search_from_to): New function.
56030         (gl_array_list_implementation): Update.
56031         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
56032         function.
56033         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
56034         (gl_carray_sortedlist_search_from_to): New function.
56035         (gl_carray_list_implementation): Update.
56036         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
56037         gl_linked_sortedlist_indexof_from_to): New functions.
56038         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56039         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56040         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
56041         gl_tree_sortedlist_indexof_from_to): New functions.
56042         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56043         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56044         Update.
56045         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56046         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
56047         Update.
56048
56049 2006-10-05  Bruno Haible  <bruno@clisp.org>
56050
56051         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
56052         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
56053         (struct gl_list_implementation): Add fields search_from_to,
56054         indexof_from_to. Remove fields search, indexof.
56055         (gl_list_search): Use the search_from_to method.
56056         (gl_list_search_from, gl_list_search_from_to): New functions.
56057         (gl_list_indexof): Use the indexof_from_to method.
56058         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56059         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
56060         (gl_list_search_from, gl_list_search_from_to): New functions.
56061         (gl_list_indexof): Use the indexof_from_to method.
56062         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56063         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
56064         gl_array_indexof. Add start_index, end_index arguments.
56065         (gl_array_search_from_to): Renamed from gl_array_search. Add
56066         start_index, end_index arguments.
56067         (gl_array_remove, gl_array_list_implementation): Update.
56068         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
56069         gl_carray_indexof. Add start_index, end_index arguments.
56070         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
56071         start_index, end_index arguments.
56072         (gl_carray_remove, gl_carray_list_implementation): Update.
56073         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
56074         gl_linked_search. Add start_index, end_index arguments.
56075         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
56076         start_index, end_index arguments.
56077         (gl_linked_remove): Update.
56078         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56079         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56080         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
56081         field to 'size_t'.
56082         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
56083         gl_tree_search. Add start_index, end_index arguments.
56084         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56085         start_index, end_index arguments.
56086         (gl_tree_remove): Update.
56087         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56088         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56089         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
56090         function.
56091         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
56092         gl_tree_search. Add start_index, end_index arguments.
56093         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56094         start_index, end_index arguments.
56095         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56096         Update.
56097         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56098
56099 2006-10-05  Bruno Haible  <bruno@clisp.org>
56100
56101         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
56102
56103         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
56104         fwriteerror_temp): New declarations.
56105         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
56106         (descriptors): New variable.
56107         (cleanup): First, close the descriptors.
56108         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
56109         fclose_temp, fwriteerror_temp): New functions.
56110
56111 2006-10-04  Jim Meyering  <jim@meyering.net>
56112
56113         * lib/fts.c (fts_open): Tiny comment change.
56114
56115 2006-10-04  Bruno Haible  <bruno@clisp.org>
56116
56117         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
56118         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
56119         gl_LOCK_BODY.
56120         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
56121         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
56122         gl_LOCK_EARLY_BODY.
56123         (gl_LOCK): Require gl_LOCK_BODY.
56124
56125 2006-10-04  Bruno Haible  <bruno@clisp.org>
56126
56127         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
56128         (gl_oset_search_atleast): New declaration.
56129         (struct gl_oset_implementation): Add field 'search_atleast'.
56130         (gl_oset_search_atleast): New inline function.
56131         * lib/gl_oset.c (gl_oset_search_atleast): New function.
56132         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
56133         (gl_array_oset_implementation): Update.
56134         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
56135         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
56136         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
56137
56138 2006-10-04  Bruno Haible  <bruno@clisp.org>
56139
56140         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
56141
56142 2006-10-03  Bruno Haible  <bruno@clisp.org>
56143
56144         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
56145         from gl_avltreehash_list_implementation.
56146
56147 2006-10-03  Bruno Haible  <bruno@clisp.org>
56148
56149         * lib/gl_oset.c (gl_oset_add): Fix return type.
56150
56151 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
56152
56153         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
56154
56155 2006-10-02  Eric Blake  <ebb9@byu.net>
56156
56157         * modules/strnlen (Depends-on): Add extensions.
56158
56159 2006-10-02  Eric Blake  <ebb9@byu.net>
56160
56161         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
56162         definition in 2.60+.
56163
56164 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56165
56166         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
56167         checks.
56168
56169 2006-10-02  Bruno Haible  <bruno@clisp.org>
56170
56171         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
56172         to the AUTOMAKE_OPTIONS.
56173         Reported by Jim Meyering.
56174
56175 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56176
56177         Work around bug in Solaris 10 /proc file system:
56178         /proc/self/fd/NNN/.. isn't the parent directory of
56179         the directory whose file descriptor is NNN.  This needs to
56180         be worked around at run time, not compile time, since a
56181         program might be built on Solaris 8, where things work, and
56182         run on Solaris 10.
56183         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
56184         to use the following interface instead:
56185         (OPENAT_BUFFER_SIZE): New macro.
56186         (openat_proc_name): New function.
56187         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
56188         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
56189         Likewise.
56190         * lib/openat-proc.c: New file.
56191         * modules/openat (Files): Add lib/openat-proc.c.
56192         (Depends-on): Add same-inode, stdbool.
56193         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
56194
56195 2006-09-29  Bruno Haible  <bruno@clisp.org>
56196
56197         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
56198         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
56199         argument. Set stdout_closed before testing for ferror, not after.
56200         (fwriteerror, fwriteerror_no_ebadf): New functions.
56201
56202 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56203
56204         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
56205
56206 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
56207
56208         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
56209         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
56210
56211 2006-09-28  Jim Meyering  <jim@meyering.net>
56212
56213         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
56214         Include <unistd.h>.
56215
56216 2006-09-28  Bruno Haible  <bruno@clisp.org>
56217
56218         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
56219         * modules/linkedhash-list (Depends-on): Likewise.
56220         * modules/rbtreehash-list (Depends-on): Likewise.
56221
56222 2006-09-28  Bruno Haible  <bruno@clisp.org>
56223
56224         * lib/strndup.h: Simplify the redefinition of strndup.
56225         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
56226         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
56227
56228 2006-09-28  Bruno Haible  <bruno@clisp.org>
56229
56230         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
56231         * lib/gl_linkedhash_list.c: Likewise.
56232         * lib/gl_rbtreehash_list.c: Likewise.
56233
56234 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56235
56236         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
56237         getaddrinfo.
56238
56239         * lib/__fpending.h: Don't include <stdio_ext.h> unless
56240         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
56241         it causes <stdio_ext.h> to cause a compile-time error.
56242         Problem reported by Nelson H. F. Beebe.
56243         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
56244         of HAVE_DECL___PENDING.
56245
56246         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
56247         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
56248         declaration.
56249
56250 2006-09-27  Jim Meyering  <jim@meyering.net>
56251
56252         This file could end up with a definition for a function
56253         named __strndup, rather than rpl_strndup on a system with
56254         incomplete weak_alias support.
56255         * lib/strndup.c (strndup): Rename from __strndup.
56256         Remove #defines that used to map __strndup to strndup.
56257         Don't use K&R prototypes.
56258         Remove LIBC-related code, since this file is not sync'd with glibc.
56259         * lib/strndup.h: Revamp, accordingly.
56260         * m4/strndup.m4: Modernize.
56261
56262 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56263
56264         * modules/savewd (Depends-on): Add 'raise'.
56265         * lib/savewd.c: Include <signal.h>, for 'raise'.
56266
56267 2006-09-26  Jim Meyering  <jim@meyering.net>
56268
56269         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
56270         when we detect Darwin 8.7.0's acl_get_file bug.
56271         Rearrange to perform the new (below) run-test while $LIBS
56272         contains any acl-related library.  Set USE_ACL at the end.
56273         (gl_ACL_GET_FILE): New function.
56274
56275 2006-09-26  Eric Blake  <ebb9@byu.net>
56276
56277         * lib/verror.c: Include <config.h> unconditionally.
56278
56279 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
56280
56281         * modules/clock-time (Maintainer): Add self.
56282         * modules/getlogin_r (Depends-on): Add extensions.
56283
56284 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56285
56286         * modules/clock-time: New module.
56287         * modules/nanosleep (Depends-on): Add clock-time.
56288         * modules/gethrxtime (Depends-on): Likewise.
56289         * modules/gettime (Depends-on): Likewise.
56290         * modules/settime (Depends-on): Likewise.
56291
56292         * modules/fts-lgpl: Depend on openat.
56293         * modules/mkancesdirs: Depend on savewd.
56294         * modules/mkdir-p: Likewise.
56295
56296 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56297
56298         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
56299
56300         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
56301         `gl_have_arbitrary_file_name_length_limit' to
56302         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
56303         actually works between configure runs.
56304
56305 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56306             Bruno Haible  <bruno@clisp.org>
56307
56308         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
56309
56310 2006-09-25  Jim Meyering  <jim@meyering.net>
56311
56312         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
56313         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
56314
56315 2006-09-25  Eric Blake  <ebb9@byu.net>
56316
56317         * gnulib-tool (func_import, func_create_testdir): Fix typos in
56318         exec's in 2006-09-18 patch when shuffling fds.
56319
56320 2006-09-25  Bruno Haible  <bruno@clisp.org>
56321
56322         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
56323         Reported by Jim Meyering.
56324
56325 2006-09-24  Jim Meyering  <jim@meyering.net>
56326
56327         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
56328         compare a pointer against a literal "0".  That caused failures with
56329         at least HP-UX's hpcc.
56330
56331 2006-09-22  Simon Josefsson  <jas@extundo.com>
56332
56333         * modules/gc-sha1:
56334         * modules/gc-md4:
56335         * modules/gc-hmac-sha1:
56336         * modules/gc-hmac-md5:
56337         * modules/gc-des:
56338         * modules/gc-arcfour: Distribute more files.
56339
56340 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56341
56342         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
56343         (gl_linked_iterator_from_to): Initialize struct completely.
56344         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
56345         (gl_tree_iterator_from_to): Likewise
56346         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
56347         * lib/gl_array_list.c [lint] (gl_array_iterator)
56348         (gl_array_iterator_from_to): Likewise.
56349         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
56350         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
56351         (gl_carray_iterator_from_to): Likewise.
56352
56353         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
56354         * lib/md4.c (md4_process_block): Remove unused variable.
56355         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
56356         parentheses for clarity.
56357
56358 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56359
56360         * modules/bison-i18n (Depends-on): Add gettext.
56361
56362 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56363
56364         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
56365         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
56366         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
56367         also add missing comma that caused broken test.
56368         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
56369         stdlib.h, for `abort'.
56370         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
56371         variables.
56372         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
56373         include unistd.h if present, for `rmdir'.
56374         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
56375         variables.
56376         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
56377         in the process include standard headers for prototypes.
56378         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
56379         gets declared on GNU/Linux.
56380         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
56381         unistd.h, for `rmdir'.
56382         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
56383
56384         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
56385         always true.
56386         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
56387
56388         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
56389
56390 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56391
56392         * gnulib-tool (func_version): Create output all at once.  This
56393         may help avoid triggering unnecessary SIGPIPEs, and at any
56394         rate it doesn't hurt.
56395
56396 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56397             Bruno Haible  <bruno@clisp.org>
56398
56399         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
56400         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56401         * m4/signed.m4 (bh_C_SIGNED): Likewise.
56402
56403         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
56404         (gl_FUNC_VASPRINTF): Invoke it.
56405
56406 2006-09-22  Bruno Haible  <bruno@clisp.org>
56407
56408         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
56409         getloadavg.c as first argument.
56410
56411 2006-09-22  Bruno Haible  <bruno@clisp.org>
56412
56413         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
56414         at the beginning of the gl_INIT macro.
56415         * modules/getloadavg (configure.ac): Pass $gl_source_base to
56416         gl_GETLOADAVG.
56417
56418 2006-09-22  Bruno Haible  <bruno@clisp.org>
56419
56420         * gnulib-tool (func_create_megatestdir): Don't include the config-h
56421         module.
56422         Suggested by Ralf Wildenhues.
56423
56424 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
56425
56426         Import this patch from libc:
56427
56428         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
56429
56430         * lib/regex_internal.c (re_string_reconstruct): Handle
56431         offset < pstr->valid_raw_len && pstr->offsets_needed case.
56432         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
56433         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
56434         re_string_context_at.
56435
56436         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
56437         now requires it.
56438         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
56439         gl_REGEX now does it for us.
56440         (gl_REGEX): Add test taken from
56441         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
56442
56443         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
56444         Check that large offsets work.  Modernize Autoconf usages.
56445         Prefer "yes" to mean a good thing rather than a bad.
56446         Don't put "#define mkstemp" in config.h, as this might interfere
56447         with standard system headers that "#define mkstemp mkstemp64".
56448
56449         * modules/mkstemp (Depends-on): Add extensions, so that
56450         mkstemp is visible on some platforms.
56451         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
56452         (Include): Change to "mkstemp.h" from <stdlib.h>.
56453         (Files): Add mkstemp.h.
56454
56455         * lib/mkstemp.h: New file, since some standard headers
56456         #define mkstemp.
56457         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
56458         Include "mkstemp.h".
56459         Make the _LIBC code resemble glibc original more,
56460         e.g., use K&R style.
56461         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
56462         (mkstemp): Remove, since mkstemp.h does this for us.
56463         * lib/stdlib--.h: Include mkstemp.h.
56464
56465         Import this patch from libc:
56466
56467         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56468
56469         * lib/tempname.c (__gen_tempname): Change attempts_min
56470         into a macro.  Use preprocessor to decide how to initialize
56471         attempts [Coverity CID 67].
56472
56473 2006-09-20  Bruno Haible  <bruno@clisp.org>
56474
56475         * lib/mkdtemp.c: Import from libc.
56476         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56477                 * sysdeps/posix/tempname.c (__gen_tempname): Change
56478                 attempts_min into a macro.  Use preprocessor to decide how to
56479                 initialize attempts [Coverity CID 67].
56480         2001-11-27  Paul Eggert  <eggert@twinsun.com>
56481                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
56482                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
56483
56484 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56485
56486         * gnulib-tool (func_exit): New function, to allow to pass the
56487         exit status portably through the trap.  Use everywhere.
56488         (--help, --version): Signal a write error.
56489         (trap): catch SIGPIPE, for write errors.
56490         Exit at the end of the trap, with the correct exit status.
56491
56492 2006-09-19  Karl Berry  <karl@gnu.org>
56493
56494         * doc/gnulib.texi: note about the license texinfo files.
56495
56496 2006-09-19  Eric Blake  <ebb9@byu.net>
56497
56498         * gnulib-tool: Avoid space-tab.
56499
56500 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56501
56502         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
56503         that prevented coreutils 6.1 from building.  Problem reported
56504         by Petter Reinholdtsen.
56505
56506 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56507
56508         * gnulib-tool (avoidlist): Fix typo that broke options like
56509         --avoid=lock that are used by coreutils bootstrap.
56510
56511 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
56512
56513         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
56514         more systematically.
56515
56516 2006-09-18  Jim Meyering  <jim@meyering.net>
56517
56518         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
56519
56520 2006-09-18  Bruno Haible  <bruno@clisp.org>
56521
56522         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
56523
56524 2006-09-18  Bruno Haible  <bruno@clisp.org>
56525
56526         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
56527         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
56528         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
56529         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
56530         * m4/gettext.m4: Require autoconf >= 2.52.
56531         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
56532         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
56533         of gl_cv_header_inttypes_h.
56534
56535 2006-09-18  Bruno Haible  <bruno@clisp.org>
56536
56537         * lib/javaversion.c: Include configmake.h.
56538
56539 2006-09-18  Bruno Haible  <bruno@clisp.org>
56540
56541         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
56542         avoid that the while loops be executed in a subshell.
56543
56544 2006-09-18  Bruno Haible  <bruno@clisp.org>
56545
56546         * MODULES.html.sh (func_module): Break long lines.
56547         Suggested by Bruce Korb <bkorb@gnu.org>.
56548
56549 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56550
56551         Speed up by a factor of 1.12.
56552         * gnulib-tool (nl): New variable.
56553         (func_import): Rewrite include directive extraction to only read each
56554         directive once.
56555
56556 2006-09-17  Bruno Haible  <bruno@clisp.org>
56557
56558         * modules/javaversion (Makefile.am): Remove DEFS setting.
56559         (Depends-on): Add configmake, for PKGDATADIR definition.
56560
56561 2006-09-17  Bruno Haible  <bruno@clisp.org>
56562
56563         * gnulib-tool (func_create_testdir): Rewrite all files at once.
56564
56565 2006-09-17  Bruno Haible  <bruno@clisp.org>
56566
56567         * gnulib-tool (func_append): New function, stolen from libtool.m4.
56568         (func_modules_transitive_closure, func_modules_add_dummy,
56569         func_modules_to_filelist, func_import, func_create_testdir,
56570         func_create_megatestdir, ...): Use it wherever possible.
56571         Suggested by Ralf Wildenhues.
56572
56573 2006-09-16  Karl Berry  <karl@gnu.org>
56574
56575         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
56576         to avoid sectioning errors.
56577         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
56578         [ifinfo]: blank line after @center-ed titles.
56579         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
56580         Spell FSF address consistently with others.
56581         (These changes approved by rms.)
56582
56583 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56584
56585         Speed up by a factor of 1.61.
56586         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
56587         already checked module names again.
56588
56589 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56590
56591         Speed up by a factor of 1.13.
56592         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
56593         for new_files, and the input to func_add_or_update.
56594
56595 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56596
56597         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
56598         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
56599
56600 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56601
56602         * modules/mkancesdirs (Depends-on): Add fcntl.
56603         * modules/savewd: New file.
56604         * MODULES.html.sh (File system functions): Add savewd.
56605
56606         * modules/configmake (Makefile.am): Add support for the
56607         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
56608
56609 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56610
56611         * m4/savewd.m4: New file.
56612
56613 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56614
56615         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
56616         (dirchownmod): New arg FD.  All callers changed.
56617         Use FD rather than opening the directory ourself, as opening is
56618         now the caller's responsibility.
56619         * lib/dirchownmod.h: Likewise.
56620         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
56621         hosts that require <sys/types.h> before <sys/stat.h>.  Include
56622         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
56623         (test_dir): Remove.
56624         (mkancesdirs): Return length of prefix of FILE that has already
56625         been made, or -2 if there is a child doing the work.  Redo
56626         algorithm so that it is O(N) rather than O(N**2).  Optimize away
56627         ".", and treat ".." specially since it might stray back into
56628         already-created areas.  Use a subprocess if necessary.  New arg
56629         WD; all users changed.  MAKE_DIR function should now return 1
56630         if it creates a directory that is not readable.  Return -2 if
56631         a child process is spun off.
56632         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
56633         Adjust signature to match code.
56634         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
56635         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
56636         all users changed.
56637         * lib/savewd.c, lib/savewd.h: New files.
56638
56639 2006-09-15  Jim Meyering  <jim@meyering.net>
56640
56641         * modules/rename-dest-slash: New module.
56642         * MODULES.html.sh (posix_compat): Add it here.
56643
56644         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
56645
56646 2006-09-15  Jim Meyering  <jim@meyering.net>
56647
56648         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
56649         file.
56650
56651         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
56652
56653 2006-09-15  Jim Meyering  <jim@meyering.net>
56654
56655         * lib/rename-dest-slash.c (has_trailing_slash): Use
56656         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
56657         (rpl_rename_dest_slash): Perform the cheaper trailing slash
56658         test before testing whether SRC is a directory.
56659         Suggestions from Bruno Haible.
56660
56661         Avoid a warning about an unused variable.
56662         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
56663         into the #ifdef block where it's used.
56664
56665         * lib/rename-dest-slash.c: New file.
56666
56667 2006-09-14  Bruno Haible  <bruno@clisp.org>
56668
56669         * lib/allocsa.c: Include <config.h> unconditionally.
56670         * lib/asnprintf.c: Likewise.
56671         * lib/asprintf.c: Likewise.
56672         * lib/c-strcasecmp.c: Likewise.
56673         * lib/c-strcasestr.c: Likewise.
56674         * lib/c-strncasecmp.c: Likewise.
56675         * lib/c-strstr.c: Likewise.
56676         * lib/classpath.c: Likewise.
56677         * lib/clean-temp.c: Likewise.
56678         * lib/concatpath.c: Likewise.
56679         * lib/copy-file.c: Likewise.
56680         * lib/csharpcomp.c: Likewise.
56681         * lib/csharpexec.c: Likewise.
56682         * lib/execute.c: Likewise.
56683         * lib/fatal-signal.c: Likewise.
56684         * lib/findprog.c: Likewise.
56685         * lib/fwriteerror.c: Likewise.
56686         * lib/gl_array_list.c: Likewise.
56687         * lib/gl_array_oset.c: Likewise.
56688         * lib/gl_avltree_list.c: Likewise.
56689         * lib/gl_avltree_oset.c: Likewise.
56690         * lib/gl_avltreehash_list.c: Likewise.
56691         * lib/gl_carray_list.c: Likewise.
56692         * lib/gl_linked_list.c: Likewise.
56693         * lib/gl_linkedhash_list.c: Likewise.
56694         * lib/gl_list.c: Likewise.
56695         * lib/gl_oset.c: Likewise.
56696         * lib/gl_rbtree_list.c: Likewise.
56697         * lib/gl_rbtree_oset.c: Likewise.
56698         * lib/gl_rbtreehash_list.c: Likewise.
56699         * lib/imaxabs.c: Likewise.
56700         * lib/imaxdiv.c: Likewise.
56701         * lib/javacomp.c: Likewise.
56702         * lib/javaexec.c: Likewise.
56703         * lib/javaversion.c: Likewise.
56704         * lib/linebreak.c: Likewise.
56705         * lib/localcharset.c: Likewise.
56706         * lib/lock.c: Likewise.
56707         * lib/mbchar.c: Likewise.
56708         * lib/mbswidth.c: Likewise.
56709         * lib/mkdtemp.c: Likewise.
56710         * lib/pipe.c: Likewise.
56711         * lib/printf-args.c: Likewise.
56712         * lib/printf-parse.c: Likewise.
56713         * lib/progname.c: Likewise.
56714         * lib/progreloc.c: Likewise.
56715         * lib/readlink.c: Likewise.
56716         * lib/sh-quote.c: Likewise.
56717         * lib/stpcpy.c: Likewise.
56718         * lib/stpncpy.c: Likewise.
56719         * lib/strcasecmp.c: Likewise.
56720         * lib/strcasestr.c: Likewise.
56721         * lib/strcspn.c: Likewise.
56722         * lib/striconv.c: Likewise.
56723         * lib/strncasecmp.c: Likewise.
56724         * lib/strnlen1.c: Likewise.
56725         * lib/strstr.c: Likewise.
56726         * lib/strtok_r.c: Likewise.
56727         * lib/tls.c: Likewise.
56728         * lib/tmpdir.c: Likewise.
56729         * lib/unicodeio.c: Likewise.
56730         * lib/unsetenv.c: Likewise.
56731         * lib/vasnprintf.c: Likewise.
56732         * lib/vasprintf.c: Likewise.
56733         * lib/wait-process.c: Likewise.
56734         * lib/xallocsa.c: Likewise.
56735         * lib/xsetenv.c: Likewise.
56736         * lib/xstriconv.c: Likewise.
56737
56738 2006-09-13  Simon Josefsson  <jas@extundo.com>
56739
56740         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
56741         that internally, suggested by Ralf Wildenhues
56742         <Ralf.Wildenhues@gmx.de>.
56743
56744 2006-09-13  Simon Josefsson  <jas@extundo.com>
56745
56746         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
56747         @LIBOBJS@.
56748         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56749
56750 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
56751
56752         * lib/_fpending.c: Include <config.h> unconditionally, since we no
56753         longer worry about uses that don't define HAVE_CONFIG_H.
56754         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
56755         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
56756         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
56757         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
56758         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
56759         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
56760         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
56761         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
56762         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
56763         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
56764         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
56765         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
56766         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
56767         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
56768         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
56769         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
56770         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
56771         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
56772         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
56773         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
56774         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
56775         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
56776         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
56777         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
56778         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
56779         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
56780         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
56781         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
56782         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
56783         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
56784         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
56785         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
56786         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
56787         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
56788         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
56789         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
56790         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
56791         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
56792         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
56793         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
56794         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
56795         Likewise.
56796
56797 2006-09-13  Eric Blake  <ebb9@byu.net>
56798
56799         * lib/getopt.c: Fix typo in last commit.
56800
56801 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56802
56803         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
56804         dgettext.
56805
56806 2006-09-12  Jim Meyering  <jim@meyering.net>
56807
56808         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
56809         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
56810         Reported by Nelson H. F. Beebe.
56811
56812 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56813
56814         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
56815         program_invocation_name and program_invocation_short_name are
56816         initialized.
56817         * lib/argp-namefrob.h: Move declarations of program_invocation_name
56818         and program_invocation_short_name to argp.h, so they are visible
56819         to user programs.
56820         * lib/argp.h: Likewise
56821
56822 2006-09-10  Bruno Haible  <bruno@clisp.org>
56823
56824         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
56825         m4/inttypes_h.m4, m4/uintmax_t.m4.
56826
56827 2006-09-10  Bruno Haible  <bruno@clisp.org>
56828
56829         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
56830         gl_AC_TYPE_UINTMAX_T.
56831
56832 2006-09-10  Bruno Haible  <bruno@clisp.org>
56833
56834         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
56835
56836 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56837
56838         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
56839         convention.  Text proposed by Bruno Haible.
56840         (struct argp_option): Document the use of N_() wrappers.
56841
56842         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
56843         '\v', and translate the two parts separately, instead of feeding
56844         the whole string to gettext.  This allows to exclude
56845         '\v' from the strings visible to the translator by writing doc
56846         strings as N_("..") "\v" N_("..").
56847
56848 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
56849
56850         * config/srclist.txt: Undo latest change; the bug was fixed.
56851
56852 2006-09-09  Bruno Haible  <bruno@clisp.org>
56853
56854         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
56855         assignments if building a library without libtool.
56856         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
56857         in func_emit_lib_Makefile_am.
56858         (func_import): When building a static library libfoo.a, arrange to
56859         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
56860         (func_create_testdir): Likewise.
56861         * modules/gc (configure.ac, Makefile.am): If building statically,
56862         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
56863         * modules/iconvme (configure.ac, Makefile.am): Likewise.
56864         * modules/striconv (configure.ac, Makefile.am): Likewise.
56865         Based on a suggestion by Ralf Wildenhues.
56866
56867 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56868
56869         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56870         Check for unistd.h too, since Autoconf doesn't assume POSIX.
56871         Also:
56872
56873         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56874         Add year_2050_test to catch glibc bug 2821
56875         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56876
56877         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56878         Prefer #ifdef to #if.
56879
56880         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
56881         Return from 'main' instead of calling 'exit'.
56882
56883 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56884
56885         * lib/mktime.c (guess_time_tm): Fix bug where mktime
56886         returned the maximum time_t value rather than (time_t) -1.
56887         Problem originally reported by William Bardwell
56888         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56889
56890         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56891         Moved to here ...
56892         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56893         ... from here.
56894
56895 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56896
56897         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
56898         2821 is fixed.
56899
56900 2006-09-08  Jim Meyering  <jim@meyering.net>
56901
56902         Don't make generated files read-only.  That would bother too many
56903         people.  However, do retain the ability to work when targets are
56904         read-only: remove the destination and temporary files before writing
56905         them (when generated via sed or echo), or by using the -f option for
56906         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
56907         * modules/alloca-opt, modules/argz, modules/arpa_inet:
56908         * modules/byteswap, modules/configmake, modules/fcntl:
56909         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
56910         * modules/localcharset, modules/netinet_in, modules/poll:
56911         * modules/stdbool, modules/stdint, modules/sys_select:
56912         * modules/sys_socket, modules/sys_stat, modules/sysexits:
56913
56914 2006-09-08  Jim Meyering  <jim@meyering.net>
56915
56916         Avoid new build failure on FreeBSD 6.0.
56917         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
56918         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
56919         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
56920
56921 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56922
56923         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
56924
56925 2006-09-07  Jim Meyering  <jim@meyering.net>
56926
56927         Fix global typo in last change: use chmod u-w, not chmod u-x.
56928         Spotted by Paul Eggert and Bruce Korb.
56929         * modules/alloca-opt, modules/argz, modules/arpa_inet:
56930         * modules/byteswap, modules/configmake, modules/fcntl:
56931         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
56932         * modules/localcharset, modules/netinet_in, modules/poll:
56933         * modules/stdbool, modules/stdint, modules/sys_select:
56934         * modules/sys_socket, modules/sys_stat, modules/sysexits:
56935
56936 2006-09-06  Jim Meyering  <jim@meyering.net>
56937
56938         Make generated files be read-only.
56939         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
56940         Ensure that each generated file is now read-only.
56941         * modules/argz: Likewise.
56942         * modules/arpa_inet: Likewise.
56943         * modules/byteswap: Likewise.
56944         * modules/configmake: Likewise.
56945         * modules/fcntl: Likewise.
56946         * modules/fnmatch: Likewise.
56947         * modules/getopt: Likewise.
56948         * modules/glob: Likewise.
56949         * modules/inttypes: Likewise.
56950         * modules/netinet_in: Likewise.
56951         * modules/poll: Likewise.
56952         * modules/stdbool: Likewise.
56953         * modules/stdint: Likewise.
56954         * modules/sys_select: Likewise.
56955         * modules/sys_socket: Likewise.
56956         * modules/sys_stat: Likewise.
56957         * modules/sysexits: Likewise.
56958         * modules/localcharset: Same as above, but continue using temporary
56959         file named "t-$@" (why different?) rather than the "$@-t" used
56960         everywhere else.
56961
56962         * modules/sysexits (Makefile.am): Replace literal occurrences
56963         of "sysexit.h" more readable, and more consistent, "$@".
56964
56965 2006-09-06  Bruno Haible  <bruno@clisp.org>
56966
56967         * modules/striconv: New file.
56968         * modules/xstriconv: New file.
56969         * MODULES.html.sh (Internationalization functions): Add striconv,
56970         xstriconv.
56971
56972 2006-09-06  Bruno Haible  <bruno@clisp.org>
56973
56974         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
56975         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
56976         not using libtool correctly.
56977
56978 2006-09-06  Bruno Haible  <bruno@clisp.org>
56979
56980         * lib/striconv.h: New file.
56981         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
56982         iconvstring.c.
56983         * lib/xstriconv.h: New file.
56984         * lib/xstriconv.c: New file.
56985
56986 2006-09-06  Bruno Haible  <bruno@clisp.org>
56987
56988         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56989         lib_..._LDFLAGS.
56990
56991 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56992
56993         * lib/argz_.h: Sync from Libtool.
56994
56995         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
56996                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
56997
56998         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
56999
57000 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57001
57002         * modules/trim: New file.
57003
57004 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57005
57006         * lib/trim.h: New file.
57007         * lib/trim.c: New file.
57008
57009 2006-09-05  Bruno Haible  <bruno@clisp.org>
57010
57011         * MODULES.html.sh (String handling): Add trim.
57012
57013 2006-09-04  Karl Berry  <karl@gnu.org>
57014
57015         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
57016         until next release.
57017
57018 2006-09-03  Bruno Haible  <bruno@clisp.org>
57019
57020         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
57021         correctly.
57022
57023 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57024
57025         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
57026         not gl_GETLOADAVG.  Omit unneeded semicolons.
57027         Problems reported by Ralf Wildenhues in
57028         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57029         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
57030         at the end, which is the usual gnulib style.
57031
57032         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
57033         of doing all the work ourselves.
57034         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
57035         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
57036
57037 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57038
57039         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
57040         Problem reported by Ralf Wildenhues in
57041         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57042
57043         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
57044         HAVE_STRUCT_STATFS_F_FSTYPENAME.
57045
57046 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57047
57048         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
57049         yesterday's patch by changing test -n to test -z.
57050
57051 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57052
57053         * modules/getloadavg (Files): Add m4/getloadavg.m4.
57054         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
57055         the former is now obsolescent.
57056
57057         * modules/chdir-long (Depends-on): Add fcntl.
57058
57059 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57060
57061         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
57062         obsolescent, and programs should use gnulib instead.
57063         * m4/getloadavg.m4: New file, with contents taken from Autoconf
57064         but with prefixes changed.
57065
57066 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57067
57068         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
57069         or stdbool.h, because they might not exist while configuring.
57070
57071         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
57072         Don't include unistd.h or limits.h; not needed, since chdir-long.h
57073         does that for us.
57074         (O_DIRECTORY): Remove.
57075
57076 2006-08-31  Eric Blake  <ebb9@byu.net>
57077
57078         * gnulib-tool: Don't let emacs change spaces to TAB.
57079
57080 2006-08-31  Bruno Haible  <bruno@clisp.org>
57081
57082         * gnulib-tool: When calling func_import more than once, do it in a
57083         subshell.
57084         Reported by Eric Blake <ebb9@byu.net>.
57085
57086 2006-08-31  Bruno Haible  <bruno@clisp.org>
57087
57088         * gnulib-tool (nl): Remove variable.
57089         (sed_transform_lib_file): Use more robust test for config-h module.
57090         (func_import): Fix typo in 2006-08-25 patch.
57091
57092 2006-08-31  Bruno Haible  <bruno@clisp.org>
57093
57094         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
57095         specified, augment Makefile.am variables instead of assigning them.
57096
57097 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57098
57099         Work around a bug in both the Linux and SunOS 64-bit kernels:
57100         nanosleep mishandles sleeps for longer than 2**31 seconds.
57101         Problem reported by Frank v Waveren in
57102         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
57104         Check for nanosleep bug.
57105         (LIB_NANOSLEEP): Append clock_gettime library if needed.
57106
57107 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57108
57109         Work around a bug in both the Linux and SunOS 64-bit kernels:
57110         nanosleep mishandles sleeps for longer than 2**31 seconds.
57111         Problem reported by Frank v Waveren in
57112         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57113         * lib/nanosleep.c (BILLION): New constant.
57114         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
57115         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
57116         implementation.
57117
57118 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57119
57120         * modules/nanosleep (Depends-on): Add gettime.
57121
57122 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57123         and Simon Josefsson  <jas@extundo.com>
57124         and Oskar Liljeblad  <oskar@osk.mine.nu>
57125
57126         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
57127         * gnulib-tool (func_import): New license type 'unmodifiable license
57128         text'.
57129         * modules/fdl: Use it.  Longer description.
57130         * module/gpl, module/lgpl: New files.
57131
57132 2006-08-30  Jim Meyering  <jim@meyering.net>
57133
57134         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
57135         shadowing the parameter.
57136
57137 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57138
57139         Sync from Libtool:
57140
57141         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57142
57143         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
57144         sharing with gnulib.  Report by Eric Blake.
57145
57146 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57147
57148         * modules/isapipe: New file.
57149         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
57150
57151 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57152
57153         * modules/configmake (Makefile.am): Add a comment, and omit
57154         the CONFIGMAKE_ prefix from generated macro names.  Suggested
57155         by Bruno Haible.
57156
57157 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57158
57159         * m4/isapipe.m4: New file.
57160
57161 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57162
57163         * lib/isapipe.c, lib/isapipe.h: New files.
57164
57165 2006-08-29  Jim Meyering  <jim@meyering.net>
57166
57167         * modules/configmake (Makefile.am): Make configmake.h depend on
57168         Makefile.  Otherwise, a stale configmake.h could hang around.
57169
57170 2006-08-29  Eric Blake  <ebb9@byu.net>
57171
57172         * lib/error.c (error_at_line, print_errno_message): Match libc, after
57173         resolution of upstream bug 3044.
57174
57175 2006-08-29  Bruno Haible  <bruno@clisp.org>
57176
57177         * modules/localcharset (Depends-on): Add configmake.
57178         (Makefile.am): Remove setting of LIBDIR through DEFS.
57179
57180 2006-08-29  Bruno Haible  <bruno@clisp.org>
57181
57182         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
57183         defined.
57184
57185 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57186
57187         * modules/fcntl: New file.
57188         * modules/chdir-safer (Depends-on): Add fcntl.
57189         * modules/fts: Likewise.
57190         * modules/mkdir-p: Likewise.
57191
57192         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
57193         This undoes the most recent change, since we're now addressing the
57194         problem in a different way.
57195
57196         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
57197         into output, since the output might be called Makefile.am even
57198         if $makefile_name is something different.
57199         (func_import): Use $makefile_am rather than
57200         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
57201         empty.
57202
57203         * modules/inttypes (Files): Add m4/inttypes-h.m4.
57204
57205 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57206
57207         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
57208         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
57209         recent change to stdint.m4, since we're now addressing the problem in a
57210         different way.
57211
57212 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57213
57214         * m4/fcntl_h.m4: New file.
57215
57216 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57217
57218         * lib/fcntl_.h: New file.
57219         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
57220         the fcntl module.
57221         * lib/dirchownmod.c: Likewise.
57222         * lib/fts.c: Likewise.
57223
57224         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
57225         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
57226         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
57227         just before including <inttypes.h>, to avoid circular inclusion.
57228
57229 2006-08-28  Jim Meyering  <jim@meyering.net>
57230
57231         * doc/visibility.texi: Actually read and correct the grammar of the
57232         sentence affected by yesterday's change.
57233
57234 2006-08-28  Eric Blake  <ebb9@byu.net>
57235
57236         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
57237         needs wrapper.
57238
57239 2006-08-28  Eric Blake  <ebb9@byu.net>
57240
57241         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
57242
57243 2006-08-28  Eric Blake  <ebb9@byu.net>
57244
57245         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
57246
57247 2006-08-28  Bruno Haible  <bruno@clisp.org>
57248
57249         * modules/c-strstr: New file, from GNU gettext.
57250         * MODULES.html.sh (String handling): Add c-strstr.
57251
57252 2006-08-28  Bruno Haible  <bruno@clisp.org>
57253
57254         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
57255         macros.
57256         Reported by Eric Blake.
57257
57258 2006-08-28  Bruno Haible  <bruno@clisp.org>
57259
57260         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
57261         (VASNPRINTF): Return a string of length > INT_MAX without failing.
57262         * lib/vasprintf.c: Include errno.h, limits.h.
57263         (EOVERFLOW): New fallback definition.
57264         (vasprintf): Test here whether the string length is > INT_MAX.
57265         * lib/vsnprintf.c: Include errno.h, limits.h.
57266         (EOVERFLOW): New fallback definition.
57267         (vsnprintf): Fix bug when generated string was too long for the buffer.
57268         Test here whether the string length is > INT_MAX.
57269
57270 2006-08-28  Bruno Haible  <bruno@clisp.org>
57271
57272         * lib/inttypes_.h (SCNX*): Remove definitions.
57273         Reported by Eric Blake.
57274
57275 2006-08-28  Bruno Haible  <bruno@clisp.org>
57276
57277         * lib/c-strstr.h: New file, from GNU gettext.
57278         * lib/c-strstr.c: New file, from GNU gettext.
57279
57280 2006-08-28  Bruno Haible  <bruno@clisp.org>
57281
57282         * gnulib-tool: Reorder some statements.
57283
57284 2006-08-28  Bruno Haible  <bruno@clisp.org>
57285
57286         * gnulib-tool: New option --makefile-name.
57287         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
57288         $makefile_name.
57289         (func_import): Write $makefile_name to the cache file, and read it from
57290         there unless explicitly specified. Use $makefile_name as file name
57291         instead of Makefile.am. Adjust the recommendations accordingly.
57292
57293 2006-08-28  Bruno Haible  <bruno@clisp.org>
57294
57295         * gnulib-tool (func_verify_module): Check against misapplying patch.
57296
57297 2006-08-28  Bruno Haible  <bruno@clisp.org>
57298
57299         * gnulib-tool (func_relativize, func_relconcat): New functions.
57300         Give an error if --local-dir is given with --update.
57301         Remove trailing slashes from $local_gnulib_dir.
57302         (func_import): Store the relativized $local_gnulib_dir in
57303         gnulib-cache.m4, and read it from there if not specified explicitly.
57304
57305 2006-08-28  Bruno Haible  <bruno@clisp.org>
57306
57307         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
57308         is the current directory. Respect also $local_gnulib_dir.
57309
57310 2006-08-28  Bruno Haible  <bruno@clisp.org>
57311             Simon Josefsson  <jas@extundo.com>
57312
57313         BeOS portability.
57314         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
57315
57316 2006-08-27  Jim Meyering  <jim@meyering.net>
57317
57318         * doc/visibility.texi: Remove duplicate word: "pointer".
57319
57320 2006-08-26  Bruno Haible  <bruno@clisp.org>
57321
57322         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
57323         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
57324         (Makefile.am): Create inttypes.h from inttypes_.h.
57325         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
57326
57327         * modules/imaxabs: New file.
57328
57329         * modules/imaxdiv: New file.
57330
57331 2006-08-26  Bruno Haible  <bruno@clisp.org>
57332
57333         * m4/inttypes.m4: New file.
57334         * m4/_inttypes_h.m4: Remove file.
57335         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
57336         PRI_MACROS_BROKEN.
57337         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
57338
57339         * m4/imaxabs.m4: New file.
57340
57341         * m4/imaxdiv.m4: New file.
57342
57343 2006-08-26  Bruno Haible  <bruno@clisp.org>
57344
57345         * lib/inttypes_.h: New file.
57346         * lib/inttypes.h: Remove file.
57347         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
57348
57349         * lib/imaxabs.c: New file.
57350
57351         * lib/imaxdiv.c: New file.
57352
57353 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57354
57355         New config-h module, so that "make" output needn't be cluttered
57356         by -DHAVE_CONFIG_H.
57357         * MODULES.html.sh (Support for building libraries and executables):
57358         Add config-h.
57359         * modules/config-h: New file.
57360         * gnulib-tool (nl, sed_transform_lib_file): New vars.
57361         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
57362         the config-h module is used.
57363
57364         New configmake module, so that "make" output needn't be cluttered
57365         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
57366         * MODULES.html.sh (Support for building libraries and executables):
57367         Add configmake.
57368         * modules/configmake: New file.
57369
57370 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57371
57372         * m4/config-h.m4: New file.
57373
57374 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57375
57376         * config/srclist.txt: Add elisp-comp.
57377
57378 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57379
57380         * MODULES.html.sh (Support for building libraries and executables):
57381         Add elisp-comp.
57382         * build-aux/elisp-comp: New file.
57383         * modules/elisp-comp: New file.
57384
57385 2006-08-24  Bruno Haible  <bruno@clisp.org>
57386
57387         * gnulib-tool (func_create_testdir): Use non-default values of
57388         sourcebase and m4base.
57389
57390 2006-08-24  Bruno Haible  <bruno@clisp.org>
57391
57392         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
57393         HTML structure.
57394
57395 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57396
57397         * modules/openat (Depends-on): Add lchown.
57398
57399 2006-08-23  Bruno Haible  <bruno@clisp.org>
57400
57401         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
57402         of gl_LOCK_EARLY instead of gl_LOCK.
57403
57404 2006-08-23  Bruno Haible  <bruno@clisp.org>
57405
57406         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
57407         on OSF/1 to no.
57408         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
57409
57410 2006-08-23  Bruno Haible  <bruno@clisp.org>
57411
57412         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
57413         as unusable.
57414
57415         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
57416         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
57417         (gl_LOCK): New macro.
57418
57419 2006-08-22  Simon Josefsson  <jas@extundo.com>
57420
57421         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
57422         to md5 module.
57423
57424 2006-08-22  Simon Josefsson  <jas@extundo.com>
57425
57426         * MODULES.html.sh: Add "Support for maintaining and release
57427         projects".
57428
57429         * build-aux/gnupload: New file, from coreutils.
57430
57431 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57432
57433         Avoid the need for AC_LIBSOURCES in m4 macros.
57434         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
57435         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
57436         * modules/check-version (EXTRA_DIST): Add check-version.h.
57437         * modules/crc (EXTRA_DIST): Add crc.h.
57438         * modules/des (EXTRA_DIST): Add des.h.
57439         * modules/gc (EXTRA_DIST): Add gc.h.
57440         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
57441         * modules/getline (EXTRA_DIST): Add getline.h.
57442         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
57443         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
57444         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
57445         * modules/md2 (EXTRA_DIST): Add md2.h.
57446         * modules/md4 (EXTRA_DIST): Add md4.h.
57447         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
57448         * modules/read-file (EXTRA_DIST): Add read-file.h.
57449         * modules/readline (EXTRA_DIST): Add readline.h.
57450         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
57451         rijndael-api-fst.h.
57452
57453 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57454
57455         * m4/rijndael.m4 (gl_ARCFOUR):
57456         * m4/arctwo.m4 (gl_ARCTWO):
57457         * m4/check-version.m4 (gl_CHECK_VERSION):
57458         * m4/crc.m4 (gl_CRC):
57459         * m4/des.m4 (gl_DES):
57460         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
57461         * m4/gc.m4 (gl_GC):
57462         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
57463         * m4/getline.m4 (gl_FUNC_GETLINE):
57464         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
57465         * m4/hmac-md5.m4 (gl_HMAC_MD5):
57466         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
57467         * m4/md2.m4 (gl_MD2):
57468         * m4/md4.m4 (gl_MD4):
57469         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
57470         * m4/read-file.m4 (gl_FUNC_READ_FILE):
57471         * m4/readline.m4 (gl_FUNC_READLINE):
57472         * m4/rijndael.m4 (gl_RIJNDAEL):
57473         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57474         to get the necessary .h files and whatnot.
57475
57476 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57477
57478         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
57479         gnulib rather than the other way around.
57480         * config/srclistvars.sh (COREUTILS): Remove.
57481
57482 2006-08-22  Jim Meyering  <jim@meyering.net>
57483
57484         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
57485
57486         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
57487
57488 2006-08-22  Eric Blake  <ebb9@byu.net>
57489
57490         * modules/regexprops-generic: New file.
57491         * MODULES.html.sh (Support for building documentation): List it.
57492
57493 2006-08-22  Eric Blake  <ebb9@byu.net>
57494
57495         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
57496         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
57497         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
57498         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
57499
57500 2006-08-22  Bruno Haible  <bruno@clisp.org>
57501
57502         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
57503         and lib_LTLIBRARIES like the other lib_* variables.
57504
57505 2006-08-22  Bruno Haible  <bruno@clisp.org>
57506
57507         * build-aux/x-to-1.in: New file, from GNU gettext.
57508
57509 2006-08-22  Bruno Haible  <bruno@clisp.org>
57510
57511         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
57512         <utmpx.h> exists.
57513
57514 2006-08-22  Bruno Haible  <bruno@clisp.org>
57515
57516         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
57517         <utmpx.h> exists.
57518
57519 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57520
57521         BeOS portability.
57522         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
57523         exist.
57524         Problem reported by Bruno Haible.
57525
57526 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57527
57528         Avoid the need for AC_LIBSOURCES in m4 macros.
57529         * modules/acl (EXTRA_DIST): Add acl.h.
57530         * modules/argmatch (Files): Add m4/argmatch.m4.
57531         (configure.ac): Add gl_ARGMATCH.
57532         (EXTRA_DIST): Renamed from lib_SOURCES, for
57533         consistency with the other modules.  Remove argmatch.c.
57534         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
57535         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
57536         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
57537         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
57538         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
57539         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
57540         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
57541         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
57542         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
57543         * modules/closeout (EXTRA_DIST): Add closeout.h.
57544         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
57545         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
57546         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
57547         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
57548         dirname.h; remove basename.c and stripslash.c.
57549         * modules/exclude (EXTRA_DIST): Add exclude.h.
57550         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
57551         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
57552         * modules/file-type (EXTRA_DIST): Add file-type.h.
57553         * modules/filemode (EXTRA_DIST): Add filemode.h.
57554         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
57555         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
57556         * modules/fpending (EXTRA_DIST): Add __fpending.h.
57557         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
57558         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
57559         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
57560         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
57561         * modules/getdate (EXTRA_DIST): Add getdate.c.
57562         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
57563         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
57564         * modules/getpass (EXTRA_DIST): Add getpass.h.
57565         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
57566         * modules/group-member (EXTRA_DIST): Add group-member.h.
57567         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
57568         * modules/hash (EXTRA_DIST): Add hash.h.
57569         * modules/human (EXTRA_DIST): Add human.h.
57570         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
57571         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
57572         * modules/lchown (EXTRA_DIST): Add lchown.h.
57573         * modules/long-options (EXTRA_DIST): Add long-options.h.
57574         * modules/lstat (EXTRA_DIST): Add lstat.h.
57575         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
57576         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
57577         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
57578         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
57579         * modules/memxor (EXTRA_DIST): Add memxor.h.
57580         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
57581         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
57582         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
57583         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
57584         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
57585         * modules/physmem (EXTRA_DIST): Add physmem.h.
57586         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
57587         * modules/posixver (EXTRA_DIST): Add posixver.h.
57588         * modules/quote (EXTRA_DIST): Add quote.h.
57589         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
57590         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
57591         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
57592         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
57593         regex_internal.h regexec.c.
57594         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
57595         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
57596         * modules/same (EXTRA_DIST): Add same.h.
57597         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
57598         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
57599         * modules/savedir (EXTRA_DIST): Add savedir.h.
57600         * modules/sha1 (EXTRA_DIST): Add sha1.h.
57601         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
57602         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
57603         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
57604         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
57605         * modules/strdup (EXTRA_DIST): Add strdup.h.
57606         * modules/strftime (EXTRA_DIST): Add strftime.h.
57607         * modules/strndup (EXTRA_DIST): Add strndup.h.
57608         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
57609         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
57610         * modules/time_r (EXTRA_DIST): Add time_r.h.
57611         * modules/timespec (EXTRA_DIST): Add timespec.h.
57612         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
57613         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
57614         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
57615         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
57616         * modules/userspec (EXTRA_DIST): Add userspec.h.
57617         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
57618         * modules/utimens (EXTRA_DIST): Add utimens.h.
57619         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
57620         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
57621         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
57622         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
57623         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
57624         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
57625         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
57626         * modules/yesno (EXTRA_DIST): Add yesno.h.
57627
57628 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57629
57630         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
57631
57632         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
57633         * m4/dev-ino.m4, same-inode.m4: Remove.
57634
57635         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
57636         * m4/acl.m4 (AC_FUNC_ACL):
57637         * m4/backupfile.m4 (gl_BACKUPFILE):
57638         * m4/c-strtod.m4 (gl_C99_STRTOLD):
57639         * m4/canon-host.m4 (gl_CANON_HOST):
57640         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57641         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
57642         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
57643         * m4/cloexec.m4 (gl_CLOEXEC):
57644         * m4/close-stream.m4 (gl_CLOSE_STREAM):
57645         * m4/closeout.m4 (gl_CLOSEOUT):
57646         * m4/dirfd.m4 (gl_FUNC_DIRFD):
57647         * m4/dirname.m4 (gl_DIRNAME):
57648         * m4/exclude.m4 (gl_EXCLUDE):
57649         * m4/exitfail.m4 (gl_EXITFAIL):
57650         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
57651         * m4/file-type.m4 (gl_FILE_TYPE):
57652         * m4/filemode.m4 (gl_FILEMODE):
57653         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
57654         * m4/fpending.m4 (gl_FUNC_FPENDING):
57655         * m4/fprintftime.m4 (gl_FPRINTFTIME):
57656         * m4/fts.m4 (gl_FUNC_FTS):
57657         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
57658         * m4/getdate.m4 (gl_GETDATE):
57659         * m4/gethrxtime.m4 (gl_GETHRXTIME):
57660         * m4/getpagesize.m4 (gl_GETPAGESIZE):
57661         * m4/getpass.m4 (gl_FUNC_GETPASS):
57662         * m4/gettime.m4 (gl_GETTIME):
57663         * m4/getugroups.m4 (gl_GETUGROUPS):
57664         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
57665         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
57666         * m4/hard-locale.m4 (gl_HARD_LOCALE):
57667         * m4/hash.m4 (gl_HASH):
57668         * m4/idcache.m4 (gl_IDCACHE):
57669         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
57670         * m4/lchown.m4 (gl_FUNC_LCHOWN):
57671         * m4/long-options.m4 (gl_LONG_OPTIONS):
57672         * m4/lstat.m4 (gl_FUNC_LSTAT):
57673         * m4/md5.m4 (gl_MD5):
57674         * m4/memcasecmp.m4 (gl_MEMCASECMP):
57675         * m4/memcoll.m4 (gl_MEMCOLL):
57676         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
57677         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
57678         * m4/memxor.m4 (gl_MEMXOR):
57679         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
57680         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
57681         * m4/modechange.m4 (gl_MODECHANGE):
57682         * m4/mountlist.m4 (gl_MOUNTLIST):
57683         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57684         * m4/openat.m4 (gl_FUNC_OPENAT):
57685         * m4/pathmax.m4 (gl_PATHMAX):
57686         * m4/physmem.m4 (gl_PHYSMEM):
57687         * m4/posixtm.m4 (gl_POSIXTM):
57688         * m4/posixver.m4 (gl_POSIXVER):
57689         * m4/quote.m4 (gl_QUOTE):
57690         * m4/quotearg.m4 (gl_QUOTEARG):
57691         * m4/readtokens.m4 (gl_READTOKENS):
57692         * m4/readutmp.m4 (gl_READUTMP):
57693         * m4/regex.m4 (gl_REGEX):
57694         * m4/safe-read.m4 (gl_SAFE_READ):
57695         * m4/safe-write.m4 (gl_SAFE_WRITE):
57696         * m4/same.m4 (gl_SAME):
57697         * m4/save-cwd.m4 (gl_SAVE_CWD):
57698         * m4/savedir.m4 (gl_SAVEDIR):
57699         * m4/settime.m4 (gl_SETTIME):
57700         * m4/sha1.m4 (gl_SHA1):
57701         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
57702         * m4/stat-macros.m4 (gl_STAT_MACROS):
57703         * m4/stat-time.m4 (gl_STAT_TIME):
57704         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
57705         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
57706         * m4/strdup.m4 (gl_FUNC_STRDUP):
57707         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
57708         * m4/strndup.m4 (gl_FUNC_STRNDUP):
57709         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
57710         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
57711         * m4/time_r.m4 (gl_TIME_R):
57712         * m4/timespec.m4 (gl_TIMESPEC):
57713         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
57714         * m4/unlinkdir.m4 (gl_UNLINKDIR):
57715         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
57716         * m4/userspec.m4 (gl_USERSPEC):
57717         * m4/utimecmp.m4 (gl_UTIMECMP):
57718         * m4/utimens.m4 (gl_UTIMENS):
57719         * m4/xalloc.m4 (gl_XALLOC):
57720         * m4/xgetcwd.m4 (gl_XGETCWD):
57721         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
57722         * m4/xreadlink.m4 (gl_XREADLINK):
57723         * m4/xstrtod.m4 (gl_XSTRTOD):
57724         * m4/yesno.m4 (gl_YESNO):
57725         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57726         to get the necessary .h files and whatnot.
57727
57728 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
57729             Bruno Haible  <bruno@clisp.org>
57730
57731         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
57732         /bin/sh understanding of '!' conditional negation.
57733
57734 2006-08-21  Jim Meyering  <jim@meyering.net>
57735
57736         * modules/openat (Depends-on): Really alphabetize.
57737
57738         * modules/acl (Depends-on): Add error and quote.
57739
57740         * check-module (find_included_lib_files): Add at-func.c to the
57741         ok-to-include-more-than-once white list.
57742
57743         * modules/openat (Depends-on): Add lstat.  Alphabetize.
57744
57745 2006-08-21  Bruno Haible  <bruno@clisp.org>
57746
57747         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57748         Emit a pkgdata_DATA variable only if some snippets add contents to it.
57749         Reported by Martin Lambers <marlam@marlam.de>.
57750
57751 2006-08-21  Bruno Haible  <bruno@clisp.org>
57752
57753         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
57754         specify an installation location, don't emit a noinst_LIBRARIES or
57755         noinst_LTLIBRARIES assignment.
57756
57757 2006-08-21  Bruno Haible  <bruno@clisp.org>
57758
57759         BeOS portability.
57760         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
57761         BeOS has mbrtowc() but no <wctype.h>.
57762
57763 2006-08-21  Bruno Haible  <bruno@clisp.org>
57764
57765         BeOS portability.
57766         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
57767         exist.
57768
57769 2006-08-21  Bruno Haible  <bruno@clisp.org>
57770
57771         BeOS portability.
57772         * lib/mbchar.h: Include <wctype.h> only if it exists.
57773
57774 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57775
57776         Remove files that are no longer needed by their respective modules.
57777         * m4/obstack.m4: Remove.
57778         * m4/strerror_r.m4: Remove.
57779         * m4/uint32_t.m4: Remove.
57780         * m4/uintptr_t.m4: Remove.
57781         * m4/ullong_max.m4: Remove.
57782         * m4/xstrtoimax.m4: Remove.
57783         * m4/xstrtoumax.m4: Remove.
57784
57785         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
57786         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
57787         dependencies now capture this.
57788
57789         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
57790         Do not use AC_LIBSOURCES, since gnulib modules now do this.
57791         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
57792         * m4/human.m4 (gl_HUMAN): Likewise.
57793         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
57794         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
57795
57796         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
57797
57798         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
57799         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
57800         stdint.
57801         * m4/human.m4 (gl_HUMAN): Likewise.
57802         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
57803         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
57804         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57805         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57806         * m4/xstrtol (gl_XSTRTOL): Likewise.
57807
57808         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
57809         AC_TYPE_LONG_LONG_INT.
57810         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57811         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
57812         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
57813         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57814
57815         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
57816         on stdbool.
57817
57818         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
57819         (gl_PREREQ_XSTRTOUL): Remove.
57820
57821         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
57822
57823         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
57824         mode.
57825
57826 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57827
57828         Add and change modules to make it easier for coreutils to use
57829         gnulib-tool.
57830         * modules/backupfile (Files): Remove m4/d-ino.m4.
57831         (Depends-on): Add d-ino.
57832         * modules/cycle-check (Depends-on): Add stdint.
57833         (lib_SOURCES): Add cycle-check.h.
57834         * modules/d-ino: New module.
57835         * modules/d-type: New module.
57836         * modules/error (Files): Remove m4/strerror_r.m4.
57837         * modules/filemode (Files): Add m4/st_dm_mode.m4.
57838         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57839         m4/inttypes_h.m4, m4/uintmax_t.m4.
57840         (Depends-on): Add stdint.
57841         (lib_SOURCES): Add fsusage.h.
57842         * modules/getcwd (Files): Remove d-ino.m4.
57843         (Depends-on): Add d-ino.
57844         * modules/getndelim2 (Depends-on): Add stdint.
57845         * modules/glob (Files): Remove m4/d-type.m4.
57846         (Depends-on): Add d-type.
57847         * modules/host-os: New module.
57848         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
57849         m4/inttypes_h.m4, m4/uintmax_t.m4.
57850         * Depends-on: Add stdint.
57851         (lib_SOURCES): Add human.h.
57852         * modules/inttostr (Files): Remove m4/intmax_t.m4,
57853         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
57854         m4/uintmax_t.m4, m4/ulonglong.m4.
57855         (Depends-on): Add stdint.
57856         (EXTRA_DIST): Add inttostr.h.
57857         * modules/lchmod: New module.
57858         * modules/link-follow: New module.
57859         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
57860         (Depends-on): Add lchmod.
57861         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
57862         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
57863         (Depends-on): Add stdint.
57864         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
57865         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
57866         (Depends-on): Add stdint.
57867         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
57868         * modules/perl: New module.
57869         * modules/regex (Depends-on): Add stdint.
57870         * modules/rmdir-errno: New module.
57871         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57872         m4/intmax_t.m4.
57873         (Depends-on): Add stdint.
57874         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57875         m4/uintmax_t.m4.
57876         (Depends-on): Add stdint.
57877         * modules/unlink-busy: New module.
57878         * modules/utimecmp (Depends-on): Add stdint.
57879         * modules/uptime: New module.
57880         * modules/winsz-ioctl: New module.
57881         * modules/winsz-termios: New module.
57882         * modules/xnanosleep (Depends-on): Add nanosleep.
57883         * modules/ullong_max: Remove.
57884         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
57885         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
57886         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
57887         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
57888         (Depends-on): Add inttypes.
57889         (lib_SOURCES): Add xstrtol.h.
57890         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
57891         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
57892         * MODULES.html.sh: Move 'assert' into the assert section.
57893         Move 'dummy' into the linking section.
57894         Remove ullong_max.
57895         Add section for compatibility checks for POSIX:2001 functions,
57896         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
57897         winsz-ioctl, and winsz-termios into it.
57898         Add lchmod.
57899         Add top-level Misc section and put host-os, perl, and uptime
57900         into it.
57901
57902 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57903
57904         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
57905         now assume the stdint module.  Do not include inttypes.h.
57906         * lib/fsusage.h: Likewise.
57907         * lib/getndelim2.c: Likewise.
57908         * lib/human.h: Likewise.
57909         * lib/inttostr.h: Likewise.
57910         * lib/obstack.c: Likewise.
57911         * lib/regex_internal.h: Likewise.
57912         * lib/tempname.c: Likewise.
57913         * lib/utimecmp.c: Likewise.
57914         * lib/xstrtol.h: Likewise.
57915
57916         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
57917
57918         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
57919         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
57920         * lib/xtime.h: Likewise.
57921
57922 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57923
57924         * modules/openat (Files): Add lib/fchmodat.c.
57925         Fixes problem reported by Jay Youngman.
57926
57927 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57928
57929         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
57930         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
57931
57932 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
57933             Bruno Haible  <bruno@clisp.org>
57934
57935         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
57936         and is a script that invokes bison. Tighten the code. Add comments.
57937
57938 2006-08-18  Jim Meyering  <jim@meyering.net>
57939
57940         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
57941         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
57942         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
57943         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
57944
57945 2006-08-18  Bruno Haible  <bruno@clisp.org>
57946
57947         * modules/bison-i18n: New file.
57948         * MODULES.html.sh (Internationalization functions): Add it.
57949
57950 2006-08-18  Bruno Haible  <bruno@clisp.org>
57951
57952         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
57953         sys/statvfs.h. When getmntinfo was found, check its declaration and
57954         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
57955
57956 2006-08-18  Bruno Haible  <bruno@clisp.org>
57957
57958         * m4/bison-i18n.m4: New file, from bison.
57959
57960 2006-08-18  Bruno Haible  <bruno@clisp.org>
57961
57962         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
57963         (ME_DUMMY): Treat "kernfs" as a dummy.
57964         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
57965
57966 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57967
57968         Update from coreutils.
57969
57970         2006-08-15  Jim Meyering  <jim@meyering.net>
57971
57972         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
57973
57974         2006-01-17  Jim Meyering  <jim@meyering.net>
57975
57976         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
57977
57978         2006-01-11  Jim Meyering  <jim@meyering.net>
57979
57980         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
57981         Check for the lchmod function.
57982
57983 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57984
57985         Update from coreutils.
57986
57987         * lib/__fpending.h: Add copyright notice.
57988         * lib/fprintftime.h: Likewise.
57989         * lib/savedir.c: Use (C) in copyright notice.
57990         * lib/savedir.h: Likewise.
57991
57992         2006-08-15  Jim Meyering  <jim@meyering.net>
57993
57994         * lib/at-func.c: New file, with the logic of all emulated at-functions.
57995         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
57996         in support of the EXPECTED_ERRNO macro.
57997         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
57998         definitions.  Instead, define the appropriate symbols and include
57999         "at-func.c".
58000         * lib/mkdirat.c (mkdirat): Likewise.
58001         * lib/fchmodat.c (fchmodat): Likewise.
58002         (ENOSYS): Remove definition.
58003         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
58004         it.  Don't include "unistd--.h" -- it wasn't ever used.
58005
58006         2006-01-17  Jim Meyering  <jim@meyering.net>
58007
58008         Rewrite fts.c not to change the current working directory,
58009         by using openat, fstatat, fdopendir, etc..
58010
58011         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
58012         (HAVE_OPENAT_SUPPORT): Define.
58013         [_LIBC] (fchdir): Don't undef or define; no longer used.
58014         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
58015         Now, this `function' always succeeds, and consumes its file descriptor
58016         parameter -- so callers must not close such FDs.  Update callers.
58017         (diropen_fd, opendirat, cwd_advance_fd): New functions.
58018         (diropen): Add parameter, SP.  Adjust all callers.
58019         Implement using diropen_fd, rather than open.
58020         (fts_open): Initialize new member, fts_cwd_fd.
58021         Remove fts_rft-setting code.
58022         (fts_close): Close fts_cwd_fd, if necessary.
58023         (__opendir2): Define in terms of opendir or opendirat,
58024         depending on whether the FST_NOCHDIR flag is set.
58025         (fts_build): Since fts_safe_changedir consumes its FD, and since
58026         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
58027         and close the dup'd file descriptor upon failure.
58028         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
58029         (fts_safe_changedir): Tweak semantics to reflect that this function
58030         now calls cwd_advance_fd and hence consumes its FD argument.
58031         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
58032         [struct FTS] (fts_rft): Remove now-unused member.
58033         [struct FTS] (fts_cycle.state): Improve comment.
58034
58035         * lib/openat.c (openat_needs_fchdir): New function.
58036         * lib/openat.h (openat_needs_fchdir): Declare it.
58037
58038 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58039
58040         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
58041         Problem and fix reported by Pádraig Brady in
58042         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
58043
58044 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58045
58046         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
58047
58048 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58049
58050         * lib/memcoll.c (memcoll): Optimize for the common case where the
58051         arguments are bytewise equal.
58052
58053 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58054
58055         * doc/regexprops-generic.texi: Add a copyright notice.
58056
58057 2006-08-15  Bruno Haible  <bruno@clisp.org>
58058
58059         * modules/tmpdir (License): Change to LGPL.
58060
58061 2006-08-15  Bruno Haible  <bruno@clisp.org>
58062
58063         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
58064         module.
58065
58066 2006-08-14  Simon Josefsson  <jas@extundo.com>
58067
58068         * config/srclist.txt: Add gnupload.
58069
58070 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58071
58072         Change copyright notice from LGPL 2 to GPL 2, since that's the
58073         standard form used in the gnulib repository.
58074         * tests/test-lock.c: Likewise.
58075         * tests/test-stdint.c: Likewise.
58076         * tests/test-tls.c: Likewise.
58077
58078         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
58079         prelude-manager.  User shorter URLs for GNU projects, without '?'.
58080         Add copyright notice.
58081
58082         * check-module: Add copyright notice.  Output a copyright
58083         notice if "--version" is specified.
58084         * modules/COPYING: New file.
58085         * tests/test-getaddrinfo.c: Add copyright notice.
58086         * tests/test-verify.c: Likewise.
58087
58088 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58089
58090         Change copyright notice from LGPL 2 to GPL 2, since that's the
58091         standard form used in the gnulib repository.
58092         * lib/lock.c: LGPL -> GPL.
58093         * lib/lock.h: Likewise.
58094         * lib/strnlen1.c: Likewise.
58095         * lib/strnlen1.h: Likewise.
58096         * lib/tls.c: Likewise.
58097         * lib/tls.h: Likewise.
58098         * lib/tmpdir.c: Likewise.
58099
58100         * lib/TODO: Remove; this belongs only in coreutils.
58101
58102 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58103
58104         Add copyright notices to long-enough files that lack them, since
58105         otherwise the files aren't clearly free.  Use the same notice that
58106         getdate.texi already uses.
58107         * doc/alloca-opt.texi: Add copyright notice.
58108         * doc/alloca.texi: Likewise.
58109         * doc/ctime.texi: Likewise.
58110         * doc/functions.texi: Likewise.
58111         * doc/gcd.texi: Likewise.
58112         * doc/gnulib-tool.texi: Likewise.
58113         * doc/inet_ntoa.texi: Likewise.
58114         * doc/visibility.texi: Likewise.
58115
58116         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
58117         * doc/quote.texi: Add copyright notice.
58118
58119         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
58120         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
58121         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
58122         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
58123         is now obsolete, and give a pointer to the Sun list.
58124         Add copyright notice.
58125
58126 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58127
58128         * config/srclistvars.sh: Add copyright notice.
58129
58130 2006-08-14  Eric Blake  <ebb9@byu.net>
58131
58132         Import the following change from libc:
58133
58134         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
58135
58136         Upstream bug 2997.
58137         * lib/misc/error.c: Add space between program name and message if file
58138         name is missing.
58139
58140 2006-08-12  Karl Berry  <karl@gnu.org>
58141
58142         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
58143         remove, these originate in gnulib now.
58144
58145 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58146
58147         * doc/Makefile (standards.info standards.html standards.dvi):
58148         Also depend on make-stds.texi.
58149
58150 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58151
58152         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
58153         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
58154
58155         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
58156         in wchar_t.  Problem reported by Eric Blake.
58157
58158         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
58159         LEN is smaller than SIZE.  Suggested by Bruno Haible.
58160         Also, help the compiler to keep LEN in a register.
58161
58162 2006-08-11  Eric Blake  <ebb9@byu.net>
58163
58164         * users.txt: Sort.  Add tar.
58165
58166 2006-08-11  Bruno Haible  <bruno@clisp.org>
58167
58168         * users.txt: New file.
58169
58170 2006-08-11  Bruno Haible  <bruno@clisp.org>
58171
58172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
58173         before <wchar.h>. Needed for OSF/1 and BSD/OS.
58174
58175 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58176
58177         * modules/snprintf (Depends-on): Remove minmax.
58178         (Maintainer): Add self and Bruno.
58179
58180 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58181
58182         * lib/.cppi-disable: Add snprintf.h, socket_.h.
58183         * lib/snprintf.c: Include <errno.h> and <limits.h>.
58184         (EOVERFLOW): Define if the system does not.
58185         Do not include "minmax.h"; it wasn't used.
58186         (snprintf): Don't assume size_t promotes to an unsigned type.
58187         Fix bug when generated string was too long for the buffer: the
58188         buffer's contents are supposed to be the initial prefix of the
58189         output.  Don't assume vasnprintf returns EOVERFLOW if the size
58190         exceeds INT_MAX; do the check ourselves.
58191
58192         Import the following changes from libc:
58193
58194         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
58195
58196         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
58197         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
58198         set wc to the byte which couldn't be converted.
58199         (re_string_reconstruct): Don't clear valid_raw_len before calling
58200         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
58201         tip_context using re_string_context_at.
58202
58203         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
58204
58205         * lib/posix/regex.h: g++ still cannot handled [restrict].
58206
58207         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
58208
58209         * lib/posix/regex.h: Remove special handling for VMS.
58210
58211 2006-08-10  Jim Meyering  <jim@meyering.net>
58212
58213         * modules/same-inode: New module.
58214         * modules/dev-ino: New module.
58215         * modules/cycle-check: Depend on these modules, rather than simply
58216         including their .h files.
58217         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
58218         required via m4/cycle-check.m4.
58219         * modules/same: Depend on new same-inode module, rather than
58220         including same-inode.h.
58221         * modules/chdir-safer: New file.
58222
58223         * modules/chown (Depends-on): Add stat-macros.
58224
58225 2006-08-10  Jim Meyering  <jim@meyering.net>
58226
58227         * m4/cycle-check.m4: New file.
58228         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
58229         * m4/dev-ino.m4, m4/same-inode.m4: New files.
58230
58231 2006-08-10  Eric Blake  <ebb9@byu.net>
58232
58233         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
58234         in from original proposal.
58235
58236 2006-08-10  Eric Blake  <ebb9@byu.net>
58237         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58238
58239         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
58240         namespace.
58241
58242 2006-08-10  Bruno Haible  <bruno@clisp.org>
58243
58244         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
58245         as well.
58246
58247 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58248
58249         Sync from coreutils.
58250
58251         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
58252
58253         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
58254         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
58255
58256 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58257
58258         * modules/restrict: Remove; no longer needed now that we assume
58259         Autoconf 2.59 or later.
58260         * MODULES.html.sh: Remove 'restrict'.
58261         * modules/argp (Depends-on): Remove 'restrict'.
58262         * modules/base64 (Depends-on): Likewise.
58263         * modules/gc (Depends-on): Likewise.
58264         * modules/getaddrinfo (Depends-on): Likewise.
58265         * modules/glob (Depends-on): Likewise.
58266         * modules/inet_ntop (Depends-on): Likewise.
58267         * modules/inet_pton (Depends-on): Likewise.
58268         * modules/memxor (Depends-on): Likewise.
58269         * modules/regex (Depends-on): Likewise.
58270         * modules/strtok_r (Depends-on): Likewise.
58271         * modules/time_r (Depends-on): Likewise.
58272
58273 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58274
58275         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
58276         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
58277         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58278         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
58279         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58280         * m4/memxor.m4 (gl_MEMXOR): Likewise.
58281         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
58282         gl_C_RESTRICT replaced by AC_C_RESTRICT.
58283
58284         Merge from coreutils.
58285         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
58286         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
58287         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58288         * m4/time_r.m4 (gl_TIME_R): Likewise.
58289
58290 2006-08-09  Karl Berry  <karl@gnu.org>
58291
58292         * config/srclist.txt: no more gettext-tools, per Bruno.
58293
58294 2006-08-08  Eric Blake  <ebb9@byu.net>
58295
58296         * modules/verror: New module.
58297         * MODULES.html.sh: Document it.
58298
58299 2006-08-08  Eric Blake  <ebb9@byu.net>
58300
58301         * lib/verror.h, lib/verror.c: New files.
58302
58303 2006-08-08  Eric Blake  <ebb9@byu.net>
58304
58305         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
58306         verror_at_line output complies with GNU Coding Standards even when
58307         file is NULL.
58308
58309 2006-08-07  Bruno Haible  <bruno@clisp.org>
58310
58311         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
58312         versions of AIX.
58313         Reported by Ralf Wildenhues.
58314
58315 2006-08-07  Bruno Haible  <bruno@clisp.org>
58316
58317         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
58318         in an AC_DEFUN. Needed so that the autoconf snippets can use
58319         AC_REQUIRE.
58320
58321 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58322
58323         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58324         Initialize pkgdata_DATA.
58325         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
58326         overriding it.
58327
58328 2006-08-06  Eric Blake  <ebb9@byu.net>
58329
58330         * lib/error.h: Fold in some upstream changes from glibc.
58331         * lib/error.c: Likewise.
58332
58333 2006-08-04  Bruno Haible  <bruno@clisp.org>
58334
58335         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58336         Make the mostlyclean-local rule depend on mostlyclean-generic.
58337         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
58338
58339 2006-07-31  Bruno Haible  <bruno@clisp.org>
58340
58341         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
58342         <stdlib.h>, <string.h>.
58343
58344 2006-07-30  Bruno Haible  <bruno@clisp.org>
58345
58346         * modules/readlink (License): Change to LGPL.
58347
58348 2006-07-30  Bruno Haible  <bruno@clisp.org>
58349
58350         * modules/javaversion (Makefile.am): Distribute javaversion.java and
58351         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
58352         set PKGDATADIR to point to it.
58353
58354 2006-07-30  Bruno Haible  <bruno@clisp.org>
58355
58356         * modules/csharpexec (configure.ac): Comment out macro invocation.
58357         * modules/javaexec (configure.ac): Likewise.
58358         * modules/javacomp-script (configure.ac): Likewise.
58359
58360         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
58361
58362 2006-07-30  Bruno Haible  <bruno@clisp.org>
58363
58364         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
58365         linked-list.
58366
58367 2006-07-30  Bruno Haible  <bruno@clisp.org>
58368
58369         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
58370
58371 2006-07-30  Bruno Haible  <bruno@clisp.org>
58372
58373         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58374         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
58375         get removed.
58376
58377 2006-07-29  Bruno Haible  <bruno@clisp.org>
58378
58379         Make it possible for gnulib-tool to work with locally modified or
58380         augmented gnulib repositories.
58381         * gnulib-tool (func_usage): Document --local-dir option.
58382         (local_gnulib_dir): New variable.
58383         Handle --local-dir option.
58384         (func_lookup_file): New function.
58385         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
58386         (func_get_description, func_get_filelist, func_get_description,
58387         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
58388         func_get_automake_snippet, func_get_include_directive,
58389         func_get_license, func_get_maintainer): Use func_lookup_file.
58390         (func_import, func_create_testdir): Use func_lookup_file.
58391
58392 2006-07-29  Bruno Haible  <bruno@clisp.org>
58393
58394         * modules/setenv (Depends-on): Add unistd.
58395
58396 2006-07-29  Bruno Haible  <bruno@clisp.org>
58397
58398         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
58399
58400 2006-07-29  Bruno Haible  <bruno@clisp.org>
58401
58402         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
58403
58404 2006-07-29  Bruno Haible  <bruno@clisp.org>
58405
58406         * gnulib-tool (import, update): If there is no Makefile.am, look at
58407         aclocal.m4, instead of bailing out.
58408
58409 2006-07-29  Bruno Haible  <bruno@clisp.org>
58410
58411         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
58412         Categorize the options by when they are useful.
58413
58414 2006-07-29  Bruno Haible  <bruno@clisp.org>
58415
58416         * gnulib-tool (func_usage): Document option --no-libtool.
58417         Handle option --no-libtool.
58418         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
58419         for changed semantics of $libtool variable.
58420         (func_import): Likewise. If libtool is not used, show this through
58421         an option --no-libtool.
58422         (func_create_testdir): Update.
58423
58424 2006-07-29  Bruno Haible  <bruno@clisp.org>
58425
58426         * gnulib-tool (func_import): Extend error message about missing
58427         --doc-base.
58428
58429 2006-07-29  Bruno Haible  <bruno@clisp.org>
58430
58431         * gnulib-tool (func_import): Don't create the $docbase directory if
58432         there is no file to store there.
58433
58434 2006-07-29  Bruno Haible  <bruno@clisp.org>
58435
58436         * gnulib-tool (autoconf_minversion): If a --dir option is given and
58437         relevant, look for configure.ac there, not in the current directory.
58438         Also use a simple search for AC_PREREQ, not "autoconf --trace".
58439
58440 2006-07-29  Bruno Haible  <bruno@clisp.org>
58441
58442         * gnulib-tool (SORT): New variable.
58443         (func_usage): Undocument --assume-autoconf option.
58444         Remove --assume-autoconf option handling.
58445         (autoconf_minversion): Determine from the contents of configure.ac.
58446         (func_import): Remove autoconf_minversion handling.
58447         Suggested by Eric Blake.
58448
58449 2006-07-29  Bruno Haible  <bruno@clisp.org>
58450
58451         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
58452
58453 2006-07-29  Bruno Haible  <bruno@clisp.org>
58454
58455         * config/srclist.txt (*setenv.[ch]): Remove rules.
58456
58457 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58458
58459         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
58460
58461 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58462
58463         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
58464         arpa/inet.h.
58465
58466 2006-07-28  Simon Josefsson  <jas@extundo.com>
58467
58468         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
58469         * modules/inet_pton (Depends-on): Likewise.
58470
58471 2006-07-28  Simon Josefsson  <jas@extundo.com>
58472
58473         * m4/netinet_in_h.m4: New file.
58474
58475 2006-07-28  Simon Josefsson  <jas@extundo.com>
58476
58477         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
58478         #include's.
58479
58480 2006-07-28  Simon Josefsson  <jas@extundo.com>
58481
58482         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
58483         #include's.
58484
58485 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
58486
58487         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
58488         setgid on directories only if they set these bits.
58489         * lib/modechange.h: Remove obsolete comment about masks.
58490
58491 2006-07-28  Eric Blake  <ebb9@byu.net>
58492
58493         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
58494         macro expansion.
58495
58496 2006-07-28  Bruno Haible  <bruno@clisp.org>
58497
58498         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
58499
58500 2006-07-28  Bruno Haible  <bruno@clisp.org>
58501
58502         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
58503
58504 2006-07-28  Bruno Haible  <bruno@clisp.org>
58505
58506         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58507         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58508         Define fallbacks.
58509         Avoids link error on FreeBSD 4.x.
58510         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58511
58512         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
58513         encoding.
58514         * lib/mbswidth.c (iswcntrl): Likewise.
58515
58516 2006-07-27  Bruno Haible  <bruno@clisp.org>
58517
58518         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
58519         test.
58520
58521 2006-07-27  Bruno Haible  <bruno@clisp.org>
58522
58523         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
58524         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
58525         defined.
58526
58527 2006-07-26  Eric Blake  <ebb9@byu.net>
58528
58529         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
58530
58531 2006-07-26  Eric Blake  <ebb9@byu.net>
58532
58533         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
58534         like mingw that lack mkstemp.
58535         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
58536         avoid compilation warning on mingw.
58537
58538 2006-07-26  Bruno Haible  <bruno@clisp.org>
58539
58540         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
58541         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
58542         INT_FAST*_MIN, INTPTR_MIN.
58543
58544 2006-07-25  Bruno Haible  <bruno@clisp.org>
58545
58546         * modules/version-etc (Depends-on): Add stdarg.
58547
58548 2006-07-25  Bruno Haible  <bruno@clisp.org>
58549
58550         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
58551         complex commands.
58552
58553 2006-07-25  Bruno Haible  <bruno@clisp.org>
58554
58555         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
58556         defined in <stdarg.h> or config.h.
58557
58558 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
58559
58560         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
58561         (gl_STDIO_SAFER): Remove.
58562
58563 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
58564
58565         * MODULES.html.sh (File stream based Input/Output):
58566         Add fopen-safer, tmpfile-safer; remove stdio-safer.
58567         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
58568         * modules/fopen-safer, modules/tmpfile-safer: New files.
58569         * modules/stdio-safer: Remove.
58570
58571 2006-07-24  Bruno Haible  <bruno@clisp.org>
58572
58573         * modules/tmpdir: New file.
58574         * MODULES.html.sh (File system functions): Add it.
58575
58576 2006-07-24  Bruno Haible  <bruno@clisp.org>
58577
58578         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
58579         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
58580
58581 2006-07-24  Bruno Haible  <bruno@clisp.org>
58582
58583         * modules/clean-temp: New file.
58584
58585 2006-07-24  Bruno Haible  <bruno@clisp.org>
58586
58587         * m4/tmpdir.m4: New file, from GNU gettext.
58588
58589 2006-07-24  Bruno Haible  <bruno@clisp.org>
58590
58591         * lib/tmpdir.h: New file, from GNU gettext.
58592         * lib/tmpdir.c: New file, from GNU gettext.
58593
58594 2006-07-24  Bruno Haible  <bruno@clisp.org>
58595
58596         * lib/clean-temp.h: New file, from GNU gettext.
58597         * lib/clean-temp.c: New file, from GNU gettext.
58598
58599 2006-07-23  Eric Blake  <ebb9@byu.net>
58600
58601         * modules/stdio-safer (Files): Add tmpfile-safer.c.
58602         (Depends-on): Add binary-io.
58603
58604 2006-07-23  Eric Blake  <ebb9@byu.net>
58605
58606         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
58607
58608 2006-07-23  Eric Blake  <ebb9@byu.net>
58609
58610         * lib/tmpfile-safer.c: New file.
58611         * lib/stdio-safer.h (fopen_safer): Add prototype.
58612         * lib/stdio--.h (tmpfile): Make safer.
58613
58614 2006-07-23  Bruno Haible  <bruno@clisp.org>
58615
58616         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
58617         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
58618         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
58619         gl_linked_remove_at): Use it.
58620
58621 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58622         and Simon Josefsson <jas@extundo.com>
58623
58624         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
58625
58626         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
58627
58628 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58629
58630         * modules/close-stream: New file.
58631         * modules/closeout (Description): Make it clear that it exits
58632         with a diagnostic on error.
58633         (Depends-on): Add close-stream.  Remove fpending, stdbool.
58634         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
58635
58636 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58637
58638         * m4/close-stream.m4: New file.
58639
58640 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58641
58642         * lib/close-stream.c, lib/close-stream.h: New files.
58643
58644 2006-07-22  Bruno Haible  <bruno@clisp.org>
58645
58646         Merge from GNU gettext 0.15.
58647
58648         2006-05-01  Bruno Haible  <bruno@clisp.org>
58649
58650                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
58651
58652         2006-07-22  Bruno Haible  <bruno@clisp.org>
58653
58654                 * modules/javaversion: New file.
58655                 * MODULES.html.sh (Java): Add javaversion.
58656
58657         2006-03-12  Bruno Haible  <bruno@clisp.org>
58658
58659                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
58660
58661         2005-12-04  Bruno Haible  <bruno@clisp.org>
58662
58663                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
58664                 (untested).
58665
58666         2006-06-21  Bruno Haible  <bruno@clisp.org>
58667
58668                 Avoid warnings from recent versions of mcs.
58669                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
58670                 -o, -L, -r any more. Use options documented since mcs-1.0
58671                 instead. Similarly for -g.
58672
58673         2005-12-04  Bruno Haible  <bruno@clisp.org>
58674
58675                 * build-aux/csharpcomp.sh.in: Suffix for resources is
58676                 .resources, not .resource.
58677
58678         2005-07-09  Bruno Haible  <bruno@clisp.org>
58679
58680                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
58681                 add a .dll suffix.
58682                 Reported by Mark Junker <mjscod@gmx.de>.
58683
58684         2006-07-22  Bruno Haible  <bruno@clisp.org>
58685
58686                 * modules/gettext: Upgrade to gettext-0.15.
58687                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
58688                 m4/visibility.m4.
58689                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
58690
58691 2006-07-22  Bruno Haible  <bruno@clisp.org>
58692
58693         Merge from GNU gettext 0.15.
58694
58695         2006-03-25  Bruno Haible  <bruno@clisp.org>
58696
58697                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
58698
58699         2006-07-21  Bruno Haible  <bruno@clisp.org>
58700
58701                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
58702                 "1.1".
58703
58704         2006-05-09  Bruno Haible  <bruno@clisp.org>
58705
58706                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
58707                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
58708                 for the conftestver execution.
58709
58710         2006-05-01  Bruno Haible  <bruno@clisp.org>
58711
58712                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
58713                 optional target-version argument. Verify that the compiler
58714                 groks source of the specified source-version, or add -source
58715                 option as necessary. Verify that the compiler produces
58716                 bytecode in the specified target-version, or add -target and
58717                 -source options as necessary. Make the result of the test
58718                 available as variable CONF_JAVAC. Also log error output in
58719                 config.log.
58720
58721         2006-03-11  Bruno Haible  <bruno@clisp.org>
58722
58723                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
58724
58725         2006-05-09  Bruno Haible  <bruno@clisp.org>
58726
58727                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
58728                 CLASSPATH_SEPARATOR to a semicolon.
58729
58730         2006-03-12  Bruno Haible  <bruno@clisp.org>
58731
58732                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
58733                 available as variable CONF_JAVA, for subsequent autoconf
58734                 tests. Also log error output in config.log.
58735
58736         2006-07-19  Bruno Haible  <bruno@clisp.org>
58737
58738                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
58739                 that getline works on glibc2 systems. Needed to avoid trouble
58740                 in relocatable.c.
58741                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
58742
58743         2005-12-04  Bruno Haible  <bruno@clisp.org>
58744
58745                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
58746                 launcher (untested).
58747
58748         2005-12-04  Bruno Haible  <bruno@clisp.org>
58749
58750                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
58751
58752         2006-07-22  Bruno Haible  <bruno@clisp.org>
58753
58754                 * gettext.m4: Update from GNU gettext-0.15.
58755                 * nls.m4: Likewise.
58756                 * po.m4: Likewise.
58757                 * inttypes-pri.m4: Likewise.
58758                 * inttypes-h.m4: Renamed from inttypes.m4.
58759                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
58760
58761 2006-07-22  Bruno Haible  <bruno@clisp.org>
58762
58763         Merge from GNU gettext 0.15.
58764
58765         2005-07-05  Bruno Haible  <bruno@clisp.org>
58766
58767                 * printf-args.c (printf_fetchargs): Work around broken
58768                 definition of wint_t on mingw.
58769
58770         2005-02-12  Bruno Haible  <bruno@clisp.org>
58771
58772                 * xallocsa.h: Add extern "C" for C++.
58773
58774         2006-05-17  Bruno Haible  <bruno@clisp.org>
58775
58776                 Cygwin portability.
58777                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
58778
58779         2006-04-30  Bruno Haible  <bruno@clisp.org>
58780
58781                 * progreloc.c: Include <mach-o/dyld.h> if available.
58782                 (find_executable): Use _NSGetExecutablePath when possible.
58783
58784         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58785
58786                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
58787                 function.
58788
58789         2005-12-29  Bruno Haible  <bruno@clisp.org>
58790
58791                 * progreloc.c (set_program_name_and_installdir): Fix
58792                 compilation error.
58793
58794         2005-12-04  Bruno Haible  <bruno@clisp.org>
58795
58796                 Cygwin portability.
58797                 * progreloc.c: Include <windows.h> also on Cygwin.
58798                 (find_executable): Add support for Cygwin.
58799                 (set_program_name_and_installdir): Handle also platforms with
58800                 nonempty EXEEXT.
58801
58802         2006-07-11  Bruno Haible  <bruno@clisp.org>
58803
58804                 * javacomp.c: Fix a comment.
58805                 Reported by Jim Meyering.
58806
58807         2006-04-30  Bruno Haible  <bruno@clisp.org>
58808
58809                 * javacomp.h (compile_java_class): Add source_version,
58810                 target_version arguments.
58811                 * javacomp.c: Rewritten to choose only a compiler that
58812                 respects the specified source_version and target_version.
58813
58814         2006-06-27  Bruno Haible  <bruno@clisp.org>
58815
58816                 Assume correct S_ISDIR macro.
58817                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
58818
58819         2006-07-22  Bruno Haible  <bruno@clisp.org>
58820
58821                 * javaversion.h: New file, from GNU gettext.
58822                 * javaversion.c: New file, from GNU gettext.
58823                 * javaversion.java: New file, from GNU gettext.
58824                 * javaversion.class: New file, from GNU gettext.
58825
58826         2006-05-17  Bruno Haible  <bruno@clisp.org>
58827
58828                 Cygwin portability.
58829                 * javaexec.c (execute_java_class): Test for jview program
58830                 also on Cygwin.
58831
58832         2006-04-09  Bruno Haible  <bruno@clisp.org>
58833
58834                 * fatal-signal.c: Don't include string.h.
58835                 (at_fatal_signal): Use a copying loop instead of memcpy.
58836
58837         2005-12-04  Bruno Haible  <bruno@clisp.org>
58838
58839                 * csharpexec.c: Add support for 'clix' launcher (untested).
58840                 (execute_csharp_using_sscli): New function.
58841                 (execute_csharp_program): Call it.
58842
58843         2006-06-21  Bruno Haible  <bruno@clisp.org>
58844
58845                 Avoid warnings from recent versions of mcs.
58846                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
58847                 -o, -L, -r any more. Use options documented since mcs-1.0
58848                 instead. Similarly for -g.
58849
58850         2005-07-09  Bruno Haible  <bruno@clisp.org>
58851
58852                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
58853                 add a .dll suffix.
58854                 Reported by Mark Junker <mjscod@gmx.de>.
58855
58856         2006-06-17  Bruno Haible  <bruno@clisp.org>
58857
58858                 * config.charset: Update for NetBSD 3.0.
58859
58860         2006-05-17  Bruno Haible  <bruno@clisp.org>
58861
58862                 Cygwin portability.
58863                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
58864
58865         2006-05-16  Bruno Haible  <bruno@clisp.org>
58866
58867                 * localcharset.c [CYGWIN]: Include <windows.h>.
58868                 (get_charset_aliases): For Cygwin, return the same CPxxx
58869                 aliases list as under WIN32.
58870                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
58871                 the environment variables. Fall back to GetACP().
58872
58873         2006-04-05  Bruno Haible  <bruno@clisp.org>
58874
58875                 * config.charset: Update Juan Manuel Guerrero's address.
58876
58877         2005-02-12  Bruno Haible  <bruno@clisp.org>
58878
58879                 * allocsa.h: Add extern "C" for C++.
58880
58881         2005-02-10  Bruno Haible  <bruno@clisp.org>
58882
58883                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
58884                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
58885
58886         2006-07-22  Bruno Haible  <bruno@clisp.org>
58887
58888                 * gettext.h: Update to GNU gettext-0.15.
58889
58890 2006-07-22  Bruno Haible  <bruno@clisp.org>
58891
58892         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
58893         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
58894         lib-prefix.m4, longdouble.m4, ssize_t.m4.
58895
58896 2006-07-21  Eric Blake  <ebb9@byu.net>
58897
58898         * modules/stdlib-safer: New file.
58899         * MODULES.html.sh (File stream based Input/Output): Add
58900         stdlib-safer.
58901
58902 2006-07-21  Eric Blake  <ebb9@byu.net>
58903
58904         * lib/stdlib-safer.h: New file from coreutils, required by
58905         stdlib--.h.
58906
58907 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
58908
58909         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
58910
58911 2006-07-20  Bruno Haible  <bruno@clisp.org>
58912
58913         * gnulib-tool: Recognize new option --assume-autoconf.
58914         (autoconf_minversion): New variable.
58915         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
58916
58917 2006-07-20  Bruno Haible  <bruno@clisp.org>
58918
58919         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
58920
58921 2006-07-19  Derek R. Price  <derek@ximbiot.com>
58922
58923         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
58924         Reindent and repaginate.
58925
58926 2006-07-19  Derek Price  <derek@ximbiot.com>
58927
58928         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
58929         Correct grammar.
58930
58931 2006-07-17  Bruno Haible  <bruno@clisp.org>
58932
58933         * modules/list: New file.
58934         * modules/array-list: New file.
58935         * modules/carray-list, modules/carray-list-tests: New files.
58936         * modules/linked-list, modules/linked-list-tests: New files.
58937         * modules/avltree-list, modules/avltree-list-tests: New files.
58938         * modules/rbtree-list, modules/rbtree-list-tests: New files.
58939         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
58940         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
58941         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
58942         * modules/oset: New file.
58943         * modules/array-oset: New file.
58944         * modules/avltree-oset, modules/avltree-oset-tests: New files.
58945         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
58946         * tests/test-carray_list.c: New file.
58947         * tests/test-linked_list.c: New file.
58948         * tests/test-avltree_list.c: New file.
58949         * tests/test-rbtree_list.c: New file.
58950         * tests/test-linkedhash_list.c: New file.
58951         * tests/test-avltreehash_list.c: New file.
58952         * tests/test-rbtreehash_list.c: New file.
58953         * tests/test-avltree_oset.c: New file.
58954         * tests/test-rbtree_oset.c: New file.
58955         * MODULES.html.sh (Container data structures): New section.
58956
58957 2006-07-17  Bruno Haible  <bruno@clisp.org>
58958
58959         * m4/gl_list.m4: New file.
58960
58961 2006-07-17  Bruno Haible  <bruno@clisp.org>
58962
58963         * lib/gl_list.h: New file.
58964         * lib/gl_list.c: New file.
58965         * lib/gl_array_list.h: New file.
58966         * lib/gl_array_list.c: New file.
58967         * lib/gl_carray_list.h: New file.
58968         * lib/gl_carray_list.c: New file.
58969         * lib/gl_linked_list.h: New file.
58970         * lib/gl_linked_list.c: New file.
58971         * lib/gl_anylinked_list1.h: New file.
58972         * lib/gl_anylinked_list2.h: New file.
58973         * lib/gl_avltree_list.h: New file.
58974         * lib/gl_avltree_list.c: New file.
58975         * lib/gl_anyavltree_list1.h: New file.
58976         * lib/gl_anyavltree_list2.h: New file.
58977         * lib/gl_rbtree_list.h: New file.
58978         * lib/gl_rbtree_list.c: New file.
58979         * lib/gl_anyrbtree_list1.h: New file.
58980         * lib/gl_anyrbtree_list2.h: New file.
58981         * lib/gl_anytree_list1.h: New file.
58982         * lib/gl_anytree_list2.h: New file.
58983         * lib/gl_linkedhash_list.h: New file.
58984         * lib/gl_linkedhash_list.c: New file.
58985         * lib/gl_anyhash_list1.h: New file.
58986         * lib/gl_anyhash_list2.h: New file.
58987         * lib/gl_avltreehash_list.h: New file.
58988         * lib/gl_avltreehash_list.c: New file.
58989         * lib/gl_rbtreehash_list.h: New file.
58990         * lib/gl_rbtreehash_list.c: New file.
58991         * lib/gl_anytreehash_list1.h: New file.
58992         * lib/gl_anytreehash_list2.h: New file.
58993
58994         * lib/gl_oset.h: New file.
58995         * lib/gl_oset.c: New file.
58996         * lib/gl_array_oset.h: New file.
58997         * lib/gl_array_oset.c: New file.
58998         * lib/gl_avltree_oset.h: New file.
58999         * lib/gl_avltree_oset.c: New file.
59000         * lib/gl_rbtree_oset.h: New file.
59001         * lib/gl_rbtree_oset.c: New file.
59002         * lib/gl_anytree_oset.h: New file.
59003
59004 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59005
59006         * m4/mkancesdirs.m4: New file.
59007         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
59008         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
59009         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
59010         it.
59011
59012 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59013
59014         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
59015         * lib/mkancesdirs.h: New files.
59016         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
59017         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
59018         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
59019         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
59020         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
59021         callers changed.  Revamp internals significantly, by not
59022         attempting to create directories that are temporarily more
59023         permissive than the final results.  Do not attempt to use
59024         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
59025         This removes some race conditions, fixes some bugs, and simplifies
59026         things.  Use new dirchownmod function to do owner and mode changes.
59027         * lib/mkdir-p.h: Likewise.
59028         * lib/modechange.c (octal_to_mode): New function.
59029         (struct mode_change): New member mentioned.
59030         (make_node_op_equals): New arg mentioned.  All callers changed.
59031         (mode_compile): Keep track of which mode bits the user has explicitly
59032         mentioned.
59033         (mode_adjust): New arg DIR, so that we implement the X op correctly.
59034         New arg PMODE_BITS, to keep track of which mode bits the user
59035         mentioned; it treats S_ISUID and S_ISGID speciall.
59036         All callers changed.
59037         * lib/modechange.h: Likewise.
59038
59039 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59040
59041         * MODULES.html.sh: Add mkancestors.
59042         * modules/mkancesdirs: New module.
59043         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
59044         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
59045         The chdir-safer and afs files are now orphans; I'll remove them
59046         unless someone speaks up.
59047         Add lib/dirchownmod.c, lib/dirchownmod.h.
59048         (Depends-on): Remove alloca, chown, save-cwd, dirname.
59049         Add lchown, mkancesdirs.
59050         (Maintainer): Add self.
59051
59052 2006-07-15  Karl Berry  <karl@gnu.org>
59053
59054         * gnulib-tool: help message wording/arrangement.
59055
59056 2006-07-14  Simon Josefsson  <jas@extundo.com>
59057
59058         * doc/gnulib.texi (Libtool and Windows): New section.
59059
59060 2006-07-12  Simon Josefsson  <jas@extundo.com>
59061
59062         * modules/gendocs (License): Fix license, approved by Karl.
59063
59064 2006-07-12  Eric Blake  <ebb9@byu.net>
59065
59066         * MODULES.html.sh: Add gendocs.
59067
59068 2006-07-11  Eric Blake  <ebb9@byu.net>
59069
59070         * modules/fdl: New module, to install doc/fdl.texi.
59071         * MODULES.html.sh: Add new section for documentation modules.
59072         * gnulib-tool: Avoid space-tab.
59073         (--doc-base): New option, to manage files from doc.
59074
59075 2006-07-11  Eric Blake  <ebb9@byu.net>
59076
59077         * m4/absolute-header.m4: Fix comments to match recent change.
59078
59079 2006-07-11  Eric Blake  <ebb9@byu.net>
59080
59081         * gnulib-tool: List --doc-base before --tests-base.
59082
59083 2006-07-11  Derek R. Price  <derek@ximbiot.com>
59084
59085         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
59086
59087 2006-07-11  Bruno Haible  <bruno@clisp.org>
59088
59089         * README: Mention where to put documentation.
59090
59091 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59092
59093         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
59094
59095 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59096
59097         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
59098         to stdint.m4.
59099
59100 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59101
59102         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
59103         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
59104         "no/such/file/stdint.h" when there is no such file, so that
59105         the resulting C code can be parsed by dodgy compilers.
59106         Problems reported by Bob Proulx.
59107
59108 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59109
59110         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
59111         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59112         macros into the GNU _D_EXACT_NAMLEN.
59113         * lib/savedir.c:  Likewise.
59114         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
59115
59116 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59117         and Paul Eggert  <eggert@cs.ucla.edu>
59118
59119         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
59120         * m4/savedir.m4:
59121         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59122         macros into the GNU _D_EXACT_NAMLEN.
59123
59124 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59125
59126         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
59127         around the absolute name, to work around a problem with the HP-UX
59128         11.23 native C compiler, reported by Bob Proulx.
59129
59130 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59131
59132         * doc/maintain.texi, make-stds.texi: Sync from
59133         <http://savannah.gnu.org/projects/gnustandards>.
59134
59135 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59136
59137         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
59138
59139 2006-07-09  Jim Meyering  <jim@meyering.net>
59140
59141         * m4/glob.m4: Remove a doubled word in a comment.
59142
59143 2006-07-09  Jim Meyering  <jim@meyering.net>
59144
59145         * lib/argp-pv.c: Remove a doubled word in a comment.
59146         * lib/check-version.c (check_version): Likewise.
59147         * lib/javacomp.c (compile_java_class): Likewise.
59148
59149 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59150
59151         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
59152         for the benefit of people using Autoconf 2.60.  If you want to
59153         support older Autoconf versions you can copy m4/onceonly_2_57.m4
59154         (or m4/onceonly.m4, if pre-2.57) manually.
59155
59156 2006-07-08  Jim Meyering  <jim@meyering.net>
59157
59158         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
59159         comment.
59160         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
59161         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
59162         comment.
59163
59164 2006-07-08  Jim Meyering  <jim@meyering.net>
59165
59166         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
59167
59168 2006-07-07  Simon Josefsson  <jas@extundo.com>
59169
59170         * tests/test-crc.c: Change expected crc value, the test vector
59171         were probably computed using the old broken crc.c?
59172
59173 2006-07-06  Simon Josefsson  <jas@extundo.com>
59174
59175         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
59176         now the canonical place for the M4 file).
59177
59178         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
59179         from the sys_socket dependency now.
59180
59181         * modules/inet_pton (Files): Ditto.
59182
59183         * modules/inet_ntop (Files): Ditto.
59184
59185 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59186
59187         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
59188         not gl_PREREQ_GETUSERSHELL.
59189
59190 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59191
59192         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
59193         with only one argument, for Autoconf 2.60.
59194         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
59195         expand to nothing, so add a shell command to avoid syntax error.
59196         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59197
59198 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59199
59200         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
59201
59202 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59203
59204         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
59205         no longer needed.  Check for isblank decl.
59206         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
59207         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
59208         of existence.
59209
59210 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59211
59212         * lib/getloadavg.c: Use __VMS, not VMS.
59213         * lib/getopt.c: Likewise.
59214         * lib/getpagesize.h: Likewise.
59215         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
59216         and probably does not work.
59217
59218 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59219
59220         * lib/.cppi-disable: Add wcwidth.
59221         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
59222         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
59223         (ISGRAPH): Remove.  All uses changed to isgraph.
59224         (FOLD) [!defined _LIBC]: Remove special case.
59225         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
59226         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
59227         HAVE_ISBLANK.
59228         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
59229         case.
59230
59231 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59232
59233         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
59234         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
59235         brackets.  Other minor changes to suppress some compiler
59236         warnings.
59237
59238 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59239         and Paul Eggert  <eggert@cs.ucla.edu>
59240
59241         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
59242         of invoking obsolescent AC_HEADER_DIRENT macro.
59243         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59244         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
59245         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59246         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
59247         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
59248         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59249         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
59250         * m4/readdir.m4: Remove; no longer needed.
59251
59252 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59253         and Paul Eggert  <eggert@cs.ucla.edu>
59254
59255         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
59256         Don't worry about this obsolete case any more.
59257         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
59258         directories.
59259         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
59260         worry about this obsolete case any more.
59261         * lib/fts.c: Likewise.
59262         * lib/getcwd.c: Likewise.
59263         * lib/glob.h: Likewise.
59264         * lib/savedir.c: Likewise.
59265
59266 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59267
59268         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
59269         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
59270         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
59271         needed.
59272         All uses removed.
59273         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59274         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59275         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
59276         needed.
59277         * m4/getdate.m4 (gl_GETDATE): Likewise.
59278         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59279         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59280         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59281         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59282         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59283         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59284         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
59285         needed.
59286
59287 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59288
59289         * lib/memcasecmp.c: Include <limits.h>.
59290         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
59291         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
59292         Don't assume isdigit succeeds only on '0' through '9'.
59293
59294 2006-07-05  Eric Blake  <ebb9@byu.net>
59295
59296         * modules/getaddrinfo (Depends-on): Add snprintf.
59297
59298 2006-07-05  Eric Blake  <ebb9@byu.net>
59299
59300         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
59301         to avoid 'header present but could not be compiled' on cygwin.
59302
59303 2006-07-05  Eric Blake  <ebb9@byu.net>
59304
59305         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
59306         missing from netdb.h.
59307         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
59308
59309 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59310
59311         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
59312         no longer needed.
59313         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
59314         * m4/getdate.m4 (gl_GETDATE): Likewise.
59315         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59316         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59317         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59318         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59319         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59320
59321 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59322
59323         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
59324         All uses of is_space replaced by isspace.
59325         * lib/exit.h: Don't talk about STDC_HEADERS.
59326         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
59327         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
59328         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
59329         replaced by isprint etc.
59330         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
59331         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59332         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
59333         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
59334         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
59335         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59336
59337 2006-07-05  Bruno Haible  <bruno@clisp.org>
59338
59339         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
59340         the function exists, before testing against AIX.
59341         Reported by Martin Lambers <marlam@marlam.de>.
59342
59343 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59344
59345         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
59346         From Mark D. Baushke.
59347
59348 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59349
59350         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
59351         to the absolute name, not just one, to bypass Sun C 5.8's
59352         "warning: #include of /usr/include/... may be non-portable".
59353
59354 2006-07-04  Eric Blake  <ebb9@byu.net>
59355
59356         * modules/dirname-tests: New test module.
59357         * tests/test-dirname.c: New file, replacing dirname.c
59358         TEST_DIRNAME section that was recently deleted.
59359
59360 2006-07-04  Bruno Haible  <bruno@clisp.org>
59361
59362         Assume ANSI C header files and <ctype.h> functions.
59363         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
59364         (mbsnwidth): Use isprint, iscntrl instead.
59365
59366 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59367
59368         Merge from coreutils.
59369         * MODULES.html.sh: Add xstrtold.
59370         * modules/xstrtold: New file.
59371         * modules/cycle-check (Files): Add lib/same-inode.h.
59372         * modules/dirname (Files): Add m4/double-slash-root.m4.
59373         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
59374         * modules/mkdir-p (Files): Add lib/same-inode.h.
59375         * modules/same (Files): Add lib/same-inode.h.
59376
59377 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59378
59379         * m4/absolute-header.m4: Renamed from full-header-path.m4.
59380         This is to keep the terminology clean; POSIX talks about
59381         "absolute pathnames", not "full pathnames", but the GNU
59382         Coding Standards say to use "path" for something else;
59383         so use "absolute" to keep both sides happy.
59384         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
59385         Set gl_absolute_header, not gl_full_header_path.
59386         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
59387         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
59388         All uses changed.
59389
59390         Merge from coreutils.
59391
59392         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59393
59394         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
59395         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
59396         want to require the building of c-strtod.o.
59397         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
59398         needs -lm directly.
59399         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
59400
59401         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59402
59403         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
59404         --as-needed option if available.  Problem reported by Albert Chin in
59405         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
59406         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
59407         cc merely issues a bunch of annoying warnings for --as-needed
59408         (this problem was reported by Bob Proulx).  Also, try linking with
59409         -lm to detect a bug in binutils 2.16 (this problem was reported
59410         by Ralf Wildenhues).
59411
59412         2006-06-18  Jim Meyering  <jim@meyering.net>
59413
59414         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
59415         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
59416         macro.
59417         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
59418         also check for glibc-2.4's abort-inducing bug.
59419
59420         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
59421         Low-probability clean-up should be to use rmdir to get rid of
59422         the just-created directory, not unlink.
59423
59424         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
59425         configure fail, and request a bug report to inform us about it.
59426         Add a comment that, barring reports to the contrary, in 2007 we'll
59427         assume ftruncate is universally available.
59428
59429         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59430
59431         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
59432
59433         2006-03-12  Jim Meyering  <jim@meyering.net>
59434
59435         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
59436         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
59437         * m4/same.m4 (gl_SAME): Likewise.
59438         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
59439
59440         2006-03-11  Eric Blake  <ebb9@byu.net>
59441
59442         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
59443         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
59444         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
59445         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
59446
59447 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59448
59449         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
59450         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
59451         reported by Mark D. Baushke, one in
59452         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
59453
59454         Merge from coreutils.
59455
59456         * lib/.cppi-disable: Add stdint_.h.
59457         * lib/.cvsignore: Add stdint.h.
59458
59459         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59460
59461         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
59462         both double and long double versions.
59463         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
59464         * lib/xstrtold.c: New file.
59465         * lib/xstrtod.h (xstrtold): New decl.
59466
59467         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59468
59469         * lib/filemode.c (setst): Remove.
59470         (strmode): Rewrite to avoid setst.  This makes the code shorter,
59471         (arguably) clearer, and the generated code is a bit smaller on my
59472         Debian GNU/Linux stable x86 host.
59473
59474         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59475
59476         * lib/filemode.c: Include "filemode.h" first, to test the interface.
59477         Assume that filemode.h includes sys/types.h and sys/stat.h.
59478         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
59479         (ftypelet): Reorder to put common cases first, for efficiency.
59480         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
59481         to do 'M'.
59482         (strmode): Renamed from mode_string, and now stores 12 bytes instead
59483         of 10, for compatibility with FreeBSD.  All callers changed.
59484         (filemodestring): Now stores 12 bytes instead of 10, and sets file
59485         types that can't be deduced solely from st_mode.  First arg is now a
59486         const pointer.
59487         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
59488         (strmode): Renamed from mode_string.
59489         (filemodestring): New decl.
59490         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
59491         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
59492         needed.
59493         (S_ISPORT, S_ISWHT): New macros, if not already defined.
59494
59495         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59496
59497         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
59498         fsusage.h now does that.  Include fsusage.h first, to test interface.
59499         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
59500         at most one method (the old code could have generated decls that
59501         didn't conform to C89, not that this was ever exercised).
59502         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
59503
59504         2006-03-19  Jim Meyering  <jim@meyering.net>
59505
59506         Work even in a chroot where d_ino values for entries in "/"
59507         don't match the stat.st_ino values for the same names.
59508         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
59509         number, iterate through all entries again, using lstat instead.
59510         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
59511         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
59512
59513         * lib/getcwd.c (__getcwd): Clarify a comment.
59514         Use memcpy in place of a call to strcpy.
59515
59516         2006-03-12  Jim Meyering  <jim@meyering.net>
59517
59518         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
59519         matches that of the current directory (which we're about to chdir ".."
59520         out of), then save the dev-ino of the parent, instead.
59521
59522         * lib/same-inode.h (SAME_INODE): New file/macro.
59523         * lib/chdir-safer.c (SAME_INODE): Remove definition.
59524         Include "same-inode.h", instead.
59525         * lib/same.c: Likewise.
59526         * lib/cycle-check.h: Include "same-inode.h".
59527         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
59528         * lib/cycle-check.c (SAME_INODE): Remove definition.
59529         * lib/root-dev-ino.h: Include "same-inode.h".
59530
59531         2006-03-11  Eric Blake  <ebb9@byu.net>
59532
59533         * lib/same.c (same_name): s/base_name/last_component/
59534         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
59535         * lib/filenamecat.c (file_name_concat): Likewise.
59536
59537         2006-03-11  Eric Blake  <ebb9@byu.net>,
59538                     Paul Eggert  <eggert@cs.ucla.edu>
59539
59540         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
59541         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
59542         drive prefix.
59543         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
59544         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
59545         (last_component): New method.
59546         * lib/dirname.c (dir_len): Determine when drive letters need a
59547         subsequent slash.  Preserve // when it is special.
59548         (dir_name): Don't append dot when drive letter is absolute.
59549         [TEST_DIRNAME]: Move into a full-blown gnulib test.
59550         * lib/basename.c (base_name): New semantics - malloc the result.
59551         Preserve // when it is special.  Preserve relative files that look
59552         like drive letters.
59553         (base_len): Preserve // when it is special.
59554         (last_component): New method, similar to old base_name semantics.
59555         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
59556         base_name.  Strip redundant slashes from ///.
59557
59558 2006-07-03  Jim Meyering  <jim@meyering.net>
59559
59560         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
59561         macro is used before the first cycle_check call.
59562
59563 2006-07-03  Eric Blake  <ebb9@byu.net>
59564
59565         * modules/dirname (Depends-on): Add xstrndup.
59566
59567 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59568
59569         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
59570         test cases, so that config.log is a bit easier to follow.
59571
59572 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59573
59574         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
59575         both are 64 bits, since this seems to be the tradition, and this
59576         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
59577         we ever run into a host that prefers long long to long in this
59578         case, we'll need another configure-time test.  Problem reported by
59579         Jim Meyering.
59580
59581 2006-07-02  Eric Blake  <ebb9@byu.net>
59582
59583         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
59584
59585 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59586
59587         * modules/inttypes (Depends-on): No longer depends on stdint.
59588         * modules/stdint (Description): Say more about assumptions.
59589         Say that the fast types might differ.  Say macros are used.
59590         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
59591         (Makefile.am): Revise list of substituted symbols to match
59592         new stdint.m4.
59593         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
59594         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
59595         * tests/test-stdint.c (verify_same_types)
59596         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
59597         the code conforms to C99/C89.
59598         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
59599         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
59600
59601 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59602
59603         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
59604         but fix a bug, by requiring at least 64 bits.
59605         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
59606         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
59607         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
59608         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
59609
59610         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
59611         changes.  Make 2.59 a prerequisite.  Check and substitute for
59612         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
59613         inttypes.h.  Do not use special include files; just use the
59614         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
59615         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
59616         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
59617         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
59618         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
59619         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
59620         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
59621         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
59622         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
59623         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
59624         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
59625         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
59626         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
59627         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
59628         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
59629         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
59630         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
59631         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
59632         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
59633         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
59634         WINT_MAX.  Check for C99 conformance more strictly, by detecting
59635         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
59636         not check for things that C99 does not require, e.g., int8_t.  If
59637         a test isn't needed unless <stdint.h> isn't working, and is
59638         unlikely to be needed for any other reason, then don't do it
59639         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
59640         size_t, since we assume C89 freestanding at least.  Do not check
59641         for sig_atomic_t, wchar_t, or wint_t, since the code now does
59642         the right thing even if the types are not defined.  Instead use:
59643         (gl_STDINT_TYPE_PROPERTIES): New macro.
59644         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
59645         testing whether <sys/types.h> clashes, as Autoconf does this for
59646         us now.  All uses removed.
59647         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
59648         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
59649         (gl_CHECK_TYPE_SAME):
59650         Remove; no longer needed.
59651         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
59652         exists, since we'll return 0 anyway in that case.
59653         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
59654
59655 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59656
59657         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
59658         possible collision with system files.
59659         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
59660         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
59661         WCHAR_MIN and WCHAR_MAX in this case.
59662         (<stddef.h>): Do not include; no longer needed.
59663         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
59664         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
59665         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
59666         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
59667         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
59668         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
59669         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
59670         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
59671         !defined(__c99))]: Include in this case too, since it's harmless
59672         now.
59673         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
59674         dangerous to do so.
59675         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
59676         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
59677         (_STDINT_MIN, _STDINT_MAX): New macros.
59678         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
59679         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
59680         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
59681         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
59682         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
59683         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
59684         macros, not typedefs; this simplifies things quite a bit.
59685         Use long int for all types narrower than int64_t.
59686         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
59687         Define in terms of long long int or int64_t or long int,
59688         not int64_t or int32_t.  This saves some compile-time testing.
59689         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
59690         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
59691         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
59692         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
59693         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
59694         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
59695         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
59696         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
59697         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
59698         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
59699         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59700         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59701         undef any previous version and define our own version, for
59702         simplicity and consistency with the new macros for types.
59703         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59704         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59705         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
59706         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
59707         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
59708         @WINT_T_SUFFIX@ to keep things simple here.
59709         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
59710         Simplify by assuming typical 8/16/32/64 host, since we're
59711         already doing that elsewhere anyway.
59712         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
59713         and assume long long int is 64 bits if available.  This
59714         speeds up 'configure'.
59715
59716 2006-07-01  Eric Blake  <ebb9@byu.net>
59717
59718         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
59719         Reported by Andreas Buening.
59720
59721 2006-07-01  Eric Blake  <ebb9@byu.net>
59722
59723         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
59724
59725 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59726
59727         * lib/getaddrinfo.c: fixed typo
59728
59729 2006-06-29  Jim Meyering  <jim@meyering.net>
59730
59731         * modules/strftime (Maintainer): Add my name, since with the
59732         FPRINTFTIME changes strftime.c has forked from glibc.
59733
59734 2006-06-29  Eric Blake  <ebb9@byu.net>
59735
59736         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
59737
59738 2006-06-29  Eric Blake  <ebb9@byu.net>
59739
59740         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
59741
59742 2006-06-29  Eric Blake  <ebb9@byu.net>
59743
59744         * lib/stat_.h: New file.
59745
59746 2006-06-29  Eric Blake  <ebb9@byu.net>
59747
59748         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
59749         unused static function.
59750
59751 2006-06-29  Eric Blake  <ebb9@byu.net>
59752
59753         * doc/functions.texi (Function Portability): Document missing lstat
59754         on mingw.
59755
59756 2006-06-29  Eric Blake  <ebb9@byu.net>
59757
59758         * MODULES.html.sh: Add sys_stat.
59759         * modules/sys_stat: New module.
59760         * modules/mkstemp (Depends-on): Add sys_stat.
59761
59762 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59763
59764         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
59765
59766 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59767
59768         * m4/c-bs-a.m4: Removed.
59769
59770 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59771
59772         * lib/strftime.c: Assume strftime() exists.
59773
59774 2006-06-29  Derek Price  <derek@ximbiot.com>
59775
59776         * modules/c-bs-a: Removed - \a is C89.
59777         * MODULES.html.sh: Remove c-bs-a.
59778
59779 2006-06-29  Bruno Haible  <bruno@clisp.org>
59780
59781         * modules/wcwidth (License): Change to LGPL.
59782
59783 2006-06-28  Simon Josefsson  <jas@extundo.com>
59784
59785         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
59786         on _WIN32.
59787
59788         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
59789         getnameinfo.
59790
59791 2006-06-28  Simon Josefsson  <jas@extundo.com>
59792
59793         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
59794
59795 2006-06-28  Simon Josefsson  <jas@extundo.com>
59796
59797         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
59798         functions there.  It will succeed on Windows XP, but on Windows
59799         2000 and (presumably) earlier, it will fail, and use the internal
59800         re-implementation.
59801         (use_win32_p): New function.
59802         (getaddrinfo): Use strtoul on servname, to support numeric ports.
59803         Support AI_NUMERICSERV to disable getservbyname.
59804         (getnameinfo): New function, only supports
59805         NI_NUMERICHOST|NI_NUMERICSERV for now.
59806
59807         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
59808         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
59809         getnameinfo.
59810
59811 2006-06-28  Eric Blake  <ebb9@byu.net>
59812
59813         * modules/wcwidth: New file.
59814         * modules/mbchar (Depends-on): Add wcwidth.
59815         * modules/mbswidth (Depends-on): Add wcwidth.
59816         * MODULES.html.sh: Add wcwidth.
59817
59818 2006-06-28  Eric Blake  <ebb9@byu.net>
59819
59820         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
59821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
59822
59823 2006-06-28  Eric Blake  <ebb9@byu.net>
59824
59825         * lib/xvasprintf.h: Fix comments.
59826
59827 2006-06-28  Eric Blake  <ebb9@byu.net>
59828
59829         * lib/mbchar.h (wcwidth): Include wcwidth.h.
59830         * lib/mbswidth.c (wcwidth): Move from here...
59831         * lib/wcwidth.h: ...to this new file.
59832
59833 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59834
59835         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
59836
59837         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
59838         it's obsolete.
59839         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
59840
59841 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59842
59843         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
59844         Autoconf 2.60 says this stuff was obsolete.
59845
59846 2006-06-28  Bruno Haible  <bruno@clisp.org>
59847
59848         * modules/wcwidth (Files): Add m4/wchar_t.m4.
59849
59850 2006-06-28  Bruno Haible  <bruno@clisp.org>
59851
59852         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
59853         gt_TYPE_WCHAR_T.
59854
59855 2006-06-28  Bruno Haible  <bruno@clisp.org>
59856
59857         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
59858         declaration for wcwidth.
59859         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
59860
59861 2006-06-28  Bruno Haible  <bruno@clisp.org>
59862
59863         * lib/mkdtemp.c [MINGW]: Include <io.h>.
59864         (mkdir): Define using _mkdir.
59865
59866 2006-06-28  Bruno Haible  <bruno@clisp.org>
59867
59868         * lib/getaddrinfo.h: Fix POSIX URL.
59869         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
59870         _WIN32.
59871         (use_win32_p): Make static.
59872         (getaddrinfo): Reject service name if it is empty or does not consist
59873         solely of decimal digits, or if its value is > 65535.
59874         (getnameinfo): Remove useless casts.
59875
59876 2006-06-27  Simon Josefsson  <jas@extundo.com>
59877
59878         * modules/sys_select: New file, suggested by Bruno Haible, Paul
59879         Eggert and Martin Lambers.
59880
59881 2006-06-27  Simon Josefsson  <jas@extundo.com>
59882
59883         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
59884         Eggert and Martin Lambers.
59885
59886 2006-06-27  Bruno Haible  <bruno@clisp.org>
59887
59888         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
59889         result to 0, not to empty.
59890         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
59891
59892 2006-06-27  Bruno Haible  <bruno@clisp.org>
59893
59894         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
59895
59896 2006-06-26  Simon Josefsson  <jas@extundo.com>
59897
59898         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
59899         present.
59900
59901 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
59902
59903         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
59904         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
59905         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
59906
59907 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
59908
59909         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
59910
59911 2006-06-26  Bruno Haible  <bruno@clisp.org>
59912
59913         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
59914
59915 2006-06-26  Bruno Haible  <bruno@clisp.org>
59916
59917         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
59918
59919 2006-06-26  Bruno Haible  <bruno@clisp.org>
59920
59921         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
59922         SGI C compiler in pre-C99 mode.
59923         Suggested by Mark D. Baushke and Larry Jones.
59924
59925 2006-06-26  Bruno Haible  <bruno@clisp.org>
59926
59927         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
59928         WCHAR_MAX.
59929         Reported by Mark D. Baushke and Larry Jones.
59930
59931 2006-06-26  Bruno Haible  <bruno@clisp.org>
59932
59933         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
59934         in pre-C99 mode.
59935         Suggested by Mark D. Baushke and Larry Jones.
59936
59937 2006-06-23  Simon Josefsson  <jas@extundo.com>
59938             Bruno Haible  <bruno@clisp.org>
59939
59940         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
59941         Emit mostlyclean-local rule.
59942         (func_emit_tests_Makefile_am): Likewise.
59943         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
59944
59945 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
59946
59947         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
59948
59949 2006-06-23  Bruno Haible  <bruno@clisp.org>
59950
59951         * tests/test-stdint.c: Update to match ISO C 99 Technical
59952         Corrigendum 1.
59953
59954 2006-06-23  Bruno Haible  <bruno@clisp.org>
59955
59956         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
59957
59958 2006-06-23  Bruno Haible  <bruno@clisp.org>
59959
59960         * lib/stdint_.h: Treat IRIX like OpenBSD.
59961
59962 2006-06-23  Bruno Haible  <bruno@clisp.org>
59963
59964         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
59965         ISO C 99 Technical Corrigendum 1.
59966
59967 2006-06-22  Simon Josefsson  <jas@extundo.com>
59968
59969         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
59970         MinGW.
59971
59972 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59973
59974         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
59975         needed.  Some compiler complained about some of them.  Problem reported
59976         by Larry Jones in
59977         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
59978
59979 2006-06-21  Simon Josefsson  <jas@extundo.com>
59980
59981         * tests/test-getaddrinfo.c: New file.
59982
59983         * modules/getaddrinfo-tests: New file.
59984
59985         * MODULES.html.sh: Add inet_pton.
59986
59987         * modules/inet_pton: New file.
59988
59989 2006-06-21  Simon Josefsson  <jas@extundo.com>
59990
59991         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
59992         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
59993         of using the (limited) gnulib implementation on Windows XP.
59994
59995         * m4/inet_pton.m4: New file.
59996
59997 2006-06-21  Simon Josefsson  <jas@extundo.com>
59998
59999         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
60000         variable.
60001
60002         * lib/socket_.h: Don't define WINVER.
60003
60004         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
60005         slightly modified to work in gnulib.
60006
60007 2006-06-21  Simon Josefsson  <jas@extundo.com>
60008
60009         * doc/gnulib.texi (Windows sockets): Add.
60010
60011 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60012
60013         * lib/read-file.c (fread_file): Start with buffer allocation of
60014         0 bytes rather than 1 byte; this simplifies the code.
60015         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
60016         code to free buffer and save/restore errno.
60017         (internal_read_file): Remove unused local.
60018
60019 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60020
60021         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
60022         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
60023         Problem reported by Denis Excoffier in
60024         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
60025
60026 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60027
60028         * modules/sys_socket, modules/socklen: Include sys/types since
60029         FreeBSD 4.x's sys/socket.h needs it.
60030
60031 2006-06-19  Simon Josefsson  <jas@extundo.com>
60032
60033         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
60034
60035 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60036
60037         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
60038
60039 2006-06-19  Bruno Haible  <bruno@clisp.org>
60040
60041         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
60042         and FULL_PATH_INTTYPES_H in angle brackets.
60043         Reported by Mark D. Baushke <mdb@gnu.org>.
60044
60045 2006-06-17  Eric Blake  <ebb9@byu.net>
60046
60047         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
60048         errno.
60049
60050 2006-06-17  Bruno Haible  <bruno@clisp.org>
60051
60052         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
60053         <sys/inttypes.h>.
60054
60055 2006-06-17  Bruno Haible  <bruno@clisp.org>
60056
60057         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
60058         whether errno is declared. Assume <errno.h> declares errno.
60059
60060 2006-06-17  Bruno Haible  <bruno@clisp.org>
60061
60062         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
60063
60064 2006-06-17  Bruno Haible  <bruno@clisp.org>
60065
60066         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
60067         problem on Solaris 2.5.1.
60068
60069 2006-06-16  Eric Blake  <ebb9@byu.net>
60070
60071         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
60072         * lib/unicodeio.c [!defined errno]: Likewise.
60073         * lib/strtol.c [!defined errno]: Likewise.
60074         * lib/strtod.c [!defined errno]: Likewise.
60075
60076 2006-06-15  Eric Blake  <ebb9@byu.net>
60077
60078         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
60079
60080 2006-06-15  Eric Blake  <ebb9@byu.net>
60081
60082         * config/srclist.txt (ssize_t.m4): Lose sync.
60083
60084 2006-06-15  Bruno Haible  <bruno@clisp.org>
60085
60086         * modules/stdint (Files): Include m4/full-header-path.m4,
60087         m4/size_max.m4, m4/wchar_t.m4.
60088         (Makefile.am): Many more substitutions.
60089         * modules/stdint-tests: New file.
60090         * tests/test-stdint.c: New file.
60091
60092 2006-06-15  Bruno Haible  <bruno@clisp.org>
60093
60094         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
60095         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
60096         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
60097         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
60098         gl_CHECK_TYPE_SAME): New macros.
60099
60100 2006-06-15  Bruno Haible  <bruno@clisp.org>
60101
60102         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
60103
60104 2006-06-15  Bruno Haible  <bruno@clisp.org>
60105
60106         * lib/stdint_.h: Rewritten to be fully auto-configured.
60107         Fixes bug on HP-UX/IA64.
60108
60109 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
60110
60111         * lib/getdate.y (__attribute__): Don't define if already defined.
60112         Problem reported by Larry Jones.
60113         * lib/utimens.c (__attribute__): Likewise.
60114
60115 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
60116
60117         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
60118         reported by Andreas Schwab.
60119
60120 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60121             Bruno Haible  <bruno@clisp.org>
60122
60123         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
60124         check for the declaration of strnlen and a run test that exposes the
60125         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
60126         rpl_strndup.
60127
60128 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60129             Bruno Haible  <bruno@clisp.org>
60130
60131         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
60132
60133 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60134
60135         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
60136         compile test, for Tru64 4.0D.
60137
60138 2006-05-28  Karl Berry  <karl@gnu.org>
60139
60140         * config/srclist.txt (printf-args.c): lose sync.
60141
60142 2006-05-26  Martin Lambers  <marlam@marlam.de>
60143
60144         * lib/getpass.c: Updates the test for the native W32 API, and adds
60145         missing includes, thus fixing compilation warnings.
60146
60147 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60148
60149         * lib/exclude.c (exclude_fnmatch): New function.
60150         (excluded_file_name): Call exclude_fnmatch.
60151         * lib/exclude.h (excluded_file_name): New prototype
60152
60153 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
60154
60155         * lib/tempname.c (small_open, large_open): New macros.
60156         (__open, __open64) [!_LIBC]: Remove.
60157         (__gen_tempname): Use small_open and large_open instead of __open
60158         and __open64.  This fixes a portability bug on HP-UX 11.11i
60159         reported by Simon Wing-Tang in
60160         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
60161
60162 2006-05-24  Bruno Haible  <bruno@clisp.org>
60163
60164         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
60165         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
60166         Reported by Thorsten Maerz <torte@netztorte.de> via
60167         Aaron Stone <aaron@serendipity.cx>.
60168
60169 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60170
60171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
60172         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
60173         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
60174         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
60175         not really conditional on the cache.
60176         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
60177
60178 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60179
60180         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
60181         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
60182         (my_usleep): Don't mishandle maximum value.
60183
60184 2006-05-19  Jim Meyering  <jim@meyering.net>
60185
60186         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
60187
60188 2006-05-17  Bruno Haible  <bruno@clisp.org>
60189
60190         Cygwin portability.
60191         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
60192
60193 2006-05-17  Bruno Haible  <bruno@clisp.org>
60194
60195         * lib/stdint_.h: Fix recognition of Cygwin.
60196
60197 2006-05-15  Bruno Haible  <bruno@clisp.org>
60198
60199         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
60200         on libtool patch by Ralf Wildenhues.
60201
60202 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60203
60204         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
60205         test for C99 conformance; (bool) 0.5 is an integer constant
60206         expression, but (bool) -0.5 is not.  Problem reported by Fedor
60207         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
60208
60209 2006-05-11  Simon Josefsson  <jas@extundo.com>
60210
60211         * m4/xvasprintf.m4: Fix obvious typo.
60212
60213 2006-05-11  Jim Meyering  <jim@meyering.net>
60214
60215         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
60216         James Lemley.
60217
60218 2006-05-10  Simon Josefsson  <jas@extundo.com>
60219
60220         * lib/md4.c: Typo fix, update copyright years.
60221         (K1, K2): Don't use L because it turn computations into 64-bit on
60222         64-bit platforms.
60223
60224 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
60225
60226         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
60227         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
60228         unwanted sign propagation, e.g., on hosts with 64-bit int.
60229         There still are some problems with reeelly weird theoretical hosts
60230         (e.g., 33-bit int) but it's not worth worrying about now.
60231         * lib/sha1.c (rol): Likewise.
60232         (K1, K2, K3, K4): Remove unnecessary L suffix.
60233
60234 2006-05-10  Bruno Haible  <bruno@clisp.org>
60235
60236         * lib/des.c: Cast to avoid warnings.
60237
60238 2006-05-09  Bruno Haible  <bruno@clisp.org>
60239
60240         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
60241         (Depends-on): Depend also on xsize, stdarg.
60242         (configure.ac): Add gl_XVASPRINTF.
60243
60244 2006-05-09  Bruno Haible  <bruno@clisp.org>
60245
60246         * m4/xvasprintf.m4: New file.
60247
60248 2006-05-09  Bruno Haible  <bruno@clisp.org>
60249
60250         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
60251         (EOVERFLOW): Define fallback value.
60252         (xstrcat): New function.
60253         (xvasprintf): Recognize the special case of a string concatenation.
60254
60255 2006-05-08  Eric Blake  <ebb9@byu.net>
60256
60257         * gnulib-tool (func_version): Base copyright year on CVS date.
60258         (func_emit_copyright_notice): New function.
60259         (func_emit_lib_Makefile_am): Use it.
60260         (func_emit_tests_Makefile_am): Likewise.
60261         (func_import): Likewise.
60262
60263 2006-05-08  Bruno Haible  <bruno@clisp.org>
60264
60265         * modules/stdarg: New file.
60266         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
60267
60268 2006-05-08  Bruno Haible  <bruno@clisp.org>
60269
60270         * m4/stdarg.m4: New file, from GNU gettext.
60271
60272 2006-05-08  Bruno Haible  <bruno@clisp.org>
60273
60274         * config/srclist.txt (build-aux/config.rpath): different from latest
60275         release.
60276
60277 2006-05-08  Bruno Haible  <bruno@clisp.org>
60278
60279         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
60280
60281 2006-05-05  Jim Meyering  <jim@meyering.net>
60282
60283         * m4/warning.m4: New file, derived from bison's file by the same name.
60284
60285 2006-05-03  Bruno Haible  <bruno@clisp.org>
60286
60287         * lib/stdint_.h: Shorter URL.
60288         * lib/inttypes.h: Likewise.
60289
60290 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60291
60292         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
60293
60294 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60295
60296         * lib/verify.h: Document the internals better.  Most of this change
60297         was written by Bruno Haible.
60298
60299 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60300
60301         * doc/verify.texi: New file, partly based on a proposal by
60302         Bruno Haible.
60303
60304 2006-05-02  Bruno Haible  <bruno@clisp.org>
60305
60306         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
60307         test from here...
60308         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
60309
60310 2006-04-29  Bruno Haible  <bruno@clisp.org>
60311
60312         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
60313         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
60314
60315 2006-04-29  Bruno Haible  <bruno@clisp.org>
60316
60317         * gnulib-tool: Make --update option actually work.
60318
60319 2006-04-29  Bruno Haible  <bruno@clisp.org>
60320
60321         * doc/gcd.texi: New file.
60322         * doc/gnulib.texi: Include it.
60323
60324 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
60325
60326         * lib/getdate.y (get_date): When adding relative date, start with the
60327         initial time, not with the result of the first mktime call.
60328
60329 2006-04-25  Bruno Haible  <bruno@clisp.org>
60330
60331         * gnulib-tool (func_import): Output the include directives in three
60332         blocks, sorted separately.
60333         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60334
60335 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60336
60337         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
60338         to define main with arguments, for C++.  Reported by Eric Blake.
60339         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
60340         Prefer 'int main ()' to 'int main (void)', for C++.
60341         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
60342         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
60343         for 'main', for C99 and C++.
60344
60345 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60346
60347         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
60348         Don't assume that exit status -1 is valid.
60349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60350         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60351         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
60352         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
60353         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
60354         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
60355         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
60356         functions can be used without declaring them, or that you can
60357         exit with status -1.
60358         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
60359
60360 2006-04-24  Karl Berry  <karl@gnu.org>
60361
60362         * config/srclist.txt (longdouble.m4): sync lost.
60363
60364 2006-04-24  Eric Blake  <ebb9@byu.net>
60365
60366         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
60367
60368 2006-04-24  Bruno Haible  <bruno@clisp.org>
60369
60370         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
60371         poll() implementation in AIX.
60372         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60373
60374 2006-04-24  Bruno Haible  <bruno@clisp.org>
60375
60376         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
60377         assigned exactly once.
60378
60379 2006-04-23  Claudio Fontana  <claudio@gnu.org>
60380             Bruno Haible  <bruno@clisp.org>
60381
60382         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
60383         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
60384         for AM_CPPFLAGS.
60385
60386 2006-04-23  Bruno Haible  <bruno@clisp.org>
60387
60388         * modules/copy-file: Depend on unistd.
60389         * modules/execute: Likewise.
60390         * modules/fatal-signal: Likewise.
60391         * modules/findprog: Likewise.
60392         * modules/mkdtemp : Likewise.
60393         * modules/pipe: Likewise.
60394         * modules/wait-process: Likewise.
60395
60396 2006-04-23  Bruno Haible  <bruno@clisp.org>
60397
60398         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
60399         condition was already detected.
60400         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60401
60402 2006-04-23  Bruno Haible  <bruno@clisp.org>
60403
60404         * lib/copy-file.c: Include <unistd.h> unconditionally.
60405         * lib/execute.c: Likewise.
60406         * lib/fatal-signal.c: Likewise.
60407         * lib/findprog.c: Likewise.
60408         * lib/mkdtemp.c: Likewise.
60409         * lib/pipe.h: Likewise.
60410         * lib/pipe.c: Likewise.
60411         * lib/wait-process.h: Likewise.
60412
60413 2006-04-23  Bruno Haible  <bruno@clisp.org>
60414
60415         * gnulib-tool (func_usage): Fix --import description. Document
60416         --update.
60417         (func_import): Create temporary file in a temporary directory, if
60418         --dry-run is specified. Silence errors from 'grep' when there are no
60419         m4 files in $m4dir.
60420         (func_create_testdir): Silence errors from 'grep' when there are no
60421         m4 files in $m4dir.
60422         Reported by Karl Berry <karl@freefriends.org>.
60423
60424 2006-04-20  Bruno Haible  <bruno@clisp.org>
60425
60426         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
60427         one argument, so that the code will be portable to Autoconf 2.60.
60428         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
60429         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60430         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
60431
60432 2006-04-19  Derek Price  <derek@ximbiot.com>
60433             Eric Blake  <ebb9@byu.net>
60434
60435         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
60436         rather than "/full/path.h".  Update comment to match.  Shorten &
60437         generalize m4_translit call via AS_TR_CPP.
60438
60439 2006-04-19  Derek Price  <derek@ximbiot.com>
60440             Eric Blake  <ebb9@byu.net>
60441
60442         * lib/inttypes.h: Correct grammar in comment.
60443
60444 2006-04-18  Derek Price  <derek@ximbiot.com>
60445             Paul Eggert  <eggert@cs.ucla.edu>
60446
60447         * modules/inttypes: New file.
60448         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
60449
60450 2006-04-18  Derek Price  <derek@ximbiot.com>
60451             Paul Eggert  <eggert@cs.ucla.edu>
60452
60453         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
60454         New files.
60455
60456 2006-04-18  Derek Price  <derek@ximbiot.com>
60457             Paul Eggert  <eggert@cs.ucla.edu>
60458
60459         * lib/inttypes.h: New file.
60460         * lib/strtoimax.c: Assume <inttypes.h>.
60461
60462 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
60463
60464         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
60465         isn't mounted.  Problem reported by Kir Kolyshkin.
60466
60467 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60468
60469         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
60470         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
60471         Derek R. Price.
60472         * lib/regex.h (RE_DUP_MAX): Update comment to match current
60473         implementation.
60474
60475 2006-04-12  Eric Blake  <ebb9@byu.net>
60476
60477         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
60478         is now done automatically by the corresponding Autoconf macro.
60479
60480 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
60481
60482         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
60483         time_r.h.
60484
60485 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60486
60487         Merge regex changes from libc, removing some of our
60488         POSIX-conformance changes that were rejected and redoing them in a
60489         less-intrusive way.
60490
60491         * lib/regcomp.c (re_compile_internal, init_dfa):
60492         Length arg is now size_t, not Idx.  All uses changed.
60493         (peek_token): Forward decl now says internal_function.
60494         (__re_error_msgid, __re_error_msgid_idx):
60495         Now static rather than extern with attribute_hidden.
60496         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
60497         For some reason libc prefers K&R style defns for external functions.
60498         (regerror) [!defined _LIBC]: Likewise.
60499         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
60500         (seek_collating_symbol_entry, lookup_collation_sequence_value):
60501         (build_range_exp, build_collating_symbol):
60502         Use K&R-style defn.
60503         (re_compile_fastmap): Use '\0' to memset, not 0.
60504         (utf8_sb_map): Make the calculations more obvious.
60505         (init_dfa, parse_bracket_exp, build_charclass_op):
60506         Call calloc and cast result, as glibc does.
60507         (init_word_char, fetch_token, peek_token, peek_token_bracket):
60508         (build_range_exp, build_collating_symbol):
60509         Now internal functions.
60510
60511         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
60512
60513         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
60514         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
60515         Don't depend on VMS; depend on __VMS instead, for POSIX
60516         namespace cleanness.
60517         (regoff_t): Define to ssize_t, not long int.
60518
60519         Remove the REG_ macros named below.  Instead, make the old names
60520         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
60521         __USE_GNU_REGEX.
60522         (REG_BACKSLASH_ESCAPE_IN_LISTS):
60523         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
60524         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
60525         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
60526         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
60527         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
60528         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
60529         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
60530         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
60531         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
60532         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
60533         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
60534         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
60535         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
60536         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
60537         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
60538         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
60539         (REG_NREGS):
60540         Remove.  All uses replaced by the old RE_* names.
60541         (RE_BACKSLASH_ESCAPE_IN_LISTS):
60542         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
60543         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
60544         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
60545         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
60546         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
60547         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
60548         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
60549         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
60550         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
60551         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
60552         Don't bother having these macros be independent of each others'
60553         values, since they no longer exist in the POSIX name space.
60554
60555         Rename the following member names back to their old names,
60556         unless !__USE_GNU_REGEX.  All uses changed back.
60557         (buffer): Renamed from re_buffer.
60558         (allocated): Renamed from re_allocated.
60559         (used): Renamed from re_used.
60560         (syntax): Renamed from re_syntax.
60561         (fastmap): Renamed from re_fastmap.
60562         (translate): Renamed from re_translate.
60563         (can_be_null): Renamed from re_can_be_null.
60564         (regs_allocated): Renamed from re_regs_allocated.
60565         (fastmap_accurate): Renamed from re_fastmap_accurate.
60566         (no_sub): Renamed from re_no_sub.
60567         (not_bol): Renamed from re_not_bol.
60568         (not_eol): Renamed from re_not_eol.
60569         (newline_anchor): Renamed from re_newline_anchor.
60570         (num_regs): Renamed from rm_num_regs.
60571         (start): Renamed from rm_start.
60572         (end): Renamed from rm_end.
60573
60574         (free_state): Move up a bit.
60575
60576         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
60577         #define to be empty.
60578         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
60579         when that is what is intended.
60580         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
60581         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
60582         (MAX): New macro.
60583         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
60584         All uses changed back to re_malloc, etc.  It's now the caller's
60585         responsibility to check for overflow; all callers changed.
60586         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
60587         (re_x2nrealloc): Remove.
60588         (free_state): Remove decl.
60589
60590         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
60591         (re_set_registers, re_exec):
60592         Use K&R-style defn.
60593
60594         2006-01-31  Roland McGrath  <roland@redhat.com>
60595
60596         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
60597         Reported by Mike Frysinger <vapier@gentoo.org>.
60598
60599         2006-01-15  Andreas Jaeger  <aj@suse.de>
60600
60601         [BZ #1950]
60602         * lib/regex_internal.c (re_string_reconstruct): Adjust for
60603         build_wcs_upper_buffer change.
60604         (build_wcs_upper_buffer): Change return type.
60605
60606         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
60607
60608         * lib/regex_internal.h: Include <stdint.h> if available.
60609
60610         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
60611
60612         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
60613
60614         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60615
60616         * lib/regcomp.c: Adjust for changed secondary hash function.
60617
60618         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
60619
60620         * lib/regex.h: Pretty printing.
60621         Clean up namespace a bit.
60622
60623         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
60624
60625         * lib/regexec.c (update_cur_sifted_state, check_arrival,
60626         check_arrival_add_next_nodes): Avoid using uninitialized variable.
60627
60628         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60629                     Ulrich Drepper  <drepper@redhat.com>
60630
60631         [BZ #1302]
60632         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
60633         changed.
60634         (bitset_word_t): Renamed from bitset_word.  All uses changed.
60635
60636         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
60637
60638         [BZ #281]
60639         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
60640         * lib/regcomp.c: Remove unnecessary uses of
60641         unsigned RE_TRANSLATE_TYPE.
60642         * lib/regex_internal.h: Likewise.
60643         * lib/regex_internal.c: Likewise.
60644         * lib/regexec.c: Likewise.
60645         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
60646
60647         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
60648
60649         * lib/regexec.c (find_recover_state): Remove unnecessary
60650         initialization.
60651         (transit_state_bkref): Make DFA a const pointer.
60652         (get_subexp): Likewise.
60653         (check_arrival): Likewise.
60654         (update_cur_sifted_state): Likewise.
60655         (re_search_internal): Likewise.
60656         (prune_impossible_nodes): Likewise.
60657         (acquire_init_state_context): Likewise.
60658         (proceed_next_node): Likewise.
60659         (set_regs): Likewise.
60660         (free_fail_stack_return): Likewise.
60661         (check_arrival_expand_ecl): Mark DFA parameter as const.
60662         (check_arrival_expand_ecl_sub): Likewise.
60663         (check_subexp_limits): Likewise.
60664         (sub_epsilon_src_nodes):  Likewise.
60665         (add_epsilon_src_nodes):  Likewise.
60666         (merge_state_array): Likewise.
60667         (update_regs): Likewise.
60668         (build_trtable): Likewise.
60669         (sift_states_backward): Mark MCTX parameter as const.
60670         (build_sifted_states): Likewise.
60671         (update_cur_sifted_state): Likewise.
60672         (sift_states_mkref): Likewise.
60673         (check_arrival_expand_ecl): Mark eclosure as const.
60674         (check_dst_limits_calc_pos_1): Likewise.
60675         * lib/regex_internal.h (re_match_context_t): Make dfa a const
60676         pointer.
60677
60678         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
60679
60680         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
60681         (transit_state_sb): Likewise.
60682         (transit_state_mb): Likewise.
60683         (sift_states_iter_mb): Likewise.
60684         (check_arrival_add_next_nodes): Likewise.
60685         (check_node_accept_bytes): Change first parameter to pointer-to-const.
60686         [_LIBC] (re_search_2_stub): Use mempcpy.
60687
60688         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
60689         mbrtowc for very simple UTF-8 case.
60690
60691         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
60692         a pointer-to-const.
60693         (re_acquire_state_context): Likewise.
60694         * lib/regex_internal.h: Adjust prototypes.
60695
60696         * lib/regex.c: Prevent using C++ compilers.
60697
60698         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
60699         (re_acquire_state_context): Likewise.
60700
60701 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60702
60703         * modules/regex (Depends-on): Add ssize_t.
60704
60705 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60706
60707         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
60708         translation table.
60709
60710 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60711
60712         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
60713
60714 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
60715             Bruno Haible  <bruno@clisp.org>
60716
60717         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
60718         <sys/types.h> and <inttypes.h>.
60719
60720 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60721
60722         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
60723         `__error_t_defined', so argp.h will not typedef the former.
60724
60725 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
60726
60727         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
60728         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
60729         glibc names.  Even if glibc is changed to conform to POSIX, the
60730         traditional names will be available anyway, since regex depends on
60731         the extensions module.  Also, fix a longstanding typo in the
60732         implementation of Spencer ERE test #75 from grep 2.3.  Problems
60733         reported by Emanuele Giaquinta.  Also, change sense of cached
60734         variable, so that the message makes sense.
60735
60736 2006-03-24  Simon Josefsson  <jas@extundo.com>
60737
60738         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
60739         including some doc fixes.
60740         (base64_encode_alloc): Fix +1 bug on allocation failures.
60741
60742 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60743
60744         * lib/base64.c (base64_encode): Do not read past end of array with
60745         unsanitized input on systems with CHAR_BIT > 8.
60746
60747 2006-03-24  Eric Blake  <ebb9@byu.net>
60748
60749         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
60750
60751 2006-03-22  Karl Berry  <karl@gnu.org>
60752
60753         * config/srclist.txt (*setenv.[ch]): get from coreutils.
60754         * config/srclistvars.sh (COREUTILS): new var.
60755
60756 2006-03-17  Jim Meyering  <jim@meyering.net>
60757
60758         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
60759         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
60760
60761 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60762
60763         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
60764         no longer needs it.  Instead, check that regoff_t is as least
60765         as wide as ptrdiff_t.
60766
60767         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
60768         so that our regex.h stays compatible with the installed regex.
60769         This is helpful for installers who configure --without-included-regex.
60770         Problem reported by Emanuele Giaquinta.
60771
60772 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60773
60774         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
60775         Typedef to long int, not to off_, as POSIX will likely change
60776         in that direction.
60777
60778 2006-03-15  Eric Blake  <ebb9@byu.net>
60779
60780         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
60781
60782 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60783
60784         * lib/argp-help.c (validate_uparams): Fix typo
60785         * lib/argp-parse.c (argp_default_options): Consistently begin help
60786         messages with a lowercase letter.
60787
60788 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
60789
60790         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
60791         overrun buffers and shouldn't be used (much as gets shouldn't be
60792         used).
60793         * lib/time_r.c (asctime_r, ctime_r): Likewise.
60794
60795 2006-03-08  Simon Josefsson  <jas@extundo.com>
60796
60797         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
60798         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60799
60800 2006-03-08  Simon Josefsson  <jas@extundo.com>
60801
60802         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
60803         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60804
60805 2006-03-08  Simon Josefsson  <jas@extundo.com>
60806
60807         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
60808         signal that configure disabled the device.
60809
60810 2006-03-08  Simon Josefsson  <jas@extundo.com>
60811
60812         * build-aux/maint.mk: Fix refresh-po, to handle no translated
60813         languages.
60814
60815 2006-03-07  Simon Josefsson  <jas@extundo.com>
60816
60817         * modules/getopt (Depends-on): Add unistd.
60818
60819         * modules/unistd: New file.
60820
60821 2006-03-07  Simon Josefsson  <jas@extundo.com>
60822
60823         * modules/gc-random: New file.
60824
60825 2006-03-07  Simon Josefsson  <jas@extundo.com>
60826
60827         * m4/unistd_h.m4: New file.
60828
60829 2006-03-07  Simon Josefsson  <jas@extundo.com>
60830
60831         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
60832         test to be side-effect free by storing the result in the cache
60833         variable gl_cv_lib_readline, and moving the assignment of
60834         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
60835         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60836
60837 2006-03-07  Simon Josefsson  <jas@extundo.com>
60838
60839         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
60840         error on missing devices (the functions will return an error).
60841
60842         * m4/gc.m4: Move random stuff to gc-random.m4
60843
60844 2006-03-07  Simon Josefsson  <jas@extundo.com>
60845
60846         * lib/unistd_.h: New file.
60847
60848 2006-03-07  Simon Josefsson  <jas@extundo.com>
60849
60850         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
60851
60852 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60853
60854         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
60855         Problem reported by Juan Manuel Guerrero.
60856
60857 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60858
60859         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
60860         the unistd module.
60861         * lib/getlogin_r.c: Likewise.
60862         * lib/getlogin_r.h: Likewise.
60863         * lib/glob.c: Likewise.
60864         * lib/pagealign_alloc.c: Likewise.
60865         * lib/unistd_.h: Remove; no longer needed.
60866
60867 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60868
60869         * MODULES.html.sh (Support for systems lacking POSIX:2001):
60870         Add unistd.
60871         * modules/c-stack (Depends-on): Add unistd.
60872         * modules/getlogin_r: Likewise.
60873         * modules/glob: Likewise.
60874         * modules/pagealign_alloc: Likewise.
60875         * modules/unistd (Files): Remove lib/unistd_.h.
60876         (EXTRA_DIST): Remove.
60877         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
60878         need unistd_.h.
60879         (MOSTLYCLEANFILES): Remove unistd.h-t.
60880
60881 2006-03-03  Simon Josefsson  <jas@extundo.com>
60882
60883         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
60884
60885 2006-03-03  Simon Josefsson  <jas@extundo.com>
60886
60887         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
60888         libidn and bison.
60889
60890 2006-03-03  Simon Josefsson  <jas@extundo.com>
60891
60892         * build-aux/maint.mk: Add indent target.
60893
60894 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
60895
60896         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
60897         our replacement poll.h in any case, to avoid a differing
60898         declaration from a system header.  Seen on AIX.
60899
60900 2006-03-01  Simon Josefsson  <jas@extundo.com>
60901
60902         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
60903         <kasal@ucw.cz>.
60904
60905 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60906
60907         * modules/gettime (Depends-on): Add extensions module.
60908         * modules/nanosleep (Depends-on): Likewise.
60909         * modules/settime (Depends-on): Likewise.
60910
60911 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60912
60913         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
60914         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
60915         pedantically.
60916         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60917         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
60918
60919         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
60920         not "==".  Reported by Ralf Wildenhues.
60921
60922 2006-03-01  Karl Berry  <karl@gnu.org>
60923
60924         * doc/Copyright/request-*: new files, synced from gnuorg.
60925
60926 2006-03-01  Karl Berry  <karl@gnu.org>
60927
60928         * config/srclist.txt (Copyright/*): new entries.
60929
60930 2006-02-28  Simon Josefsson  <jas@extundo.com>
60931
60932         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
60933
60934 2006-02-27  Simon Josefsson  <jas@extundo.com>
60935
60936         * lib/base64.h: Indent #define's.  From Jim Meyering
60937         <jim@meyering.net>.
60938
60939 2006-02-27  Jim Meyering  <jim@meyering.net>
60940
60941         Revert the change of 2006-02-24, so these files can continue
60942         to be sync'd from gettext.
60943         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
60944         of `config.h'.
60945
60946 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60947
60948         * modules/intprops: New file.
60949         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60950         Add intprops.
60951         * modules/getloadavg (Files): Remove lib/intprops.h.
60952         (Depends-on): Add intprops.
60953         * modules/human: Likewise.
60954         * modules/inttostr: Likewise.
60955         * modules/openat: Likewise.
60956         * modules/sig2str: Likewise.
60957         * modules/userspec: Likewise.
60958         * modules/utimecmp: Likewise.
60959         * modules/xnanosleep: Likewise.
60960         * modules/xstrtol: Likewise.
60961
60962 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
60963
60964         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
60965         * modules/lock-tests (TESTS): Use $(EXEEXT).
60966         * modules/tls-tests: Likewise.
60967         * modules/argp-tests: Likewise.
60968         (check_PROGRAMS): New var, replacing...
60969         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
60970
60971 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60972
60973         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
60974         `config.h'.
60975
60976 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60977
60978         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
60979
60980 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60981
60982         Sync from coreutils.
60983         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
60984         gl_CHDIR_SAFER.
60985
60986 2006-02-22  Jim Meyering  <jim@meyering.net>
60987
60988         Sync from coreutils.
60989         * m4/chdir-safer.m4: New file.
60990
60991 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60992
60993         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
60994         AT_FDCWD exceeds INT_MAX.
60995         * lib/openat.h (AT_FDCWD): Likewise.
60996
60997 2006-02-17  Eric Blake  <address@hidden>
60998
60999         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
61000
61001 2006-02-16  Simon Josefsson  <jas@extundo.com>
61002
61003         * modules/getaddrinfo (Depends-on): Add sys_socket.
61004
61005 2006-02-15  Simon Josefsson  <jas@extundo.com>
61006
61007         * build-aux/maint.mk: Add dsyntax-check rule.
61008
61009 2006-02-15  Eric Blake  <ebb9@byu.net>
61010
61011         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
61012         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
61013         'present but cannot compile' warnings on cygwin.
61014         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
61015         use ws2tcpip.h if sys/socket.h works.
61016         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
61017         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
61018
61019 2006-02-14  Simon Josefsson  <jas@extundo.com>
61020
61021         * modules/maintainer-makefile (Files): Rename.
61022
61023         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
61024         and (the local) Makefile.cfg to maint-cfg.mk.
61025
61026         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
61027         to the latter.
61028
61029         * modules/maintainer-makefile: New module.
61030
61031         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
61032         severaly stripped to make it possible to build it up from scratch
61033         with reliable tests.
61034
61035         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
61036         fixes to permit overriding the default actions when configure and
61037         makefile are not available.
61038
61039 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61040
61041         Sync from coreutils.
61042         * modules/lstat (Depends-on): Don't depend on xalloc.
61043         (License): Change from GPL to LGPL, since this is now simply a
61044         replacement for a libc function.
61045
61046 2006-02-14  Jim Meyering  <jim@meyering.net>
61047
61048         Sync from coreutils.
61049
61050         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
61051         failure on deficient systems, and simplify gnulib lgpl dependencies.
61052         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
61053         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
61054
61055         * lib/xalloc-die.c: Remove unused definition of N_.
61056
61057 2006-02-14  Jim Meyering  <jim@meyering.net>
61058
61059         Sync from coreutils.
61060         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
61061         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
61062         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
61063         double-quote uses of that variable, to accommodate the rare case in
61064         which getmntent is available in none of the libraries checked.  This
61065         happens at least on FreeBSD 5.0.
61066
61067 2006-02-13  Simon Josefsson  <jas@extundo.com>
61068
61069         * gnulib-tool (Usage): Fix --import, from
61070         karl@freefriends.org (Karl Berry).
61071
61072 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61073
61074         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
61075
61076 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
61077
61078         * lib/argp-namefrob.h: Restore changes accidentally lost during the
61079         "autoupdate" on 2005-12-12.
61080
61081 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61082
61083         * modules/closeout (Depends-on): Remove atexit.
61084
61085 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61086
61087         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
61088         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
61089
61090 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61091
61092         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
61093         __EXTENSIONS__ if this causes compilation to fail.  Problem
61094         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
61095         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
61096
61097 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
61098
61099         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
61100         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
61101         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
61102         All uses changed.
61103
61104 2006-01-26  Simon Josefsson  <jas@extundo.com>
61105
61106         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
61107         prototype is visible on mingw32.
61108
61109         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
61110         for mingw32.
61111
61112         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
61113         mingw32).
61114
61115 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61116
61117         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
61118         attempt to open for write; this always fails, at least on POSIX
61119         hosts.  This reinstates the 2006-01-09 change, which was
61120         inadvertently removed.
61121
61122 2006-01-26  Bruno Haible  <bruno@clisp.org>
61123
61124         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
61125         Reported by Paul Eggert.
61126
61127 2006-01-26  Bruno Haible  <bruno@clisp.org>
61128             Paul Eggert  <eggert@cs.ucla.edu>
61129
61130         * lib/stdbool_.h (_Bool)
61131         [(! (defined __cplusplus || defined __BEOS__)
61132           && !defined __GNUC__
61133           && !(defined __HP_cc || defined __xlc__
61134                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
61135                || defined __sgi))]:
61136         #define to signed char in these cases too; this simplifies
61137         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
61138         etc., separately) and makes it more conservative.
61139
61140 2006-01-25  Simon Josefsson  <jas@extundo.com>
61141
61142         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
61143         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
61144         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
61145
61146 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61147
61148         * lib/argp-namefrob.h: Bugfix. Remove stray #
61149
61150 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61151
61152         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
61153         so that we test the test.
61154         Check for yet another HP-UX cc bug involving *bool |= bool.
61155
61156 2006-01-25  Karl Berry  <karl@gnu.org>
61157
61158         * config/srclist.txt (vasnprintf.c): sync lost.
61159
61160 2006-01-25  Jim Meyering  <jim@meyering.net>
61161
61162         Sync from the stable (b5) branch of coreutils:
61163
61164         * lib/fts.c (fts_children): Don't let close() clobber errno from
61165         failed fchdir().
61166
61167         * lib/fts.c (fts_stat): When following a symlink-to-directory,
61168         don't necessarily interpret stat-fails+lstat-succeeds as indicating
61169         a dangling symlink.  That can also happen at least for ELOOP.
61170         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
61171         FYI, this bug predates the inclusion of fts.c in coreutils.
61172
61173         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
61174         in their own block, so pre-c99 compilers don't object.
61175
61176         Avoid the double-free (first in fts_read, second in fts_close) that
61177         would occur when an `active' directory is made inaccessible (e.g.,
61178         via chmod a-x) during a traversal.
61179         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61180         before returning.  Reproduce this failure by
61181         mkdir -p a/b; cd a; chmod a-x . b
61182         Reported by Stavros Passas.
61183
61184 2006-01-25  Jim Meyering  <jim@meyering.net>
61185
61186         * lib/fileblocks.c: Remove more useless parentheses.
61187         * lib/readutmp.h: Likewise.
61188
61189 2006-01-25  Bruno Haible  <bruno@clisp.org>
61190
61191         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
61192         warnings.
61193         Reported by Paul Eggert.
61194
61195 2006-01-25  Bruno Haible  <bruno@clisp.org>
61196
61197         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
61198         rid of a trap command. For Solaris sh.
61199         Reported by Mark D. Baushke <mdb@gnu.org>.
61200
61201 2006-01-24  Simon Josefsson  <jas@extundo.com>
61202
61203         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
61204         Bruno.
61205
61206 2006-01-24  Karl Berry  <karl@gnu.org>
61207
61208         * config/srclist.txt (argp-namefrob.h): sync lost.
61209
61210 2006-01-24  Jim Meyering  <jim@meyering.net>
61211
61212         * modules/openat (Files): Add lib/intprops.h.
61213         From Mark D. Baushke.
61214
61215 2006-01-24  Jim Meyering  <jim@meyering.net>
61216
61217         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
61218         Reported by Mark D. Baushke.
61219
61220 2006-01-24  Jim Meyering  <jim@meyering.net>
61221
61222         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
61223
61224 2006-01-24  Bruno Haible  <bruno@clisp.org>
61225
61226         * modules/strnlen (Maintainer): Change from glibc to all.
61227
61228 2006-01-24  Bruno Haible  <bruno@clisp.org>
61229
61230         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
61231         Patch by Paul Eggert.
61232
61233 2006-01-24  Bruno Haible  <bruno@clisp.org>
61234
61235         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
61236         already has it.
61237         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
61238         2005-11-26.
61239
61240         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
61241         'signed char' to avoid problems with the built-in _Bool type.
61242         Reported by Paul Eggert on 2005-11-26.
61243
61244 2006-01-24  Bruno Haible  <bruno@clisp.org>
61245
61246         * gnulib-tool (func_import): Avoid constructing complicated sed
61247         expressions inside backquote.
61248         Report and solution by Mark D. Baushke <mdb@gnu.org>.
61249
61250 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
61251
61252         These changes imported from libc.
61253         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
61254         test and two separate function calls.
61255         * lib/strndup.c (__strndup): Add libc_hidden_def.
61256
61257 2006-01-23  Simon Josefsson  <jas@extundo.com>
61258
61259         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
61260         Remove the test_*_SOURCES variable: automake infers it by default.
61261         * modules/tls-tests: Likewise.
61262
61263 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61264
61265         Work around porting bugs reported by Dieter in
61266         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
61267         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
61268         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
61269         Include "getopt.h" first, to check interface.
61270         (getenv): Declare only if defined HAVE_DECL_GETENV &&
61271         !HAVE_DECL_GETENV.
61272         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
61273         (__strndup): Revert to K&R-style function dfns, the glibc style.
61274         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
61275         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
61276         Include strnlen.h first, to get prototype properly.
61277         (strnlen): Renamed from __strnlen.
61278         Remove weak alias.
61279
61280 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61281
61282         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
61283
61284 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61285
61286         * config/srclist.txt: Adjust to reflect glibc reorganization.
61287         This affects only comments.
61288
61289 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61290
61291          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
61292          Reported by Bruce Korb <bkorb@gnu.org>.
61293
61294 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61295
61296         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
61297         to pacify gcc -Wswitch-default.
61298
61299 2006-01-22  Bruno Haible  <bruno@clisp.org>
61300
61301         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
61302         temporary buffer for sprintf, take into account the precision also
61303         for 'd', 'i', 'u', 'o', 'x', 'X'.
61304
61305 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61306
61307         * modules/argp-tests: New module
61308         * tests/test-argp.c: New file
61309         * tests/test-argp-2.sh: New file
61310
61311 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61312
61313         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
61314         (__argp_base_name): Removed
61315         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
61316         typo.
61317         (__argp_base_name): Provide macro definition or extern declaration
61318         depending on the configuration
61319
61320 2006-01-20  Simon Josefsson  <jas@extundo.com>
61321
61322         * modules/inet_ntop (Depends-on): Depend on sys_socket.
61323
61324 2006-01-20  Simon Josefsson  <jas@extundo.com>
61325
61326         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
61327
61328 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61329
61330         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
61331         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
61332         Suggested by Bruno Haible.
61333
61334 2006-01-20  Karl Berry  <karl@gnu.org>
61335
61336         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
61337         until changes propagate, I guess.
61338
61339 2006-01-19  Simon Josefsson  <jas@extundo.com>
61340
61341         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
61342
61343 2006-01-19  Simon Josefsson  <jas@extundo.com>
61344
61345         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
61346
61347 2006-01-19  Simon Josefsson  <jas@extundo.com>
61348
61349         * gnulib-tool: Set check_PROGRAMS.
61350
61351         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61352         modules/des-tests, modules/gc-arcfour-tests,
61353         modules/gc-arctwo-tests, modules/gc-des-tests,
61354         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61355         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61356         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61357         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61358         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61359         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
61360         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
61361         test_*_SOURCES.
61362
61363 2006-01-18  Simon Josefsson  <jas@extundo.com>
61364
61365         * modules/socklen (Depends-on): Depend on sys_socket.
61366
61367 2006-01-18  Simon Josefsson  <jas@extundo.com>
61368
61369         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61370         modules/des-tests, modules/gc-arcfour-tests,
61371         modules/gc-arctwo-tests, modules/gc-des-tests,
61372         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61373         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61374         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61375         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61376         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61377         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
61378         $(EXEEXT) to automake TESTS variable, for mingw32.
61379
61380 2006-01-17  Simon Josefsson  <jas@extundo.com>
61381
61382         * modules/socklen (Include): Need sys/socket.h.
61383
61384 2006-01-17  Bruno Haible  <bruno@clisp.org>
61385
61386         * modules/ssize_t (Include): Add <sys/types.h>.
61387
61388 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
61389
61390         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
61391         it's not portable and it doesn't work with cross-compiles.
61392         Problem reported by Bruno Haible.  Fix missing-$ typo in
61393         'test "gl_cv_ignore_unused_libraries" ...' that prevented
61394         -zignore from being used with Sun's C compiler.
61395
61396 2006-01-12  Simon Josefsson  <jas@extundo.com>
61397
61398         * lib/base64.c: Fix warning, reported by Bruno Haible
61399         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
61400
61401 2006-01-12  Bruno Haible  <bruno@clisp.org>
61402
61403         * modules/ldd: New file.
61404         * build-aux/ldd.sh.in: New file.
61405         * MODULES.html.sh (Support for building libraries and executables): Add
61406         ldd.
61407
61408 2006-01-12  Bruno Haible  <bruno@clisp.org>
61409
61410         * m4/ldd.m4: New file.
61411
61412 2006-01-12  Bruno Haible  <bruno@clisp.org>
61413
61414         * gnulib-tool (func_import, func_create_testdir): Don't go into an
61415         endless loop while replacing $auxdir with build-aux.
61416
61417 2006-01-11  Simon Josefsson  <jas@extundo.com>
61418
61419         * lib/stdint_.h (SIZE_MAX): Add missing (.
61420
61421 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61422
61423         Sync from coreutils.
61424         * lib/md5.c: Fix commentary typos.
61425         (alignof, UNALIGNED_P): No need for a GCC-specific version.
61426         * lib/md5.h (__attribute__): Remove; unused.
61427         * lib/sha1.c: Fix commentary to match md5 better.
61428         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
61429         so that we don't need to worry about alignment.  All uses changed.
61430         This merges the 2005-10-28 md5 change into sha1.
61431
61432 2006-01-11  Jim Meyering  <jim@meyering.net>
61433
61434         Sync from coreutils.
61435         * lib/md5.c (OP): Fix spacing.
61436
61437 2006-01-11  Bruno Haible  <bruno@clisp.org>
61438
61439         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61440         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
61441         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
61442
61443 2006-01-11  Bruno Haible  <bruno@clisp.org>
61444
61445         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61446         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
61447         the "early" section as well.
61448
61449 2006-01-11  Bruno Haible  <bruno@clisp.org>
61450
61451         Avoid "ar: no archive members specified" error on MacOS X.
61452         * gnulib-tool (func_modules_add_dummy): New function.
61453         (func_import, func_create_testdir): Invoke it.
61454
61455 2006-01-11  Bruno Haible  <bruno@clisp.org>
61456
61457         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
61458         with $auxdir in AC_CONFIG_FILES statements.
61459
61460 2006-01-11  Bruno Haible  <bruno@clisp.org>
61461
61462         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61463         Initialize also noinst_HEADERS to empty.
61464
61465 2006-01-11  Bruno Haible  <bruno@clisp.org>
61466
61467         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
61468         variables.
61469         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
61470         autoreconf.
61471
61472 2006-01-11  Bruno Haible  <bruno@clisp.org>
61473
61474         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
61475         overridable by the user.
61476         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61477
61478 2006-01-10  Simon Josefsson  <jas@extundo.com>
61479
61480         * modules/sys_socket: New file.
61481
61482 2006-01-10  Simon Josefsson  <jas@extundo.com>
61483
61484         * m4/sys_socket_h.m4: New file.
61485
61486 2006-01-10  Simon Josefsson  <jas@extundo.com>
61487
61488         * lib/socket_.h: New file.
61489
61490 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61491
61492         * modules/readutmp (Maintainer): Add myself.
61493
61494 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61495
61496         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
61497         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
61498         People who are still concerned with buggy memcmp implementations
61499         can invoke gl_FUNC_MEMCMP themselves.
61500
61501 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61502
61503         * lib/regex_internal.h (BITSET_WORD_BITS):
61504         Work around a bug in 64-bit PGC (before version 6.1-2), where the
61505         preprocessor mishandles large unsigned values as if they were signed.
61506         Problem reported by Claudio Fontana in
61507         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
61508
61509 2006-01-10  Jim Meyering  <jim@meyering.net>
61510
61511         Avoid the double-free (first in fts_read, second in fts_close) that
61512         would occur when an `active' directory is made inaccessible (e.g.,
61513         via chmod a-x) during a traversal.
61514         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61515         before returning.  Reproduce this failure by
61516         mkdir -p a/b; cd a; chmod a-x . b
61517         Reported by Stavros Passas.
61518
61519         Sync from coreutils.
61520         * lib/sha1.c: Tweak grammar in a comment.
61521
61522 2006-01-10  Jim Meyering  <jim@meyering.net>
61523
61524         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
61525         Patch by Joerg Sonnenberger.
61526
61527 2006-01-10  Bruno Haible  <bruno@clisp.org>
61528
61529         * modules/readutmp: Depend on module free.
61530         * modules/strtok_r: Depend on module restrict.
61531
61532 2006-01-10  Bruno Haible  <bruno@clisp.org>
61533
61534         * modules/gettext (configure.ac): Add an invocation of
61535         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
61536
61537 2006-01-10  Bruno Haible  <bruno@clisp.org>
61538
61539         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
61540         Reported by Werner Lemberg <wl@gnu.org>.
61541
61542 2006-01-10  Bruno Haible  <bruno@clisp.org>
61543
61544         * lib/localcharset.c: Update from GNU gettext.
61545
61546 2006-01-10  Bruno Haible  <bruno@clisp.org>
61547
61548         * lib/argp.h (__const): Remove macro. Use const instead.
61549         * lib/argp-fmtstream.h (__const): Likewise.
61550         * lib/glob_.h (__const): Remove macro.
61551         * lib/glob-libc.h: Use const instead of __const.
61552
61553 2006-01-10  Bruno Haible  <bruno@clisp.org>
61554
61555         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
61556         variable.
61557         Needed to avoid an automake error regarding the 'gettext' module.
61558
61559 2006-01-09  Simon Josefsson  <jas@extundo.com>
61560
61561         * modules/inet_ntop (Depends-on): Add restrict.
61562
61563 2006-01-09  Simon Josefsson  <jas@extundo.com>
61564
61565         * modules/gc-rijndael-tests (License): Put under LGPL.
61566
61567         * modules/gc-des-tests (License): Likewise.
61568
61569         * modules/gc-arcfour-tests (License): Likewise.
61570
61571         * modules/gc-arctwo-tests (License): Likewise.
61572
61573         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
61574
61575         * modules/gc-hmac-sha1-tests (Files): Likewise.
61576
61577         * modules/gc-hmac-md5-tests (License): Likewise.
61578
61579         * modules/gc-sha1-tests (License): Likewise.
61580
61581         * modules/gc-md5-tests (License): Likewise.
61582
61583         * modules/gc-md4-tests (License): Likewise.
61584
61585         * modules/gc-md2-tests (License): Likewise.
61586
61587         * modules/gc-tests (License): Likewise.
61588
61589         * modules/des-tests (License): Likewise.
61590
61591         * modules/md4-tests (License): Likewise.
61592
61593         * modules/md2-tests (License): Likewise.
61594
61595 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61596
61597         Sync from coreutils:
61598
61599         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
61600         * modules/lib-ignore: New file.
61601         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
61602         chdir-safer.m4, lchmod.m4.
61603         * modules/openat: Add mkdirat.c, openat-priv.h.
61604
61605 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61606
61607         Sync from coreutils.
61608         * m4/lib-ignore.m4: New file.
61609         * m4/lchmod.m4: New file.
61610
61611 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61612
61613         Sync from coreutils.
61614         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
61615         for write access: POSIX says that must fail.
61616         * lib/fts.c (diropen): Likewise.
61617         * lib/save-cwd.c (save_cwd): Likewise.
61618         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
61619         well, for minor improvements on hosts that lack O_DIRECTORY.
61620         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
61621         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
61622         Fall back on chown if open failed with EACCES.
61623
61624         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
61625         Report an error at compile-time if only a 1-second nominal clock
61626         resolution is found.
61627
61628         * lib/lchmod.h: New file.
61629         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
61630         (make_dir_parents): Use lchown rather than chown, and
61631         lchmod rather than chmod.
61632
61633         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
61634         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
61635         "proc" reported by n0dalus.
61636
61637         * lib/mountlist.c: Include <limits.h>.
61638         (dev_from_mount_options)
61639         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
61640         New function.  It no longer assumes "dev=" has the System V meaning
61641         on Linux (since it doesn't).  It also parses "dev=" more carefully.
61642         (read_file_system_list)
61643         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
61644         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
61645         dev= in that case.
61646
61647         * lib/posixtm.h (PDS_PRE_2000): New macro.
61648         * lib/posixtm.c (year): Arg is now syntax_bits rather than
61649         allow_century.  All usages changed.  Reject dates outside the range
61650         1969-1999 if PDS_PRE_2000 is used.
61651
61652 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61653
61654         Sync from coreutils.
61655         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
61656         (Time of day items): Mention the possibility of leap seconds.
61657         Problem reported by Dr. David Alan Gilbert.
61658
61659 2006-01-09  Jim Meyering  <jim@meyering.net>
61660
61661         Sync from coreutils.
61662
61663         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
61664
61665         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
61666
61667         * lib/modechange.c (mode_compile): Reject an invalid mode string
61668         that starts with an octal digit.  From Andreas Gruenbacher.
61669
61670         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
61671         and dup to open_safer and dup_safer, respectively.
61672         (openat_permissive): Fix typo in comment.
61673
61674         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
61675         "gettext.h"; either no longer needed or are guaranteed by openat.h.
61676         (_): Remove; no longer needed.
61677         (openat): Renamed from rpl_openat; no need for rpl_openat
61678         since openat.h renames openat for us.
61679         Replace most of the body with a call to openat_permissive,
61680         to avoid duplicate code.
61681         Port to (probably hypothetical) environments were mode_t is
61682         wider than int.
61683         (openat_permissive): Require mode arg, so that we can check
61684         types better.  Put it just after flags.  Change cwd failure
61685         indicator from pointer-to-bool to pointer-to-errno-value.
61686         All callers changed.
61687         Invoke openat_save_fail and/or openat_restore_fail if
61688         cwd_errno is null, so that openat can call us.
61689         (openat_permissive, fdopendir, fstatat, unlinkat):
61690         Simplify errno handling to avoid some duplicate code,
61691         as it's OK to set errno on success.
61692         * lib/openat.h: Revamp code so that function macros depend on
61693         __OPENAT_PREFIX only, not also on AT_FDCWD.
61694         (openat_ro): Remove.  Caller changed to use openat_permissive.
61695         (openat_permissive): Now a macro, if not a function.
61696         (openat_restore_fail, openat_save_fail): Now always functions,
61697         since mkdirat needs them even if __OPENAT_PREFIX is defined.
61698
61699         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
61700         and openat.c.
61701         * lib/mkdirat.c: Include openat-priv.h.
61702         Remove definitions of macros defined therein.
61703         * lib/openat.c: Likewise.
61704
61705         * lib/mkdirat.c (mkdirat): New file and function.
61706         * lib/openat.h (mkdirat): Declare.
61707
61708         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
61709
61710         * lib/openat.h (openat_permissive): Declare.
61711         (openat_ro): Define.
61712
61713         * lib/openat.c (EXPECTED_ERRNO): New macro.
61714         (openat_permissive): New function -- used in remove.c rewrite.
61715         (all functions): Set errno just before returning, only if there
61716         was an actual failure.
61717         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
61718
61719         Emulate openat-family functions using Linux's procfs, if possible.
61720         Idea and some code based on Ulrich Drepper's glibc changes.
61721
61722         * lib/openat.c: (BUILD_PROC_NAME): New macro.
61723         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
61724         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
61725         before falling back on save_cwd and restore_cwd.
61726         (fdopendir, fstatat, unlinkat): Likewise.
61727
61728         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
61729         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
61730
61731         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
61732         as second argument to va_arg.  Otherwise, some versions of gcc
61733         warn that `if this code is reached, the program will abort'.
61734
61735 2006-01-09  Jim Meyering  <jim@meyering.net>
61736
61737         Sync from coreutils.
61738         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
61739         Require openat-priv.h.
61740
61741 2006-01-09  Bruno Haible  <bruno@clisp.org>
61742
61743         * modules/strnlen (Include): Use strnlen.h.
61744
61745 2006-01-09  Bruno Haible  <bruno@clisp.org>
61746
61747         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
61748
61749 2006-01-09  Bruno Haible  <bruno@clisp.org>
61750
61751         * lib/sysexit_.h (EX_OK): New macro.
61752         Suggested by Martin Lambers <marlam@marlam.de>.
61753
61754 2006-01-09  Bruno Haible  <bruno@clisp.org>
61755
61756         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
61757         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
61758
61759 2006-01-09  Bruno Haible  <bruno@clisp.org>
61760
61761         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
61762         numbers.
61763
61764 2006-01-09  Bruno Haible  <bruno@clisp.org>
61765
61766         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
61767         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
61768         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
61769         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
61770
61771 2006-01-09  Bruno Haible  <bruno@clisp.org>
61772
61773         * build-aux/javacomp.sh.in: New file, moved from lib/.
61774         * modules/javacomp-script (Files): Update.
61775         (configure.ac): Add AC_CONFIG_FILES invocation.
61776         (EXTRA_DIST): Remove variable.
61777
61778         * build-aux/javaexec.sh.in: New file, moved from lib/.
61779         * modules/javaexec (Files): Update.
61780         (configure.ac): Add AC_CONFIG_FILES invocation.
61781         (EXTRA_DIST): Remove javaexec.sh.in.
61782
61783         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
61784         * modules/csharpcomp-script (Files): Update.
61785         (configure.ac): Add AC_CONFIG_FILES invocation.
61786         (EXTRA_DIST): Remove variable.
61787
61788         * build-aux/csharpexec.sh.in: New file, moved from lib/.
61789         * modules/csharpexec (Files): Update.
61790         (configure.ac): Add AC_CONFIG_FILES invocation.
61791         (EXTRA_DIST): Remove csharpexec.sh.in.
61792
61793 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61794
61795         Sync from coreutils.
61796
61797         Add POSIX ACL support
61798         * lib/acl.h (copy_acl, set_acl): Add declarations.
61799         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
61800         systems other than Linux.
61801         (chmod_or_fchmod): New function: use fchmod when possible,
61802         and chmod otherwise.
61803         (file_has_acl): Add a POSIX ACL implementation, with a
61804         Linux-specific subcase.
61805         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
61806         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
61807         acls are unsupported.
61808         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
61809         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
61810         are unsupported.
61811
61812 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61813
61814         Sync from coreutils.
61815         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
61816
61817 2006-01-07  Bruno Haible  <bruno@clisp.org>
61818
61819         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
61820         gl_EARLY.
61821
61822 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61823
61824         * lib/strftime.c (tzname): Don't declare if it is already #defined.
61825         Problem reported for Mingw by Mark Junker.
61826
61827 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61828
61829         * README: Gnulib normally doesn't generate a tarball.
61830
61831 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
61832
61833         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
61834         long int, not int, for nanosecond counts, so that people who are
61835         used to POSIX struct timespec won't be surprised.  Reported by Jim
61836         Meyering.
61837
61838 2005-12-28  Bruno Haible  <bruno@clisp.org>
61839
61840         * build-aux/config.rpath: Update from GNU gettext.
61841
61842 2005-12-16  Jim Meyering  <jim@meyering.net>
61843
61844         * modules/fprintftime: New module.
61845         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
61846
61847 2005-12-16  Jim Meyering  <jim@meyering.net>
61848
61849         * m4/fprintftime.m4: New file.
61850
61851 2005-12-16  Jim Meyering  <jim@meyering.net>
61852
61853         * lib/fprintftime.c, lib/fprintftime.h: New files.
61854
61855 2005-12-15  Simon Josefsson  <jas@extundo.com>
61856
61857         * modules/socklen (configure.ac): Fix M4 macro name, to align with
61858         new m4/socklen.m4.
61859
61860 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61861
61862         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
61863         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
61864
61865 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61866
61867         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
61868         * lib/argp-help.c (fill_in_uparams): Check if the constructed
61869         struct uparams is valid. Fall back to the default values if it is
61870         not.
61871
61872 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61873
61874         * modules/argp (Files): Add argp-pin.c
61875         (Depends-on): dirname
61876         (lib_SOURCES): Add argp-pin.c
61877
61878 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61879
61880         * m4/argp.m4:  Check if program_invocation_name and
61881         program_invocation_short_name are declared and define appropriate
61882         macros if they are not.
61883
61884 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61885
61886         * lib/argp-help.c (__argp_base_name): New function
61887         (__argp_short_program_name): Rewrite using __argp_base_name
61888         * lib/argp-namefrob.h: Define program_invocation_name and
61889         program_invocation_short_name if requested
61890         (__argp_base_name): Add prototype
61891         * lib/argp-parse.c (argp_def): Use gettext wrappers
61892         (argp_default_parser): Use __argp_base_name
61893         * lib/argp-pin.c: New file. Defines program_invocation_name and
61894         program_invocation_short_name on systems that lack them.
61895
61896 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61897
61898         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
61899         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61900         porting problem reported by Georg Schwarz in
61901         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61902
61903 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61904
61905         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
61906         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61907         porting problem reported by Georg Schwarz in
61908         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61909
61910 2005-12-05  Bruno Haible  <bruno@clisp.org>
61911
61912         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
61913         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
61914         Reported by Mark Junker <mjscod@gmx.de>.
61915
61916 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
61917
61918         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
61919         Use implementation from Albert Chin, with some
61920         comments/corrections by Stepan Kasal and myself.
61921
61922 2005-12-02  Bruno Haible  <bruno@clisp.org>
61923
61924         * gnulib-tool (func_import): Accept GPLed build tool modules when
61925         --lgpl is given.
61926         * modules/csharpcomp-script: New file.
61927         * modules/csharpcomp: Depend on it.
61928         * modules/javacomp-script: New file.
61929         * modules/javacomp: Depend on it.
61930         Suggested by Simon Josefsson.
61931
61932 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
61933
61934         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
61935         statement, to work around an HP-UX 10.20 compiler bug reported by
61936         Peter O'Gorman.
61937
61938 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61939
61940         * modules/savedir (Depends-on): Add openat.
61941
61942 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61943
61944         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
61945         (uintmax_t) [defined uintmax_t]: Do not declare.
61946         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
61947         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
61948         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
61949         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
61950         sake of portability to weird hosts that C allows (though we don't
61951         know of any practical examples).
61952
61953         * lib/savedir.h (fdsavedir): New decl.
61954         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
61955         contains most of the former guts of savedir.
61956         (savedir): Use savedirstream.
61957         Include "openat.h".
61958
61959 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61960
61961         * modules/obstack (Files): Add m4/ulonglong.m4.
61962         Problem reported by Davide Angelocola.
61963
61964 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61965
61966         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
61967         coreutils no longer futzes with rounding modes.
61968
61969 2005-11-14  Jim Meyering  <jim@meyering.net>
61970
61971         * lib/mkstemp-safer.c: Include <config.h>, required for possible
61972         replacement of mkstemp.
61973
61974 2005-11-10  Simon Josefsson  <jas@extundo.com>
61975
61976         * lib/readline.c: Remove EOL.
61977
61978 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61979
61980         * modules/gethrxtime (Depends-on): Add gettime.
61981
61982 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61983
61984         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
61985         or gettimeofday; no longer needed.
61986
61987 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61988
61989         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
61990         time business.
61991         (gethrxtime) [! (HAVE_NANOUPTIME
61992         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
61993         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
61994         our own approximation.
61995
61996 2005-11-08  Eric Blake  <ebb9@byu.net>
61997
61998         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61999
62000 2005-11-08  Eric Blake  <ebb9@byu.net>
62001
62002         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62003
62004 2005-11-04  Bruno Haible  <bruno@clisp.org>
62005
62006         * gnulib-tool: Implement --update mode.
62007
62008 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62009
62010         Fix porting problem reported by Theodoros V. Kalamatianos.
62011         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
62012         Don't assume that futimes failing means we must fail.
62013
62014 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62015
62016         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
62017         variables to suggest the intended function of the PATH_MAX check.
62018
62019 2005-10-30  Kean Johnston  <jkj@sco.com>
62020
62021         Trivial changes to support SCO systems.
62022         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
62023         as PATH_MAX.
62024         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
62025         where __ptr is null when no I/O is pending.
62026
62027 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62028
62029         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
62030         leave errno alone.  Problem reported by Dmitry V. Levin.
62031
62032 2005-10-28  Simon Josefsson  <jas@extundo.com>
62033
62034         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
62035         Test more.
62036
62037         * tests/test-gc-md2.c, tests/test-md2.c: New files.
62038
62039         * modules/md2, modules/md2-tests: New files.
62040
62041 2005-10-28  Simon Josefsson  <jas@extundo.com>
62042
62043         * m4/inet_ntop.m4: More tests.
62044
62045         * m4/gc-md2.m4, md2.m4: New file.
62046
62047 2005-10-28  Simon Josefsson  <jas@extundo.com>
62048
62049         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
62050         "restrict" keywords, as per POSIX.  Protect the function
62051         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
62052         Don't use K&R prototypes.  Check the sprintf return values.
62053         Re-define EAFNOSUPPORT if not present.  Indent.
62054
62055         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
62056         suggested by Bruno Haible <bruno@clisp.org>.
62057
62058         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
62059
62060         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
62061
62062         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
62063         libgcrypt).
62064
62065         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
62066
62067         * lib/md2.h, lib/md2.c: New files.
62068
62069 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
62070
62071         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
62072         errno alone.  Problem reported by Frederic Jolliton.
62073
62074 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62075
62076         * modules/verify (License): Change from GPL to LGPL.  This is a
62077         tiny module and there are apparently near-equivalents that are
62078         under the BSD license.
62079
62080 2005-10-24  Simon Josefsson  <jas@extundo.com>
62081
62082         * modules/sha1: Relicense to LGPL.
62083
62084 2005-10-24  Simon Josefsson  <jas@extundo.com>
62085
62086         * lib/md4.h: Shrink buffer size, now that we changed the type.
62087
62088 2005-10-23  Simon Josefsson  <jas@extundo.com>
62089
62090         * gnulib-tool (func_import): Fix --tests-base.
62091
62092 2005-10-22  Simon Josefsson  <jas@extundo.com>
62093
62094         * modules/arcfour (Depends-on): Need stdint.
62095
62096 2005-10-22  Simon Josefsson  <jas@extundo.com>
62097
62098         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
62099         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
62100
62101 2005-10-22  Simon Josefsson  <jas@extundo.com>
62102
62103         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
62104         suggested by Bruno Haible <bruno@clisp.org>.
62105
62106 2005-10-22  Simon Josefsson  <jas@extundo.com>
62107
62108         * lib/crc.h: Include stddef.h, for size_t.
62109
62110 2005-10-22  Simon Josefsson  <jas@extundo.com>
62111
62112         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
62113         arcfour_context struct (simplify test vector testing in GNU
62114         Shishi).
62115
62116 2005-10-21  Simon Josefsson  <jas@extundo.com>
62117
62118         * modules/des, modules/des-tests: New files.
62119
62120         * modules/gc-des, modules/gc-des-tests: New files.
62121
62122         * tests/test-des.c, tests/test-gc-des.c: New file.
62123
62124 2005-10-21  Simon Josefsson  <jas@extundo.com>
62125
62126         * modules/arctwo, modules/arctwo-tests: New files.
62127
62128         * tests/test-arctwo.c: New file.
62129
62130         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
62131
62132         * tests/test-gc-arctwo.c: New file.
62133
62134 2005-10-21  Simon Josefsson  <jas@extundo.com>
62135
62136         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
62137         Bruno Haible <bruno@clisp.org>.
62138
62139         * m4/gc-des.m4: New file.
62140
62141 2005-10-21  Simon Josefsson  <jas@extundo.com>
62142
62143         * m4/arctwo.m4: New file.
62144
62145         * m4/gc-arctwo.m4: New file.
62146
62147 2005-10-21  Simon Josefsson  <jas@extundo.com>
62148
62149         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
62150         block.
62151
62152 2005-10-21  Simon Josefsson  <jas@extundo.com>
62153
62154         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
62155         <bruno@clisp.org>.
62156
62157         * lib/hmac-sha1.c (hmac_sha1): Likewise.
62158
62159         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
62160         Bruno Haible <bruno@clisp.org>.
62161
62162         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
62163         <bruno@clisp.org>.
62164
62165 2005-10-21  Simon Josefsson  <jas@extundo.com>
62166
62167         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
62168
62169 2005-10-21  Simon Josefsson  <jas@extundo.com>
62170
62171         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
62172
62173 2005-10-21  Simon Josefsson  <jas@extundo.com>
62174
62175         * lib/des.h, lib/des.c: New files.
62176
62177         * lib/gc-gnulib.c: Support DES.c
62178
62179 2005-10-21  Simon Josefsson  <jas@extundo.com>
62180
62181         * lib/arctwo.h, lib/arctwo.c: New files.
62182
62183         * lib/gc-gnulib.c: Support ARCTWO.
62184
62185 2005-10-21  Simon Josefsson  <jas@extundo.com>
62186
62187         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
62188         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62189
62190 2005-10-21  Simon Josefsson  <jas@extundo.com>
62191
62192         * gnulib-tool (func_import, func_create_testdir): Define automake
62193         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
62194         Makefile.am snippet),
62195         suggested by Bruno Haible <bruno@clisp.org>.
62196
62197         * modules/gc (Makefile.am): Use it.
62198
62199 2005-10-21  Bruno Haible  <bruno@clisp.org>
62200
62201         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
62202         patch.
62203
62204 2005-10-19  Simon Josefsson  <jas@extundo.com>
62205
62206         * tests/test-gc-rijndael.c: New file.
62207
62208         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
62209
62210 2005-10-19  Simon Josefsson  <jas@extundo.com>
62211
62212         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
62213         interface too.
62214
62215 2005-10-19  Simon Josefsson  <jas@extundo.com>
62216
62217         * tests/test-gc-arcfour.c: New file.
62218
62219         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
62220
62221 2005-10-19  Simon Josefsson  <jas@extundo.com>
62222
62223         * modules/gc-md4, modules/gc-md4-tests: New file.
62224
62225         * tests/test-gc-md4.c: New file.
62226
62227 2005-10-19  Simon Josefsson  <jas@extundo.com>
62228
62229         * m4/gc-md4.m4: New file.
62230
62231 2005-10-19  Simon Josefsson  <jas@extundo.com>
62232
62233         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
62234         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
62235         <kasal@ucw.cz>.
62236
62237 2005-10-19  Simon Josefsson  <jas@extundo.com>
62238
62239         * m4/gc-arcfour.m4: New file.
62240
62241         * m4/gc-rijndael.m4: New file.
62242
62243 2005-10-19  Simon Josefsson  <jas@extundo.com>
62244
62245         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
62246
62247 2005-10-19  Simon Josefsson  <jas@extundo.com>
62248
62249         * lib/gc-gnulib.c: Support ARCFOUR.
62250
62251 2005-10-19  Simon Josefsson  <jas@extundo.com>
62252
62253         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
62254         support.
62255
62256         * lib/gc.h: Add ECB enum type.
62257
62258         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
62259
62260 2005-10-18  Simon Josefsson  <jas@extundo.com>
62261
62262         * tests/test-md5.c: New file.
62263
62264         * modules/md5-tests: New file.
62265
62266 2005-10-18  Simon Josefsson  <jas@extundo.com>
62267
62268         * tests/test-md4.c: New file.
62269
62270         * modules/md4, modules/md4-tests: New files.
62271
62272 2005-10-18  Simon Josefsson  <jas@extundo.com>
62273
62274         * m4/md4.m4: New file.
62275
62276 2005-10-18  Simon Josefsson  <jas@extundo.com>
62277
62278         * lib/md4.h, lib/md4.c: New files, based on md5.?.
62279
62280 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
62281
62282         * gnulib-tool (func_create_testdir): Omit the second check whether
62283         BUILT_SOURCES in nonempty.
62284
62285 2005-10-17  Simon Josefsson  <jas@extundo.com>
62286
62287         * tests/test-rijndael.c: New file.
62288
62289 2005-10-17  Simon Josefsson  <jas@extundo.com>
62290
62291         * modules/sha1: Depend on stdint instead of md5.
62292
62293         * modules/md5: Depend on stdint, remove uint32_t.
62294
62295 2005-10-17  Simon Josefsson  <jas@extundo.com>
62296
62297         * modules/gc-sha1-tests: New file.
62298
62299         * tests/test-gc-sha1.c: New file.
62300
62301 2005-10-17  Simon Josefsson  <jas@extundo.com>
62302
62303         * m4/md5.m4: Remove call to uint32_t.m4.
62304
62305 2005-10-17  Simon Josefsson  <jas@extundo.com>
62306
62307         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
62308
62309         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
62310         md5.h.
62311
62312         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
62313
62314         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
62315
62316 2005-10-17  Simon Josefsson  <jas@extundo.com>
62317
62318         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
62319
62320 2005-10-17  Simon Josefsson  <jas@extundo.com>
62321
62322         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
62323
62324 2005-10-17  Simon Josefsson  <jas@extundo.com>
62325
62326         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
62327
62328         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
62329
62330 2005-10-17  Bruno Haible  <bruno@clisp.org>
62331
62332         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
62333         that it can also be used in a test.
62334
62335 2005-10-16  Bruno Haible  <bruno@clisp.org>
62336
62337         * gnulib-tool (func_emit_tests_Makefile_am): Also define
62338         TESTS_ENVIRONMENT, so that individual tests can augment it.
62339
62340         * gnulib-tool (func_create_testdir): Use an intermediate target for
62341         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
62342         macros, like $(ALLOCA_H), which cannot be passed through the command
62343         line.
62344
62345 2005-10-15  Simon Josefsson  <jas@extundo.com>
62346
62347         * modules/rijndael-tests: New file.
62348
62349         * modules/rijndael: New file.
62350
62351 2005-10-15  Simon Josefsson  <jas@extundo.com>
62352
62353         * m4/rijndael.m4: New file.
62354
62355 2005-10-15  Simon Josefsson  <jas@extundo.com>
62356
62357         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
62358
62359         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
62360
62361 2005-10-14  Simon Josefsson  <jas@extundo.com>
62362
62363         * tests/test-arcfour.c: New file.
62364
62365         * modules/arcfour, modules/arcfour-tests: New files.
62366
62367 2005-10-14  Simon Josefsson  <jas@extundo.com>
62368
62369         * m4/arcfour.m4: New file.
62370
62371 2005-10-14  Simon Josefsson  <jas@extundo.com>
62372
62373         * lib/arcfour.h, lib/arcfour.c: New files.
62374
62375 2005-10-14  Roland McGrath  <roland@redhat.com>
62376
62377         Import from libc.  [BZ #1331]
62378         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
62379         macro argument.
62380         Reported by Matej Vela <vela@debian.org>.
62381
62382 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62383
62384         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
62385         include <wchar.h>; no longer needed.
62386
62387 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62388
62389         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
62390
62391 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
62392         and  Ulrich Drepper  <drepper@redhat.com>
62393
62394         Import from libc.
62395         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
62396         instead of inline stream orientation test and two separate
62397         function calls.  Pay no attention to USE_IN_LIBIO.
62398
62399 2005-10-13  Simon Josefsson  <jas@extundo.com>
62400
62401         * modules/gc-hmac-md5-tests: New file.
62402
62403         * tests/test-gc-hmac-sha1.c: New file.
62404
62405         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
62406
62407         * modules/gc-hmac-md5-tests: New file.
62408
62409         * tests/test-gc-md5.c: New file.
62410
62411         * modules/gc-md5-tests: New file.
62412
62413 2005-10-13  Simon Josefsson  <jas@extundo.com>
62414
62415         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
62416         Move memory allocation outside of loop.
62417
62418 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
62419
62420         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
62421         intermediate directory is in a read-only file system.  Problem
62422         reported by Eric Blake.
62423
62424 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
62425
62426         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
62427
62428 2005-10-12  Simon Josefsson  <jas@extundo.com>
62429
62430         * tests/test-hmac-sha1.c: New file.
62431
62432         * modules/hmac-sha1-tests: New file.
62433
62434         * modules/hmac-sha1: New file.
62435
62436 2005-10-12  Simon Josefsson  <jas@extundo.com>
62437
62438         * modules/gc-sha1: New file.
62439
62440 2005-10-12  Simon Josefsson  <jas@extundo.com>
62441
62442         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
62443
62444         * tests/test-gc-pbkdf2-sha1.c: New file.
62445
62446 2005-10-12  Simon Josefsson  <jas@extundo.com>
62447
62448         * modules/gc-md5, modules/gc-hmac-md5: New files.
62449
62450         * modules/gc (Files): Remove md5, memxor and hmac files.
62451
62452 2005-10-12  Simon Josefsson  <jas@extundo.com>
62453
62454         * m4/gc-pbkdf2-sha1.m4: New file.
62455
62456         * m4/gc-hmac-sha1.m4: New file.
62457
62458         * m4/gc-sha1: New file.
62459
62460         * m4/hmac-sha1.m4: New file.
62461
62462 2005-10-12  Simon Josefsson  <jas@extundo.com>
62463
62464         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
62465
62466         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
62467
62468 2005-10-12  Simon Josefsson  <jas@extundo.com>
62469
62470         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
62471         suggested by Bruno Haible <bruno@clisp.org>.
62472
62473 2005-10-12  Simon Josefsson  <jas@extundo.com>
62474
62475         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
62476
62477 2005-10-12  Simon Josefsson  <jas@extundo.com>
62478
62479         * lib/gc-pbkdf2-sha1.c: New file.
62480
62481         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
62482
62483 2005-10-12  Simon Josefsson  <jas@extundo.com>
62484
62485         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
62486
62487         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
62488
62489 2005-10-12  Simon Josefsson  <jas@extundo.com>
62490
62491         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
62492         GC_USE_HMAC_MD5, respectively.
62493
62494         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
62495         (gc_md5): Fix typo.
62496
62497         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
62498
62499         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
62500
62501         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
62502
62503 2005-10-12  Bruno Haible  <bruno@clisp.org>
62504
62505         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
62506         Reported by Stepan Kasal <kasal@ucw.cz>.
62507
62508 2005-10-11  Simon Josefsson  <jas@extundo.com>
62509
62510         * tests/test-crc.c: New file.
62511
62512         * modules/crc, modules/crc-tests: New files.
62513
62514 2005-10-11  Simon Josefsson  <jas@extundo.com>
62515
62516         * m4/crc.m4: New file.
62517
62518 2005-10-11  Simon Josefsson  <jas@extundo.com>
62519
62520         * lib/gc.h: Add gc_hash and gc_hash_buffer.
62521
62522         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
62523
62524         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
62525
62526 2005-10-11  Simon Josefsson  <jas@extundo.com>
62527
62528         * lib/crc.h, lib/crc.c: New files.
62529
62530         * lib/gc.h (gc_hash_buffer): Add doc.
62531
62532 2005-10-11  Bruno Haible  <bruno@clisp.org>
62533
62534         * modules/c-strcasestr: New file.
62535         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
62536
62537 2005-10-11  Bruno Haible  <bruno@clisp.org>
62538
62539         * modules/c-strcase: New file.
62540         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
62541
62542 2005-10-11  Bruno Haible  <bruno@clisp.org>
62543
62544         * lib/strcasecmp.c: Include limits.h.
62545         (strcasecmp): Avoid integer overflow on exotic platforms.
62546         * lib/strncasecmp.c: Include limits.h.
62547         (strncasecmp): Avoid integer overflow on exotic platforms.
62548         Reported by Paul Eggert.
62549
62550 2005-10-11  Bruno Haible  <bruno@clisp.org>
62551
62552         * lib/c-strcasestr.h: New file, from GNU gettext.
62553         * lib/c-strcasestr.c: New file, from GNU gettext.
62554
62555 2005-10-11  Bruno Haible  <bruno@clisp.org>
62556
62557         * lib/c-strcase.h: New file, from GNU gettext.
62558         * lib/c-strcasecmp.c: New file, from GNU gettext.
62559         * lib/c-strncasecmp.c: New file, from GNU gettext.
62560
62561 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62562
62563         * modules/mempcpy (License): GPL -> LGPL.
62564         * modules/strchrnul (License): Likewise.
62565         * modules/sysexits (License): Likewise.
62566
62567 2005-10-08  Simon Josefsson  <jas@extundo.com>
62568
62569         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
62570
62571 2005-10-07  Simon Josefsson  <jas@extundo.com>
62572
62573         * m4/memxor.m4: Remove gl_C_RESTRICT call.
62574
62575 2005-10-06  Simon Josefsson  <jas@extundo.com>
62576
62577         * tests/test-hmac-md5.c: New file.
62578
62579         * modules/hmac-md5-tests: New file.
62580
62581         * modules/hmac-md5: New file.
62582
62583 2005-10-06  Simon Josefsson  <jas@extundo.com>
62584
62585         * m4/hmac-md5.m4: New file.
62586
62587         * m4/memxor.m4: Require gl_C_RESTRICT.
62588
62589 2005-10-06  Simon Josefsson  <jas@extundo.com>
62590
62591         * lib/memxor.c (memxor): Avoid casts and warnings.
62592
62593 2005-10-06  Simon Josefsson  <jas@extundo.com>
62594
62595         * lib/hmac-md5.c: New file.
62596
62597         * lib/hmac.h: New file.
62598
62599 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62600
62601         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
62602         promotes to int, not unsigned int, to catch the AIX 5.3
62603         compiler bug.
62604
62605 2005-10-05  Simon Josefsson  <jas@extundo.com>
62606
62607         * modules/memxor: New file.
62608
62609         * modules/iconv (Files): Move config.rpath to havelib, it is used
62610         there.
62611
62612         * modules/havelib (Files): Add config.rpath.
62613
62614 2005-10-05  Simon Josefsson  <jas@extundo.com>
62615
62616         * m4/memxor.m4: New file.
62617
62618 2005-10-05  Simon Josefsson  <jas@extundo.com>
62619
62620         * lib/memxor.c (memxor): Fix compiler error.
62621
62622         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
62623         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
62624
62625         * lib/memxor.h, lib/memxor.c: New files.
62626
62627         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
62628         we assume all systems have it, suggested by Jim Meyering
62629         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
62630         any systems lack sys/socket.h; mingw32 is known to lack it, but we
62631         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
62632         same reasons.
62633
62634 2005-10-05  Simon Josefsson  <jas@extundo.com>
62635
62636         * config/srclist.txt: Add glibc bug 1423 for md5.h.
62637
62638 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62639
62640         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
62641         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
62642         needed, since the source code now assumes these .h files.
62643
62644 2005-10-05  Derek Price  <derek@ximbiot.com>
62645
62646         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
62647
62648 2005-10-05  Bruno Haible  <bruno@clisp.org>
62649
62650         * modules/stdint (License): Change to LGPL.
62651
62652 2005-10-04  Simon Josefsson  <jas@extundo.com>
62653
62654         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
62655         D. Baushke" <mdb@gnu.org>.
62656
62657 2005-10-04  Bruno Haible  <bruno@clisp.org>
62658
62659         * lib/verify.h (verify_true): Provide alternative definition for C++.
62660
62661 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
62662
62663         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
62664         (SSIZE_MAX): New macro, if not already defined.
62665         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
62666         than 2 GiB.
62667
62668 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62669
62670         Sync from coreutils.
62671         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
62672         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
62673         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
62674         ULLONG_MAX doesn't work with 2.7.2.1.
62675
62676 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62677
62678         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
62679         From Ben Pfaff.
62680
62681         * modules/exclude (Depends-on): Depend on verify.
62682         * modules/strtoimax (Depends-on): Likewise.
62683         * modules/utimecmp (Depends-on): Likewise.
62684
62685 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62686
62687         * lib/exclude.c: Include verify.h.
62688         (verify): Remove.  All callers changed to use verify.h's version.
62689         * lib/strtoimax.c: Likewise.
62690         * lib/utimecmp.c: Likewis.e
62691
62692         Sync from coreutils.
62693         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
62694         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
62695         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
62696         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
62697         bother returning ENOSYS if settimeofday or stime fails; just let
62698         them return whatever errno they want to return.
62699         * lib/utimens.c: Include unistd.h, for dup2.
62700         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
62701         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
62702
62703 2005-10-02  Jim Meyering  <jim@meyering.net>
62704
62705         Sync from coreutils.
62706         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
62707         from glibc-2.2.5 that fails for read-only files.
62708
62709 2005-10-02  Jim Meyering  <jim@meyering.net>
62710
62711         Sync from coreutils.
62712         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
62713         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
62714         `#if HAVE_CONFIG_H'.
62715         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
62716         Remove AT_FDCWD test.
62717         Do not consume the fd unless successful.
62718         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
62719         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
62720         block, so that we don't even try to compile it if settimeofday is
62721         available.  This works around a compilation failure on OSF1 V5.1,
62722         due to stime requiring a `long int*' while tv_sec is `int'.
62723
62724 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
62725
62726         Sync from coreutils.
62727         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
62728         against `yes', rather than just testing for nonempty.
62729
62730 2005-10-01  Simon Josefsson  <jas@extundo.com>
62731
62732         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
62733         and Darwin.
62734
62735         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
62736         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
62737         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
62738         freeaddrinfo and gai_strerror are declared by the POSIX headers.
62739         Check if struct addrinfo is declared.
62740
62741 2005-10-01  Simon Josefsson  <jas@extundo.com>
62742
62743         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
62744         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
62745         AI_* and EAI_* definitions.  Protect function declarations.
62746
62747 2005-10-01  Jim Meyering  <jim@meyering.net>
62748
62749         Sync from coreutils.
62750
62751         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
62752         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
62753         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
62754         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62755         in the inet and nsl libraries.  Required on Solaris 5.7.
62756
62757 2005-10-01  Jim Meyering  <jim@meyering.net>
62758
62759         Sync from coreutils.
62760         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62761         in the inet and nsl libraries.  Required on Solaris 5.7.
62762
62763 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
62764
62765         * lib/getdelim.c (getdelim): Remove unused variables.
62766
62767 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62768
62769         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
62770         so that the code works even with ancient cpp.  Portability problem
62771         with GCC 2.7.2.1 reported by Thomas M.Ott.
62772
62773 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62774
62775         * modules/regex (Depends-on): Add strcase.
62776
62777         * modules/gethostname (Licence): Change from GPL to LGPL, since
62778         gethostname.c is a trivial implementation of a standard library
62779         function.
62780         * modules/poll (License): Change from GPL to LGPL, since it's
62781         derived from LGPL code.
62782
62783 2005-09-27  Jim Meyering  <jim@meyering.net>
62784
62785         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
62786         HAVE_CONFIG_H.
62787
62788         * lib/intprops.h (signed_type_or_expr__): Define.
62789         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
62790         for unsigned types.
62791
62792 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62793
62794         * lib/verify.h (verify_expr): Remove, replacing with:
62795         (verify_true): New macro that returns true instead of void.
62796         (verify_type__): Remove.
62797         (verify): Use verify_true rather than verify_type__.
62798
62799 2005-09-26  Bruno Haible  <bruno@clisp.org>
62800
62801         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
62802         is necessary.
62803         (lib_SOURCES): Remove mbchar.c.
62804         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
62805         (Files): Add m4/mbrtowc.m4.
62806         * modules/mbiter: Likewise.
62807         * modules/mbuiter: Likewise.
62808
62809 2005-09-26  Bruno Haible  <bruno@clisp.org>
62810
62811         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
62812         compile mbchar.c if they are not both present.
62813         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
62814         * m4/mbiter.m4 (gl_MBITER): Likewise.
62815         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
62816         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
62817         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
62818
62819 2005-09-25  Jim Meyering  <jim@meyering.net>
62820
62821         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
62822         also uses socklen_t.
62823
62824 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
62825
62826         * lib/utimens.c (ENOSYS): Define if not already defined.
62827         (futimens): Support having a null PATH if the file descriptor
62828         is nonnegative.
62829
62830         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
62831         Remove.
62832         (__attribute): Define to empty unless GCC 3.1 or later.
62833         This works around a core dump on OpenBSD 3.4, which has GCC
62834         2.95.3, which dumps core when given __attribute__(()).  It also
62835         simplifies other tests, since we really don't want to bother with
62836         worrying about which ancient version of GCC supported what.
62837         Original problem reported by Yoann Vandoorselaere, with part of
62838         the fix suggested by Derek Price.
62839
62840 2005-09-24  Jim Meyering  <jim@meyering.net>
62841
62842         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
62843         so we can once again use a positive bitfield width of 1 -- now we
62844         don't have to explain why we were using a bitfield width of 2.
62845
62846 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62847
62848         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
62849         and similarly for the other external symbols.  Problem reported
62850         by James Gallager.
62851
62852         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
62853         bug reported by Jim Meyering.
62854
62855         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
62856         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
62857         not needed, since socklen is a prerequisite module.
62858
62859 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62860
62861         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
62862         Problem reported by Eric Blake.
62863         (getaddrinfo): Initialize se so that it's not garbage.
62864         Redo internal storage allocation so that it doesn't make unportable
62865         assumptions about alignment.
62866         Fix a memory leak.
62867
62868         * lib/utimens.c (futimens): Use futimesat if available.
62869         Prefer it to futimes since it doesn't have the futimes bug.
62870
62871         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
62872         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
62873         Instead, declare a function that returns a pointer to an array,
62874         and use verify_type__ to declare the size of the array.
62875         Problem and germ of a solution reported by Bruno Haible.
62876         (verify_type__): Use 2, not 1, for bitfield size, to avoid
62877         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
62878
62879 2005-09-23  Jim Meyering  <jim@meyering.net>
62880
62881         Sync from coreutils.
62882         Correct build failure (socklen_t not defined) on at least
62883         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
62884         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
62885
62886 2005-09-23  Jim Meyering  <jim@meyering.net>
62887
62888         * modules/getaddrinfo (Depends-on): Add socklen.
62889
62890 2005-09-23  Bruno Haible  <bruno@clisp.org>
62891
62892         * tests/test-verify.c: New file.
62893
62894 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62895
62896         Sync from coreutils.
62897
62898         * modules/argmatch (Depends-on): Add verify.
62899         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
62900         unistd-safer.
62901         * modules/save-cwd (Depends-on): Likewise.
62902
62903         * modules/openat (Files): Add lib/openat-die.c.
62904         (Depends-on): Remove error, exitfail.
62905         Add dirname.
62906
62907         * modules/verify: New file.
62908         * MODULES.html.sh (Diagnostics <assert.h>): New section,
62909         with "verify" module.
62910
62911 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62912
62913         Sync from coreutils.
62914
62915         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
62916         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
62917         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
62918         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
62919         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
62920         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
62921         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
62922         Don't bother checking for string.h, stdlib.h, unistd.h.
62923         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
62924         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
62925         module's job.
62926         * m4/jm-macros.m4 (gl_MACROS): Likewise.
62927         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
62928
62929         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
62930         (gl_GETDATE): Use it.
62931
62932         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
62933
62934 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62935
62936         Sync from coreutils.
62937
62938         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
62939         stat-time.h.
62940         * lib/argmatch.h: Include verify.h
62941         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
62942         (ARGMATCH_ASSERT): Remove; unused.
62943         * lib/canonicalize.c: Assume STDC_HEADERS.
62944         * lib/exclude.c: Include "strcase.h".
62945         * lib/regex_internal.h [!defined _LIBC]: Likewise.
62946         * lib/getusershell.c: Include stdio--.h rather than stdio.h
62947         and stdio-safer.h.
62948         (getusershell): Call fopen, not fopen_safer.
62949         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
62950         Do not include unistd-safer.h.
62951         (save_cwd): Don't call fd_safer; no longer needed
62952         now that we include fcntl--.h.
62953
62954         * lib/getdate.y (relative_time): New type.
62955         (RELATIVE_TIME_0): New constant.
62956         (parser_control): Use relative_time instead of doing it ourselves.
62957         (%union): Add new relative_time rel member.
62958         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
62959         Now typeless.
62960         (relunit, relunit_snumber): Now of type rel.
62961         (zone, rel, relunit, get_date): Adjust to above changes.
62962
62963         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
62964         Do not include unistd-safer.h.
62965         (getloadavg): Don't call fd_safer; no longer needed
62966         now that we include fcntl--.h.
62967
62968         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
62969         (make_dir_parents): Treat ENOSYS like EEXIST.
62970
62971         Improve quality of diagnostics on restore_cwd failure.
62972         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
62973         (make_dir_parents): Last arg is now int * (for errno), not bool *.
62974         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
62975         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
62976         each time through the loop.  Do not diagnose restore_cwd failure;
62977         that is the caller's job (and perhaps the caller does not care).
62978
62979         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
62980         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
62981         If the file already exists but is not a directory, don't bother
62982         to try to make its parents.
62983         Close potential file descriptor leak if we can't chdir("/") (!).
62984         Don't always return true if chdir($PWD) fails; return true only
62985         if the requested action was done successfully (except for the
62986         chdir($PWD)).
62987         Don't log final directory unless we actually made it.
62988         Refactor to avoid duplicate code to fix up permissions.
62989         Don't attempt to fix up parent permissions if chdir($PWD) fails.
62990
62991         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
62992         to make it a bit faster and (I hope) clearer.
62993         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
62994         Fix bug in formats like %2N.
62995
62996         * lib/verify.h: New file.
62997
62998 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62999
63000         Sync from coreutils.
63001         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
63002
63003 2005-09-22  Jim Meyering  <jim@meyering.net>
63004
63005         Sync from coreutils.
63006
63007         * m4/lstat.m4 (gl_FUNC_LSTAT):
63008         Use AC_LIBSOURCES to require lstat.c and lstat.h.
63009         Remove obsolete comment.
63010         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
63011         * m4/xstrtod.m4: Likewise.
63012
63013         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
63014
63015 2005-09-22  Jim Meyering  <jim@meyering.net>
63016
63017         Sync from coreutils.
63018
63019         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
63020
63021         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
63022         the .tm_year member, since otherwise gcc-4.0 would now warn about
63023         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
63024
63025         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
63026         order to avoid an unsuppressible warning from gcc on 64-bit systems.
63027
63028         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
63029         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
63030         when run in a time zone for which daylight savings time is in effect
63031         for the starting date.
63032
63033         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
63034         stop us from restricting permissions of just-created absolute-named
63035         directories.
63036         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
63037         to restore initial working directory.
63038         * lib/mkdir-p.c (make_dir_parents): New parameter:
63039         different_working_dir, to tell caller if/when we change the working
63040         directory and are unable to return to the initial one.
63041         * lib/mkdir-p.h (make_dir_parents): Update prototype.
63042         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
63043         `return false'.  This fixes a bug introduced on 2004-07-30.
63044
63045         * lib/openat.c (fdopendir): Be sure to close the supplied
63046         file descriptor before returning.  This makes our replacement
63047         implementation a little closer to Solaris's, where fdopendir
63048         ties the file descriptor to the returned DIR* pointer.
63049         * lib/openat.c (unlinkat): New function.
63050         * lib/openat.h (unlinkat): Add prototype.
63051         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
63052         (openat_restore_fail): Rename from openat_restore_die.
63053         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
63054
63055         Provide an alternative to exiting immediately upon save_cwd or
63056         restore_cwd failure.  Now, an application can arrange e.g.,
63057         to perform a longjump in that case.
63058         * lib/openat.c: Include dirname.h.
63059         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
63060         (rpl_openat, fdopendir, fstatat): Call openat_save_die
63061         and openat_restore_die rather than calling error directly.
63062         Don't include "error.h" or "exitfail.h"; they're no longer needed.
63063
63064         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
63065         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
63066         define.
63067
63068         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
63069         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
63070                             int utc, int nanoseconds);
63071         Background:
63072         date should not have to allocate a megabyte of virtual memory to
63073         handle a format argument like +%1048575T.  When implemented with
63074         strftime, it must allocate such a buffer, use strftime to fill it
63075         in, print it, then free it.
63076         With fprintftime, it simply prints everything and exits.
63077         With no need for memory allocation, that's one fewer way to fail.
63078         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
63079         optional field width, not before, so we accept %9:z, not %:9z.
63080         (my_strftime): Be sure to use L_('x') for literals.
63081
63082         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
63083         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
63084         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
63085         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
63086         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
63087         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
63088         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
63089         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
63090         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
63091         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
63092         * lib/xgethostname.c, lib/xreadlink.c:
63093         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
63094
63095         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
63096         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
63097         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
63098         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
63099         and don't include <sys/file.h>).
63100
63101 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
63102
63103         Sync from coreutils.
63104
63105         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
63106         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
63107         [!LDAV_DONE]: Avoid unused variable warning.
63108
63109 2005-09-21  Bruno Haible  <bruno@clisp.org>
63110
63111         * lib/unicodeio.h (unicode_to_mb): New declaration.
63112
63113 2005-09-20  Derek Price  <derek@ximbiot.com>
63114
63115         * lib/getaddrinfo.c: Don't include <netdb.h> included from
63116         getaddrinfo.h.
63117
63118 2005-09-20  Bruno Haible  <bruno@clisp.org>
63119
63120         * gnulib-tool: Remove trailing slashes from the values specified for
63121         --source-base, --m4-base, --tests-base, --aux-dir.
63122         Suggested by Simon Josefsson <jas@extundo.com>.
63123
63124 2005-09-20  Bruno Haible  <bruno@clisp.org>
63125
63126         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
63127         func_modules_to_filelist, func_import, func_create_testdir): Make all
63128         sorting results locale-independent, so that gnulib-cache.m4 doesn't
63129         change when gnulib-tool is invoked in a different locale.
63130
63131 2005-09-19  Simon Josefsson  <jas@extundo.com>
63132
63133         * m4/socklen.m4: Fix typo.
63134
63135 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63136
63137         Use a consistent style for including <config.h>.
63138         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
63139         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
63140         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
63141         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
63142         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
63143         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
63144         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
63145         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
63146         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
63147         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
63148         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
63149         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
63150         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
63151         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
63152         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
63153         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
63154         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
63155         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
63156         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
63157         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
63158         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
63159         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
63160         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
63161         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
63162         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
63163         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
63164         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
63165         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
63166         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
63167         lib/xstrtoumax.c, lib/yesno.c:
63168         Standardize inclusion of config.h.
63169         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
63170         lib/inttostr.h:  Removed inclusion of config.h from header files.
63171         * lib/inttostr.c:  Adjusted in-tree users.
63172         * lib/timespec.h: Remove superfluous warning to include config.h.
63173         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
63174         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
63175         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
63176         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
63177         config.h with HAVE_CONFIG_H.
63178
63179 2005-09-19  Jim Meyering  <jim@meyering.net>
63180
63181         * modules/pathmax (License): Change to LGPL.
63182
63183 2005-09-19  Derek Price  <derek@ximbiot.com>
63184
63185         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
63186
63187 2005-09-19  Bruno Haible  <bruno@clisp.org>
63188
63189         * gnulib-tool (import): Provide default for --tests-base.
63190
63191 2005-09-19  Bruno Haible  <bruno@clisp.org>
63192
63193         * doc/quote.texi: New file, extracted from gnulib.texi.
63194         * doc/ctime.texi: New file, extracted from gnulib.texi.
63195         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
63196         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
63197         * doc/gnulib.texi: Include them.
63198
63199 2005-09-18  Bruno Haible  <bruno@clisp.org>
63200
63201         Portability fix.
63202         * gnulib-tool (func_readlink): New function.
63203         (func_ln_if_changed): Use it.
63204
63205 2005-09-18  Bruno Haible  <bruno@clisp.org>
63206
63207         * gnulib-tool: Support --with-tests also with --import.
63208         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
63209         (func_import): Use variables $testsbase and $inctests. Emit a
63210         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
63211         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
63212         SUBDIRS += $testsdir.
63213         (func_create_testdir): Update.
63214
63215 2005-09-18  Bruno Haible  <bruno@clisp.org>
63216
63217         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
63218         instead of $dry_run.
63219         (func_cp_if_changed, func_mv_if_changed): Remove functions.
63220         (func_ln_if_changed): Don't handle dry-run here.
63221         (func_import): In dry-run mode, detect more precisely which actions
63222         would be performed, and don't use "...ing" verbs.
63223
63224 2005-09-18  Bruno Haible  <bruno@clisp.org>
63225
63226         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
63227         (func_import): Use join on two temporary files instead of three nested
63228         loops, in order to determine which files are new or old.
63229
63230 2005-09-18  Bruno Haible  <bruno@clisp.org>
63231
63232         * gnulib-tool (func_import): Comment out code that spits out the
63233         new files with --dry-run.
63234
63235 2005-09-18  Bruno Haible  <bruno@clisp.org>
63236
63237         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
63238
63239 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63240
63241         * lib/stat-time.h: New file.
63242         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
63243         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
63244         in a different way.
63245         (timespec_cmp): New function.
63246         * lib/utimecmp.c: Include stat-time.h.
63247         (SYSCALL_RESOLUTION): Depend on whether various struct stat
63248         members exist, not on the obsolescent ST_MTIM_NSEC.
63249         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
63250
63251 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63252
63253         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
63254
63255 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63256
63257         * MODULES.html.sh (File system functions): Add stat-time.
63258         * modules/stat-time: New file.
63259         * modules/timespec (Files): Remove m4/st_mtim.m4; this
63260         is now done in a different way, by the stat-time module.
63261         * modules/utimecmp (Depends-on): Add stat-time.
63262
63263 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63264
63265         * m4/st_mtim.m4: Remove.  Superseded by...
63266         * m4/stat-time.m4: New file.
63267         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
63268         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
63269
63270 2005-09-15  Derek Price  <derek@ximbiot.com>
63271
63272         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
63273
63274 2005-09-15  Derek Price  <derek@ximbiot.com>
63275
63276         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
63277         * lib/regex_internal.c: Ditto, using this...
63278         (__GNUC_PREREQ): ...new macro.
63279         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
63280         using...
63281         (__GNUC_PREREQ): ...this new macro.
63282
63283         * lib/strstr.h: Include string.h. Define strstr as a macro here.
63284
63285 2005-09-15  Derek Price  <derek@ximbiot.com>
63286             Paul Eggert  <eggert@cs.ucla.edu>
63287
63288         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
63289         changes, consolidating in...
63290         * lib/regex_internal.h: ...this file.
63291
63292 2005-09-13  Jim Meyering  <jim@meyering.net>
63293
63294         * lib/canon-host.c: Filter through gnu indent and reword comments
63295         slightly.
63296         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
63297
63298 2005-09-13  Derek Price  <derek@ximbiot.com>
63299
63300         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
63301         failure.
63302         Reported by Jim Meyering  <jim@meyering.net>.
63303
63304 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63305
63306         * lib/base64.c: Typo.
63307         (base64_encode): Put b64str in initialized data section.
63308
63309 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
63310
63311         Merge glibc and coreutils changes into gnulib, plus a few
63312         extra fixes.
63313         * lib/md5.c: Use #error rather than a string.
63314         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
63315         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
63316         (__attribute__): Define to empty for non recent-GCC.
63317         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
63318         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
63319         Renamed from their non-__ counterparts, with new macros replacing
63320         them if not _LIBC.  Add __THROW attribute.
63321         (rol): Remove.
63322         (struct md5_ctx): Align buffer if using GCC.
63323         * lib/sha1.h (struct sha1_ctx): Likewise.
63324         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
63325         The old name was backwards.
63326         (NOTSWAP): Remove; not used.
63327         (rol): New macro, moved here from md5.h.
63328         (sha1_process_block): Remove a FIXME that doesn't make sense.
63329
63330 2005-09-12  Derek Price  <derek@ximbiot.com>
63331
63332         Return usable errors from canon-host.
63333         * lib/canon-host.h: New file.
63334         * lib/canon-host.c (canon_host): Wrap...
63335         (canon_host_r): ...this new function, which now relies exclusively on
63336         getaddrinfo.
63337         (ch_strerror): New function.
63338         (last_cherror): New global.
63339         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
63340         interface.
63341         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
63342         void *.
63343         (freeaddrinfo): Free ai->ai_canonname when set.
63344
63345 2005-09-12  Derek Price  <derek@ximbiot.com>
63346
63347         Make canon-host require getaddrinfo.
63348         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
63349         AC_LIBSOURCE canon-host.h.  Call...
63350         (gl_PREREQ_CANON_HOST): ...this new function, which requires
63351         gl_GETADDRINFO.
63352         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
63353
63354 2005-09-12  Derek Price  <derek@ximbiot.com>
63355
63356         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
63357         LGPL.
63358         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
63359
63360 2005-09-12  Derek Price  <derek@ximbiot.com>
63361
63362         * lib/gai_strerror.c: Include config.h when available.  Include
63363         getaddrinfo.h before other headers to test interface.
63364         Reported by Larry Jones <lawrence.jones@ugs.com>.
63365
63366 2005-09-12  Derek Price  <derek@ximbiot.com>
63367             Paul Eggert  <eggert@cs.ucla.edu>
63368
63369         * modules/glob (Files): Add glob-libc.h.
63370
63371 2005-09-12  Derek Price  <derek@ximbiot.com>
63372             Paul Eggert  <eggert@cs.ucla.edu>
63373
63374         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
63375         glob_.h, glob-libc.h.
63376         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
63377
63378 2005-09-12  Derek Price  <derek@ximbiot.com>
63379             Paul Eggert  <eggert@cs.ucla.edu>
63380
63381         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
63382         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
63383         protecting things that should be done only in gnulib contexts.
63384         * lib/glob_.h: New file, containing only the glob things needed for
63385         gnulib.
63386         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
63387         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
63388         (glob, globfree, glob_pattern_p): Now defined simply in terms of
63389         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
63390         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
63391         and to respect the namespace rules better.
63392
63393 2005-09-08  Simon Josefsson  <jas@extundo.com>
63394
63395         * modules/socklen: New file.
63396
63397 2005-09-08  Simon Josefsson  <jas@extundo.com>
63398
63399         * m4/socklen.m4: New file.
63400
63401 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63402
63403         * modules/utimens (Files): Add m4/utimbuf.m4, since
63404         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
63405         Reported by Sergey Poznyakoff.
63406
63407 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63408
63409         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
63410         definitions, since that's the preferred style in glibc.
63411         Fix a minor spacing issue, and update copyright notice to match
63412         glibc's.
63413
63414 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63415
63416         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
63417
63418 2005-09-06  Simon Josefsson  <jas@extundo.com>
63419
63420         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
63421         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
63422
63423 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63424
63425         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
63426         warning.
63427
63428 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63429
63430         * config/srclist.txt: Add glibc bug 1302.
63431
63432 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
63433
63434         Change bitset word type from unsigned int to unsigned long int,
63435         as this has better performance on typical 64-bit hosts.
63436         Port bitset code to hosts with unusual word sizes.
63437         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
63438         (build_collating_symbol):
63439         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
63440         argument is a bitset.  This is merely a style issue, but it makes
63441         it clearer that an entire array is expected.
63442         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
63443         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
63444         Port to the case where bitset_word is not the same as unsigned int.
63445         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63446         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
63447         Likewise.
63448         * lib/regexec.c (check_dst_limits_calc_pos_1,
63449         check_subexp_matching_top):
63450         (build_trtable, group_nodes_into_DFAstates):
63451         Likewise.
63452         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
63453         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
63454         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
63455         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
63456         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
63457         * lib/regcomp.c (optimize_subexps, lower_subexp):
63458         Work even if bitset_word has holes in its bitwise representation.
63459         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
63460         * lib/regexec.c (check_dst_limits_calc_pos_1,
63461         check_subexp_matching_top):
63462         Likewise.
63463         * lib/regex_internal.c (re_string_reconstruct):
63464         Don't assume UCHAR_MAX == 255.
63465         * lib/regex_internal.h (bitset_set_all): Likewise.
63466         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
63467         All uses changed.
63468         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
63469         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
63470         All uses changed.
63471         (BITSET_WORD_MAX): New macro.
63472         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
63473         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
63474         (bitset_empty, bitset_copy):
63475         Prefer sizeof (bitset) to multiplying it out ourselves.
63476         (bitset_not_merge): Remove; unused.
63477         (bitset_contain): Return bool, not unsigned int with one bit on.
63478         All callers changed.
63479         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
63480         alignment than re_node_set; do this by defining a new internal
63481         type struct dests_alloc and using it to allocate memory.
63482
63483 2005-09-05  Bruno Haible  <bruno@clisp.org>
63484
63485         * gnulib-tool (func_import): Fix comparison in handling of symbolic
63486         links.
63487
63488 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
63489
63490         * modules/size_max (Makefile.am): Add size_max.h
63491
63492 2005-09-04  Derek Price  <derek@ximbiot.com>
63493
63494         * gnulib-tool (func_import): Fix reversed $symbolic logic.
63495
63496 2005-09-03  Simon Josefsson  <jas@extundo.com>
63497
63498         * gnulib-tool: Fix typo.
63499
63500 2005-09-03  Simon Josefsson  <jas@extundo.com>
63501
63502         * config/srclist.txt: Add glibc bug 1293.
63503
63504 2005-09-03  Derek Price  <derek@ximbiot.com>
63505
63506         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
63507         From Larry Jones <lawrence.jones@ugs.com>.
63508
63509 2005-09-02  Simon Josefsson  <jas@extundo.com>
63510
63511         * modules/socklen: New file.
63512
63513 2005-09-02  Simon Josefsson  <jas@extundo.com>
63514
63515         * modules/havelib: New module.
63516
63517         * modules/gettext, modules/iconv, modules/lock, modules/readline:
63518         Use havelib.
63519
63520 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63521
63522         Check for arithmetic overflow when calculating sizes, to prevent
63523         some buffer-overflow issues.  These patches are conservative, in the
63524         sense that when I couldn't determine whether an overflow was possible,
63525         I inserted a run-time check.
63526         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
63527         macros.
63528         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
63529         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
63530         (re_xnrealloc, re_x2nrealloc): New inline functions.
63531         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
63532         parse_bracket_exp):
63533         (build_equiv_class, build_charclass): Check for arithmetic overflow
63534         in size expression calculations.
63535         * lib/regex_internal.c (re_string_realloc_buffers):
63536         (build_wcs_upper_buffer, re_node_set_add_intersect):
63537         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
63538         (re_dfa_add_node, register_state): Likewise.
63539         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
63540         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
63541         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
63542         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
63543
63544 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63545
63546         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
63547         m4/ulonglong.m4.  Problem reported by Martin Lambers.
63548
63549 2005-09-02  Bruno Haible  <bruno@clisp.org>
63550
63551         Support for lib vs. lib64 distinction on biarch platforms.
63552         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
63553         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
63554         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
63555
63556 2005-09-02  Bruno Haible  <bruno@clisp.org>
63557
63558         * gnulib-tool (import): In the other first-use case, provide defaults
63559         as well.
63560
63561 2005-09-02  Bruno Haible  <bruno@clisp.org>
63562
63563         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
63564         patches not yet found in the latest gettext release.
63565
63566 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63567
63568         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
63569         to avoid a collision with bits/local_lim.h in glibc.
63570         All uses changed.  Problem reported by Dmitry V. Levin in
63571         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
63572
63573         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
63574         bugs in int versus size_t comparisons.
63575         (re_string_context_at): Fix bug where the code assumed that
63576         Idx is signed.
63577
63578         Use bool where appropriate.
63579         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
63580         All callers changed.
63581         (calc_eclosure_iter): Likewise, for ROOT arg.
63582         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
63583         (build_charclass_op): Likewise, for NON_MATCH arg.
63584         * lib/regex_internal.c (re_string_allocate, re_string_construct):
63585         (re_string_construct_common): Likewise, for ICASE arg.
63586         * lib/regexec.c (re_search_2_stub, re_search_stub):
63587         Likewise, for RET_LEN arg.
63588         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
63589         (set_regs): Likewise, for FL_BACKTRACK arg.
63590         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
63591         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
63592         (calc_eclosure_iter, parse_bracket_exp):
63593         Use bool for internal variables that are booleans.
63594         * lib/regexec.c (re_search_internal, check_matching,
63595         proceed_next_node):
63596         (set_regs, build_sifted_states, sift_states_bkref):
63597         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
63598         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
63599         (find_collation_sequence_value):
63600         Likewise.
63601         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
63602         (re_node_set_compare):
63603         Return bool, not int. All callers changed.
63604         * lib/regexec.c (check_halt_node_context, check_dst_limits):
63605         (build_trtable, check_node_accept): Likewise.
63606         * lib/regex_internal.h: Include stdbool.h.
63607
63608         Fix bugs uncovered when converting to bool.
63609         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
63610         failure instead of charging ahead blindly.
63611         * lib/regex_internal.c (register_state): Likewise.
63612         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
63613         for freeing internal storage.
63614         (group_nodes_into_DFA_states): Use unsigned int, not int, for
63615         bitset pieces used as boolean, to avoid undefined behavior
63616         on hosts that do int overflow checking.
63617
63618 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63619
63620         * config/srclist.txt: Add glibc bugs 1285-1287.
63621
63622 2005-09-01  Jim Meyering  <jim@meyering.net>
63623
63624         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
63625         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
63626         Require gl_STAT_MACROS, too.
63627
63628 2005-09-01  Bruno Haible  <bruno@clisp.org>
63629
63630         * gnulib-tool (import): In the first-use case, provide defaults.
63631
63632 2005-09-01  Bruno Haible  <bruno@clisp.org>
63633
63634         * gnulib-tool (func_import): Remove the .tmp files.
63635
63636 2005-09-01  Bruno Haible  <bruno@clisp.org>
63637
63638         * gnulib-tool (func_import): Fix handling of symbolic links.
63639
63640 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63641
63642         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
63643         old glibc regex code mishandles strings longer than 2**31 bytes.
63644         This patch fixes this when the regex code is used in gnulib
63645         (i.e., outside glibc).
63646
63647         This patch should not affect the use of the regex code inside
63648         glibc.  No doubt this problem also needs to be handled for glibc
63649         as well, but the result will be an incompatible change to the
63650         glibc ABI, and the old ABI will have to be supported too.  That
63651         can be the the subject for another patch.
63652
63653         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
63654         governing whether the rest of this patch is active.  By default,
63655         the macro is disabled and the patch has no effect.
63656         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
63657         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
63658         (struct re_pattern_buffer, re_search, re_search_2, re_match):
63659         (re_match_2, re_set_registers): Use the new types.
63660         * lib/regex_internal.h (Idx, re_hashval_t): New types.
63661         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
63662         New macros.
63663         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
63664         (re_string_context_at, bin_tree_t, re_dfastate_t):
63665         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
63666         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
63667         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
63668         (re_string_char_size_at, re_string_wchar_at):
63669         (re_string_elem_size_at):
63670         Use the new types and macros to port to 64-bit hosts.
63671         Use unsigned types for internal values, so that the code
63672         mostly works even for arrays larger than SSIZE_MAX.
63673         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
63674         (search_duplicated_node, calc_eclosure_iter, fetch_number):
63675         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
63676         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
63677         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
63678         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
63679         (calc_inveclosure, parse_dup_op, build_range_exp):
63680         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
63681         (fetch_number, create_token_tree, mark_opt_subexp):
63682         Likewise.
63683         * lib/regex_internal.c (re_string_construct_common,
63684         create_ci_newstate):
63685         (create_cd_newstate, re_string_allocate, re_string_construct):
63686         (re_string_realloc_buffers, build_wcs_upper_buffer):
63687         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
63688         (re_string_reconstruct, re_string_peek_byte_case):
63689         (re_string_fetch_byte_case, re_string_context_at):
63690         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
63691         (re_node_set_init_copy, re_node_set_add_intersect):
63692         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63693         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63694         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
63695         (re_acquire_state, re_acquire_state_context, register_state):
63696         Likewise.
63697         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
63698         search_cur_bkref_entry):
63699         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
63700         (re_search_internal, re_search_2_stub, re_search_stub)
63701         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
63702         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
63703         (update_cur_sifted_state, check_dst_limits):
63704         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63705         (check_subexp_limits, sift_states_bkref, merge_state_array):
63706         (check_subexp_matching_top, get_subexp, get_subexp_sub):
63707         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
63708         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
63709         (expand_bkref_cache, check_node_accept_bytes):
63710         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
63711         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
63712         (acquire_init_state_context, check_halt_node_context):
63713         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
63714         (sift_states_backward, clean_state_log_if_needed):
63715         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
63716         (find_recover_state, transit_state_sb, transit_state_mb):
63717         (transit_state_bkref, build_trtable, match_ctx_clean):
63718         Likewise.
63719         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
63720         to work around an assumption that REG_MISSING is negative.
63721
63722         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
63723         (seek_collating_symbol_entry) [defined _LIBC]:
63724         (lookup_collation_sequence_value) [defined _LIBC]:
63725         (build_range_exp, build_collating_symbol) [defined _LIBC]:
63726         Use prototypes rather than old-style function definitions.
63727         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
63728         (transit_state_sb) [0]:
63729         (find_collation_sequence_value) [defined _LIBC]: Likewise.
63730
63731         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
63732         rm_eo.
63733
63734         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
63735         (optimize_subexps, lower_subexp):
63736         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
63737         since the signed shift might overflow.  Use 1u<<31 instead.
63738         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63739         Likewise.
63740         * lib/regexec.c (check_dst_limits_calc_pos_1,
63741         check_subexp_matching_top): Likewise.
63742
63743         * lib/regcomp.c (optimize_subexps, lower_subexp):
63744         Use CHAR_BIT rather than 8, for clarity.
63745         * lib/regexec.c (check_dst_limits_calc_pos_1):
63746         (check_subexp_matching_top): Likewise.
63747         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
63748         have to worry about portability issues when shifting it left.
63749         Remove no-longer-needed test for table_size > 0.
63750         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
63751         in a word, as the resulting behavior is undefined.
63752         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
63753         in one case, a <= should have been an <, and in another case the
63754         whole test was missing.
63755         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
63756         the standard name CHAR_BIT.
63757         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
63758         this is not true on one's complement and signed-magnitude hosts.
63759
63760         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
63761         next_last_offset.
63762         (struct re_dfa_t): Remove unused member states_alloc.
63763         * lib/regcomp.c (init_dfa): Don't initialize unused members.
63764
63765 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63766
63767         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
63768         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
63769         and large-file glibc and in 32-bit large-file Solaris.
63770
63771 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63772
63773         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
63774         lengths fit in regoff_t; this isn't true if regoff_t is the same
63775         width as size_t.
63776         * lib/regex.c (re_search_internal): 5th arg is LAST_START
63777         (= START + RANGE) instead of RANGE.  This avoids overflow
63778         problems when regoff_t is the same width as size_t.
63779         All callers changed.
63780         (re_search_2_stub): Check for overflow when adding the
63781         sizes of the two strings.
63782         (re_search_stub): Check for overflow when adding START
63783         to RANGE; if it occurs, substitute the extreme value.
63784
63785 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63786
63787         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
63788
63789 2005-08-31  Jim Meyering  <jim@meyering.net>
63790
63791         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
63792         a pointer-to-const.
63793         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
63794         (register_state): Likewise.
63795         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
63796         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63797         (group_nodes_into_DFAstates): Likewise.
63798
63799 2005-08-31  Jim Meyering  <jim@meyering.net>
63800
63801         * check-module: Add a FIXME comment.
63802
63803 2005-08-31  Eric Blake  <ebb9@byu.net>
63804
63805         * modules/unistd-safer (Files): Add unistd--.h.
63806         * modules/stdio-safer (Files): Add stdio--.h.
63807
63808 2005-08-31  Derek Price  <derek@ximbiot.com>
63809
63810         * lib/getdelim.c (getdelim): Return EOF on EOF.
63811         Reported by Larry Jones <lawrence.jones@ugs.com>.
63812
63813 2005-08-31  Bruno Haible  <bruno@clisp.org>
63814
63815         Avoid unnecessary diffs in the generated lib/Makefile.am.
63816         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
63817         the generated files.
63818         (func_import): Don't set cmd.
63819
63820 2005-08-31  Bruno Haible  <bruno@clisp.org>
63821
63822         * lib/strstr.c: Include <stddef.h>, for NULL.
63823         * lib/strcasestr.c: Likewise.
63824         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63825
63826 2005-08-31  Bruno Haible  <bruno@clisp.org>
63827
63828         * gnulib-tool: New option --macro-prefix.
63829         (func_import): Use macro_prefix.
63830         (import): Handle option --macro-prefix.
63831
63832 2005-08-31  Bruno Haible  <bruno@clisp.org>
63833
63834         * gnulib-tool (import): Rename most ac_* variables to cached_*.
63835         Also use new variables cached_lgpl, cached_libtool.
63836
63837 2005-08-31  Bruno Haible  <bruno@clisp.org>
63838
63839         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
63840         always instantiating them.
63841
63842 2005-08-31  Bruno Haible  <bruno@clisp.org>
63843
63844         * gnulib-tool (func_import): Read the previous cached settings
63845         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
63846         earlier added by gnulib but are now dropped. Warn when a gnulib file
63847         overwrites a non-gnulib file.
63848
63849 2005-08-31  Bruno Haible  <bruno@clisp.org>
63850
63851         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
63852         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
63853         projects that don't keep autogenerated files in CVS. Put into
63854         actioncmd only the specified modules, not the transitive closure.
63855
63856 2005-08-31  Bruno Haible  <bruno@clisp.org>
63857
63858         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
63859         Create directories that shall be filled.
63860         (import): Don't look for gl_* macros in configure.ac. Recurse across
63861         all directories containing a gnulib-cache.m4 files, if meaningful.
63862
63863 2005-08-31  Bruno Haible  <bruno@clisp.org>
63864
63865         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
63866         (import): Set seen_libtool when we see gl_LIBTOOL.
63867
63868 2005-08-31  Bruno Haible  <bruno@clisp.org>
63869
63870         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
63871         declaration macro definitions from generated gnulib.m4.
63872
63873 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
63874
63875         * lib/iconvme.h: Add prototype for iconv_alloc.
63876
63877 2005-08-29  Simon Josefsson  <jas@extundo.com>
63878
63879         * lib/iconvme.c: Fix errno.
63880
63881 2005-08-29  Bruno Haible  <bruno@clisp.org>
63882
63883         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
63884         that it works when the directory contains spaces.
63885
63886 2005-08-29  Bruno Haible  <bruno@clisp.org>
63887
63888         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
63889
63890 2005-08-29  Bruno Haible  <bruno@clisp.org>
63891
63892         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
63893         Emit more advice.
63894
63895 2005-08-29  Bruno Haible  <bruno@clisp.org>
63896         and Stepan Kasal  <kasal@ucw.cz>
63897
63898         * check-module: If more parameters are given, check each of them
63899         separately; add more exceptions, as noted by Jim Meyering.
63900         (check_module): New procedure.
63901         (%exempt_header): Now contains all exceptions.
63902
63903 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
63904
63905         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
63906
63907 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
63908
63909         * lib/iconvme.c: Split iconv_string into iconv_alloc.
63910
63911 2005-08-28  Bruno Haible  <bruno@clisp.org>
63912
63913         * m4/gnulib-tool.m4: New file.
63914
63915 2005-08-27  Jim Meyering  <jim@meyering.net>
63916
63917         * modules/unistd-safer (Files): Add pipe-safer.c.
63918         * modules/fcntl-safer (Files): Add creat-safer.c.
63919
63920 2005-08-27  Jim Meyering  <jim@meyering.net>
63921
63922         * m4/stdlib-safer.m4: New file.  From coreutils.
63923         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
63924         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
63925         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
63926         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
63927         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
63928
63929 2005-08-27  Jim Meyering  <jim@meyering.net>
63930
63931         * lib/fopen-safer.c: Merge minor changes from coreutils.
63932         * lib/dup-safer.c: Likewise.
63933         * lib/fd-safer.c: Likewise.
63934
63935         Merge from coreutils.
63936         * lib/stdio--.h: New file.
63937         * lib/stdlib--.h: New file.
63938         * lib/mkstemp-safer.c: New file.
63939
63940         GNU tar needs these.
63941         * lib/pipe-safer.c: New file.
63942         * lib/creat-safer.c: New file.
63943         * lib/fcntl--.h (creat): Define to creat_safer.
63944         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
63945         * lib/unistd--.h (pipe): Define to pipe_safer.
63946         * lib/unistd-safer.h: Declare pipe_safer.
63947
63948 2005-08-26  Simon Josefsson  <jas@extundo.com>
63949
63950         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
63951         Haible <bruno@clisp.org>.
63952
63953 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
63954
63955         * lib/regex_internal.h: Remove all references to
63956         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
63957         or better.
63958         (bitset_not, bitset_merge, bitset_not_merge):
63959         (bitset_mask, re_string_allocate, re_string_construct):
63960         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
63961         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
63962         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
63963         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
63964         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63965         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63966         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
63967         (re_acquire_state_context):
63968         Remove unnecessary forward decls.
63969         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
63970         Put __attribute at function definition,
63971         now that the function decl has been removed.
63972         * lib/regex_internal.c (re_string_peek_byte_case):
63973         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
63974         Likewise.
63975
63976 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
63977
63978         * m4/regex.m4: Add AC_PREREQ(2.50).
63979         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
63980
63981 2005-08-25  Simon Josefsson  <jas@extundo.com>
63982
63983         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
63984         __fsetlocking.
63985
63986 2005-08-25  Simon Josefsson  <jas@extundo.com>
63987
63988         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
63989         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
63990         GLIBC specific code.
63991
63992 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63993
63994         Make regex safe for g++.  This fixes one real bug (an "err"
63995         that should have been "*err").  g++ problem reported by
63996         Sam Steingold.
63997         * lib/regex_internal.h (re_calloc): New macro, consistent with
63998         re_malloc etc.  All callers of calloc changed to use re_calloc.
63999         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
64000         not int.  All callers changed.
64001         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
64002         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
64003         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
64004         (find_recover_state): Change "err" to "*err"; this fixes what
64005         appears to be a real bug.
64006         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
64007         versus int.
64008
64009 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64010
64011         * modules/regex (Depends-on): Add malloc, since the code
64012         assumes that !malloc(0) means failure.
64013
64014 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64015
64016         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
64017
64018         alloca modernization/simplification for regex.
64019         * lib/regex.c: Remove portability cruft for alloca.  This no longer
64020         needs to be at the start of the file, and can be moved into
64021         regex_internal.h and simplified.
64022         * lib/regex_internal.h: Include <alloca.h>.
64023         (__libc_use_alloca) [!defined _LIBC]: New macro.
64024         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
64025         now works outside glibc.
64026
64027 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64028
64029         * config/srclist.txt: Add glibc bugs 1241, 1245.
64030
64031 2005-08-25  Jim Meyering  <jim@meyering.net>
64032
64033         * lib/open-safer.c: Include <config.h>.
64034         Otherwise, we'd lose LARGEFILE support in any file using
64035         e.g. "fcntl--.h"
64036
64037 2005-08-25  Bruno Haible  <bruno@clisp.org>
64038
64039         * m4/minmax.m4: Require autoconf 2.52.
64040         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
64041         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
64042         alternatives of translit over the alphabet.
64043         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
64044
64045 2005-08-24  Simon Josefsson  <jas@extundo.com>
64046
64047         * tests/test-getpass.c: New file.
64048
64049 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64050
64051         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
64052         for GNU regex features.
64053
64054 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64055
64056         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
64057         * lib/regex.h (regerror): Likewise.
64058
64059         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
64060         requires this.  (The code never needed it.)
64061
64062         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
64063         All uses of recently-renamed identifiers changed to use the new,
64064         POSIX-compliant names.  The code will build and run just fine
64065         without these changes, but it's better to eat our own dog food
64066         and use the standard-conforming names.
64067
64068         * lib/regex.h: Fix a multitude of POSIX name space violations.
64069         These changes have an effect only for programs that define
64070         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
64071         do not change anything for programs compiled in the normal way.
64072         Also, there is no effect on the ABI.
64073
64074         (_REGEX_SOURCE): New macro.
64075         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
64076         defined and _GNU_SOURCE is not; this fixes a name space violation.
64077
64078         Rename the following macros to obey POSIX requirements.
64079         The old names are still visible as macros if _REGEX_SOURCE is defined.
64080         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
64081         RE_BACKSLASH_ESCAPE_IN_LISTS.
64082         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
64083         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
64084         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
64085         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
64086         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
64087         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
64088         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
64089         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
64090         (REG_INTERVALS): renamed from RE_INTERVALS.
64091         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
64092         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
64093         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
64094         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
64095         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
64096         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
64097         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
64098         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
64099         RE_UNMATCHED_RIGHT_PAREN_ORD.
64100         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
64101         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
64102         (REG_DEBUG): renamed from RE_DEBUG.
64103         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
64104         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
64105         unusual, since we can't clash with the POSIX REG_ICASE.
64106         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
64107         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
64108         (REG_NO_SUB): renamed from RE_NO_SUB.
64109         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
64110         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
64111         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
64112         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
64113         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
64114         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
64115         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
64116         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
64117         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
64118         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
64119         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
64120         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
64121         RE_SYNTAX_POSIX_MINIMAL_BASIC.
64122         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
64123         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
64124         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
64125         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
64126         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
64127         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
64128         (REG_FIXED): Renamed from REGS_FIXED.
64129         (REG_NREGS): Renamed from RE_NREGS.
64130
64131         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
64132         of other REG_* macros, since POSIX says the user is allowed to
64133         #undef these macros selectively.
64134
64135         (reg_errcode_t): Update comment stating what other tables need
64136         to be consistent.
64137
64138         Rename the following enum values to obey POSIX requirements.
64139         The old names are still visible as macros.
64140         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
64141         is not defined, since GNU is supposed to be a superset of POSIX as
64142         much as possible, and since we want reg_errcode_t to be a signed
64143         type for implementation consistency.
64144         (_REG_NOERROR): Renamed from REG_NOERROR.
64145         (_REG_NOMATCH): Renamed from REG_NOMATCH.
64146         (_REG_BADPAT): Renamed from REG_BADPAT.
64147         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
64148         (_REG_ECTYPE): Renamed from REG_ECTYPE.
64149         (_REG_EESCAPE): Renamed from REG_EESCAPE.
64150         (_REG_ESUBREG): Renamed from REG_ESUBREG.
64151         (_REG_EBRACK): Renamed from REG_EBRACK.
64152         (_REG_EPAREN): Renamed from REG_EPAREN.
64153         (_REG_EBRACE): Renamed from REG_EBRACE.
64154         (_REG_BADBR): Renamed from REG_BADBR.
64155         (_REG_ERANGE): Renamed from REG_ERANGE.
64156         (_REG_ESPACE): Renamed from REG_ESPACE.
64157         (_REG_BADRPT): Renamed from REG_BADRPT.
64158         (_REG_EEND): Renamed from REG_EEND.
64159         (_REG_ESIZE): Renamed from REG_ESIZE.
64160         (_REG_ERPAREN): Renamed from REG_ERPAREN.
64161         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
64162         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
64163         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
64164         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
64165
64166         (_REG_RE_NAME, _REG_RM_NAME): New macros.
64167         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
64168         changed.  But support the old name if the new one is not defined
64169         and if _REGEX_SOURCE.
64170
64171         Change the following member names in struct re_pattern_buffer.
64172         The old names are still supported if !_REGEX_SOURCE.
64173         The new names are always supported, regardless of _REGEX_SOURCE.
64174         (re_buffer): Renamed from buffer.
64175         (re_allocated): Renamed from allocated.
64176         (re_used): Renamed from used.
64177         (re_syntax): Renamed from syntax.
64178         (re_fastmap): Renamed from fastmap.
64179         (re_translate): Renamed from translate.
64180         (re_can_be_null): Renamed from can_be_null.
64181         (re_regs_allocated): Renamed from regs_allocated.
64182         (re_fastmap_accurate): Renamed from fastmap_accurate.
64183         (re_no_sub): Renamed from no_sub.
64184         (re_not_bol): Renamed from not_bol.
64185         (re_not_eol): Renamed from not_eol.
64186         (re_newline_anchor): Renamed from newline_anchor.
64187
64188         Change the following member names in struct re_registers.
64189         The old names are still supported if !_REGEX_SOURCE.
64190         The new names are always supported, regardless of _REGEX_SOURCE.
64191         (rm_num_regs): Renamed from num_regs.
64192         (rm_start): Renamed from start.
64193         (rm_end): Renamed from end.
64194
64195         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
64196         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
64197         Prepend __ to parameter names.
64198
64199         Undo yesterday's changes.
64200
64201 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64202
64203         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
64204         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
64205         lib/regex.c.
64206
64207 2005-08-24  Jim Meyering  <jim@meyering.net>
64208
64209         Sync from coreutils.
64210         * m4/fcntl-safer.m4: New file.
64211
64212         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
64213         and object files for this module.
64214
64215 2005-08-24  Jim Meyering  <jim@meyering.net>
64216
64217         Sync from coreutils.
64218         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
64219
64220 2005-08-24  Jim Meyering  <jim@meyering.net>
64221
64222         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
64223         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
64224
64225 2005-08-24  Jim Meyering  <jim@meyering.net>
64226
64227         * modules/fcntl-safer: New module.
64228         * modules/fts (Depends-on): Add fcntl-safer.
64229         * MODULES.html.sh (File descriptor based Input/Output):
64230         Add fcntl-safer.
64231
64232 2005-08-24  Bruno Haible  <bruno@clisp.org>
64233
64234         Support for unit test modules.
64235         * modules/README: Mention tests modules.
64236         * modules/TEMPLATE-TESTS: New file.
64237         * gnulib-tool: New options --extract-tests-module, --with-tests and
64238         --tests-base (unused for the moment).
64239         (testsbase, inctests): New variables.
64240         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
64241         (func_verify_module): Exclude TEMPLATE-TESTS.
64242         (func_verify_nontests_module, func_verify_tests_module): New functions.
64243         (func_get_dependencies): Add implicit dependency for tests modules.
64244         (func_get_tests_module): New function.
64245         (func_modules_transitive_closure): When --with-tests was specified,
64246         include the unit tests as well, unless explicitly avoided.
64247         (func_emit_lib_Makefile_am): Ignore the tests modules here.
64248         (func_emit_tests_Makefile_am): New function.
64249         (func_create_testdir): When --with-tests was specified, emit a
64250         tests/ directory.
64251         * MODULES.html.sh (Future developments): Update.
64252
64253 2005-08-24  Bruno Haible  <bruno@clisp.org>
64254
64255         * modules/tls-tests: New file.
64256         * tests/test-tls.c: New file, from GNU gettext.
64257
64258 2005-08-24  Bruno Haible  <bruno@clisp.org>
64259
64260         * modules/lock-tests: New file.
64261         * tests/test-lock.c: New file, from GNU gettext.
64262
64263 2005-08-24  Bruno Haible  <bruno@clisp.org>
64264
64265         * lib/lock.h: Add multiple inclusion guard.
64266         * lib/tls.h: Add multiple inclusion guard.
64267
64268 2005-08-24  Bruno Haible  <bruno@clisp.org>
64269
64270         * gnulib-tool: Add support for the --aux-dir option to
64271         --create-testdir, --create-megatestdir, --test, --megatest.
64272         (func_create_testdir, func_create_megatestdir): Optionally emit a
64273         AC_CONFIG_AUX_DIR directive.
64274         (create-testdir, create-megatestdir, test, megatest): Provide a
64275         default value for $auxdir.
64276
64277 2005-08-24  Bruno Haible  <bruno@clisp.org>
64278
64279         * gnulib-tool (import): Use compound statement instead of subshell
64280         where possible.
64281
64282 2005-08-24  Bruno Haible  <bruno@clisp.org>
64283
64284         * gnulib-tool (import): Change --aux-dir default to "build-aux".
64285
64286 2005-08-24  Bruno Haible  <bruno@clisp.org>
64287
64288         * gnulib-tool (func_version): Update.
64289
64290 2005-08-24  Bruno Haible  <bruno@clisp.org>
64291
64292         * gnulib-tool (func_import, func_create_testdir,
64293         func_create_megatestdir): Quote all autoconf macro arguments.
64294
64295 2005-08-24  Bruno Haible  <bruno@clisp.org>
64296
64297         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
64298         option --force, because --force causes the aclocal.m4 of each
64299         subdirectory to be newer than the corresponding config.h.in.
64300
64301 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64302
64303         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
64304         All contents moved to gl_REGEX.
64305         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
64306         assume that it does.
64307
64308 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64309
64310         * lib/regex.h (REG_NOSYS)
64311         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
64312         Define, since POSIX requires it as of 2001.
64313         (_REG_ENOSYS)
64314         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
64315         New private symbol, used to keep the enum signed in all cases.
64316         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
64317         Youngman in
64318         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
64319
64320         * lib/regex_internal.c (re_string_skip_chars, register_state):
64321         (calc_state_hash):
64322         Remove forward decls; no longer needed now that we use prototypes.
64323         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
64324         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
64325         (clean_state_log_if_needed): Likewise.
64326
64327 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64328
64329         * config/srclist.txt: Add glibc bugs 1231-1233.
64330
64331 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64332
64333         Fix problems reported by Sam Steingold in
64334         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
64335         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
64336         assumed that reg_errcode_t is a signed type, which is not
64337         necessarily true if _XOPEN_SOURCE is not defined.
64338         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
64339         since some compilers warn about it otherwise.
64340
64341 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64342
64343         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
64344         (init_word_char, create_initial_state, duplicate_node_closure):
64345         (fetch_token, peek_token_bracket, build_range_exp):
64346         (build_collating_symbol): Remove forward decls; no longer needed
64347         now that we use prototypes.
64348
64349         * lib/regcomp.c:
64350         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
64351         (re_compile_fastmap_iter, regcomp, regerror, regfree):
64352         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
64353         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
64354         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
64355         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
64356         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
64357         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
64358         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
64359         (build_range_exp, build_collating_symbol, parse_bracket_exp):
64360         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
64361         (build_charclass, build_charclass_op, fetch_number, create_tree):
64362         (create_token_tree, mark_opt_subexp, duplicate_tree):
64363         Use prototypes rather than old-style definitions.
64364
64365         * lib/regex_internal.c:
64366         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
64367         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
64368         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64369         (re_string_reconstruct, re_string_peek_byte_case):
64370         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
64371         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64372         (re_node_set_init_copy, re_node_set_add_intersect):
64373         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64374         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64375         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64376         (re_acquire_state, re_acquire_state_context, register_state):
64377         (create_ci_newstate, create_cd_newstate, free_state):
64378         Likewise.
64379         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
64380         re_search_2):
64381         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
64382         (re_search_internal, prune_impossible_nodes):
64383         (acquire_init_state_context, check_matching, static):
64384         (check_halt_node_context, check_halt_state_context, proceed_next_node):
64385         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
64386         (update_regs, sift_states_backward, build_sifted_states):
64387         (clean_state_log_if_needed, merge_state_array):
64388         (update_cur_sifted_state, add_epsilon_src_nodes):
64389         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
64390         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
64391         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
64392         (find_recover_state, check_subexp_matching_top, transit_state_mb):
64393         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
64394         (check_arrival, check_arrival_add_next_nodes):
64395         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64396         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64397         (check_node_accept_bytes, check_node_accept, extend_buffers):
64398         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
64399         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
64400         (sift_ctx_init):
64401         Likewise.
64402
64403         * lib/regex_internal.h:
64404         (re_string_allocate, re_string_construct, re_string_reconstruct):
64405         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
64406         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
64407         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
64408         (re_string_context_at, re_string_peek_byte_case):
64409         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
64410         is defined, since we now use prototypes always.
64411
64412         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
64413         C89 or better.  All uses removed.
64414
64415 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64416
64417         * config/srclist.txt: Add glibc bugs 1220-1227.
64418
64419 2005-08-20  Jim Meyering  <jim@meyering.net>
64420
64421         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
64422         of unused local, dfa.
64423
64424 2005-08-20  Bruno Haible  <bruno@clisp.org>
64425
64426         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
64427
64428 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64429
64430         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
64431         (re_node_set_insert_last, re_dfa_add_node):
64432         Rename local variables to avoid GCC shadowing warnings.
64433
64434 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64435
64436         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
64437         [defined lint]: Suppress bogus uninitialized-variable warnings.
64438
64439         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
64440         and let the caller return REG_ESPACE if out of space.  This
64441         removes an uninitialied-variable warning with GCC 4.0.1, and also
64442         avoids taking the address of a local variable.  All callers
64443         changed.
64444
64445 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64446
64447         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
64448         $LIBCSRC/posix/regexec.c.
64449         Add glibc bug 1217 for regcomp.c.
64450
64451 2005-08-19  Jim Meyering  <jim@meyering.net>
64452
64453         * lib/regexec.c (proceed_next_node): Redo local variables to
64454         avoid GCC shadowing warnings.
64455
64456 2005-08-18  Bruno Haible  <bruno@clisp.org>
64457
64458         * lib/strstr.c (strstr): Fix return value in multibyte case.
64459         * lib/strcasestr.c (strcasestr): Likewise.
64460
64461 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64462
64463         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
64464
64465 2005-08-17  Jim Meyering  <jim@meyering.net>
64466
64467         Make the %s format (seconds since the epoch) work for a negative
64468         number and when used with a zero-padded field width, e.g. %015s.
64469
64470         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
64471         label so that it precedes the code to set `digits'.  Otherwise,
64472         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
64473         print `00-22'.  Now, it prints `-0022', as it should.
64474
64475 2005-08-17  Bruno Haible  <bruno@clisp.org>
64476
64477         * modules/strstr (Files): Add m4/mbrtowc.m4.
64478         (Depends-on): Add mbuiter.
64479
64480 2005-08-17  Bruno Haible  <bruno@clisp.org>
64481
64482         * modules/strcasestr: New file.
64483         * MODULES.html.sh (String handling, based on ANSI C 89): Add
64484         strcasestr.
64485
64486 2005-08-17  Bruno Haible  <bruno@clisp.org>
64487
64488         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
64489
64490 2005-08-17  Bruno Haible  <bruno@clisp.org>
64491
64492         * modules/mbuiter: New file.
64493         * MODULES.html.sh (Extended multibyte and wide character utilities):
64494         Add mbuiter.
64495
64496 2005-08-17  Bruno Haible  <bruno@clisp.org>
64497
64498         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
64499         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
64500
64501 2005-08-17  Bruno Haible  <bruno@clisp.org>
64502
64503         * m4/strcasestr.m4: New file.
64504
64505 2005-08-17  Bruno Haible  <bruno@clisp.org>
64506
64507         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
64508         * lib/strstr.c: Completely rewritten, with multibyte locale support.
64509
64510 2005-08-17  Bruno Haible  <bruno@clisp.org>
64511
64512         * lib/strcasestr.h: New file.
64513         * lib/strcasestr.c: New file.
64514
64515 2005-08-17  Bruno Haible  <bruno@clisp.org>
64516
64517         * lib/strcasecmp.c: Use mbuiter.h.
64518
64519 2005-08-17  Bruno Haible  <bruno@clisp.org>
64520
64521         * lib/mbuiter.h: New file.
64522
64523 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64524
64525         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
64526         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
64527         and gl_GETOPT are both invoked via different paths (as happens
64528         with GNU tar CVS because it uses both argp and getopt), the former
64529         wins.
64530
64531 2005-08-16  Bruno Haible  <bruno@clisp.org>
64532
64533         * modules/tls: New file.
64534         * MODULES.html.sh (Multithreading): Add tls.
64535
64536 2005-08-16  Bruno Haible  <bruno@clisp.org>
64537
64538         * modules/strnlen1: New file.
64539         * MODULES.html.sh (String handling): Add strnlen1.
64540
64541 2005-08-16  Bruno Haible  <bruno@clisp.org>
64542
64543         * modules/strcase (Files): Add m4/mbrtowc.m4.
64544         (Depends-on): Add strnlen1, mbchar.
64545
64546 2005-08-16  Bruno Haible  <bruno@clisp.org>
64547
64548         * modules/mbiter: New file.
64549         * MODULES.html.sh (Extended multibyte and wide character utilities):
64550         Add mbiter.
64551
64552 2005-08-16  Bruno Haible  <bruno@clisp.org>
64553
64554         * modules/mbfile: New file.
64555         * MODULES.html.sh (Extended multibyte and wide character utilities):
64556         Add mbfile.
64557
64558 2005-08-16  Bruno Haible  <bruno@clisp.org>
64559
64560         * modules/mbchar: New file.
64561         * MODULES.html.sh (Extended multibyte and wide character utilities):
64562         New section.
64563
64564 2005-08-16  Bruno Haible  <bruno@clisp.org>
64565
64566         * m4/tls.m4: New file, from GNU gettext.
64567
64568 2005-08-16  Bruno Haible  <bruno@clisp.org>
64569
64570         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
64571         always.
64572         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
64573
64574 2005-08-16  Bruno Haible  <bruno@clisp.org>
64575
64576         * m4/mbiter.m4: New file.
64577
64578 2005-08-16  Bruno Haible  <bruno@clisp.org>
64579
64580         * m4/mbfile.m4: New file.
64581
64582 2005-08-16  Bruno Haible  <bruno@clisp.org>
64583
64584         * m4/mbchar.m4: New file.
64585
64586 2005-08-16  Bruno Haible  <bruno@clisp.org>
64587
64588         * lib/tls.h: New file, from GNU gettext.
64589         * lib/tls.c: New file, from GNU gettext.
64590
64591 2005-08-16  Bruno Haible  <bruno@clisp.org>
64592
64593         * lib/strnlen1.h: New file.
64594         * lib/strnlen1.c: New file.
64595
64596 2005-08-16  Bruno Haible  <bruno@clisp.org>
64597
64598         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
64599         (mbi_init): Update.
64600         (mbi_avail, mbi_advance): Let the iteration end before the terminating
64601         NUL byte, not after it.
64602
64603 2005-08-16  Bruno Haible  <bruno@clisp.org>
64604
64605         * lib/strcase.h (strcasecmp): Add note in comments.
64606         * lib/strncasecmp.c: Use code from strcasecmp.c.
64607         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
64608         (strcasecmp): Work correctly in multibyte locales.
64609
64610 2005-08-16  Bruno Haible  <bruno@clisp.org>
64611
64612         * lib/mbiter.h: New file.
64613
64614 2005-08-16  Bruno Haible  <bruno@clisp.org>
64615
64616         * lib/mbfile.h: New file.
64617
64618 2005-08-16  Bruno Haible  <bruno@clisp.org>
64619
64620         * lib/mbchar.h: New file.
64621         * lib/mbchar.c: New file.
64622
64623 2005-08-16  Bruno Haible  <bruno@clisp.org>
64624
64625         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
64626         the valid ones. Makes the comparison operations transitive:
64627         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
64628         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
64629
64630 2005-08-15  Simon Josefsson  <jas@extundo.com>
64631
64632         * modules/ssize_t (License): Change to 'unlimited'.
64633
64634         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
64635
64636 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64637
64638         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
64639         Add comments for each pending glibc patch.
64640
64641 2005-08-15  Bruno Haible  <bruno@clisp.org>
64642
64643         * lib/regex.h (__restrict_arr): Don't define to __restrict if
64644         __cplusplus is defined.
64645
64646 2005-08-14  Jim Meyering  <jim@meyering.net>
64647
64648         Sync from coreutils.
64649
64650         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
64651         Use the hash-table-based cycle-detection code not just when
64652         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
64653         Reported by James Youngman in
64654         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
64655         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
64656         FTS_TIGHT_CYCLE_CHECK.
64657         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
64658         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
64659         once again.
64660         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
64661         * lib/fts.c (fd_safer): Remove decl.
64662         Include fcntl--.h rather than unistd-safer.h
64663         (fts_safe_changedir): Don't call fd_safer; no longer needed
64664         now that we include fcntl--.h.
64665
64666 2005-08-12  Simon Josefsson  <jas@extundo.com>
64667
64668         * modules/getndelim2: Use ssize_t module.
64669         * modules/getnline: Likewise.
64670         * modules/safe-read: Likewise.
64671         * modules/xreadlink: Likewise.
64672
64673         * modules/ssize_t: New file.
64674
64675 2005-08-12  Simon Josefsson  <jas@extundo.com>
64676
64677         * m4/readline.m4: Look for termcap, curses or ncurses if required.
64678
64679 2005-08-12  Simon Josefsson  <jas@extundo.com>
64680
64681         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64682         ssize_t.
64683
64684 2005-08-12  Simon Josefsson  <jas@extundo.com>
64685
64686         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
64687         readline, getdelim and check_version.
64688         (Support for systems lacking ISO C 99: Sizes of integer types):
64689         Add size_max.
64690
64691 2005-08-12  Bruno Haible  <bruno@clisp.org>
64692
64693         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
64694
64695 2005-08-11  Simon Josefsson  <jas@extundo.com>
64696
64697         * modules/readline: New file.
64698
64699         * modules/strnlen (Files): Add strnlen.h.
64700
64701 2005-08-11  Simon Josefsson  <jas@extundo.com>
64702
64703         * m4/readline.m4: New file.
64704
64705 2005-08-11  Simon Josefsson  <jas@extundo.com>
64706
64707         * lib/readline.h, readline.c: New file.
64708
64709 2005-08-11  Simon Josefsson  <jas@extundo.com>
64710
64711         * doc/gnulib.texi (Initial import, Finishing touches): Mention
64712         gl_AVOID.
64713
64714 2005-08-11  Bruno Haible  <bruno@clisp.org>
64715
64716         * lib/strnlen.h (strnlen): Change parameter name to match comment.
64717
64718 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
64719
64720         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
64721
64722 2005-08-10  Simon Josefsson  <jas@extundo.com>
64723
64724         * tests/test-iconvme.c: New file.
64725
64726 2005-08-10  Simon Josefsson  <jas@extundo.com>
64727
64728         * m4/strnlen.m4: New file.
64729
64730         * m4/strndup.m4: Don't check for strnlen declaration, done in
64731         strnlen.m4.
64732
64733 2005-08-10  Simon Josefsson  <jas@extundo.com>
64734
64735         * lib/strndup.c: Use strnlen.h.
64736
64737         * lib/strnlen.h: New file.
64738
64739 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64740
64741         * README: Typos.
64742
64743 2005-08-02  Simon Josefsson  <jas@extundo.com>
64744
64745         * modules/readline: New file.
64746
64747 2005-08-02  Simon Josefsson  <jas@extundo.com>
64748
64749         * modules/getdelim: New file.
64750
64751         * modules/getline: Rewrite, don't use getndelim2.
64752
64753 2005-08-02  Simon Josefsson  <jas@extundo.com>
64754
64755         * m4/getline.m4: Separate out getdelim stuff into separate module.
64756
64757         * m4/getdelim.m4: New file.
64758
64759 2005-08-02  Simon Josefsson  <jas@extundo.com>
64760
64761         * lib/getline.h, getline.c: Rewrite.
64762
64763         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
64764
64765 2005-07-31  Bruno Haible  <bruno@clisp.org>
64766
64767         * lib/lock.h (gl_lock_initializer): New macro.
64768         (gl_lock_define_initialized): Use it.
64769         (gl_rwlock_initializer): New macro.
64770         (gl_rwlock_define_initialized): Use it.
64771         (gl_recursive_lock_initializer): New macro.
64772         (gl_recursive_lock_define_initialized): Use it.
64773
64774 2005-07-30  Karl Berry  <karl@gnu.org>
64775
64776         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
64777         Report from Ben Pfaff, regarding getopt.
64778
64779 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
64780
64781         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
64782         normal way.
64783         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
64784         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
64785         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
64786         (gl_GETOPT): Use the new macros.  Most of the implementation
64787         is moved to the new macros.  This is for programs like Emacs
64788         that don't want all the functionality of gl_GETOPT.
64789
64790 2005-07-26  Bruno Haible  <bruno@clisp.org>
64791
64792         * m4/lock.m4: Update from GNU gettext.
64793
64794 2005-07-26  Bruno Haible  <bruno@clisp.org>
64795
64796         * lib/lock.h: Update from GNU gettext.
64797         * lib/lock.c: Update from GNU gettext.
64798
64799 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
64800
64801         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
64802         obsolescent AC_TRY_RUN.  Include the default includes files, for
64803         'exit'.
64804
64805 2005-07-24  Bruno Haible  <bruno@clisp.org>
64806
64807         * modules/visibility: New file.
64808         * MODULES.html.sh (Misc): Add visibility.
64809
64810 2005-07-24  Bruno Haible  <bruno@clisp.org>
64811
64812         * m4/visibility.m4: New file.
64813
64814 2005-07-24  Bruno Haible  <bruno@clisp.org>
64815
64816         * doc/visibility.texi: New file.
64817
64818 2005-07-22  Bruno Haible  <bruno@clisp.org>
64819
64820         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
64821         $(ALLOCA_H), redundant through BUILT_SOURCES.
64822         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
64823         redundant through BUILT_SOURCES.
64824         * modules/byteswap (Makefile.am): Remove explicit dependency on
64825         $(BYTESWAP_H), redundant through BUILT_SOURCES.
64826         * modules/fnmatch (Makefile.am): Remove explicit dependency on
64827         $(FNMATCH_H), redundant through BUILT_SOURCES.
64828         * modules/getopt (Makefile.am): Remove explicit dependency on
64829         $(GETOPT_H), redundant through BUILT_SOURCES.
64830         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
64831         redundant through BUILT_SOURCES.
64832         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
64833         redundant through BUILT_SOURCES.
64834         * modules/stdbool (Makefile.am): Remove explicit dependency on
64835         $(STDBOOL_H), redundant through BUILT_SOURCES.
64836         * modules/stdint (Makefile.am): Remove explicit dependency on
64837         $(STDINT_H), redundant through BUILT_SOURCES.
64838         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
64839         Remove explicit dependency on $(SYSEXITS_H).
64840         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
64841
64842 2005-07-18  Simon Josefsson  <jas@extundo.com>
64843
64844         * lib/check-version.c (check_version): Accept identical versions too.
64845
64846 2005-07-18  Bruno Haible  <bruno@clisp.org>
64847
64848         * modules/lock: New file.
64849         * MODULES.html.sh (Multithreading): New section.
64850
64851 2005-07-18  Bruno Haible  <bruno@clisp.org>
64852
64853         * m4/lock.m4: New file, from GNU gettext.
64854
64855 2005-07-18  Bruno Haible  <bruno@clisp.org>
64856
64857         * lib/lock.h: New file, from GNU gettext.
64858         * lib/lock.c: New file, from GNU gettext.
64859
64860 2005-07-18  Bruno Haible  <bruno@clisp.org>
64861
64862         * lib/lock.h (gl_once_t): New type.
64863         (gl_once_define, gl_once): New macros.
64864         * lib/lock.c (fresh_once): New variable.
64865         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
64866         functions.
64867
64868 2005-07-16  Simon Josefsson  <jas@extundo.com>
64869
64870         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
64871         workaround, suggested by Bruno.
64872
64873 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64874
64875         * modules/xalloc (Depends-on): Add xalloc-die.
64876         * modules/xvasprintf (Depends-on): Add xalloc-die.
64877
64878 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64879
64880         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
64881         with a minor change.
64882
64883 2005-07-15  Bruno Haible  <bruno@clisp.org>
64884
64885         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
64886         When using lib/poll.c, define poll as rpl_poll.
64887
64888 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
64889
64890         * modules/argp (Depends-on): Remove unlocked-io.
64891
64892 2005-07-14  Derek Price  <derek@ximbiot.com>
64893
64894         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
64895         for glob symlink bug.
64896
64897 2005-07-14  Bruno Haible  <bruno@clisp.org>
64898
64899         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
64900         Instead, test for *_unlocked function declarations directly.
64901
64902 2005-07-11  Simon Josefsson  <jas@extundo.com>
64903
64904         * modules/size_max: New file.
64905
64906         * modules/xsize: Depend on size_max module for size_max.m4.
64907
64908 2005-07-11  Simon Josefsson  <jas@extundo.com>
64909
64910         * lib/size_max.h: New file.
64911
64912 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
64913
64914         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
64915         copyright symbol and the year.
64916         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
64917         (version_etc_va): Use parameterized copyright notice.
64918         Reword to conform to the current GNU coding standards.
64919
64920 2005-07-11  Karl Berry  <karl@gnu.org>
64921
64922         * doc/gnulib.texi (Quoting): new node.
64923         (Initial import): more info, from Patrice.
64924
64925 2005-07-11  Bruno Haible  <bruno@clisp.org>
64926
64927         * gnulib-tool (func_usage): Document option --avoid.
64928         (Command line options): Handle --avoid.
64929         (func_acceptable): New function.
64930         (func_modules_transitive_closure): Use it.
64931
64932 2005-07-11  Bruno Haible  <bruno@clisp.org>
64933
64934         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
64935         Reported by Jim Meyering.
64936
64937 2005-07-10  Bruno Haible  <bruno@clisp.org>
64938
64939         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
64940         Needed when size_t is smaller than 'unsigned int'.
64941         Reported by Paul Eggert.
64942
64943 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64944
64945         * modules/argp (Depends-on): Add unlocked-io
64946
64947 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64948
64949         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
64950         block of defines.
64951
64952 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64953
64954         * config/srclist.txt: Comment out regcomp.c, since we have a porting
64955         fix now.
64956
64957 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
64958         and Paul Eggert  <eggert@cs.ucla.edu>
64959
64960         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
64961         in wint_t, not wchar_t.  Remove now-unnecessary cast.
64962
64963 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64964
64965         * modules/regex (Files): Add lib/regex_internal.c,
64966         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
64967         (Depends-on): Add extensions.
64968         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
64969
64970 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64971
64972         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
64973         pathconf.
64974         * m4/same.m4 (gl_SAME): Likewise.
64975         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
64976
64977         * m4/regex.m4: Adjust to new libc regex implementation.
64978         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
64979         all the .c and .h parts of (the new) regex.
64980         Quote the m4 stuff better.
64981         Check for RE_ICASE bug of old gnulib.
64982         Check for REG_STARTEND of recent libc.
64983         Rename local variables from jm_* to gl_*.
64984         Quote operand of "test -f".
64985         Say "recent enough" version of libc, not "version 2".
64986         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
64987         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
64988         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
64989         Remove check for btowc, isascii.
64990         Require AM_LANGINFO_CODESET.
64991
64992 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64993
64994         * lib/regex.c, regex.h: Sync from libc.
64995         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
64996         * lib/regexec.c:
64997         New files, synced from libc, except that regex_internal.h
64998         currently has a small porting fix.
64999
65000 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65001
65002         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
65003         regex_internal.c, regexec.c.
65004         Add regex_internal.h too, but as a comment, since the libc version
65005         is currently broken in gnulib mode.
65006
65007 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65008
65009         Support programs like Emacs that use gnulib but not gettext.
65010         * MODULES.html.sh (Internationalization functions): Add gettext-h.
65011         * modules/gettext-h: New file.
65012         * modules/gettext (Files): Remove lib/gettext.h.
65013         (Depends-on): Add gettext-h.
65014         (Makefile.am): Remove lib_SOURCES.
65015         * modules/argmatch, modules/c-stack, modules/closeout:
65016         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
65017         * modules/execute, modules/file-type, modules/getaddrinfo:
65018         * modules/getopt, modules/human, modules/javacomp:
65019         * modules/javaexec, modules/mkdir-p, modules/obstack:
65020         * modules/openat, modules/pagealign_alloc, modules/pipe:
65021         * modules/quotearg, modules/regex, modules/rpmatch:
65022         * modules/unicodeio, modules/userspec, modules/version-etc:
65023         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
65024         * modules/xsetenv:
65025         Depend on gettext-h, not gettext.
65026
65027 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65028
65029         * gnulib-tool (func_import): Add support for 'public domain' license.
65030         * modules/alloca, modules/atexit, modules/memmove:
65031         Now public domain, not GPL.
65032         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
65033         * modules/realloc, modules/strerror, modules/strtod:
65034         Now LGPL, not GPL.
65035
65036 2005-07-05  Bruno Haible  <bruno@clisp.org>
65037
65038         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
65039         autoconf CVS. Needed for mingw.
65040
65041 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65042
65043         Remove the dependency of the strftime module on the tzset module.
65044         * modules/strftime (Depends-on): Remove dependency on tzset.
65045
65046 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65047
65048         Remove the dependency of the strftime module on the tzset module.
65049         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
65050         gl_FUNC_TZSET_CLOBBER.
65051
65052 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65053
65054         Remove the dependency of the strftime module on the tzset module.
65055         * lib/strftime.c (my_strftime)
65056         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
65057         Copy the input structure, to work around some of the bug with
65058         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
65059         Solaris releases, you should also use the tzset module, but we won't
65060         require it as a dependency any more since we don't want LGPLed code
65061         to depend on GPLed code.
65062
65063 2005-07-02  Jim Meyering  <jim@meyering.net>
65064
65065         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
65066         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
65067         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
65068         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
65069
65070 2005-07-02  Jim Meyering  <jim@meyering.net>
65071
65072         * lib/backupfile.c (backup_args): Change a `0' to NULL.
65073
65074 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65075
65076         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
65077         declares only 'struct timespec;' (!).
65078
65079 2005-07-01  Jim Meyering  <jim@meyering.net>
65080
65081         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
65082         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
65083         * lib/save-cwd.c, tempname.c:
65084         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65085         and don't include <sys/file.h>).
65086
65087 2005-06-29  Jim Meyering  <jim@meyering.net>
65088
65089         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
65090         type name.  Use the variable name instead.
65091         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
65092         Likewise.
65093
65094 2005-06-28  Simon Josefsson  <jas@extundo.com>
65095
65096         * modules/check-version (Files): Add check-version.m4.
65097
65098 2005-06-28  Simon Josefsson  <jas@extundo.com>
65099
65100         * m4/check-version.m4: New file, suggested by Jim Meyering
65101         <jim@meyering.net>.
65102
65103 2005-06-28  Simon Josefsson  <jas@extundo.com>
65104
65105         * lib/check-version.h, lib/check-version.c: New files.
65106
65107 2005-06-28  Simon Josefsson  <jas@extundo.com>
65108
65109         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
65110         collision with global variable.  Better indentation.  Don't
65111         increment buffer pointer beyond buffer end.  Based on comments
65112         from Paul Eggert <eggert@cs.ucla.edu>.
65113
65114         * lib/base64.h: Indent.
65115
65116 2005-06-28  Simon Josefsson  <jas@extundo.com>
65117
65118         * doc/gnulib.texi (Library version handling): New section.
65119
65120 2005-06-28  Jim Meyering  <jim@meyering.net>
65121
65122         * check-module (find_included_lib_files): Hard-code another
65123         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
65124         but modules/fts-lgpl (correctly) does not list those files.
65125
65126         * modules/canonicalize (Files): Add lib/pathmax.h.
65127
65128 2005-06-25  Simon Josefsson  <jas@extundo.com>
65129
65130         * modules/check-version: New file.
65131
65132 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
65133
65134         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
65135         initializer of struct addrinfo, as an indication that we don't
65136         care how many members the structure has.
65137
65138 2005-06-24  Derek Price  <derek@ximbiot.com>
65139         and Bruno Haible  <bruno@clisp.org>
65140
65141         Remove stat module & update lstat.
65142         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
65143         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65144         * m4/stat.m4: Remove this file.
65145
65146 2005-06-24  Derek Price  <derek@ximbiot.com>
65147         and Bruno Haible  <bruno@clisp.org>
65148
65149         Remove stat module & update lstat.
65150         * lib/stat.c: Remove this file...
65151         (slash_aware_lstat): ...moving this content and its support...
65152         * lib/lstat.c (rpl_lstat): ...into here.
65153         * lib/lstat.h: New file.
65154
65155 2005-06-24  Derek Price  <derek@ximbiot.com>
65156         and Bruno Haible  <bruno@clisp.org>
65157
65158         Remove stat module & update lstat.
65159         * config/srclist.txt (libc sources): Remove stat.
65160
65161 2005-06-24  Derek Price  <derek@ximbiot.com>
65162         and Bruno Haible  <bruno@clisp.org>
65163
65164         Remove stat module & update lstat.
65165         * MODULES.html.sh (stat): Remove.
65166         * MODULES.html: Regenerated.
65167         * modules/lstat (Description): Correct function name.
65168         (Files): Add "lstat.h".
65169         (Depends-on): Remove stat, add xalloc, stat-macros.
65170         * modules/stat: Remove this file.
65171         (Include): Add "lstat.h", remove <sys/stat.h>.
65172
65173 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65174
65175         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
65176         (ranged_convert): Don't save conversion in a temporary struct.
65177         This causes a warning with GCC 4.0.0, and anyway in the typical
65178         case it's not worth the extra 100 bytes or so of code.
65179         (ranged_convert, __mktime_internal): When calling a function via a
65180         pointer P, use P () rather than (*P) (), as we now assume C89 or
65181         better.
65182
65183 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65184
65185         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
65186         "who -r" failed to give output.  Problem reported by Tim Waugh.
65187
65188         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
65189         (xcalloc): Use it to avoid needless tests.
65190         Problem reported by Jim Meyering.
65191
65192 2005-06-20  Derek Price  <derek@ximbiot.com>
65193
65194         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
65195         unnecessary for Autoconfs > 2.59c.
65196
65197 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65198
65199         * lib/argp.h (__option_is_short): Check upper limit of
65200         __key. Isprint() requires its argument to have the value
65201         of an unsigned char or EOF.
65202
65203 2005-06-16  Jim Meyering  <jim@meyering.net>
65204
65205         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
65206         when either N or S is zero.
65207
65208 2005-06-16  Derek Price  <derek@ximbiot.com>
65209
65210         * m4/bison.m4: Declare YACC & YFLAGS precious.
65211
65212 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
65213
65214         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
65215         multibyte string or pattern, fall back on unibyte matching.
65216         Problem reported by James Youngman.
65217
65218 2005-06-08  Bruno Haible  <bruno@clisp.org>
65219
65220         * modules/csharpcomp: New file.
65221         * MODULES.html.sh (C#): Add csharpcomp.
65222
65223 2005-06-08  Bruno Haible  <bruno@clisp.org>
65224
65225         * m4/csharpcomp.m4: New file, from GNU gettext.
65226
65227 2005-06-08  Bruno Haible  <bruno@clisp.org>
65228
65229         * lib/csharpcomp.h: New file, from GNU gettext.
65230         * lib/csharpcomp.c: New file, from GNU gettext.
65231         * lib/csharpcomp.sh.in: New file, from GNU gettext.
65232
65233 2005-06-08  Bruno Haible  <bruno@clisp.org>
65234
65235         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
65236         warning on mingw.
65237
65238 2005-06-07  Derek Price  <derek@ximbiot.com>
65239
65240         Sync from CVS.
65241         * lib/glob_.h: Indent nested #ifdef.
65242
65243 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65244
65245         Sync from coreutils.
65246         Use "file name" when talking about file names, instead of "filename"
65247         or "path", as per the GNU coding standards.
65248         * lib/mkdir-p.c: Renamed from makepath.c.
65249         (make_dir_parents): Renamed from make_path.  All callers changed.
65250         * lib/mkdir-p.h: Likewise.  All includers changed.
65251         * lib/filenamecat.c: Renamed from path-concat.c.
65252         (file_name_concat): Renamed from path_concat.  All callers changed.
65253         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
65254         * lib/filenamecat.h: Likewise.  All includers changed.
65255         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
65256         in comments or local variable names.
65257         * lib/basename.c: Likewise.
65258         * lib/canonicalize.c, canonicalize.h: Likewise.
65259         * lib/dirname.c, dirname.h: Likewise.
65260         * lib/euidaccess.c: Likewise.
65261         * lib/exclude.c: Likewise
65262         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
65263         * lib/fsusage.c, fsuage.h: Likewise.
65264         * lib/fts.c, fts_.h: Likewise.
65265         * lib/getcwd.c: Likewise.
65266         * lib/getloadavg.c: Likewise.
65267         * lib/mkstemp.c: Likewise.
65268         * lib/mountlist.c, mountlist.h: Likewise.
65269         * lib/openat.c, openat.h: Likewise.
65270         * lib/readlink-stub.c: Likewise.
65271         * lib/readutmp.c, readutmp.h: Likewise.
65272         * lib/rename.c: Likewise.
65273         * lib/rmdir.c: Likewise.
65274         * lib/same.c: Likewise.
65275         * lib/savedir.c: Likewise.
65276         * lib/stripslash.c: Likewise.
65277         * lib/tempname.c: Likewise.
65278         * lib/xreadlink.c: Likewise.
65279         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
65280         All uses changed.
65281         * lib/exclude.h: Likewise.
65282
65283         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
65284         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65285         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
65286         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65287         * lib/pathmax.h: Include <limits.h> unconditionally, since other
65288         files have been getting away with it for years (MORE/BSD 4.3
65289         is extinct now).
65290         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
65291         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65292
65293         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
65294         Define to 256, not 255, as per modern POSIX.
65295
65296 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65297
65298         Sync from coreutils.
65299         Use "file name" when talking about file names, instead of "filename"
65300         or "path", as per the GNU coding standards.
65301         * MODULES.html.sh: mkdir-p renamed from makepath.
65302         filenamecat renamed from path-concat.
65303         * modules/filenamecat: Renamed from modules/path-concat.
65304         (Files): filenamecat.h and filenamecat.c renamed from
65305         path-concat.h and path-concat.c.
65306         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
65307         (Include): filenamecat.h, not path-concat.h.
65308         * modules/mkdir-p: Renamed from modules/makepath.
65309         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
65310         makepath.c.
65311         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
65312         (Include): mkdir-p.h, not makepath.h.
65313
65314 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65315
65316         Sync from coreutils.
65317         * m4/mkdir-p.m4: Renamed from makepath.m4.
65318         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
65319         Rename files from makepath.c to mkdir-p.c, and from
65320         makepath.h to mkdir-p.h.
65321         * m4/filenamecat.m4: Renamed from path-concat.m4.
65322         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
65323         Rename files from path-concat.c to filenamecat.c,
65324         and from path-concat.h to filenamecat.h.
65325         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
65326         "file name" in local variables or comments.
65327         * m4/rename.m4: Likewise.
65328
65329 2005-06-01  Bruno Haible  <bruno@clisp.org>
65330
65331         * modules/csharpexec: New file.
65332         * MODULES.html.sh (C#): New section.
65333
65334 2005-06-01  Bruno Haible  <bruno@clisp.org>
65335
65336         * m4/csharp.m4: New file, from GNU gettext.
65337         * m4/csharpexec.m4: New file, from GNU gettext.
65338
65339 2005-06-01  Bruno Haible  <bruno@clisp.org>
65340
65341         * lib/csharpexec.h: New file, from GNU gettext.
65342         * lib/csharpexec.c: New file, from GNU gettext.
65343         * lib/csharpexec.sh.in: New file, from GNU gettext.
65344
65345 2005-05-31  Derek Price  <derek@ximbiot.com>
65346             Paul Eggert  <eggert@cs.ucla.edu>
65347
65348         Sync from cvs.
65349         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65350
65351 2005-05-31  Derek Price  <derek@ximbiot.com>
65352             Paul Eggert  <eggert@cs.ucla.edu>
65353
65354         Sync from cvs.
65355         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65356
65357 2005-05-29  Derek Price  <derek@ximbiot.com>
65358
65359         * config/srclist.txt (glob_.h, glob.c): Add these files.
65360
65361 2005-05-29  Derek Price  <derek@ximbiot.com>
65362
65363         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
65364         * modules/glob: New file.
65365         * modules/getlogin_r: Add link to POSIX spec in description.
65366
65367 2005-05-29  Derek Price  <derek@ximbiot.com>
65368             Paul Eggert  <eggert@cs.ucla.edu>
65369
65370         * m4/glob.m4: New file.
65371
65372 2005-05-29  Derek Price  <derek@ximbiot.com>
65373             Paul Eggert  <eggert@cs.ucla.edu>
65374
65375         * lib/glob_.h, lib/glob.c: New files.
65376
65377 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65378
65379         * modules/fts (Files): Remove m4/inttypes-pri.m4.
65380         * modules/fts-lgpl (Depends-on): Remove gettext.
65381
65382 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65383
65384         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
65385         and don't require gt_INTTYPES_PRI.
65386
65387 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65388
65389         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
65390
65391         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
65392         the configuration hassle isn't worth it.
65393         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
65394         (LONGEST_MODIFIER, PRIuMAX): Remove.
65395
65396 2005-05-27  Bruno Haible  <bruno@clisp.org>
65397
65398         * lib/getlogin_r.h: Remove second include of <stddef.h>.
65399
65400 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
65401
65402         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
65403         _POSIX_PTHREAD_SEMANTICS for Solaris.
65404
65405 2005-05-25  Derek Price  <derek@ximbiot.com>
65406
65407         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
65408
65409 2005-05-25  Derek Price  <derek@ximbiot.com>
65410             Paul Eggert  <eggert@cs.ucla.edu>
65411
65412         * modules/getlogin_r, m4/getlogin_r.m4: New files.
65413         * lib/getlogin_r.c, getlogin_r.h: New files.
65414
65415 2005-05-25  Bruno Haible  <bruno@clisp.org>
65416             Derek Price  <derek@ximbiot.com>
65417
65418         * lib/getlogin_r.h: Simplify API documentation.
65419
65420 2005-05-23  Derek Price  <derek@ximbiot.com>
65421
65422         * modules/minmax (Files): Add m4/minmax.m4.
65423         (configure.ac): Add gl_MINMAX.
65424
65425 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65426
65427         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
65428         so that unistd-safer.h (GPL'ed code) need not be included.
65429
65430 2005-05-22  Bruno Haible  <bruno@clisp.org>
65431
65432         * m4/minmax.m4: New file.
65433         Based on a patch by Derek Price <derek@ximbiot.com>.
65434
65435 2005-05-22  Bruno Haible  <bruno@clisp.org>
65436
65437         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
65438         (INT64_MIN): Fix definition.
65439         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
65440
65441         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
65442         NEED_SIGNED_INT_TYPES.
65443
65444         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
65445         HAVE_SYSTEM_INTTYPES.
65446
65447 2005-05-22  Bruno Haible  <bruno@clisp.org>
65448
65449         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
65450         Also include <sys/param.h> if it defines MIN, MAX.
65451         Based on a patch by Derek Price <derek@ximbiot.com>.
65452
65453 2005-05-21  Jim Meyering  <jim@meyering.net>
65454
65455         * modules/fts (Files): Add m4/inttypes-pri.m4.
65456         (Depends-on): Add lstat and remove gettext.  Alphabetize.
65457
65458 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65459
65460         New fts module.
65461         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
65462         (setup_dir, free_dir): New functions.
65463         (enter_dir, leave_dir): Define trivial
65464         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
65465         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
65466         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
65467         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
65468         Move to fts-cycle.c.
65469         (fts_open): Use setup_dir.
65470         (fts_close): Use free_dir.
65471         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
65472         This adds a label and some gotos, but the alternatives were messier.
65473         Check for memory allocation failure when entering a dir.
65474         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
65475         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
65476         (FTS): New member fts_cycle, that is a union that contains the
65477         old active_dir_ht and cycle_state.  All uses changed to mention
65478         fts_cycle.ht and fts_cycle.state.
65479         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
65480         fts.c, with the following changes:
65481         (setup_dir, free_dir): New functions.
65482         (enter_dir): Now returns bool.  Return true if successful, false
65483         if memory exhausted.  All callers changed.
65484         Do not bother partly cleaning up on
65485         memory allocation failure; that is free_dir's job.
65486         However, free ad if hash_insert fails, to avoid memory leak.
65487         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
65488         fts->fts_options to see which union member to use.
65489
65490 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65491
65492         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
65493         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
65494
65495 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65496
65497         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
65498
65499 2005-05-20  Jim Meyering  <jim@meyering.net>
65500
65501         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
65502         Now a macro, to pacify GCC.
65503
65504 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65505
65506         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
65507         of -1.
65508
65509 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65510
65511         * lib/chown.c (rpl_chown): Return -1 on failure.
65512
65513 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
65514
65515         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
65516         Don't check for stddef.h.
65517         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
65518         don't use its results.
65519         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
65520         since we include them unconditionally.  Don't require
65521         AM_STDBOOL_H, since stdbool is a prerequisite.
65522         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
65523         since we assume C89 or better.
65524         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
65525         as we don't use their results.
65526         Don't check for fchdir, memmove, memset, strrchr, as we use
65527         them unconditionally.
65528         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
65529         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
65530
65531 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
65532
65533         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
65534         Include <stddef.h> unconditionally, since we assume C89 now.
65535         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
65536         * lib/fts.c: Include fts_.h first, to check interface.
65537         Do not include intprops.h; no longer needed.
65538         Include cycle-check.h and hash.h, since fts_.h no longer does.
65539         Remove unnecessary casts of closedir to void.
65540         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
65541         decide whether to decrement nlinks.
65542         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
65543         (FTS): Use struct hash_table * instead of Hash_table, so that
65544         we no longer need to include hash.h here.
65545
65546 2005-05-18  Jim Meyering  <jim@meyering.net>
65547
65548         * modules/dirfd (License): Change to LGPL.  Most of the code
65549         is already in the public domain.
65550
65551 2005-05-18  Jim Meyering  <jim@meyering.net>
65552
65553         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
65554         Reported by Yoann Vandoorselaere.
65555
65556 2005-05-17  Jim Meyering  <jim@meyering.net>
65557
65558         * m4/fts.m4: New file, from coreutils.
65559
65560 2005-05-17  Jim Meyering  <jim@meyering.net>
65561
65562         * lib/fts.c, lib/fts_.h: New files, from coreutils.
65563
65564 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65565
65566         Sync from coreutils.
65567         * m4/unlinkdir.m4: New file.
65568
65569 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65570
65571         Sync from coreutils.
65572         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
65573         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
65574         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
65575         White space changes only.
65576         * lib/makepath.c (make_path): Port to hosts where leading "//" is
65577         special.
65578         * lib/yesno.c: Include getline.h, not ctype.h.
65579         (yesno): Don't remove leading white space; POSIX doesn't allow it.
65580         Use getline to remove arbitrary restriction on response length.
65581
65582 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65583
65584         * config/srclist-update: Spell out "Street" in FSF postal
65585         mail address; this is the style the FSF seems to prefer.
65586
65587         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
65588         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
65589         this updates FSF postal mail address.
65590
65591         Sync from coreutils.
65592         * modules/unlinkdir: New file.
65593         * modules/yesno (Depends-on): Add getline.
65594         * MODULES.html.sh (File system functions): Add unlinkdir.
65595
65596 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65597
65598         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
65599         lib/strsep.h:
65600         Change the initial comment to refer to GPL, not LGPL.
65601         gnulib-tool will change it to LGPL as needed.
65602
65603         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
65604         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
65605         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
65606         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
65607         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
65608         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
65609         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
65610         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
65611         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
65612         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
65613         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
65614         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
65615         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
65616         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
65617         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
65618         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
65619         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
65620         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
65621         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
65622         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
65623         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
65624         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
65625         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
65626         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
65627         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
65628         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
65629         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
65630         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
65631         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
65632         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
65633         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
65634         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
65635         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
65636         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
65637         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
65638         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
65639         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
65640         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
65641         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
65642         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
65643         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
65644         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
65645         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
65646         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
65647         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
65648         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
65649         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
65650         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
65651         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
65652         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
65653         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
65654         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
65655         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
65656         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
65657         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
65658         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
65659         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
65660         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
65661         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
65662         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
65663         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
65664         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
65665         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
65666         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
65667         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
65668         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
65669         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
65670         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
65671         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
65672         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
65673         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
65674         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
65675         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
65676         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
65677         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
65678         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
65679         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
65680         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
65681         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
65682         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
65683         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
65684         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
65685         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
65686         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
65687         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
65688         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
65689         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
65690         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
65691         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
65692         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
65693         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
65694         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
65695         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
65696         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
65697         lib/yesno.c, lib/yesno.h:
65698         Update FSF postal mail address.
65699
65700 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65701
65702         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
65703         tests/test-memmem.c, tests/test-stpncpy.c:
65704         Update FSF postal mail address.
65705
65706 2005-05-13  Bruno Haible  <bruno@clisp.org>
65707
65708         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
65709         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
65710         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
65711         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
65712         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
65713         Add support for 64-bit integers in the MSVC compiler.
65714
65715 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65716
65717         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
65718
65719 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
65720
65721         * gnulib-tool (func_import): Sort and uniquify recommended includes.
65722
65723 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
65724
65725         * doc/getdate.texi (General date syntax): Don't say that date
65726         date --iso-8601=ns generates acceptable dates; it doesn't yet.
65727         Problem reported by Nic Ferrier.
65728
65729 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65730
65731         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
65732         specified in ai_socktype. Fix invalid ai_protocol
65733         check. ai_protocol is usually set to 0 or depending on
65734         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
65735         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
65736         ai_socktype / ai_protocol in the returned addrinfo structure.
65737
65738 2005-05-10  Simon Josefsson  <jas@extundo.com>
65739
65740         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
65741         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65742
65743 2005-05-10  Karl Berry  <karl@gnu.org>
65744
65745         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
65746         (from http://www.gnu.org/licenses).
65747         * doc/COPYING.LIB: also rename to COPYING.LESSER.
65748         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
65749         fdl.texi suffices.
65750
65751 2005-05-10  Karl Berry  <karl@gnu.org>
65752
65753         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
65754         (COPYING.DOC): remove.
65755
65756         * config/srclist-update: new FSF address.
65757
65758 2005-05-10  Derek Price  <derek@ximbiot.com>
65759
65760         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
65761         possible.
65762
65763 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65764             Bruno Haible  <bruno@clisp.org>
65765
65766         * modules/inet_ntop: New file.
65767         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65768         inet_ntop.
65769
65770 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65771             Bruno Haible  <bruno@clisp.org>
65772
65773         * m4/inet_ntop.m4: New file.
65774
65775 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65776             Bruno Haible  <bruno@clisp.org>
65777
65778         * lib/inet_ntop.h: New file.
65779         * lib/inet_ntop.c: New file, from glibc with modifications.
65780
65781 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
65782
65783         * modules/time_r (License): Change to LGPL.
65784         * modules/extensions (License): Change to LGPL.  Actually,
65785         the license is more permissive than that, but currently gnulib-tool
65786         doesn't know how to handle more-permissive licenses.
65787
65788         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
65789         Problem reported by Dave Love.
65790
65791 2005-05-08  Jim Meyering  <jim@meyering.net>
65792
65793         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
65794         blank.
65795
65796 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65797
65798         * modules/argmatch (Depends-on): Add stdbool.
65799         * modules/backupfile (Depends-on): Likewise.
65800         * modules/chdir-long (Depends-on): Likewise.
65801         * modules/closeout (Depends-on): Likewise.
65802         * modules/cycle-check (Depends-on): Likewise.
65803         * modules/dirname (Depends-on): Likewise.
65804         * modules/fnmatch (Depends-on): Likewise.
65805         * modules/fsusage (Depends-on): Likewise.
65806         * modules/fwriteerror (Depends-on): Likewise.
65807         * modules/getcwd (Depends-on): Likewise.
65808         * modules/getloadavg (Depends-on): Likewise.
65809         * modules/hard-locale (Depends-on): Likewise.
65810         * modules/makepath (Depends-on): Likewise.
65811         * modules/mountlist (Depends-on): Likewise.
65812         * modules/nanosleep (Depends-on): Likewise.
65813         * modules/posixtm (Depends-on): Likewise.
65814         * modules/quotearg (Depends-on): Likewise.
65815         * modules/readtokens (Depends-on): Likewise.
65816         * modules/readtokens0 (Depends-on): Likewise.
65817         * modules/readutmp (Depends-on): Likewise.
65818         * modules/save-cwd (Depends-on): Likewise.
65819         * modules/strftime (Depends-on): Likewise.
65820         * modules/userspec (Depends-on): Likewise.
65821         * modules/utimecmp (Depends-on): Likewise.
65822         * modules/xgetcwd (Depends-on): Likewise.
65823         * modules/xnanosleep (Depends-on): Likewise.
65824         * modules/xstrtod (Depends-on): Likewise.
65825         * modules/yesno (Depends-on): Likewise.
65826
65827 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
65828
65829         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
65830         needless checks.
65831
65832 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65833
65834         Merge from coreutils.  Among other things,
65835         add bulletproofing for cases where stdin, stdout, or stderr are closed.
65836         * lib/fd-safer.c: New file.
65837         * lib/fcntl-safer.h, open-safer.c: Remove.
65838         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
65839         * lib/dup-safer.c: Include unistd-safer.h first.
65840         Don't include errno.h.
65841         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
65842         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
65843         * lib/file-type.c: Rely on file-type.h change.
65844         * lib/getloadavg.c: Include unistd-safer.h.
65845         (getloadavg): Use safer open.
65846         * lib/getusershell.c: Include "stdio-safer.h".
65847         (getusershell): Use safer fopen.
65848         * lib/long-options.c (long_options): Use NULL rather than 0.
65849         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
65850         'free'.
65851         * lib/modechange.c: Likewise.
65852         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
65853         (MODE_DONE): New constant.
65854         (struct mode_change): Remove 'next' member.
65855         (make_node_op_equals): New function; like the old one of the
65856         same name, except it allocates an array.
65857         (mode_compile, mode_create_from_ref): Use it.
65858         (mode_compile): Allocate result as an array, not a linked list.
65859         Parse octal string ourself, so that we catch mistakes like "+0".
65860         (mode_adjust): Arg is an array, not a linked list.
65861         * lib/modechange.c: Include stat-macros.h, xalloc.h.
65862         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
65863         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
65864         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
65865         Remove.  This is now stat-macros.h's job.
65866         (talloc): Remove.  All callers replaced by xalloc, so that
65867         our invokers don't have to worry about reporting memory failures.
65868         (make_node_op_equals): Remove.
65869         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65870         New constants.
65871         (struct mode_change): Moved here from modechange.h.
65872         (mode_append_entry): Remove.
65873         (mode_compile): Remove MASKED_OPS arg, since it encouraged
65874         apps to have incorrect behavior.  Use simpler algorithm for head
65875         and tail.  Don't futz with umask; that's now the job of mode_adjust.
65876         Detect more invalid usages rather than having somewhat-random behavior.
65877         Don't insert an "a=" action, as that leads to incorrect behavior.
65878         (mode_compile, mode_create_from_ref): Return NULL on error instead
65879         of an enum, since now there's only one way to have an error.  All
65880         callers changed.
65881         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
65882         at the correct time.  Simplify calculation of "+u" and its ilk.
65883         Don't mishandle "+X".
65884         (mode_free): Remove "register" and localize decls.
65885         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65886         (struct mode_change): Move to modechange.c; callers don't
65887         need to see this stuff.
65888         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
65889         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
65890         (mode_change, mode_adjust): Reflect the new signatures noted above.
65891         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
65892         that might redefine system include files.
65893         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
65894         (my_usleep): Use NULL rather than (void *) 0.
65895         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
65896         Use siginterrupt to specify that system calls should be interrupted.
65897         (rpl_nanosleep): Move initialization of suspended closer to call of
65898         my_usleep.
65899         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
65900         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
65901         (desirable_utmp_entry): New function.
65902         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
65903         using x2nrealloc, to simplify logic.
65904         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
65905         size calculation.  Do not assume utmp file is a regular file.
65906         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
65907         (READ_UTMP_CHECK_PIDS): New constant.
65908         * lib/save-cwd.c: Include unistd-safer.h.
65909         (save_cwd): Use fd_safer.
65910         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
65911         [!_LIBC] Include "stat-macros.h" instead.
65912         * lib/unistd-safer.h (fd_safer): New decl.
65913
65914 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65915
65916         * modules/getloadavg (Depends-on): Add unistd-safer.
65917         * modules/getusershell (Depends-on): Add stdio-safer.
65918         * modules/lstat (Depends-on): Remove xalloc.
65919         * modules/mkstemp (Depends-on): Add stat-macros.
65920         * modules/modechange (Depends-on): Remove xstrtol.
65921         Add stat-macros, xalloc.
65922         * modules/save-cwd (Depends-on): Add unistd-safer.
65923         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
65924         * modules/unistd-safer (Files): Add lib/fd-safer.c
65925         (Makefile.am): Remove lib_SOURCES.
65926
65927         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
65928         Remove fcntl-safer; unistd-safer supersedes it.
65929
65930 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65931
65932         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
65933         AC_HEADER_STAT.
65934         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
65935         (gl_PREREQ_CHOWN): Remove.
65936         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
65937         it.  Don't require AC_HEADER_STAT.
65938         (gl_PREREQ_LSTAT): Remove.
65939         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
65940         Don't require AC_HEADER_STAT.
65941         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
65942         (gl_PREREQ_RMDIR): Remove.
65943         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
65944         mention stat-macros.h or AC_HEADER_STAT, since we'll make
65945         the stat-macros module a prerequisite.
65946         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
65947         * m4/filemode.m4 (gl_FILEMODE): Likewise.
65948         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
65949         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
65950         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
65951         variable names.
65952         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
65953         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
65954         variable prefixes.
65955         * m4/fcntl-safer.m4: Remove.
65956         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
65957         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
65958         Invoke gl_PREREQ_FD_SAFER.
65959         (gl_PREREQ_FD_SAFER): New macro.
65960         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
65961         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
65962         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
65963         Remove duplicate call to AC_LIBOBJ(readutmp).
65964         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
65965
65966         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
65967         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
65968
65969 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65970
65971         * MODULES.html.sh (Misc): Add byteswap.
65972
65973 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65974
65975         * modules/getcwd (Depends-on): Add extensions.
65976         * modules/openat (Depends-on): Likewise.
65977
65978 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65979
65980         * modules/byteswap: New file.
65981
65982 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65983
65984         * m4/byteswap.m4: New file.
65985
65986 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65987
65988         * lib/byteswap_.h: New file.
65989
65990 2005-04-25  Karl Berry  <karl@gnu.org>
65991
65992         * m4/gettext.m4: Update from GNU gettext 0.14.4.
65993
65994 2005-04-25  Albert Chin  <china@thewrittenword.com>
65995
65996         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
65997         Toolkit C bug.
65998
65999 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
66000
66001         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
66002         (func_ln_if_changed) Remove forcibly for no error message
66003         in case file does not exist.
66004
66005 2005-04-19  Simon Josefsson  <jas@extundo.com>
66006
66007         * gnulib-tool (Options): Make --symlink mean --symbolic.
66008
66009 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
66010
66011         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
66012
66013 2005-04-16  Simon Josefsson  <jas@extundo.com>
66014
66015         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
66016
66017 2005-04-15  Simon Josefsson  <jas@extundo.com>
66018
66019         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
66020
66021 2005-04-15  Simon Josefsson  <jas@extundo.com>
66022
66023         * gnulib-tool: Rename --symlink to --symbolic.
66024
66025 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
66026
66027         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
66028         symbolic links to files instead of copying/moving.  Add --aux-dir,
66029         specifying directory relative --dir where auxiliary build tools
66030         are placed.
66031
66032 2005-04-14  Bruno Haible  <bruno@clisp.org>
66033
66034         * modules/allocsa (License): Change to LGPL.
66035         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
66036
66037 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66038
66039         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
66040         that "UTC +1 second" continues to work.  Problem reported
66041         by Dmitry V. Levin.
66042         (relunit_snumber): New rule.
66043         (relunit): Use it.
66044
66045 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66046
66047         * lib/getdate.y (universal_time_zone_table): New constant.
66048         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
66049         universal_time_zone_table.
66050         (lookup_zone): Prefer universal_time_zone_table to
66051         local_time_zone_table, so that "GMT" time stamps are allowed in
66052         London during the summer.  Problem reported by Ian Abbott.
66053
66054 2005-04-12  Jim Meyering  <jim@meyering.net>
66055
66056         * lib/human.c (humblock): Set *options even when returning due to
66057         xstrtoumax conversion failure.  Thanks to a used-uninitialized
66058         warning from gcc-4.
66059
66060 2005-04-09  Jim Meyering  <jim@meyering.net>
66061
66062         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
66063         -Wuninitialized: initialize tm0.tm_year.
66064
66065 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66066
66067         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
66068         count, since there's no maximum.  All uses changed.
66069         Add member dsts_seen.
66070         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
66071         not being INT_MAX.
66072         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
66073         Use pc_rels_seen to decide whther a date is absolute.
66074
66075         * lib/getdate.y (number): Don't overwrite year.
66076         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
66077         check.
66078
66079 2005-04-02  Simon Josefsson  <jas@extundo.com>
66080
66081         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
66082         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
66083
66084 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
66085
66086         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
66087         where no absolute path name can be longer than PATH_MAX.
66088
66089 2005-03-27  Jim Meyering  <jim@meyering.net>
66090
66091         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
66092
66093 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
66094
66095         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
66096         "one's complement" -> "ones' complement" in comment, as per Knuth.
66097         "value of type" -> "type or expression" in comment.
66098         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
66099
66100 2005-03-26  Jim Meyering  <jim@meyering.net>
66101
66102         Comment nits.
66103         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
66104         Correct typos: s/or/of/.
66105
66106 2005-03-26  Jim Meyering  <jim@meyering.net>
66107
66108         * modules/check-include-files: Move to ../ and rename to...
66109         * check-module: ...this.
66110
66111 2005-03-25  Jim Meyering  <jim@meyering.net>
66112
66113         * modules/xvasprintf (Files): Add xalloc.h.
66114
66115 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66116
66117         * modules/gettext (Files): config/config.rpath ->
66118         build-aux/config.rpath
66119         * modules/iconv (Files): Likewise.
66120         Problem reported by Oskar Liljeblad.
66121
66122 2005-03-23  Jim Meyering  <jim@meyering.net>
66123
66124         * modules/check-include-files: New script to check for
66125         missing dependencies, multiple includes, etc.
66126
66127         * modules/c-strtold (Depends-on): Add xalloc.
66128         * modules/c-strtod (Depends-on): Add xalloc.
66129         * modules/hash (Depends-on): Add xalloc.
66130         (Files): Remove lib/xalloc.h.
66131
66132         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
66133         * modules/userspec (Files): Add lib/inttostr.h.
66134
66135 2005-03-23  Jim Meyering  <jim@meyering.net>
66136
66137         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
66138
66139 2005-03-22  Jim Meyering  <jim@meyering.net>
66140
66141         * modules/stat-macros: New module.
66142         * modules/canonicalize, modules/euidaccess, modules/file-type,
66143         * modules/filemode, modules/lchown, modules/makepath,
66144         * modules/rmdir, modules/stat: Depend on new stat-macros module
66145         rather than listing lib/stat-macros.h manually.
66146         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
66147
66148 2005-03-22  Jim Meyering  <jim@meyering.net>
66149
66150         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
66151
66152 2005-03-22  Bruno Haible  <bruno@clisp.org>
66153
66154         * config/srclist.txt: Replace target directory 'config' with
66155         'build-aux'.
66156         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
66157         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
66158         ../build-aux/.
66159
66160 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
66161
66162         * modules/chdir-long (Depends-on): Add mempcpy.
66163
66164         * modules/acl, modules/backupfile, modules/c-strtod,
66165         modules/c-strtold, modules/canon-host, modules/canonicalize,
66166         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
66167         modules/exclude, modules/exitfail, modules/file-type,
66168         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
66169         modules/getdate, modules/getline, modules/getpagesize,
66170         modules/getpass, modules/getugroups, modules/group-member,
66171         modules/hard-locale, modules/hash, modules/human, modules/idcache,
66172         modules/inttostr, modules/long-options, modules/makepath,
66173         modules/md5, modules/memcasecmp, modules/memcoll,
66174         modules/modechange, modules/mountlist, modules/path-concat,
66175         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
66176         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
66177         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
66178         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
66179         modules/strftime, modules/strndup, modules/strverscmp,
66180         modules/timespec, modules/unlocked-io, modules/userspec,
66181         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
66182         modules/yesno:
66183         Remove lib_SOURCES line from Makefile.am section, as this is now
66184         done automatically by the corresponding Autoconf macro.
66185
66186 2005-03-21  Jim Meyering  <jim@meyering.net>
66187
66188         Changes imported from coreutils.
66189
66190         * lib/cycle-check.c: Don't include xalloc.h.
66191
66192         * lib/path-concat.c: Don't include assert.h.
66193         (path_concat): Remove assertion that would have triggered
66194         for ABASE starting with more than one slash.
66195         Reported by Andreas Schwab.
66196
66197         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
66198         properly when ABASE is an absolute file name.
66199         Correct the description of this function.
66200         Include <assert.h>.
66201         Add an assertion and a test driver.
66202         This fixes a bug introduced on 2004-07-02.
66203         Andreas Schwab reported the resulting failure of cp --parents:
66204         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
66205
66206 2005-03-21  Jim Meyering  <jim@meyering.net>
66207
66208         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
66209         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
66210
66211 2005-03-21  Jim Meyering  <jim@meyering.net>
66212         and  Paul Eggert  <eggert@cs.ucla.edu>
66213
66214         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
66215         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
66216         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
66217         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
66218         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
66219         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
66220         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
66221         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
66222         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
66223         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
66224         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
66225         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
66226         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
66227         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
66228         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
66229         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
66230         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
66231         for these modules.
66232
66233 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
66234
66235         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
66236         (which shouldn't happen), generate nothing instead of returning 0
66237         immediately, so that nstrftime (NULL, ...) doesn't return 0.
66238
66239 2005-03-16  Bruno Haible  <bruno@clisp.org>
66240
66241         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
66242         HAVE_LONGLONG_64BIT.
66243
66244 2005-03-16  Bruno Haible  <bruno@clisp.org>
66245
66246         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
66247         HAVE_LONGLONG_64BIT.
66248
66249 2005-03-16  Bruno Haible  <bruno@clisp.org>
66250
66251         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
66252         HAVE_LONGLONG_64BIT.
66253
66254 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66255
66256         * lib/strftime.c (my_strftime): Prepend space to format so that we can
66257         reliably distinguish strftime failure from empty output on POSIX
66258         hosts.
66259
66260 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66261
66262         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
66263         (iconv_string): Don't guess a size-zero buffer, as that might cause
66264         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
66265         result would be 'too large', where 'too large' is (heuristically)
66266         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
66267         overflow concerns.  This will prevent some unwanted malloc failures
66268         when the inputs are very large.
66269
66270 2005-03-15  Karl Berry  <karl@gnu.org>
66271
66272         * config/srclist.txt (config.rpath): from gettext.
66273         * config/config.rpath: update.
66274
66275 2005-03-15  Bruno Haible  <bruno@clisp.org>
66276
66277         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
66278         to 'negate'.
66279
66280         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
66281         variable.
66282
66283         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
66284         results.
66285
66286 2005-03-14  Simon Josefsson  <jas@extundo.com>
66287
66288         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
66289         <fx@gnu.org>.
66290
66291 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
66292
66293         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
66294         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
66295         intprops.h.
66296         * lib/strtol.c: Likewise.
66297
66298 2005-03-14  Jim Meyering  <jim@meyering.net>
66299
66300         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
66301         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
66302         to be nonzero so that we (and caller) can detect the difference
66303         between a valid zero-length expansion and an error return, even
66304         when the underlying strftime fails before writing anything into
66305         that location.
66306
66307 2005-03-14  Bruno Haible  <bruno@clisp.org>
66308
66309         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
66310         Update from GNU gettext 0.14.3.
66311
66312 2005-03-10  Jim Meyering  <jim@meyering.net>
66313
66314         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
66315
66316 2005-03-10  Jim Meyering  <jim@meyering.net>
66317
66318         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
66319         so that this module works on systems without fchdir.
66320
66321 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66322
66323         Factor int-properties macros into a single file, except for
66324         glibc-related files.
66325         * lib/intprops.h: New file.
66326         * lib/getloadavg.c: Include it instead of limits.h.
66327         (INT_STRLEN_BOUND): Remove.
66328         * lib/human.c: Include intprops.h.
66329         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
66330         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
66331         302/1000.
66332         * lib/inttostr.h: Include intprops.h instead of limits.h.
66333         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
66334         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
66335         for consistency with intprops.h.
66336         (time_t_is_integer, twos_complement_arithmetic): Use them.
66337         * lib/sig2str.h: Include <signal.h>, intprops.h.
66338         (INT_STRLEN_BOUND): Remove.
66339         * lib/strftime.c (TYPE_SIGNED): Remove.
66340         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
66341         * lib/strtol.c: Adjust comments to match intprops.h.
66342         * lib/userspec.c: Include intprops.h.
66343         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
66344         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
66345         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
66346         instead of rolling our own expressions.
66347         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
66348
66349         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
66350         instead of int.
66351         (my_strftime): Do not mishandle years close to INT_MAX, by doing
66352         the right thing even if adding 1900 would overflow.  Similarly
66353         for tm_mon + 1 and tm_yday + 1.
66354         Make %Y always equivalent to %C%y, and similarly for %G and %g.
66355         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
66356         (DO_SIGNED_NUMBER): New macro.
66357         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
66358
66359 2005-03-07  Bruno Haible  <bruno@clisp.org>
66360
66361         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
66362
66363 2005-03-07  Bruno Haible  <bruno@clisp.org>
66364
66365         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
66366
66367 2005-03-04  Derek R. Price  <derek@ximbiot.com>
66368
66369         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
66370         (func_import): Only replace files via --import when they have actually
66371         changed.
66372
66373 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66374
66375         * m4/mmap-anon.m4: New file.
66376         * m4/pagealign_alloc.m4: New file.
66377
66378 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66379             Bruno Haible  <bruno@clisp.org>
66380
66381         * modules/pagealign_alloc: New file.
66382         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
66383
66384 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66385             Bruno Haible  <bruno@clisp.org>
66386
66387         * lib/pagealign_alloc.h: New file.
66388         * lib/pagealign_alloc.c: New file.
66389
66390 2005-03-03  Bruno Haible  <bruno@clisp.org>
66391
66392         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
66393         Use an all-permissive copyright notice, recommended by RMS.
66394
66395 2005-03-02  Bruno Haible  <bruno@clisp.org>
66396
66397         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
66398         of AIX, the replacement has to be done only after <string.h> is
66399         included, therefore not in config.h. stpncpy.h does the replacement,
66400         and stpncpy.c uses it.
66401
66402 2005-03-02  Bruno Haible  <bruno@clisp.org>
66403
66404         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
66405         stpncpy.c uses it.
66406
66407 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66408
66409         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
66410         The workaround isn't strictly needed for POSIX conformance, and
66411         it's too much of a pain to configure and maintain.  We'll ask
66412         people to fix their kernels instead.
66413         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
66414         (NANOSLEEP_BUG_WORKAROUND): Remove.
66415         (xnanosleep): Remove the workaround.
66416
66417 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66418
66419         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
66420         Reported by Derek Price.
66421         (Include): Add "timespec.h".
66422
66423         * modules/xnanosleep (Depends-on): Remove gethrxtime.
66424
66425 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66426
66427         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
66428         to detect nanosleep bug.
66429
66430 2005-03-01  Bruno Haible  <bruno@clisp.org>
66431
66432         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
66433
66434 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66435
66436         * modules/gethrxtime: New file.
66437         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
66438         (Depends-on): Add gethrxtime.
66439         (configure.ac): Add gl_XNANOSLEEP.
66440         (Makefile.am): Remove lib_SOURCES line.
66441
66442 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66443
66444         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
66445         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
66446
66447 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66448
66449         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
66450         * lib/timespec.h (gettime): Return void, since it always
66451         succeeds now.  All uses changed.
66452         * lib/gettime.c (gettime) Likewise.
66453         [HAVE_NANOTIME]: Prefer nanotime.
66454         Assume gettimeofday succeeds, as POSIX requires.
66455         Assime time () succeeds, since other code already does.
66456         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
66457         (timespec_subtract): Remove.
66458         (NANOSLEEP_BUG_WORKAROUND): New constant.
66459         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
66460         things considerably.  Use it only on GNU/Linux hosts, since the
66461         workaround shouldn't be needed elsewhere.
66462
66463 2005-02-24  Bruno Haible  <bruno@clisp.org>
66464
66465         * modules/gettext (Files): Add m4/glibc2.m4.
66466
66467 2005-02-24  Bruno Haible  <bruno@clisp.org>
66468
66469         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
66470         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
66471         * m4/progtest.m4:
66472         Update from GNU gettext 0.14.2.
66473         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
66474
66475 2005-02-24  Bruno Haible  <bruno@clisp.org>
66476
66477         * lib/localcharset.c: Update from GNU gettext 0.14.2.
66478         * lib/config.charset: Update from GNU gettext 0.14.2.
66479
66480 2005-02-24  Bruno Haible  <bruno@clisp.org>
66481
66482         * lib/gettext.h: Update from GNU gettext 0.14.2.
66483
66484 2005-02-23  Simon Josefsson  <jas@extundo.com>
66485
66486         * m4/iconvme.m4: New file.
66487
66488 2005-02-23  Jim Meyering  <jim@meyering.net>
66489
66490         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
66491         change.
66492         Thanks to Bruno Haible for catching it.
66493
66494 2005-02-22  Simon Josefsson  <jas@extundo.com>
66495
66496         * modules/iconvme: New file.
66497
66498         * MODULES.html.sh: Add iconvme.
66499
66500 2005-02-22  Simon Josefsson  <jas@extundo.com>
66501
66502         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
66503
66504 2005-02-22  Simon Josefsson  <jas@extundo.com>
66505
66506         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
66507
66508 2005-02-22  Jim Meyering  <jim@meyering.net>
66509
66510         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
66511         s/ifndef/ifdef/.
66512
66513 2005-02-20  Neil Conway  <neilc@samurai.com>
66514
66515         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
66516         returned by OSX/Darwin if the specified buffer is not large
66517         enough for the hostname.
66518
66519 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66520
66521         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
66522         pass it to _help, otherwise the latter coredumps trying to
66523         dereference state.root_argp.
66524
66525 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66526
66527         * modules/chdir-long (Depends-on): Add memrchr.
66528         * modules/memrchr (Files): Add lib/memrchr.h.
66529         (Include): "memrchr.h".
66530
66531 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66532
66533         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
66534
66535 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66536
66537         * lib/memrchr.h: New file.
66538         * lib/chdir-long.c: Include it.
66539         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
66540         Don't bother including stddef.h.
66541
66542 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66543
66544         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
66545         inclusion.
66546         Include <sys/types.h>, for dev_t.
66547         (ME_DUMMY, ME_REMOTE): Move from here....
66548         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
66549         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
66550         Dmitry V. Levin.
66551         Include mountlist.h first, to test the interface.
66552
66553 2005-01-29  Bruno Haible  <bruno@clisp.org>
66554
66555         * lib/progname.c (program_name): Initialize.
66556         Needed when linking statically on MacOS X.
66557
66558 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66559
66560         Sync from coreutils.
66561         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
66562         (Depends-on): Add c-strtod.
66563         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
66564
66565 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66566
66567         Sync from coreutils.
66568         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
66569
66570         Remove files that are specific to coreutils.
66571         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
66572
66573 2005-01-28  Bruno Haible  <bruno@clisp.org>
66574
66575         * modules/javacomp: New file.
66576         * MODULES.html.sh (Java): Add javacomp.
66577
66578 2005-01-28  Bruno Haible  <bruno@clisp.org>
66579
66580         * m4/javacomp.m4: New file, from GNU gettext.
66581
66582 2005-01-28  Bruno Haible  <bruno@clisp.org>
66583
66584         * lib/javacomp.sh.in: New file, from GNU gettext.
66585         * lib/javacomp.h: New file, from GNU gettext.
66586         * lib/javacomp.c: New file, from GNU gettext.
66587
66588 2005-01-26  Simon Josefsson  <jas@extundo.com>
66589
66590         * lib/gai_strerror.c: Use GPL in header.
66591
66592 2005-01-26  Bruno Haible  <bruno@clisp.org>
66593
66594         * modules/javaexec: New file.
66595         * MODULES.html.sh (Java): Add javaexec.
66596
66597 2005-01-26  Bruno Haible  <bruno@clisp.org>
66598
66599         * m4/javaexec.m4: New file, from GNU gettext.
66600
66601 2005-01-26  Bruno Haible  <bruno@clisp.org>
66602
66603         * lib/javaexec.sh.in: New file, from GNU gettext.
66604         * lib/javaexec.h: New file, from GNU gettext.
66605         * lib/javaexec.c: New file, from GNU gettext.
66606
66607 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66608
66609         * modules/lchown (Depends-on): Remove lchown.h
66610
66611 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66612
66613         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
66614         must be defined if the header file was not found, in order
66615         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
66616
66617 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66618
66619         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
66620         initializers for struct pentry_state.
66621         (__argp_error): Check return value of __asprintf
66622         (__argp_failure): Translate error message
66623
66624         * lib/argp-parse.c: Removed braces around the expansion of N_()
66625
66626 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66627
66628         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
66629         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
66630         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
66631         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
66632         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
66633         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
66634         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
66635         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
66636         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
66637         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
66638         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
66639         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
66640         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
66641         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
66642         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
66643         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
66644         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
66645         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
66646         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
66647         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
66648         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
66649         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
66650         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
66651         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
66652         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
66653         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
66654         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
66655         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
66656         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
66657         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
66658         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
66659         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
66660         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
66661         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
66662         xstrtol.m4, xstrtoumax.m4, yesno.m4:
66663         Use an all-permissive copyright notice, recommended by RMS.
66664
66665 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
66666
66667         * modules/chdir-long (Depends-on): Remove mempcpy.
66668
66669 2005-01-21  Jim Meyering  <jim@meyering.net>
66670
66671         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
66672         same value as for Solaris 9.
66673
66674         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
66675         component length.  This included changing the parameter to be
66676         of type `char *' rather than `char const *'.
66677         * lib/chdir-long.h (chdir_long): Update prototype.
66678
66679         * lib/openat.c (fdopendir, fstatat): New functions.
66680         * lib/openat.h: Include headers required for use of DIR and struct
66681         stat.
66682         [AT_SYMLINK_NOFOLLOW]: Define.
66683         (fdopendir, fstatat): Add prototypes.
66684
66685 2005-01-21  Bruno Haible  <bruno@clisp.org>
66686
66687         * modules/classpath: New file.
66688         * MODULES.html.sh (Java): Add classpath.
66689
66690 2005-01-21  Bruno Haible  <bruno@clisp.org>
66691
66692         * lib/classpath.h: New file, from GNU gettext.
66693         * lib/classpath.c: New file, from GNU gettext.
66694
66695 2005-01-20  Simon Josefsson  <jas@extundo.com>
66696
66697         * modules/version-etc-fsf: New file.
66698
66699 2005-01-20  Simon Josefsson  <jas@extundo.com>
66700
66701         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
66702         * lib/version-etc.c: Remove version_etc_copyright.
66703         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
66704         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
66705
66706 2005-01-20  Simon Josefsson  <jas@extundo.com>
66707
66708         * lib/base64.h (isbase64): Add.
66709
66710         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
66711         using a unsigned prototype, don't inline.
66712         (base64_decode): Use it.
66713
66714 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66715
66716         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
66717         it.
66718
66719 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66720
66721         * lib/save-cwd.c (save_cwd): Remove code to support the case
66722         where fchdir is missing or flaky.
66723
66724 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66725
66726         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
66727
66728 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66729
66730         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
66731         AC_LIBSOURCES now does this.
66732         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
66733         with new ullong_max module.
66734
66735 2005-01-19  Bruno Haible  <bruno@clisp.org>
66736
66737         * modules/sh-quote: New file.
66738         * MODULES.html.sh (Executing programs): Add sh-quote.
66739
66740 2005-01-19  Bruno Haible  <bruno@clisp.org>
66741
66742         * lib/sh-quote.h: New file, from GNU gettext.
66743         * lib/sh-quote.c: New file, from GNU gettext.
66744
66745 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66746
66747         Merge from coreutils.
66748         * m4/ullong_max.m4: New file.
66749         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
66750         (gl_MACROS): Assume localeconv exists.
66751
66752 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66753
66754         Merge changes from coreutils, as described below in several
66755         changelogs dated today.
66756
66757         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
66758         (O_DIRECTORY): Remove; not needed here, since "." must be
66759         a directory.  All uses removed.
66760         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
66761         universal on Suns, and we also need to test for IRIX.
66762         Revamp code to use 'if' rather than '#if'.
66763         Avoid unnecessary comparison of cwd->desc to 0.
66764
66765         * lib/utimens.c (futimens): Robustify the previous patch, by checking
66766         for known valid error numbers rather than observed invalid ones.
66767
66768 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66769
66770         * modules/ullong_max: New file.
66771
66772         * modules/chdir-long, modules/openat: New files.
66773         * modules/save-cwd (Depends-on): Depend on chdir-long.
66774         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
66775
66776 2005-01-18  Jim Meyering  <jim@meyering.net>
66777
66778         Merge from coreutils.
66779         * m4/chdir-long.m4, m4/openat.m4: New files.
66780         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
66781         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
66782         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
66783         is sane and DOES follow symlinks.  Besides, testing 20 different
66784         systems found no broken chown implementations.
66785         Prompted by a change in rsync's copy of this macro.
66786         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
66787
66788         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
66789
66790         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
66791         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
66792         NULL-means-set-to-current-time semantics.
66793         Remove temporary file immediately, rather than waiting
66794         for configure's at-exit trap code to do it.
66795
66796 2005-01-18  Jim Meyering  <jim@meyering.net>
66797
66798         * lib/version-etc.c (version_etc_copyright): Update copyright date.
66799
66800         * lib/utimens.c (futimens): Account for the fact that futimes
66801         can also fail with errno == ENOSYS or errno == ENOENT.
66802         Patch from Dmitry V. Levin.
66803
66804         Change the name of the robust chdir function from chdir to chdir_long.
66805         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
66806         (restore_cwd): Use chdir_long, not chdir.
66807         * lib/chdir-long.c: Renamed from chdir.c.
66808         * lib/chdir-long.h: Renamed from chdir.h.
66809         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
66810         Hurd.
66811
66812 2005-01-18  Bruno Haible  <bruno@clisp.org>
66813
66814         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
66815         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
66816         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
66817         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
66818         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
66819         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
66820         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
66821         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
66822         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
66823         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
66824         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
66825         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
66826         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
66827         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
66828         Use an all-permissive copyright notice, recommended by RMS.
66829
66830 2005-01-18  Bob Proulx  <bob@proulx.com>
66831
66832         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
66833         simplify offsetof() macro construct to avoid compile failure with
66834         native HP-UX 11.0 ANSI C compiler.
66835
66836 2005-01-17  Bruno Haible  <bruno@clisp.org>
66837
66838         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
66839         redundant because stpncpy.m4 takes care of it.
66840
66841 2005-01-17  Bruno Haible  <bruno@clisp.org>
66842
66843         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
66844
66845 2005-01-17  Bruno Haible  <bruno@clisp.org>
66846
66847         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
66848         used.
66849
66850 2005-01-17  Bruno Haible  <bruno@clisp.org>
66851
66852         * lib/fwriteerror.h (fwriteerror): Change specification to include
66853         fclose.
66854         * lib/fwriteerror.c: Include <stdbool.h>.
66855         (fwriteerror): At the end, close the file stream. Record whether
66856         stdout was already closed.
66857
66858 2005-01-17  Bruno Haible  <bruno@clisp.org>
66859
66860         * lib/execute.c (environ): Declare if needed.
66861         * lib/pipe.c (environ): Likewise.
66862         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
66863
66864 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66865
66866         * modules/argp: Depend on vsnprintf
66867
66868 2005-01-10  Jim Meyering  <jim@meyering.net>
66869
66870         * modules/closeout (Depends-on): Add atexit.
66871
66872 2005-01-06  Bruno Haible  <bruno@clisp.org>
66873
66874         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
66875
66876 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66877
66878         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
66879         definitions to be after all include files, to avoid collisions.
66880         Problem reported by Bob Proulx.
66881
66882 2005-01-04  Jim Meyering  <jim@meyering.net>
66883
66884         Changes imported from coreutils.
66885         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
66886         as the mkstemp template, use a temporary directory and an
66887         8.3-friendly template to avoid trouble on systems like DJGPP.
66888         Reported by Juan M. Guerrero via Stepan Kasal.
66889         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
66890         close. Remove the temporary directory right away, rather than waiting
66891         for configure's at-exit trap code to do it.
66892         Suggestion from Stepan Kasal.
66893
66894 2005-01-01  Simon Josefsson  <jas@extundo.com>
66895
66896         * gnulib-tool: Print #include directives when --import'ing.
66897
66898 2004-12-28  Simon Josefsson  <jas@extundo.com>
66899
66900         * tests/test-base64.c: Include required header files.  Remove
66901         unused variables.
66902
66903 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66904
66905         * modules/error (Depends-on): Remove gettext.
66906
66907 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66908
66909         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
66910         not needed.  This removes a dependency on the gettext module.
66911         [defined _LIBC]: Do not include <libintl.h>; not needed.
66912
66913 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66914
66915         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
66916         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
66917
66918 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66919
66920         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
66921         HAVE_DECL_STRTOLD.
66922
66923 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66924
66925         * modules/getdate (Depends-on): Remove alloca-opt.
66926
66927 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66928
66929         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
66930
66931 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66932
66933         * lib/argp-parse.c: Include <stddef.h>.
66934         (alignof, alignto): New macros.
66935         (parser_init): Don't assume that void * is aligned sufficiently
66936         for struct option.
66937
66938         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
66939         need to extend the stack.
66940         (YYINITDEPTH): New macro, so that the initial stack isn't overly
66941         large.
66942
66943 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66944
66945         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
66946
66947 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66948
66949         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
66950         (2004-10-24) change.  Apparently this was a false alarm.
66951
66952         * modules/getdate: Depend on alloca-opt, not alloca.
66953
66954 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66955
66956         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
66957         Remove now-obsolete comment about AIX.
66958         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
66959         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
66960         (YYMAXDEPTH): New macro.
66961
66962 2004-12-18  Simon Josefsson  <jas@extundo.com>
66963
66964         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
66965
66966 2004-12-18  Bruno Haible  <bruno@clisp.org>
66967
66968         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
66969
66970 2004-12-18  Bruno Haible  <bruno@clisp.org>
66971
66972         * lib/fatal-signal.c (fatal_signals): Make non-const.
66973         (init_fatal_signals): New function.
66974         (uninstall_handlers, install_handlers): Ignore signals that were set to
66975         SIG_IGN.
66976         (at_fatal_signal): Call init_fatal_signals.
66977         (init_fatal_signal_set): Likewise. Ignore signals that were set to
66978         SIG_IGN.
66979         Reported by Paul Eggert.
66980
66981 2004-12-18  Bruno Haible  <bruno@clisp.org>
66982
66983         * doc/alloca.texi: New file.
66984         * doc/alloca-opt.texi: New file.
66985
66986 2004-12-17  Jim Meyering  <jim@meyering.net>
66987
66988         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
66989         Otherwise, install-sh could exit with improper exit status when
66990         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
66991
66992 2004-12-16  Simon Josefsson  <jas@extundo.com>
66993
66994         * tests/test-base64.c: Add license.
66995
66996 2004-12-15  Stepan Kasal  <address@hidden>
66997
66998         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
66999
67000 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
67001
67002         * modules/getcwd (Files): Add m4/d-ino.m4.
67003         Suggested by Mark D. Baushke.
67004
67005 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67006
67007         * lib/getdate.y (textint): New member "negative".
67008         (time_zone_hhmm): New function.
67009         Expect 14 shift-reduce conflicts, not 13.
67010         (o_colon_minutes): New rule.
67011         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
67012         (yylex): Set the "negative" member of signed numbers.
67013
67014 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67015
67016         * doc/getdate.texi (Time of day items, Time zone items):
67017         Describe new formats +00:00, UTC+00:00.
67018
67019 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67020
67021         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
67022         spurious "-l"s.  Problem reported by Stepan Kasal.
67023
67024 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
67025
67026         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
67027         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
67028
67029 2004-12-04  Simon Josefsson  <jas@extundo.com>
67030
67031         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
67032         Vandoorselaere <yoann@prelude-ids.org>.
67033
67034 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67035
67036         Changes imported from coreutils.
67037         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
67038         exist.
67039         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
67040
67041 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67042
67043         Changes imported from coreutils.
67044         * lib/hard-locale.c: Assume <locale.h> exists.
67045         Include "strdup.h".
67046         (GLIBC_VERSION): New macro.
67047         (hard_locale): Assume setlocale exists.
67048         Rewrite to avoid #ifdef.
67049         Use strdup rather than malloc + strcpy.
67050         * lib/human.c: Assume <locale.h> exists.
67051         (human_readable): Assume localeconv exists.
67052
67053 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67054
67055         * modules/hard-locale (Depends-on): Add strdup.
67056
67057 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67058
67059         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
67060         convert T2, not T.  (Imported from libc.)
67061
67062 2004-11-30  Simon Josefsson  <jas@extundo.com>
67063
67064         * modules/restrict (License): Change to LGPL.
67065
67066 2004-11-30  Simon Josefsson  <jas@extundo.com>
67067
67068         * m4/restrict.m4: Add copyright and copying conditions.
67069
67070 2004-11-30  Simon Josefsson  <jas@extundo.com>
67071
67072         * m4/base64.m4: New file.
67073
67074 2004-11-30  Simon Josefsson  <jas@extundo.com>
67075
67076         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
67077         base64.
67078
67079         * tests/test-base64.c: New file.
67080
67081         * modules/base64: New file.
67082
67083 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67084
67085         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
67086         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
67087
67088         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
67089
67090 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67091
67092         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
67093         (__getcwd.c): Don't restore errno; glibc doesn't.
67094         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
67095         first, falling back to our code only if its results look suspicious.
67096         Ensure that the resulting buffer is only as large as necessary.
67097
67098         * lib/readutmp.c: Include readutmp.h first.
67099         Include <errno.h>, since readutmp.h no longer does that.
67100         * lib/readutmp.h: Don't include <errno.h>,
67101         <sys/param.h>, <time.h>; not needed to establish interface.
67102         (errno): Remove decl.
67103         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
67104         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
67105         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
67106
67107 2004-11-28  Simon Josefsson  <jas@extundo.com>
67108
67109         * lib/base64.h, base64.c: New file.
67110
67111 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67112
67113         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
67114
67115 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67116
67117         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
67118         (Depends-on): Remove pathmax, same.  Add mempcpy.
67119         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
67120         (Makefile.am): Append getcwd.h to lib_SOURCES.
67121         (Include): Add getcwd.h.
67122         (Maintainer): Change from Jim Meyering to "all, glibc",
67123         since getdate now uses intended-for-glibc code.
67124         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
67125         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
67126
67127 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67128
67129         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
67130         HP's ANSI C compiler.
67131         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
67132         Declaring int functions causes warnings on some modern systems and
67133         shouldn't be needed to compile on ancient ones.
67134         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
67135         defined.
67136
67137         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
67138         with the following changes.
67139         (__set_errno): Parenthesize properly.
67140         Include <stdbool.h>.
67141         (MIN, MAX, MATCHING_INO): New macros.
67142         (__getcwd): Define with prototype, not K&R form.
67143         Use heuristics to allocate default buffer on stack if possible.
67144         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
67145         behavior, and to avoid the PATH_MAX limit when computing
67146         ../../../../...
67147         Use MATCHING_INO to compare inode number to file.
67148         Check for arithmetic overflow in size calculations.
67149         Fix bug in reallocation of dot array that caused getcwd to fail
67150         on directories nested deeper than 75.
67151         Be more careful about saving errno on error.
67152         Do not use realloc; use only free+malloc, as this is a bit
67153         more flexible and avoids a needless copy operation.
67154         Do not inspect st_dev and st_ino for symbolic links; POSIX
67155         doesn't specify the latter.
67156         Check for closedir errors.
67157         Avoid needless casts.
67158         Use "#ifdef weak_alias" around weak_alias, to be like other
67159         glibc code.
67160         The following changes to getcwd.c have effect only when used in
67161         gnulib; they have no effect inside glibc proper.
67162         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
67163         as alloca isn't used.
67164         (alloca, __alloca): Likewise.
67165         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
67166         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67167         unconditionally, as gnulib assumes C89 or better.
67168         Do not include <sys/param.h>.
67169         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
67170         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
67171         better.
67172         (NULL) [!defined NULL]: Remove; we assume C89 or better.
67173         Include <dirent.h> in a way that is compatible with modern Autoconf.
67174         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
67175         New macros, if not already defined.
67176         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
67177         Use "_LIBC", not "defined _LIBC", for consistency.
67178         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
67179         a mempcpy module.
67180         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
67181         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
67182         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
67183         credit only to Jim Meyering and adjust the copyright dates.
67184         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
67185         <stdlib.h>, <unistd.h>, "pathmax.h".
67186         Instead, include "xgetcwd.h" (first) and "getcwd.h".
67187         (INITIAL_BUFFER_SIZE): Remove.
67188         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
67189
67190 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67191
67192         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
67193         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
67194         Use the _ONCE methods, for efficiency.
67195         Check for fcntl.h.  In test program, include <errno.h>
67196         and <fcntl.h> if available.  Remove old K&R cruft from
67197         test program.  Check for common errors in GNU/Linux,
67198         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
67199         don't do AC_LIBOBJ, as that's getcwd.m4's job.
67200         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
67201         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
67202         name accordingly.
67203         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
67204         accommodate new getcwd.c.
67205         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
67206         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
67207         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
67208         that's all we need now.
67209
67210 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67211
67212         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
67213         argp-parse.c depends on getopt internals, that means we should
67214         always use our getopt, to be on the safe side.
67215         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
67216         order not to spoil the result of an eventual previous invocation
67217         of gl_GETOPT_SUBSTITUTE.
67218
67219 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67220
67221         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
67222         redefinition warnings. To avoid them, include the defines
67223         in `#if !defined __need_getopt ... #endif'. The only place
67224         where __getopt_argv_const is used is in definitions
67225         of getopt_long and getopt_long_only below, which are as well
67226         protected by `#ifndef __need_getopt'.
67227         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
67228         __need_getopt after including <stdio.h> and <unistd.h> These
67229         headers might have defined it.
67230
67231 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67232
67233         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
67234
67235 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67236
67237         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
67238         (futimens): New function, which uses futimes if available.
67239         (futimens, utimens): Support timespec==NULL, with same semantics
67240         as utime and utimens.
67241         * lib/utimens.h (futimens): New decl.
67242
67243 2004-11-23  Jim Meyering  <jim@meyering.net>
67244
67245         * lib/getopt_.h: Remove trailing blanks.
67246
67247 2004-11-23  Jim Meyering  <jim@meyering.net>
67248
67249         * lib/__fpending.c: Add comment.
67250
67251 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
67252
67253         * modules/canonicalize (Depends-on): Add xreadlink.
67254         Problem reported by James Youngman.
67255
67256 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67257
67258         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
67259         New macros.
67260         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
67261         optopt): Use them instead of invoking ## directly; otherwise, the
67262         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
67263
67264 2004-11-19  Bruno Haible  <bruno@clisp.org>
67265
67266         * lib/strtok_r.c: Move comments from here...
67267         * lib/strtok_r.h: ... to here.
67268
67269 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67270
67271         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
67272         implementations that mishandle size_t overflow.
67273
67274 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67275
67276         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
67277         might fail.  Problem reported by Yoann Vandoorselaere.
67278         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
67279         implementations that mishandle size_t overflow.
67280
67281 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67282
67283         * modules/canon-host (Depends-on): Add strdup.
67284
67285 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67286
67287         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
67288
67289 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67290
67291         * lib/canon-host.c: Include "strdup.h".
67292         (canon_host): Use getaddrinfo if available, so that IPv6 works.
67293         Use strdup instead of malloc/strcpy to duplicate strings.
67294
67295         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
67296         (human_space_before_unit): New constant.
67297         * lib/human.c (human_readable): Support it.
67298
67299         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
67300         (xgetcwd): Set errno correctly when failing.
67301         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
67302         the failure is actually due to a PATH_MAX problem.
67303
67304         Further getopt changes to make it more likely that glibc will
67305         buy the changes back.
67306         * lib/getopt.c (POSIXLY_CORRECT): New constant.
67307         (getopt): Use it, so to preserve glibc semantic
67308         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
67309         when compiling for libc.
67310         * lib/getopt_.h (__getopt_argv_const): Bring it back.
67311         (getopt_long, getopt_long_only): Use it.
67312
67313         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67314         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
67315         (getopt): Argv is now char * const *, as per standard.
67316         (_getopt_internal_r, _getopt_internal): Argv is now char **,
67317         not char *__getopt_argv_const *.
67318         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67319         _getopt_long_only_r): Likewise.
67320         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
67321         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67322         _getopt_long_r, _getopt_long_only_r): Likewise.
67323         * lib/getopt_.h (__getopt_argv_const): Remove.
67324         (getopt): Argv is now char * const *, as per standard.
67325
67326         * lib/getdate.y (tORDINAL): New token.
67327         (day, relunit): Allow it for relative times.
67328         (relative_time_table): Use tORDINAL for ordinals.
67329
67330 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67331
67332         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
67333         Document that "second" isn't allowed as an ordinal number.
67334
67335 2004-11-16  Jim Meyering  <jim@meyering.net>
67336
67337         * modules/closeout (Depends-on): Add fpending.
67338
67339 2004-11-15  Jim Meyering  <jim@meyering.net>
67340
67341         * lib/closeout.c: Include "__fpending.h" once again.
67342         Include <stdbool.h>.
67343         (close_stdout): Don't fail just because stdout was closed initially,
67344         since some programs don't write to stdout in the normal course of
67345         operation (other than --version and --help), and we don't want this
67346         function to make e.g. `touch file >&-' fail.
67347         But do fail if it was closed and someone has tried to write to it.
67348         E.g., `printf foo >&-' must fail.
67349
67350 2004-11-13  Jim Meyering  <jim@meyering.net>
67351
67352         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
67353
67354 2004-11-12  Simon Josefsson  <jas@extundo.com>
67355
67356         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
67357         small doc fix is still pending.
67358
67359 2004-11-11  Simon Josefsson  <jas@extundo.com>
67360
67361         * modules/strtok_r: New file.
67362
67363         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67364         strtok_r.
67365
67366 2004-11-11  Simon Josefsson  <jas@extundo.com>
67367
67368         * m4/strtok_r.m4: New file.
67369
67370         * m4/getopt.m4: Replace opterr.
67371
67372 2004-11-11  Simon Josefsson  <jas@extundo.com>
67373
67374         * lib/strtok_r.h, strtok_r.c: New file.
67375
67376 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67377
67378         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
67379         of replacing opterr, getopt, etc.  This should handle the
67380         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
67381
67382 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67383
67384         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
67385         we can stop lying to compilers about the constness of argv when we
67386         are compiled outside glibc.
67387         (getopt, getopt_long, getopt_long_only): Use it.
67388         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67389         _getopt_internal, getopt): Likewise.
67390         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67391         _getopt_long_only_r): Likewise.
67392         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67393         _getopt_long_r, _getopt_long_only_r): Likewise.
67394
67395         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
67396         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
67397         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
67398         the other external symbols.
67399         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
67400         declaration, since the above renaming now works around collisions.
67401
67402 2004-11-11  Jim Meyering  <jim@meyering.net>
67403
67404         * lib/linebreak.c: Remove trailing blanks.
67405         * lib/alloca_.h: Likewise.
67406         * lib/acosl.c: Likewise.
67407         * lib/euidaccess.c: Likewise.
67408         * lib/allocsa.h: Likewise.
67409
67410 2004-11-10  Simon Josefsson  <jas@extundo.com>
67411
67412         * m4/getaddrinfo.m4: New file.
67413
67414 2004-11-10  Simon Josefsson  <jas@extundo.com>
67415
67416         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
67417
67418 2004-11-10  Simon Josefsson  <jas@extundo.com>
67419
67420         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67421         getaddrinfo.
67422
67423         * modules/getaddrinfo: New file.
67424
67425 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67426
67427         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
67428
67429 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67430
67431         * lib/mktime.c (SHR): New macro, which is a portable
67432         substitute for >> that should work even on Crays.
67433         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
67434         Problem reported by Mark D. Baushke in
67435         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
67436         * lib/getdate.y (SHR): Likewise.
67437         (tm_diff): Use it.
67438         * lib/strftime.c (SHR): Likewise.
67439         (tm_diff): Use it.
67440         * lib/quotearg.c (struct quoting_options): Use unsigned int for
67441         quote_these_too, so that right shifts are well defined.  All uses
67442         changed.
67443
67444 2004-11-10  Jim Meyering  <jim@meyering.net>
67445
67446         Ensure that no close failure goes unreported.
67447         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
67448         return early when it seems there's nothing to flush.
67449         Don't include __fpending.h.
67450
67451 2004-11-10  Jim Meyering  <jim@meyering.net>
67452
67453         * modules/closeout (Depends-on): Remove fpending.
67454
67455 2004-11-10  Jim Meyering  <jim@meyering.net>
67456
67457         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
67458
67459 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67460
67461         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
67462         gl_FUNC_STRFTIME.
67463         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
67464         and AC_REQUIRE when possible, to avoid duplicate checks.
67465         Check for <wchar.h>.
67466
67467 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67468
67469         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
67470
67471 2004-11-09  Bruno Haible  <bruno@clisp.org>
67472
67473         * m4/sockpfaf.m4: New file.
67474
67475 2004-11-05  Bruno Haible  <bruno@clisp.org>
67476
67477         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
67478         Reported by Mark D. Baushke <mdb@cvshome.org>.
67479
67480 2004-11-04  Bruno Haible  <bruno@clisp.org>
67481
67482         2004-09-11  Bruno Haible  <bruno@clisp.org>
67483                 * allocsa.valgrind: New file.
67484         2004-02-06  Bruno Haible  <bruno@clisp.org>
67485                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
67486                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
67487                 Reported by Christopher Seip <chris.seip@hp.com>.
67488
67489 2004-11-04  Bruno Haible  <bruno@clisp.org>
67490
67491         * modules/allocsa (Files): Add lib/allocsa.valgrind.
67492         (Makefile.am): Distribute it.
67493
67494 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67495
67496         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
67497         with errno == ERANGE if the buffer is too small.
67498         Problem reported by Mark D. Baushke.
67499
67500 2004-11-03  Albert Chin  <china@thewrittenword.com>
67501             Paul Eggert  <eggert@cs.ucla.edu>
67502
67503         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
67504         equivalent, substitute $ac_type for equivalent type rather than
67505         blindly using uint32_t *always* which won't work if uint32_t is not
67506         available.  Define _UINT32_T to work around typedef of uint32_t if
67507         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
67508         2.5.1.
67509
67510 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67511
67512         * m4/jm-macros.m4: Sync from coreutils.
67513         (gl_MACROS): Check for mbrlen, for pathchk.
67514         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
67515
67516 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67517
67518         * lib/xreadlink.c (MAXSIZE): New macro.
67519         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
67520         size does not exceed MAXSIZE.  Avoid cast.
67521         As suggested by Mark D. Baushke in
67522         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
67523         if readlink fails with buffer size just under MAXSIZE, try again
67524         with MAXSIZE.
67525
67526 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67527
67528         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
67529
67530 2004-11-02  Derek R. Price  <derek@ximbiot.com>
67531         and  Paul Eggert  <eggert@cs.ucla.edu>
67532
67533         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
67534         (get_date): Overparenthesize to avoid GCC warning.
67535
67536 2004-11-02  Bruno Haible  <bruno@clisp.org>
67537
67538         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
67539         returns void.
67540
67541 2004-11-02  Bruno Haible  <bruno@clisp.org>
67542
67543         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
67544         function returns void.
67545
67546 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
67547
67548         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
67549         fflush_unlocked, flockfile, funlockfile, funlockfile,
67550         fputs_unlocked, putc_unlocked.
67551
67552 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
67553
67554         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
67555         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
67556         already declared.
67557
67558 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67559
67560         * modules/getdate (Files): Add doc/getdate.texi.
67561         (Depends-on): Add setenv, xalloc.
67562
67563 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67564
67565         * lib/getdate.y: Add support for TZ="foo" within a date string.
67566         Fix some bugs near time_t boundaries.  Reject dates with
67567         out-of-range components, e.g., "Sept 31".
67568         Include <stdlib.h>, "setenv.h", "xalloc.h".
67569         (ISDIGIT_LOCALE): Remove; unused.
67570         Note that the TZ and time functions used here are not reentrant.
67571         (mktime_ok, get_tz): New functions.
67572         (TZBUFSIZE): New constant.
67573         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
67574         This requires that we sometimes generate our own TZ="XXX..." setting.
67575
67576 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67577
67578         * doc/getdate.texi: New file, from coreutils with modifications for
67579         the new TZ parsing.
67580
67581 2004-10-27  Derek R. Price  <derek@ximbiot.com>
67582
67583         * lib/mktime.c (not_equal_tm): Remove redundant check.
67584
67585 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67586
67587         * modules/regex (lib_SOURCES): Add regex.c.
67588         Reported by James Youngman in
67589         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
67590
67591 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67592
67593         * lib/getdate.y: Use Bison 1.875 features, and some minor
67594         code cleanups.  This change does not affect semantics.
67595         Don't include <stdlib.h>; no longer needed.
67596         Don't include unlocked-io.h; only the "#if TEST" code uses
67597         stdio, and performance isn't crucial there.
67598         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
67599         Bison 1.875 features as described below.
67600         All uses of "PC." replaced by "pc->".
67601         (YYSTYPE): Add a forward declaration.
67602         (yylex, yyerror): Use full prototypes in forward decls.
67603         Use "%pure-parser" rather than obsolescent "%pure_parser".
67604         Use %parse-param and %lex-param instead of obsolescent
67605         YYPARSE_PARAM and YYLEX_PARAM.
67606         (meridian_table, month_and_day_table, time_units_table,
67607         relative_time_table, time_zone_table, military_table,
67608         lookup_zone, lookup_word, get_date):
67609         Use NULL instead of 0 where appropriate.
67610         (to_hour): Avoid abort (), to avoid a dependency on
67611         stdlib.h.
67612         (yyerror, yylex): Now accepts parser_control * arg.
67613         (main) [TEST]: Use '\0' rather than 0 for char.
67614
67615 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67616
67617         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
67618
67619 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67620
67621         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
67622         It's now the caller's responsibility to handle the case where
67623         !HAVE_GETPAGESIZE && !defined getpagesize.
67624
67625         * lib/mktime.c (leapyear): Arg is long int, not int.
67626
67627 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
67628
67629         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
67630
67631 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67632
67633         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
67634         missing.  Problem reported by James Youngman.
67635
67636 2004-10-16  Simon Josefsson  <jas@extundo.com>
67637
67638         * gnulib-tool: Fix comments.  Fix parse problem.
67639         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
67640
67641 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
67642
67643         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
67644         implementation of getopt_long.  Problem reported by Alexander Taler in:
67645         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
67646
67647 2004-10-15  Bruno Haible  <bruno@clisp.org>
67648
67649         * gnulib-tool: Untabify. Initialize supplied_libname.
67650         (func_usage): More homogenous output.
67651         (func_modules_transitive_closure, func_modules_to_filelist,
67652         func_emit_lib_Makefile_am): New functions.
67653         (func_import): New function, extracted from big case statement. Use
67654         func_get_license, func_modules_transitive_closure,
67655         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
67656         opt_lgpl. Don't use test -a, as it's not portable.
67657         (func_create_testdir): Use func_modules_transitive_closure,
67658         func_modules_to_filelist, func_emit_lib_Makefile_am.
67659
67660 2004-10-15  Bruno Haible  <bruno@clisp.org>
67661
67662         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
67663
67664 2004-10-15  Bruno Haible  <bruno@clisp.org>
67665
67666         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
67667         the portions belonging to each module.
67668         Suggested by Derek Robert Price <derek@ximbiot.com>.
67669
67670 2004-10-12  Simon Josefsson  <jas@extundo.com>
67671
67672         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
67673         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
67674         to real functions.
67675
67676 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67677
67678         * modules/vsnprintf: New file.
67679
67680 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67681
67682         * m4/vsnprintf.m4: New file.
67683
67684 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67685
67686         * lib/vsnprintf.h: New file.
67687         * lib/vsnprintf.c: New file.
67688
67689 2004-10-11  Bruno Haible  <bruno@clisp.org>
67690
67691         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
67692         vsnprintf.
67693
67694 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67695
67696         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
67697
67698 2004-10-07  Bruno Haible  <bruno@clisp.org>
67699
67700         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
67701         fits into the provided buffer.
67702
67703 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67704
67705         * lib/diacrit.c, diacrit.h: Add GPL notice.
67706
67707         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
67708         notice.
67709         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
67710         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
67711         This avoids a potential constant-folding bug.
67712
67713 2004-10-05  Bruno Haible  <bruno@clisp.org>
67714
67715         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
67716         for the declaration of strsep.
67717
67718 2004-10-05  Bruno Haible  <bruno@clisp.org>
67719
67720         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
67721
67722 2004-10-04  Simon Josefsson  <jas@extundo.com>
67723
67724         * modules/memmem: New file.
67725         * tests/test-memmem.c: New file.
67726         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
67727
67728 2004-10-04  Simon Josefsson  <jas@extundo.com>
67729
67730         * m4/memmem.m4: New file.
67731
67732 2004-10-04  Simon Josefsson  <jas@extundo.com>
67733
67734         * lib/memmem.h: New file.
67735         * lib/memmem.c: New file, taken from glibc.
67736
67737 2004-10-04  Simon Josefsson  <jas@extundo.com>
67738
67739         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
67740         '#ifdef USE_UNLOCKED_IO'.
67741
67742 2004-10-04  Simon Josefsson  <jas@extundo.com>
67743
67744         * config/srclist.txt: Add memmem from glibc.
67745
67746 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67747
67748         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
67749
67750         * modules/argmatch, modules/argp, modules/closeout, modules/error,
67751         modules/exclude, modules/getdate, modules/getline,
67752         modules/getndelim2, modules/getpass, modules/getpass-gnu,
67753         modules/getusershell, modules/linebuffer, modules/md5,
67754         modules/mountlist, modules/posixtm, modules/readtokens,
67755         modules/readutmp, modules/regex, modules/sha1,
67756         modules/version-etc, modules/yesno:
67757         Remove dependency on unlocked-io.
67758
67759 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67760
67761         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
67762
67763         * m4/unlocked-io.m4: Add copyright notice.
67764         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
67765
67766 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67767
67768         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
67769         * lib/xmalloc.c (xmemdup): Likewise.
67770         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
67771         XFREE): Remove these long-obsolescent macros.
67772         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
67773         * lib/xstrdup.c: Remove.
67774
67775         * lib/regex.c (re_comp): Cast gettext return value to char *,
67776         Problem reported by Martin Neitzel via Mark D. Baushke.
67777
67778 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67779
67780         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
67781         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
67782         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
67783         regex.c, sha1.c, version-etc.c, yesno.c:
67784         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
67785         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
67786         the includer's responsibility.
67787
67788         Sync from coreutils.
67789
67790         * lib/modechange.c (mode_compile): Don't decrement a pointer that
67791         points to the start of a string, as the C Standard says the
67792         resulting behavior is undefined.
67793
67794         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
67795         simple -> simple_backups, numbered_existing ->
67796         numbered_existing_backups, numbered -> numbered_backups
67797         to avoid shadowing problems.  All uses changed.
67798         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
67799         * lib/backupfile.c (check_extension, numbered_backup):
67800         Rename locals to avoid shadowing 'basename'.
67801         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
67802         once.
67803
67804         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
67805         * lib/.cvsignore: Add getopt.h.
67806
67807 2004-10-04  Bruno Haible  <bruno@clisp.org>
67808
67809         * modules/README: New file.
67810         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
67811         not a module.
67812
67813 2004-10-02  Jim Meyering  <jim@meyering.net>
67814
67815         * lib/dirfd.h, getpagesize.h: Add copyright notice.
67816
67817 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67818
67819         * modules/strsep: New file.
67820
67821 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67822
67823         * m4/strsep.m4: New file.
67824
67825 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67826
67827         * lib/strsep.h: New file.
67828         * lib/strsep.c: New file.
67829
67830 2004-10-01  Simon Josefsson  <jas@extundo.com>
67831
67832         * lib/snprintf.c (snprintf): Handle size==0.
67833
67834 2004-10-01  Simon Josefsson  <jas@extundo.com>
67835             Bruno Haible  <bruno@clisp.org>
67836
67837         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
67838         (snprintf): Declare 'args'.
67839
67840 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
67841
67842         * lib/snprintf.c: Remove comments as to why each header is needed.
67843
67844 2004-10-01  Bruno Haible  <bruno@clisp.org>
67845
67846         * MODULES.html.sh: Add strsep.
67847
67848 2004-09-30  Simon Josefsson  <jas@extundo.com>
67849
67850         * modules/snprintf: New file.
67851
67852 2004-09-30  Simon Josefsson  <jas@extundo.com>
67853
67854         * m4/snprintf.m4: New file.
67855
67856 2004-09-30  Simon Josefsson  <jas@extundo.com>
67857
67858         * lib/snprintf.h, lib/snprintf.c: New files.
67859
67860 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67861
67862         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
67863         (hol_entry_help): Never translate an empty string.
67864         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
67865         * lib/argp.h (OPTION_NO_TRANS): New option.
67866
67867 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67868
67869         * modules/argp (Maintainer): Replace Simon Josefsson
67870         by Sergey Poznyakoff.
67871
67872 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67873
67874         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
67875         changes merged back into glibc.
67876
67877 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67878
67879         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
67880
67881 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67882
67883         * lib/xvasprintf.c: Include xalloc.h.
67884         (xvasprintf): Use xalloc_die, not xmalloc_die.
67885
67886 2004-09-29  Bruno Haible  <bruno@clisp.org>
67887
67888         * modules/alloca-opt: New file, derived from modules/alloca.
67889         * modules/allocsa: Depend on alloca-opt instead of alloca.
67890         * modules/setenv: Likewise.
67891         * modules/vasnprintf: Likewise.
67892         * MODULES.html.sh: Add alloca-opt.
67893
67894 2004-09-28  Simon Josefsson  <jas@extundo.com>
67895
67896         * gnulib-tool: New parameter --lgpl, to asseert that modules are
67897         LGPL, and to replace license template from GPL to LGPL.
67898
67899 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67900
67901         * modules/dummy: Change license to LGPL.
67902
67903 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67904
67905         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
67906
67907 2004-09-24  Simon Josefsson  <jas@extundo.com>
67908
67909         * modules/minmax (License): Change from GPL to LGPL.
67910
67911 2004-09-23  Simon Josefsson  <jas@extundo.com>
67912
67913         * gnulib-tool (--import): Typo.
67914
67915 2004-09-23  Simon Josefsson  <jas@extundo.com>
67916
67917         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
67918
67919 2004-09-22  Bruno Haible  <bruno@clisp.org>
67920
67921         * modules/*: Add 'License' field.
67922         * gnulib-tool: Accept --extract-license option.
67923         (func_get_license): New function.
67924
67925 2004-09-21  Bruno Haible  <bruno@clisp.org>
67926
67927         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
67928         Reported by Simon Josefsson.
67929
67930 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67931
67932         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
67933         gl_AC_TYPE_LONG_LONG.
67934
67935 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67936
67937         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
67938
67939 2004-09-18  Simon Josefsson  <jas@extundo.com>
67940         and  Paul Eggert  <eggert@cs.ucla.edu>
67941
67942         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
67943         calls with autoreconf.  Define GL_LIB.
67944
67945 2004-09-14  Karl Berry  <karl@gnu.org>
67946
67947         * config/srclist.txt: unsync setenv.c, sigh.
67948
67949 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67950
67951         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
67952         Problem reported by Bruno Haible in:
67953         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
67954
67955 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67956
67957         * config/srclist.txt: Comment out argp-pvh.c.
67958
67959 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
67960
67961         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
67962         in case some system header has #define'd it.  Problem reported by
67963         Soeren D. Schulze in
67964         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
67965
67966 2004-09-09  Karl Berry  <karl@gnu.org>
67967
67968         * regex.[ch]: delete from the root.  These were supposed to be
67969                 synced with emacs cvs, but this has not happened for about
67970                 a year, and anyway nothing else uses emacs regex.[ch].
67971                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
67972                 lib/regex[.ch] is untouched.
67973
67974 2004-09-09  Bruno Haible  <bruno@clisp.org>
67975
67976         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
67977
67978 2004-09-09  Bruno Haible  <bruno@clisp.org>
67979
67980         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
67981         modifications.
67982         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
67983
67984 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67985
67986         * modules/xvasprintf: New file.
67987         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
67988
67989 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67990
67991         * lib/xvasprintf.h: New file.
67992         * lib/xvasprintf.c: New file.
67993         * lib/xasprintf.c: New file.
67994
67995 2004-09-08  Bruno Haible  <bruno@clisp.org>
67996
67997         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
67998
67999 2004-09-08  Bruno Haible  <bruno@clisp.org>
68000
68001         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
68002         length is > INT_MAX.
68003         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
68004         more.
68005
68006 2004-09-08  Bruno Haible  <bruno@clisp.org>
68007
68008         * lib/stdint_.h: New file, taken from GNU clisp.
68009
68010 2004-09-08  Bruno Haible  <bruno@clisp.org>
68011             Oskar Liljeblad  <oskar@osk.mine.nu>
68012
68013         * modules/stdint: New file.
68014         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
68015
68016 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68017
68018         Import from coreutils.
68019         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
68020         strings on unbounded length.  alloca's performance benefits aren't
68021         that important here.
68022         (V_STRDUP): Remove.
68023         (parse_with_separator): New function, with most of the internals
68024         of the old parse_user_spec.  Allow user to omit both user and group,
68025         for compatibility with FreeBSD.
68026         Clone only the user name, not the entire spec.
68027         Do not set *uid, *gid unless entirely successful.
68028         Avoid memory leak in some failing cases.
68029         Fix regression for USER.GROUP reported by Dmitry V. Levin in
68030         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
68031         (parse_user_spec): Rewrite to use parse_with_separator.
68032
68033 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68034
68035         * modules/userspec: Don't depend on alloca.
68036
68037 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68038
68039         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
68040
68041 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68042
68043         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
68044         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
68045         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
68046
68047 2004-08-16  Simon Josefsson  <jas@extundo.com>
68048
68049         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
68050         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
68051         Add --dry-run for --import.
68052         Let user provided command line parameters override configure.ac
68053         settings.
68054
68055 2004-08-12  Simon Josefsson  <jas@extundo.com>
68056
68057         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
68058         as discussed with Paul Eggert in threads rooted at
68059         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
68060         and
68061         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
68062         Before, the test was empty, and relied on ELIDE_CODE in source
68063         code.)
68064         (gl_PREREQ_GETOPT): New macro.
68065         (gl_GETOPT): Use them.
68066
68067 2004-08-12  Simon Josefsson  <jas@extundo.com>
68068
68069         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
68070         * lib/getopt_.h: Renamed from getopt.h.
68071
68072 2004-08-12  Simon Josefsson  <jas@extundo.com>
68073
68074         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
68075         Change default library name from libfoo to libgnu.
68076         Now, if you have a configure.ac that says:
68077                 gl_SOURCE_BASE(gl)
68078                 gl_M4_BASE(gl/m4)
68079                 gl_MODULES(error getopt etcetera)
68080                 gl_INIT
68081         you can import all you need by running:
68082                 ../gnulib/gnulib-tool --import
68083
68084         * modules/getopt (Files): Rename getopt.h to getopt_.h.
68085         (Makefile.am): Rewrite, use logic from argz.
68086         (Include): Use <getopt.h> instead of "getopt.h".
68087
68088 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68089
68090         * modules/argp (Files): Add m4/unlocked-io.m4.
68091         (Depends-on): Add extensions.
68092
68093 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68094
68095         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
68096         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
68097         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
68098         Check for program_invocation_name, program_invocation_short_name,
68099         flockfile, funlockfile, features.h, _getopt_long_only_r.
68100
68101 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68102
68103         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
68104         its complicated substitute.
68105         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
68106         and program_invocation_name.
68107         (__argp_basename) [!_LIBC]: Remove; the only use was
68108         replaced by its body.
68109         (__argp_short_program_name): Change condition from
68110         !defined __argp_short_program_name to
68111         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
68112         to match argp-namefrob.h.
68113         (__argp_failure): Don't assume strerror_r returns char *.
68114         * lib/argp-parse.c (N_): Define unconditionally.
68115         (argp_default_options): Fill out initializers with 0 to avoid
68116         gcc warnings.
68117
68118 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68119
68120         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
68121         getopt1.c.
68122
68123 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68124
68125         Merge from coreutils.
68126
68127         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
68128
68129         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
68130         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
68131
68132 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68133
68134         Merge from coreutils.
68135
68136         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
68137         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
68138         for Reliant Unix 5.43.
68139
68140         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
68141         (union fooround): Use uintmax_t, not long int.
68142         The rest is a merge from libc:
68143         [defined _LIBC]: Include <shlib-compat.h>.
68144         (_obstack) [defined _LIBC]: Remove after 2.3.4.
68145
68146         * lib/settime.c (settime): Recode to avoid warning with
68147         Sun Forte C 6U2.
68148
68149         * lib/strverscmp.c: Convert to UTF-8.
68150
68151 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68152
68153         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68154         m4/uintmax_t.m4.
68155
68156 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68157
68158         * modules/xalloc-die: New file.
68159         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
68160
68161         * modules/md5 (Files): Add m4/uint32_t.m4.
68162         * modules/sha1: Renamed from modules/sha.
68163         (Files):
68164         Rename lib/sha.h to lib/sha1.h.
68165         Rename lib/sha.c to lib/sha1.c.
68166         Rename m4/sha.m4 to m4/sha1.m4.
68167         (lib_SOURCES): Likewise.
68168         (configure.ac): Rename gl_SHA to gl_SHA1.
68169         (Include): sha.h -> sha1.h.
68170
68171 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68172
68173         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
68174         * m4/sha1.m4: Renamed from sha.m4.
68175         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
68176
68177 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68178
68179         * lib/obstack.h (obstack_empty_p):
68180         Don't assume that chunk->contents is suitably aligned.
68181         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
68182         Likewise. Problem reported by Benno in
68183         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
68184
68185         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
68186         readable.  This could be improved further but it'd take some work.
68187
68188 2004-08-08  Simon Josefsson  <jas@extundo.com>
68189
68190         * modules/xgethostname (Depends-on): Remove exit and error (not
68191         used).
68192
68193         * modules/getpass-gnu: Add getpass.h.
68194         (Depends-on): Add stdbool.
68195         * modules/getpass: Add getpass.h.
68196
68197 2004-08-08  Simon Josefsson  <jas@extundo.com>
68198
68199         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
68200         Check getpass declaration.
68201
68202 2004-08-08  Simon Josefsson  <jas@extundo.com>
68203
68204         * lib/xgethostname.c: Don't include error.h (not used).
68205
68206         * lib/getpass.h: Add.
68207         * lib/getpass.c: Include getpass.h first.
68208
68209 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
68210
68211         * lib/xalloc-die.c: New file.
68212         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
68213         All uses removed.
68214         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
68215         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
68216         xalloc-die.c.
68217         (_, N_, xalloc_die): Move to xalloc-die.c.
68218         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
68219         so that we needn't mess with xalloc_msg_memory_exhausted.
68220
68221         * lib/sha1.h: Renamed from sha.h.
68222         (SHA1_H): Renamed from _SHA_H.
68223         (sha1_ctx): Renamed from sha_ctx.
68224         (sha1_init_ctx): Renamed from sha_init_ctx.
68225         (sha1_process_block): Renamed from sha_process_block.
68226         (sha1_process_bytes): Renamed from sha_process_bytes.
68227         (sha1_finish_ctx): Renamed from sha_finish_ctx.
68228         (sha1_read_ctx): Renamed from sha_read_ctx.
68229         (sha1_stream): Renamed from sha_stream.
68230         (sha1_buffer): Renamed from sha_buffer.
68231         * lib/sha1.c: Likewise; renamed from sha.c.
68232         Do not include <sys/types.h>.
68233         Include <stddef.h> rather than <stdlib.h>.
68234
68235 2004-08-08  Bruno Haible  <bruno@clisp.org>
68236
68237         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
68238         FILESYSTEM_PREFIX_LEN.
68239         * lib/progreloc.c: Likewise.
68240         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
68241
68242 2004-08-06  Simon Josefsson  <jas@extundo.com>
68243
68244         * modules/progname (Depends-on): Don't depend on stdbool.
68245
68246 2004-08-06  Simon Josefsson  <jas@extundo.com>
68247
68248         * modules/getsubopt: New file.
68249         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68250         getsubopt.
68251
68252 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68253
68254         More merge from coreutils.
68255
68256         * m4/utimens.m4, m4/utimecmp.m4: New files.
68257         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
68258         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
68259         prereq.m4, sha.m4: Import changes from coreutils.
68260
68261 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68262
68263         More merge from coreutils.
68264         * modules/raise, modules/readtokens0, modules/utimens:
68265         * modules/utimecmp, module/xnanosleep: New files.
68266         * modules/strftime: Add lib/strftime.h.
68267         Change include from <time.h> to "strftime.h".
68268         * modules/yesno: Add lib/yesno.h.
68269         * modules/backupfile: Remove lib/addext.c.
68270         * modules/euidaccess: Add stat-macros.h.
68271         * modules/canonicalize, modules/euidaccess,
68272         modules/filemode, modules/lchown, modules/makepath,
68273         modules/rmdir, modules/stat: Likewise.
68274
68275 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68276
68277         Merge from tar.
68278         * lib/argp-help.c (make_hol, hol_append): Don't assume that
68279         SIZE_MAX is a valid preprocessor constant.
68280         (__argp_basename): Change from "#ifndef _LIBC"
68281         to "#ifndef __argp_short_program_name", so that
68282         we don't compile these functions for tar.
68283
68284         More merges from coreutils.
68285         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
68286         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
68287         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
68288         * lib/addext.c: Remove; no longer needed.
68289         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
68290         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
68291         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
68292         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
68293         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
68294         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
68295         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
68296         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
68297         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
68298         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68299         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
68300         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
68301         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
68302         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
68303         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
68304         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
68305         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
68306         Import changes from coreutils.
68307
68308 2004-08-05  Simon Josefsson  <jas@extundo.com>
68309
68310         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
68311
68312 2004-08-05  Simon Josefsson  <jas@extundo.com>
68313
68314         * m4/getsubopt.m4: New file.
68315
68316 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         Merge from coreutils.
68319
68320         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
68321         * m4/getcwd-path-max.m4: New files.
68322
68323         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
68324         FILESYSTEM_PREFIX_LEN ->
68325         FILE_SYSTEM_PREFIX_LEN.
68326         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
68327         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
68328         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
68329         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
68330
68331         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
68332         prerequisite modules now handle the DOS stuff.
68333         Don't check for unistd.h.
68334
68335 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68336
68337         Merge from coreutils.
68338
68339         * lib/.gdb-history: Remove; this doesn't belong here.
68340
68341         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
68342         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
68343         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
68344         * lib/getcwd.c: New files.
68345
68346         * lib/dirname.h: Include <stdbool.h>.
68347         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
68348         for consistency with POSIX terminology.  All uses changed.
68349         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
68350         (strip_trailing_slashes): Use bool for booleans.
68351         * lib/stripslash.c (strip_trailing_slashes): Likewise.
68352
68353         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
68354         sometimes returns a positive errno value even when it succeeds.
68355         (print_errno_message) [!LIBC]: Fall back on strerror if
68356         __strerror_r fails.
68357
68358         * lib/path-concat.c (mempcpy): Don't define if a system header defines
68359         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
68360         (longest_relative_suffix): New function.
68361         (path_concat): Use it.  Assume first argument is not NULL.
68362         Port to DOS.  Omit redundant separators.
68363         Report an error instead of returning NULL.
68364         Use mempcpy instead of memcpy.
68365         (xpath_concat): Remove: not declared or used.
68366
68367         * lib/same.h: Include <stdbool.h>
68368         (same_name): Return bool, not int.
68369         * lib/same.c (same_name): Likewise.
68370         (errno): Don't declare; we assume C89 or better now.
68371
68372         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
68373         if not already defined.
68374
68375         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
68376         * lib/dup-safer.c (errno): Likewise.
68377
68378 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68379
68380         Merge from coreutils.
68381         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
68382         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
68383         * modules/path-concat: Don't depend on strdup.
68384
68385 2004-08-03  Simon Josefsson  <jas@extundo.com>
68386
68387         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
68388         * lib/progname.h: Don't include stdbool.h.
68389
68390 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68391
68392         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
68393         * MODULES.html.sh (func_all_modules): Remove fatal.
68394
68395 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68396
68397         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
68398
68399 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68400
68401         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
68402         working.
68403
68404 2004-08-02  Simon Josefsson  <jas@extundo.com>
68405
68406         * lib/getsubopt.h: New file, with comments from Bruno Haible.
68407         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
68408         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
68409
68410 2004-08-01  Simon Josefsson  <jas@extundo.com>
68411
68412         * lib/xgetdomainname.c: Include stdlib.h, for free().
68413
68414 2004-07-19  Bruno Haible  <bruno@clisp.org>
68415
68416         * MODULES.html.sh (func_all_modules): Add dummy.
68417
68418 2004-07-16  Simon Josefsson  <jas@extundo.com>
68419
68420         * modules/dummy: New file.
68421
68422 2004-07-16  Simon Josefsson  <jas@extundo.com>
68423
68424         * lib/dummy.c: New file.
68425
68426 2004-07-16  Bruno Haible  <bruno@clisp.org>
68427
68428         * lib/backupfile.h: Add extern "C" for C++.
68429         * lib/closeout.h: Likewise.
68430         * lib/copy-file.h: Likewise.
68431         * lib/findprog.h: Likewise.
68432         * lib/full-write.h: Likewise.
68433         * lib/pathname.h: Likewise.
68434         * lib/progname.h: Likewise.
68435         * lib/stpcpy.h: Likewise.
68436         * lib/stpncpy.h: Likewise.
68437         * lib/strcase.h: Likewise.
68438         * lib/strstr.h: Likewise.
68439         * lib/xalloc.h: Likewise.
68440
68441         * lib/mbswidth.h: Add extern "C" for C++.
68442         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
68443
68444 2004-07-13  Robert Millan  <robertmh@gnu.org>
68445
68446         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
68447
68448 2004-07-09  Simon Josefsson  <jas@extundo.com>
68449
68450         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
68451         failed without this.)
68452
68453 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68454
68455         * modules/chown (Files): Add lib/fchown-stub.c, since
68456         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
68457
68458 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68459
68460         * lib/fchown-stub.c: New file.
68461
68462 2004-06-24  Jim Meyering  <jim@meyering.net>
68463
68464         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
68465
68466 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68467
68468         * modules/argz: Omit "#include".
68469
68470         * MODULES.html.sh (func_all_modules): Add calloc, to match
68471         2004-06-01 addition of calloc module.
68472
68473 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68474
68475         * m4/argz.m4: New file, which is autoupdated from libtool.
68476
68477 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68478
68479         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
68480         libtool.
68481
68482 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68483
68484         * config/srclist-update: Don't insist on "USA." before the
68485         close-comment, as libtool omits the period and puts the */ on a
68486         separate line.
68487         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
68488         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
68489
68490 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
68491
68492         * modules/argz: New file.
68493         * MODULES.html.sh (func_all_modules): Add argz.
68494
68495 2004-06-12  Jim Meyering  <jim@meyering.net>
68496         and  Paul Eggert  <eggert@cs.ucla.edu>
68497
68498         * modules/hash (Files): Add lib/xalloc.h.
68499         * modules/pipe (Depends-on): Add wait-process.
68500         * modules/stat (Depends-on): Add xalloc.
68501         * modules/userspec (Files): Add lib/userspec.h.
68502         * modules/xstrto
68503
68504         Upgrade from gettext-0.13.
68505         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
68506         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
68507         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
68508
68509 2004-06-10  Jim Meyering  <jim@meyering.net>
68510
68511         * lib/calloc.c: New file.
68512
68513 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68514
68515         * lib/getdate.y (yylex): Allow space between sign and number.
68516         Problem reported by Dan Jacobson.
68517
68518 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
68519
68520         Merge from coreutils CVS.
68521
68522         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
68523         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
68524         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
68525         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
68526         xstrtol.m4: Fix copyright date and/or serial number.
68527
68528         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
68529         See if we need an fchown replacement.
68530         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
68531         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
68532         and use the replacement function if we detect either defect.
68533
68534         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
68535         gl_UTIMECMP.
68536
68537 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
68538         and  Jim Meyering  <jim@meyering.net>
68539
68540         Merge from coreutils CVS.
68541
68542         * lib/stat-macros.h: New file, with contents from file-type.h
68543         and coreutils' system.h.
68544         * lib/file-type.c: Include "stat-macros.h".
68545         * lib/file-type.h (file_type): Move all macro definitions to new file,
68546         stat-macros.h.
68547
68548         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
68549         Wrap old code with this conditional.
68550         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
68551         function that does not dereference symlinks.
68552         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
68553
68554         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
68555         dependency problems.
68556         (xreadlink): Accept new arg SIZE, for efficiency.
68557         All decls and uses changed.
68558         * lib/xreadlink.h: Include <stddef.h>, for size_t.
68559
68560         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
68561         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
68562
68563         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
68564         sysexits.h.
68565
68566 2004-06-01  Jim Meyering  <jim@meyering.net>
68567
68568         * m4/calloc.m4: New file.
68569
68570 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
68571
68572         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
68573         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
68574         Also, fix a typo in a diagnostic.
68575
68576 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
68577
68578         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
68579         or AC_FUNC_REALLOC.
68580
68581 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
68582
68583         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
68584         macros to be defined.
68585         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
68586         the allocator returns NULL because the requested size is zero.
68587
68588 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68589
68590         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
68591         var.  Add comment explaining why libc still defines it.  This
68592         merges the following patch from glibc:
68593         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
68594
68595 2004-05-20  Andreas Schwab  <schwab@suse.de>
68596
68597         * m4/free.m4: Replace free if it not known to work, not the other
68598         way round.
68599
68600 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68601
68602         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
68603         present in glibc since revision 1.1 of this file.
68604         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
68605         obstack_alignment_mask, obstack_alloc, obstack_base,
68606         obstack_blank, obstack_blank_fast, obstack_chunk_size,
68607         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
68608         obstack_grow0, obstack_init, obstack_int_grow,
68609         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
68610         obstack_next_free, obstack_object_size, obstack_ptr_grow,
68611         obstack_ptr_grow_fast, obstack_room): Remove declarations of
68612         nonexistent functions.
68613
68614 2004-05-18  Karl Berry  <karl@gnu.org>
68615
68616         * config/srclist.txt: break link for vasnprintf.c.
68617
68618 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68619
68620         Port obstack to the AS/400, where pointers are 16 bytes wide and
68621         you cannot cast an integer to a valid pointer.  This patch is
68622         currently waiting to be integrated into glibc; see
68623         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
68624
68625         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
68626         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
68627         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
68628         (struct obstack): temp member is now a union of a pointer and
68629         an integer, instead of an integer.  All integer uses changed.
68630         This does not affect the physical layout of struct obstack,
68631         except on hosts (like the AS/400) where the size or alignment of
68632         void * is greater than that of ptrdiff_t.
68633         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
68634         __STDC__)]: Store temporary in pointer member of union, not
68635         integer member.
68636         * lib/obstack.c: Include <stddef.h>, for offsetof.
68637         (struct fooalign): Remove; it doesn't need a name.
68638         (union fooround): Change double to long double, and add void *.
68639         (DEFAULT_ALIGNMENT): Use offsetof to compute.
68640         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
68641         not a macro.  Hence the values are always int; so remove all
68642         casts-to-int in uses.
68643
68644 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68645
68646         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
68647         we can get this patch merged into glibc.
68648
68649 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68650             Paul Eggert  <eggert@cs.ucla.edu>
68651
68652         * m4/argp: Depend on alloca.
68653
68654 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68655             Paul Eggert  <eggert@cs.ucla.edu>
68656
68657         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
68658         freecoding.
68659
68660 2004-05-17  Bruno Haible  <bruno@clisp.org>
68661
68662         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
68663         precision that consists of a '.' followed by an empty digit string.
68664         Patch by Tor Lillqvist <tml@iki.fi>.
68665
68666 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68667
68668         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
68669         for backward compatibility with older code.  We need our own
68670         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
68671         it under some other name, and our alloca.h will define it.
68672
68673 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68674             Derek Price  <derek@ximbiot.com>
68675
68676         * lib/alloca.c: Include <alloca.h>, to get our interface.
68677         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
68678         include <alloca.h> first.  Use C89 prototype for alloca; this
68679         requires including <stddef.h> for size_t.  Use extern "C" if C++.
68680         Use #elif for simplicity, since we can assume C89 now.
68681         Don't try to source the system alloca.h since it will not be found
68682         and to prevent recursively including its replacement.
68683         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
68684         * lib/regex.c: Likewise.
68685
68686 2004-05-16  Derek Price  <derek@ximbiot.com>
68687             Paul Eggert  <eggert@cs.ucla.edu>
68688
68689         getline cleanup.  This changes the getndelim2 API: both order of
68690         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
68691         no delimiter).
68692
68693         * lib/getline.c: Don't include stddef.h or stdio.h, since our
68694         interface does that.
68695         (getline): Always use getdelim, so that we don't have two
68696         copies of this code.
68697         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
68698         if available.
68699         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
68700         (GETNDELIM2_MAXIMUM): New macro.
68701         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
68702         instead of the old practice of delim2==0.  All callers changed.
68703         Return -1 on overflow, instead of returning junk.
68704         Do not set *linesize unless allocation succeeds.
68705         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
68706         that we include sys/types.h.
68707         * lib/getnline.h: Likewise.
68708         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
68709         (getndelim2): Reorder arguments.
68710         * lib/getnline.c (getnline, getndelim):
68711         Don't discard the NMAX argument.
68712         (getnline): Invoke getndelim, to avoid code duplication.
68713         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
68714         of (size_t) -1 by callers of the getnline family.
68715
68716 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68717
68718         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
68719         Check for gettimeofday.
68720         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
68721         Check for settimeofday, stime.
68722
68723 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68724
68725         * lib/nanosleep.c (suspended): Change its type from int to
68726         sig_atomic_t volatile.
68727         (first_call): Make it private to rpl_nanosleep, and have it
68728         be zero initially as that's a bit faster.
68729         (my_usleep): Round up fractional times instead of truncating them,
68730         as this is the usual meaning for 'sleep'.
68731
68732         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
68733         doesn't work.
68734         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
68735         (ENOSYS): Define if not defined.
68736         (settime): Fall back on stime if it exists and settimeofday fails.
68737         But don't bother with fallbacks if a method fails with errno == EPERM.
68738
68739 2004-05-11  Jim Meyering  <jim@meyering.net>
68740
68741         Prior to this change, the save_cwd caller required read access to the
68742         current directory on most systems (ones with the fchdir function).
68743
68744         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
68745         fails, try write-only, and finally, resort to using xgetcwd.
68746
68747 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68748
68749         * lib/obstack.c, obstack.h: Import changes from libc.
68750
68751 2004-04-28  Bruno Haible  <bruno@clisp.org>
68752
68753         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
68754         also implicitly appends .exe to executables.
68755         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
68756         accepts Windows pathnames.
68757         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68758         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68759         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68760         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68761         Reported by Derek Robert Price <derek@ximbiot.com>.
68762
68763 2004-04-21  Karl Berry  <karl@gnu.org>
68764
68765         * config/srclist.txt (localcharset.c): break sync.
68766
68767 2004-04-20  Paul Eggert  <eggert@twinsun.com>
68768
68769         * m4/host-os.m4: Add a copyright notice.
68770
68771 2004-04-20  Jim Meyering  <jim@meyering.net>
68772
68773         Change UTILS_ to gl_ in AC_DEFINE'd names.
68774         Change utils_- and jm_-prefixed variables, too.
68775         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
68776         UTILS_FUNC_MKDIR_TRAILING_SLASH.
68777         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
68778
68779         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
68780         Don't emit trailing blanks.
68781         Also rename jm_-prefixed variables to have gl_ prefix.
68782
68783         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
68784         Also rename jm_-prefixed variables to have gl_ prefix.
68785
68786         * m4/jm-macros.m4: Reflect the renamings.
68787         * m4/prereq.m4: Likewise.
68788
68789 2004-04-20  Jim Meyering  <jim@meyering.net>
68790
68791         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
68792         memory.
68793
68794 2004-04-20  Jim Meyering  <jim@meyering.net>
68795             Bruno Haible  <bruno@clisp.org>
68796
68797         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
68798         memory when realloc fails.
68799
68800 2004-04-19  Jim Meyering  <jim@meyering.net>
68801
68802         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
68803         now that readutmp.c may call `free (0)'.
68804
68805 2004-04-19  Bruno Haible  <bruno@clisp.org>
68806
68807         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
68808         * m4/inttypes_h.m4: Likewise.
68809         * m4/stdint_h.m4: Likewise.
68810         * m4/intmax_t.m4: Likewise.
68811         * m4/uintmax_t.m4: Likewise.
68812
68813 2004-04-18  Jim Meyering  <jim@meyering.net>
68814
68815         * m4/prereq.m4: Don't forbid jm_ prefix.
68816
68817         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
68818         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
68819         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
68820         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
68821         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
68822         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
68823         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
68824         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
68825         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
68826         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
68827         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
68828         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
68829         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
68830         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
68831         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
68832         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
68833         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
68834         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
68835         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
68836
68837 2004-04-18  Jim Meyering  <jim@meyering.net>
68838
68839         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
68840         failure, don't leak memory and do call END_UTMP_ENT.
68841
68842 2004-04-16  Jim Meyering  <jim@meyering.net>
68843
68844         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
68845         coreutils' stat program.
68846         (gl_PREREQ): Don't require jm_PREREQ_STAT.
68847
68848 2004-04-11  Paul Eggert  <eggert@twinsun.com>
68849
68850         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
68851         C89.
68852         (CHAR_BIT): Remove, since we assume C89.
68853         Include <stdint.h> if available, as per current Autoconf CVS advice.
68854
68855 2004-03-31  Jim Meyering  <jim@meyering.net>
68856
68857         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
68858         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
68859         * m4/xalloc.m4: Likewise.
68860
68861 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68862
68863         Merge from coreutils.
68864
68865         * m4/inttostr.m4: New file.
68866         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
68867         Require AM_STDBOOL_H and gl_TIMESPEC instead.
68868         Require gl_CLOCK_TIME.
68869         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
68870
68871 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68872
68873         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
68874         not bool, to be more consistent with Unix conventions.
68875         Suggested by Bruno Haible.
68876
68877         Merge from coreutils.
68878
68879         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
68880         * lib/umaxtostr.c: New files.
68881
68882         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
68883         the usual <time.h> dance.
68884         (get_date): Change signature to support fractional time stamps.
68885         All callers changed.
68886         * lib/getdate.y: Include "getdate.h" first, as we can now
68887         assume C89 and don't need to worry about 'const'.
68888         Similarly, include "unlocked-io.h" near start, not in middle.
68889         Include <limits.h>.
68890         (textint.value): Use long int rather than int.
68891         (textint.digits): Use size_t rather than int.
68892         (BILLION, LOG10_BILLION): New constants.
68893         (parser_control): New member rel_ns.  Members day_ordinal,
68894         time_zone, month, day, hour, minutes, rel_year, rel_month,
68895         rel_day, rel_hour, rel_minutes, rel_seconds
68896         are now long int, not int.  Member seconds is now struct timespec,
68897         not int.  New member timespec_seen.  Members dates_seen, days_seen,
68898         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
68899         not int.
68900         (%union.intval): Now long int, not int.
68901         New member timespec.
68902         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
68903         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
68904         (spec): Now is a timespec or an item list.
68905         (timespec, items): New nonterminals.
68906         (time, rel, relunit, number, get_date):
68907         Add support for fractional seconds.
68908         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
68909         (gmtime, localtime, mktime): Remove decls; not needed with C89.
68910         (to_hour): First arg is now long int, not int.
68911         (to_year): Returns long int, not int.
68912         Don't treat year -70 like 70.
68913         (tm_diff): Returns long int, not int.
68914         (lookup_word): Use bool instead of int when appropriate.
68915         (yylex): Use size_t for count, not int.
68916         Detect overflow when parsing large integer constants.
68917         Add support for fractions.
68918         (get_date): Make pointers 'const' if possible.
68919         Use more-portable code to detect integer overflow.
68920         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
68921         Don't use ctime; it's not reliable if the year has >4 digits.
68922
68923         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
68924         This is for compatibility with BSD.
68925
68926         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
68927         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
68928         From coreutils' system.h.
68929
68930         * lib/userspec.c: Don't include "posixver.h".
68931         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
68932         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
68933         compatible extension.  Simplify code by removing a boolean int
68934         that was always nonzero if a string was nonnull.
68935
68936 2004-03-30  Jim Meyering  <jim@meyering.net>
68937
68938         Merge from coreutils.
68939
68940         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
68941         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
68942         on some systems one must include <grp.h> before it.
68943         Reported by Christian Krackowizer.
68944
68945 2004-03-30  Jim Meyering  <jim@meyering.net>
68946
68947         Merge from coreutils.
68948
68949         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
68950
68951         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
68952         an empty input stream.
68953
68954         * lib/readtokens.c: Include <stdbool.h>.
68955         (readtoken): Use `size_t' rather than int/long.
68956         All callers adjusted.
68957         Use `bool' rather than `int' where appropriate.
68958         Use memset rather than an explicit loop.
68959         Use x2nrealloc rather than xrealloc.
68960         Allow the use of `\0' as a delimiter.
68961         (readtokens): Likewise.
68962         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
68963
68964 2004-03-30  Jim Meyering  <jim@meyering.net>
68965
68966         * m4/realloc.m4: Remove file, since now it does no more than
68967         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
68968         the `configure.ac' section of module/realloc.
68969         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
68970
68971 2004-03-30  Bruno Haible  <bruno@clisp.org>
68972
68973         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
68974         nonnull.
68975
68976 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68977
68978         Merge changes to getloadavg.c from coreutils and Emacs.
68979
68980         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
68981         Define to an expression, not to the empty string.
68982         Include cloexec.h and xalloc.h.
68983         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
68984         Use set_cloexec_flag rather than rolling our own.
68985         * lib/cloexec.c, lib/cloexec.h: New files.
68986
68987 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68988
68989         * m4/cloexec.m4: New file.
68990
68991 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68992
68993         * lib/getopt.h: Sync with libc CVS.
68994
68995 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68996             Bruno Haible  <bruno@clisp.org>
68997
68998         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
68999         mbswidth.
69000
69001 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69002             Bruno Haible  <bruno@clisp.org>
69003
69004         * lib/mbswidth.h: Include <wchar.h> only if
69005         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
69006         <wchar.h>.
69007         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
69008
69009 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69010
69011         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
69012         Sync with libc CVS.
69013         * lib/getopt_int.h: New file, also synced from libc.
69014
69015 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69016
69017         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
69018         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
69019         Bring back getopt.c, getopt.h, getopt1.c.
69020
69021 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69022
69023         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
69024         All uses changed.  Check for sa_sigaction member; this fixes
69025         a bug first reported by Jason Andrade in
69026         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69027
69028 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69029
69030         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
69031         '#if' expressions.  Unlike the code it replaces, it does not
69032         depend on (defined _SC_PAGESIZE).  However, it does depend on
69033         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
69034         first reported by Jason Andrade in
69035         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69036
69037 2004-02-25  Simon Josefsson  <jas@extundo.com>
69038
69039         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
69040
69041 2004-02-25  Simon Josefsson  <jas@extundo.com>
69042
69043         * lib/strdup.h: New file.
69044         * lib/strdup.c: Include it.
69045         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
69046         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
69047
69048 2004-02-23  Karl Berry  <karl@gnu.org>
69049
69050         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
69051         (from fencepost.gnu.org:/gd/gnuorg).
69052
69053 2004-02-23  Karl Berry  <karl@gnu.org>
69054
69055         * config/srclistvars.sh (GNUORG) [karl]: redefine.
69056         * config/srclist.txt: add maintain/standards documents.
69057
69058 2004-02-18  Bruno Haible  <bruno@clisp.org>
69059
69060         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
69061         Reported by Derek Robert Price <derek@ximbiot.com>.
69062
69063 2004-02-16  Karl Berry  <karl@gnu.org>
69064
69065         * config/mkinstalldirs, install-sh: update from automake.
69066
69067 2004-02-06  Karl Berry  <karl@gnu.org>
69068
69069         * m4/po.m4: update from gettext 0.14.1.
69070
69071 2004-02-06  Karl Berry  <karl@gnu.org>
69072
69073         * lib/config.charset: update from gettext 0.14.1.
69074
69075 2004-02-05  Paul Eggert  <eggert@twinsun.com>
69076
69077         Add comments and code, prompted by suggestions from Bruno Haible
69078         for sh-quote.
69079         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
69080         describing the enum quoting_style values.
69081         * lib/quotearg.c (quotearg_alloc): New function.
69082         (quotearg_buffer_restyled): Treat lone { and } as special.
69083         Treat = as special.  Work around bug with older shells
69084         that "see" a '\' that is really the 2nd byte of a multibyte char.
69085         Quote empty string with shell_quoting_style.
69086
69087 2004-02-03  Bruno Haible  <bruno@clisp.org>
69088
69089         * m4/pipe.m4: New file, from GNU gettext.
69090
69091 2004-02-03  Bruno Haible  <bruno@clisp.org>
69092
69093         * lib/pipe.h: New file, from GNU gettext.
69094         * lib/pipe.c: New file, from GNU gettext.
69095
69096 2004-01-27  Bruno Haible  <bruno@clisp.org>
69097
69098         * m4/execute.m4: New file, from GNU gettext.
69099
69100 2004-01-27  Bruno Haible  <bruno@clisp.org>
69101
69102         * lib/execute.h: New file, from GNU gettext.
69103         * lib/execute.c: New file, from GNU gettext.
69104         * lib/w32spawn.h: New file, from GNU gettext.
69105
69106 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69107
69108         Merge from diffutils.
69109
69110         * lib/file-type.c (file_type): Add typed memory objects.
69111         * lib/file-type.h (S_TYPEISTMO): New macro.
69112
69113         * lib/c-stack.h (c_stack_action): Remove argv argument.
69114         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
69115         (die): Don't calculate message unless segv_action returns.
69116         (get_stack_location, min_address_from_argv, max_address_from_argv,
69117         volatile stack_base, volatile_stack_size): Remove.
69118         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
69119         that every segmentation violation is a stack overflow.  (Ouch!)
69120         See Debian bug 136249 (still outstanding) for more info about why
69121         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
69122
69123 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69124
69125         Exit-status fix from coreutils.
69126
69127         Use exit_failure consistently in place of EXIT_FAILURE,
69128         so that program exit statuses are consistent on failure.
69129
69130         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
69131         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
69132         * lib/argmatch.h: Comment fix to match the above.
69133         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
69134         Now a macro referring to exit_failure, instead of a separate
69135         variable.  Include "exitfail.h" to get it.
69136         * lib/xstrtol.h: Include "exitfail.h".
69137         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
69138
69139         * lib/long-options.c (parse_long_options): Use prototype
69140         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
69141         for clarity.
69142
69143 2004-01-21  Jim Meyering  <jim@meyering.net>
69144
69145         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
69146         so as not to conflict with a different-sized __mktime_internal
69147         function in GNU libc.
69148         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
69149         Problem building statically-linked `ls' reported by Michael Brunnbauer.
69150
69151 2004-01-20  Karl Berry  <karl@gnu.org>
69152
69153         * config/config.guess: update from config.
69154
69155         * config/srclistvars.sh: GNUWWWLICENSES for karl.
69156
69157 2004-01-20  Bruno Haible  <bruno@clisp.org>
69158
69159         Safer stack allocation.
69160         * lib/setenv.c: Include allocsa.h.
69161         (alloca): Remove fallback definition.
69162         (freea): Remove macro.
69163         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
69164         instead of freea.
69165
69166 2004-01-20  Bruno Haible  <bruno@clisp.org>
69167
69168         * m4/eealloc.m4: New file, from GNU gettext.
69169
69170 2004-01-20  Bruno Haible  <bruno@clisp.org>
69171
69172         * m4/allocsa.m4: New file, from GNU gettext.
69173
69174 2004-01-20  Bruno Haible  <bruno@clisp.org>
69175
69176         * lib/xallocsa.h: New file, from GNU gettext.
69177         * lib/xallocsa.c: New file, from GNU gettext.
69178
69179 2004-01-20  Bruno Haible  <bruno@clisp.org>
69180
69181         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
69182
69183 2004-01-20  Bruno Haible  <bruno@clisp.org>
69184
69185         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
69186         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
69187         specially.
69188
69189 2004-01-20  Bruno Haible  <bruno@clisp.org>
69190
69191         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
69192         patch.
69193
69194 2004-01-20  Bruno Haible  <bruno@clisp.org>
69195
69196         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
69197
69198 2004-01-20  Bruno Haible  <bruno@clisp.org>
69199
69200         * lib/eealloc.h: New file.
69201
69202 2004-01-20  Bruno Haible  <bruno@clisp.org>
69203
69204         * lib/binary-io.h: Avoid warnings on Cygwin.
69205
69206 2004-01-20  Bruno Haible  <bruno@clisp.org>
69207
69208         * lib/allocsa.h: New file, from GNU gettext.
69209         * lib/allocsa.c: New file, from GNU gettext.
69210
69211 2004-01-18  Karl Berry  <karl@gnu.org>
69212
69213         * doc/gpl.texi, doc/lgpl.texi: new files.
69214
69215 2004-01-18  Karl Berry  <karl@gnu.org>
69216
69217         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
69218         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
69219
69220 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69221
69222         Merge from coreutils.
69223
69224         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
69225         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
69226         (gl_DEFAULT_POSIX2_VERSION): Move
69227         the documentation from 'configure' into 'config.hin',
69228         so that 'configure --help' isn't burdened by it and
69229         we don't have to worry about its formatting there.
69230         Reword the documentation so that it's more succinct
69231         and can be run together into a single paragraph.
69232         * m4/same.m4 (gl_SAME): Check for pathconf.
69233
69234 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69235
69236         Merge from coreutils.
69237
69238         * lib/posixver.c: Include posixver.h.
69239
69240         * lib/same.c: Include <stdbool.h>, <limits.h>.
69241         (_POSIX_NAME_MAX): Define if not defined.
69242         (MIN): New macro.
69243         (same_name): If file names are silently truncated, report
69244         that the file names are the same if they are the same after
69245         the silent truncation.
69246
69247         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
69248         conversion function.
69249         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
69250         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
69251         longer needed.
69252
69253 2004-01-15  Jim Meyering  <jim@meyering.net>
69254
69255         Merge from coreutils.
69256
69257         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
69258         if no library is required.
69259         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
69260         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
69261         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
69262         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
69263         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
69264         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
69265         value, $ac_cv_search_crypt, if it's "none required".
69266         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
69267         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
69268         not gl_FUNC_GETLOADAVG.
69269         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
69270         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
69271
69272 2004-01-15  Jim Meyering  <jim@meyering.net>
69273
69274         Merge from coreutils.
69275
69276         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
69277         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
69278         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
69279
69280         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
69281         optional configure-time default.
69282
69283         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69284
69285         * lib/xreadlink.c (xreadlink): Correct outdated comment.
69286
69287 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
69288
69289         Merge from coreutils.
69290
69291         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
69292         value, $ac_cv_search_nanosleep, if it's "none required".
69293
69294 2004-01-14  Paul Eggert  <eggert@twinsun.com>
69295
69296         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
69297         with like-named macro in fnmatch.c.
69298         (EXT): Use an internal constant instead.
69299
69300         Merge fnmatch patches from glibc.
69301         * lib/fnmatch.c (mbsinit): Remove define.
69302         Add libc_hidden_ver (__fnmatch, fnmatch).
69303         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
69304         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
69305
69306 2004-01-14  Karl Berry  <karl@gnu.org>
69307
69308         * config/install-sh: update from automake.
69309
69310 2004-01-13  Karl Berry  <karl@gnu.org>
69311
69312         * config/install-sh: update from automake.
69313
69314 2004-01-09  Karl Berry  <karl@gnu.org>
69315
69316         * config/install-sh: update from automake.
69317
69318 2004-01-05  Karl Berry  <karl@gnu.org>
69319
69320         * config/config.{sub,guess}: update from config.
69321
69322 2003-12-31  Karl Berry  <karl@gnu.org>
69323
69324         * config/depcomp: update from automake.
69325
69326 2003-12-14  Karl Berry  <karl@gnu.org>
69327
69328         * lib/config.charset: update from gettext-runtime.
69329
69330 2003-12-03  Paul Eggert  <eggert@twinsun.com>
69331
69332         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
69333         Bug reported by Alfred M. Szmidt.
69334
69335 2003-12-03  Bruno Haible  <bruno@clisp.org>
69336
69337         * m4/gettext.m4: Upgrade from gettext-0.13.
69338         * m4/po.m4: Upgrade from gettext-0.13.
69339         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
69340         * m4/intmax.m4: New file, from gettext-0.13.
69341         * m4/printf-posix.m4: New file, from gettext-0.13.
69342
69343 2003-11-29  Karl Berry  <karl@gnu.org>
69344
69345         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
69346
69347 2003-11-25  Paul Eggert  <eggert@twinsun.com>
69348             Bruno Haible  <bruno@clisp.org>
69349
69350         * lib/printf-parse.h: Don't include sys/types.h.
69351         (ARG_NONE): New macro.
69352         (char_directive): Change type of *arg_index fields to size_t.
69353         * lib/printf-parse.c: Don't include sys/types.h.
69354         (SSIZE_MAX): Remove macro.
69355         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
69356         Remove unnecessary overflow check.
69357         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
69358         fields.
69359
69360 2003-11-25  Bruno Haible  <bruno@clisp.org>
69361
69362         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
69363
69364 2003-11-25  Bruno Haible  <bruno@clisp.org>
69365
69366         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
69367         gt_TYPE_SSIZE_T.
69368
69369 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69370
69371         * modules/alloca: Remove dependency on xalloc.
69372
69373 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69374
69375         * lib/alloca.c: Remove dependency on xalloc module.
69376         (xalloc_die): Remove.
69377         (memory_full) [!defined emacs]: New macro.
69378         [!defined emacs]: Don't include xalloc.h.
69379         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
69380         address arithmetic overflows.  Change datatypes a bit to avoid
69381         unnecessary casts.
69382
69383 2003-11-22  Jim Meyering  <jim@meyering.net>
69384
69385         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
69386         s/size/size_t/.
69387
69388 2003-11-21  Karl Berry  <karl@gnu.org>
69389
69390         * config/config.{sub,guess}: update from config.
69391
69392 2003-11-18  Karl Berry  <karl@gnu.org>
69393
69394         * config/config.{sub,guess}: update from config.
69395
69396         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
69397
69398 2003-11-17  Paul Eggert  <eggert@twinsun.com>
69399
69400         * README: Mention that S+T cannot overflow if S is the size of
69401         an existing object and T is sufficiently small.
69402
69403 2003-11-17  Jim Meyering  <jim@meyering.net>
69404
69405         On systems without utime and without a utimes function capable of
69406         dealing with a NULL struct utimbuf* argument, this utime replacement
69407         could -- in unusual circumstances -- leak a file descriptor.
69408         * lib/utime.c: Include <unistd.h> and <errno.h>.
69409         (utime_null): Be sure to close `fd' and to preserve errno.
69410         Reported by Geoff Collyer via Arnold Robbins.
69411
69412 2003-11-17  Bruno Haible  <bruno@clisp.org>
69413
69414         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
69415         (Depends-on): Add xsize.
69416
69417 2003-11-17  Bruno Haible  <bruno@clisp.org>
69418
69419         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
69420
69421 2003-11-17  Bruno Haible  <bruno@clisp.org>
69422
69423         * lib/vasnprintf.c (alloca): Remove fallback definition.
69424         (freea): Remove definition.
69425         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
69426         Reported by Paul Eggert.
69427
69428 2003-11-16  Paul Eggert  <eggert@twinsun.com>
69429             Bruno Haible  <bruno@clisp.org>
69430
69431         Protect against address arithmetic overflow.
69432         * lib/printf-args.h: Include stddef.h.
69433         (arguments): Change type of field 'count' to size_t.
69434         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
69435         'unsigned int' where appropriate.
69436         * lib/printf-parse.h: Include sys/types.h.
69437         (char_directive): Change type of *arg_index fields to ssize_t.
69438         (char_directives): Change type of fields 'count', max_*_length to
69439         size_t.
69440         * lib/printf-parse.c: Include sys/types.h and xsize.h.
69441         (SSIZE_MAX): Define fallback value.
69442         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
69443         instead of 'int' where appropriate. Check a_allocated, d_allocated
69444         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
69445         * lib/vasnprintf.c: Include xsize.h.
69446         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
69447         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
69448         overflow. Avoid wraparound when converting a width or precision from
69449         decimal to binary.
69450
69451 2003-11-16  Bruno Haible  <bruno@clisp.org>
69452
69453         Update from GNU gettext.
69454         * lib/printf-parse.c: Generalize to it can be compiled for wide
69455         strings.
69456         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
69457         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
69458         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
69459         SNPRINTF): New macros.
69460         Don't include <alloca.h> if the file is used inside libintl.
69461         (local_wcslen): New function, for Solaris 2.5.1.
69462         (VASNPRINTF): Use it instead of wcslen.
69463
69464 2003-11-16  Bruno Haible  <bruno@clisp.org>
69465
69466         * lib/xsize.h (xmax): New function.
69467         (xsum, xsum3, xsum4): Declare as "pure" functions.
69468
69469 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69470
69471         * modules/xalloc (Files): Undo latest change, since xalloc.h
69472         no longer needs SIZE_MAX or PTRDIFF_MAX.
69473
69474 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69475
69476         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
69477         gl_PTRDIFF_MAX.
69478
69479 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69480
69481         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
69482         "return", to pacify some unknown compiler.  Problem reported
69483         by Joerg Schilling.
69484
69485 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69486
69487         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
69488         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
69489         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
69490         heuristic is just as accurate as far as we know, and it removes a
69491         dependency on size_max.m4 and ptrdiff_max.m4.
69492
69493 2003-11-11  Bruno Haible  <bruno@clisp.org>
69494
69495         * modules/xsize (Files): Add m4/size_max.m4.
69496         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
69497
69498 2003-11-11  Bruno Haible  <bruno@clisp.org>
69499
69500         * m4/size_max.m4: New file.
69501         * m4/ptrdiff_max.m4: New file.
69502         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
69503         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
69504         (gl_XALLOC): Invoke it.
69505
69506 2003-11-11  Bruno Haible  <bruno@clisp.org>
69507
69508         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
69509         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
69510         defined.
69511
69512 2003-11-10  Paul Eggert  <eggert@twinsun.com>
69513
69514         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
69515         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
69516         rejected some allocations of exactly SIZE_MAX - 2 bytes.
69517         From Bruno Haible.
69518         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
69519         not (size_t) -1, since it's defined here.
69520
69521 2003-11-09  Karl Berry  <karl@gnu.org>
69522
69523         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
69524
69525 2003-11-06  Paul Eggert  <eggert@twinsun.com>
69526
69527         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
69528         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
69529         Reject sizes of exactly SIZE_MAX bytes.
69530         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
69531         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
69532
69533 2003-11-05  Bruno Haible  <bruno@clisp.org>
69534
69535         * lib/xsize.h: Include limits.h, to avoid a possible collision with
69536         SIZE_MAX defined in <limits.h> on Solaris.
69537
69538 2003-11-04  Jim Meyering  <jim@meyering.net>
69539
69540         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
69541         variable names, rather than @VAR@.
69542         * modules/poll: Likewise.
69543
69544 2003-11-04  Bruno Haible  <bruno@clisp.org>
69545
69546         * modules/xsize: New file.
69547         * modules/linebreak: Depend on xsize.
69548         * MODULES.html.sh (func_all_modules): Add xsize.
69549
69550 2003-11-04  Bruno Haible  <bruno@clisp.org>
69551
69552         * m4/xsize.m4: New file.
69553
69554 2003-11-04  Bruno Haible  <bruno@clisp.org>
69555
69556         * lib/xsize.h: New file.
69557         * lib/linebreak.c: Include xsize.h.
69558         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
69559         argument for overflow.
69560         Suggested by Paul Eggert.
69561
69562 2003-11-03  Karl Berry  <karl@gnu.org>
69563
69564         * config/config.{guess,sub}: update from config.
69565
69566 2003-11-03  Jim Meyering  <jim@meyering.net>
69567
69568         * modules/userspec (lib_SOURCES): Add userspec.h.
69569         (Include): Add "userspec.h".
69570         Improve description.
69571
69572 2003-11-03  Jim Meyering  <jim@meyering.net>
69573
69574         * lib/userspec.c: Include "userspec.h".
69575         * lib/userspec.h: New file.
69576
69577 2003-11-03  Bruno Haible  <bruno@clisp.org>
69578
69579         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
69580
69581 2003-11-03  Bruno Haible  <bruno@clisp.org>
69582
69583         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
69584         available, to avoid (extremely rare) race condition.
69585         Suggested by Paul Eggert.
69586
69587 2003-11-02  Karl Berry  <karl@gnu.org>
69588
69589         * config/srclist.txt (vasprintf.c): sync broken, sigh.
69590
69591 2003-10-31  Paul Eggert  <eggert@twinsun.com>
69592
69593         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
69594         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
69595         (read_filesystem_list): Set and use me_type_malloced.
69596         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
69597         whatever the type happens to be), for brevity and consistency.
69598         Check for size calculation overflow on Alphas running OSF/1.
69599
69600 2003-10-31  Jim Meyering  <jim@meyering.net>
69601
69602         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
69603
69604         * lib/linebuffer.c: Include <string.h> for declaration of memset.
69605
69606 2003-10-30  Paul Eggert  <eggert@twinsun.com>
69607             Bruno Haible  <bruno@clisp.org>
69608
69609         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
69610         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
69611
69612 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69613
69614         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
69615         netbsd*-gnu*.  Suggested by Robert Millan.
69616
69617 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69618
69619         * modules/group-member: Depend on stdbool.
69620
69621 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69622
69623         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
69624
69625 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69626
69627         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
69628         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
69629         after the 'gnu' in these cases.  This fixes some bugs in the
69630         previous change, and is based on suggestions by Robert Millan.
69631
69632 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69633
69634         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
69635         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
69636         no longer needed.
69637         * lib/quotearg.c (quotearg_n_options): Use it.
69638         * lib/group-member.c: Include <stdbool.h>.
69639         (free_group_info): Arg is now const *; don't free arg.
69640         (get_group_info): Now returns bool and accepts struct group_info *,
69641         rather than returning a malloc'ed struct group_info *.
69642         All uses changed.  Check for overflow in internal size calculation.
69643
69644         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
69645         rather than xmalloc/xrealloc.
69646         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
69647         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
69648         conformance bug: the old code used a pointer after freeing the
69649         storage that it addressed.
69650         * lib/hash.c (hash_initialize): Simplify the code by using
69651         xalloc_oversized rather than doing it by hand.
69652         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
69653         the buffer preserved.  Use free and xmalloc instead.
69654         * lib/quotearg.c (quotearg_n_options): Likewise.
69655         Use a simpler test for size overflow.  Don't use xalloc_oversized
69656         because unsigned int might be wider than size_t (!); this suggests
69657         that we should switch from unsigned int to size_t for slot numbers.
69658
69659 2003-10-28  Paul Eggert  <eggert@twinsun.com>
69660
69661         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
69662         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
69663         NetBSD kernels.  Requested by Richard Stallman.
69664
69665 2003-10-27  Paul Eggert  <eggert@twinsun.com>
69666
69667         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
69668         to allocate the returned structure.  Do not allocate a subarray,
69669         as x2nrealloc will do that.
69670         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
69671         instead of xnrealloc.
69672         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
69673
69674 2003-10-27  Bruno Haible  <bruno@clisp.org>
69675
69676         * lib/stdbool_.h: Better support for BeOS.
69677
69678 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69679
69680         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
69681         now uses inline.
69682
69683 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69684
69685         * lib/xalloc.h (xalloc_oversized): New static inline function, for
69686         callers that want to do their own size-overflow checking.  Include
69687         <stdbool.h>, since xalloc_oversized returns bool.
69688         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
69689         to use xalloc_oversized.
69690
69691         Add two functions x2realloc, x2nrealloc, for programs that grow
69692         arrays dynamically by doubling their sizes.
69693         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
69694         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
69695         New functions.
69696
69697         Port to C99 semantics for 'inline' of external functions.
69698         Bug reported by Bruno Haible.
69699         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
69700         with the old contents of xnmalloc.
69701         (xnmalloc, xmalloc): Use it.
69702         (xnrealloc_inline): New static inline function,
69703         with the old contents of xnrealloc.
69704         (xnrealloc, xrealloc): Use it.
69705
69706         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
69707         that.
69708
69709 2003-10-26  Karl Berry  <karl@gnu.org>
69710
69711         * config/srclist.txt (COPYING.DOC): no longer available from
69712         /gd/gnuorg; don't know where the ultimate source is.
69713
69714 2003-10-25  Paul Eggert  <eggert@twinsun.com>
69715
69716         Fix several address-calculation bugs in the hash modules,
69717         plus some minor code cleanup.
69718
69719         * lib/hash.h: Include <stdbool.h>, for bool.
69720         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
69721         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
69722         hash_get_n_entries, hash_get_max_bucket_length,
69723         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
69724         hash_rehash): Use size_t rather than unsigned.
69725         * lib/hash.c (struct hash_table, hash_get_n_buckets,
69726         hash_get_n_buckets_used, hash_get_n_entries,
69727         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
69728         hash_get_entries, hash_do_for_each, hash_string, is_prime,
69729         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
69730         Likewise.
69731         (SIZE_MAX): Define if not defined.
69732         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
69733         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
69734         hash_print):
69735         Use const * when possible.
69736         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
69737         (check_tuning): Fix bug: if tuning parameters were very close to
69738         0 or 1, rounding errors could have caused subscript violations.
69739         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
69740         (hash_initialize): Add 'fail:' label
69741         to free table and return NULL, and use it to simplify code.
69742         Use calloc rather than clearing the storage ourself.
69743         (hash_initialize, hash_rehash): Check for arithmetic overflow in
69744         buffer size calculations.
69745         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
69746         Include <stddef.h>, for size_t.
69747         * lib/hash-pjw.c (hash_pjw): Likewise.
69748         Switch to method described by Bruno Haible.
69749         Include <limits.h>, for CHAR_BIT.
69750         (SIZE_BITS): New macro.
69751
69752 2003-10-23  Paul Eggert  <eggert@twinsun.com>
69753
69754         * m4/getline.m4 (AM_FUNC_GETLINE):
69755         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
69756         hosts.  Problem reported by Derek Robert Price in
69757         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
69758         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
69759         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
69760
69761 2003-10-21  Paul Eggert  <eggert@twinsun.com>
69762
69763         * lib/getndelim2.c (getndelim2): When size calculation overflows,
69764         ceiling the allocation at NMAX bytes rather than silently
69765         discarding input bytes before NMAX is reached.  This makes
69766         a difference only if NMAX exceeds SIZE_MAX / 2.
69767
69768         * lib/obstack.c: Merge from glibc.
69769         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
69770         Add libc_hidden_def (_obstack_newchunk).
69771         (_obstack_free) [! defined _LIBC]: Remove.
69772         [defined _LIBC]: Make a strong alias from obstack_free, rather than
69773         a clone of the function body.
69774         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
69775         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
69776
69777         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
69778         glibc.
69779         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
69780         arg to memcpy.
69781
69782         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
69783         (obstack_ptr_grow_fast, obstack_int_grow_fast):
69784         Don't use lvalue casts, as GCC plans to remove support for them
69785         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
69786         was also present in the non-GCC version, indicating that this
69787         code had always been buggy and had never been widely used.
69788         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
69789         Use the fast variant of each macro, rather than copying the
69790         definiens of the fast variant; that way, we'll be more likely to
69791         catch future bugs in the fast variants.
69792
69793 2003-10-20  Bruno Haible  <bruno@clisp.org>
69794
69795         * modules/wait-process: New file.
69796         * MODULES.html.sh (func_all_modules): Add wait-process.
69797
69798 2003-10-20  Bruno Haible  <bruno@clisp.org>
69799
69800         * m4/wait-process.m4: New file.
69801
69802 2003-10-20  Bruno Haible  <bruno@clisp.org>
69803
69804         * lib/wait-process.h: New file, from GNU gettext.
69805         * lib/wait-process.c: New file, from GNU gettext.
69806
69807 2003-10-19  Jim Meyering  <jim@meyering.net>
69808
69809         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
69810         HPUX 10.20.
69811
69812 2003-10-18  Karl Berry  <karl@gnu.org>
69813
69814         * config/config.guess: update from config.
69815
69816 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69817
69818         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
69819         (getgroups): First arg is int, not size_t.
69820         Don't let 'free' mangle errno.
69821
69822 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69823
69824         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
69825
69826 2003-10-16  Karl Berry  <karl@gnu.org>
69827
69828         * config/config.{guess,sub}: update from config.
69829
69830 2003-10-16  Jim Meyering  <jim@meyering.net>
69831
69832         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
69833         memcpy.
69834
69835 2003-10-15  Paul Eggert  <eggert@twinsun.com>
69836
69837         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
69838         (SIZE_MAX): Remove.
69839         (new_exclude, add_exclude_file): Initial size no longer needs to
69840         be a power of 2.
69841         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
69842         our own address arithmetic overflow checking.
69843
69844         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
69845         (fnmatch): Do not alloca more than 2000 wide characters;
69846         instead, use malloc for large buffers.
69847         Check for address arithmetic overflow, and return -1
69848         with errno set to ENOMEM in that case.
69849         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
69850         (NEW_PATTERN): Do not alloca more than 8000 bytes;
69851         instead, return -1.  Check for address arithmetic overflow.
69852
69853 2003-10-14  Paul Eggert  <eggert@twinsun.com>
69854
69855         Handle invalid suffixes and overflow independently, so that
69856         callers can treat them independently as needed.  Fix some bugs in
69857         suffix handling, e.g., "100k@" was not diagnosed as an invalid
69858         suffix for a human-readable blocksize.  The major caller-visible
69859         change is the addition of a new
69860         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
69861         that both overflow and suffix chars were found.
69862
69863         * lib/human.c (humblock): Don't check separately for invalid suffix
69864         char; that is xstrtoumax's job (now that its bug is fixed).
69865         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
69866         INTMAX_MAX]: New macros.
69867         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
69868         TYPE_MAXIMUM): New macros.
69869         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
69870         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
69871         if overflow occurs, as it's what __strtol does and it's more useful
69872         in practice.
69873         (__xstrtol): If __strtol reports some error other than ERANGE,
69874         reflect it to the caller as LONGINT_INVALID.  If it reports
69875         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
69876         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
69877         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
69878         value.
69879         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
69880         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
69881         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
69882         [defined UINTMAX_MAX]: New macros.
69883
69884 2003-10-14  Bruno Haible  <bruno@clisp.org>
69885
69886         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
69887
69888 2003-10-14  Bruno Haible  <bruno@clisp.org>
69889
69890         * m4/sig_atomic_t: New file, from GNU gettext.
69891         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
69892
69893 2003-10-14  Bruno Haible  <bruno@clisp.org>
69894
69895         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
69896         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
69897         Also use volatile where needed.
69898
69899 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69900
69901         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
69902         Change maintainer from Bruno Haible to 'all'.
69903
69904 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69905
69906         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
69907
69908 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69909
69910         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
69911         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
69912         and define in terms of the other primitives.
69913         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
69914         (SIZE_MAX): Define if not already defined.
69915         (array_size_overflow): New function.
69916         (xalloc_die): Abort instead of exiting if 'error' returns.
69917         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
69918         (xmalloc, xrealloc): Use them.
69919         (xcalloc): Check for address arithmetic overflow.
69920         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
69921         a bit faster than strcpy.
69922
69923 2003-10-10  Simon Josefsson  <jas@extundo.com>
69924
69925         * modules/argp (Depends-on): Add restrict and strcase.
69926
69927 2003-10-10  Simon Josefsson  <jas@extundo.com>
69928
69929         * m4/argp.m4: Add AC_C_INLINE.
69930
69931 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69932
69933         Merge getpass from libc, plus a few fixes.
69934
69935         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
69936         Include <stdbool.h>.
69937         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
69938         __fsetlocking to empty.
69939         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
69940         do include <bits/libc-lock.h>.
69941         Do not include <fcntl.h>; not needed.
69942         [_LIBC]: Include <wchar.h>.
69943         (NOTCANCEL_MODE): New macro.
69944         (flockfile, funlockfile) [_LIBC]: New macros.
69945         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
69946         [!_LIBC]: New macros.
69947         (call_fclose): New function.
69948         (getpass): Use it.  Save tty stream separately; this simplifies the
69949         code and makes it more reliable if stdin happens to equal stdout.
69950         Invoke __fsetlocking on tty.
69951         Handle thread cancellation if needed.
69952         Namespace cleanup (use __tcgetattr, __getline).
69953         Use bool for Booleans.
69954         [USE_IN_LIBIO]: Handle wide streams.
69955         [!_LIBC]: Unconditionally do the fseek, since we don't know what
69956         stream might go where.
69957
69958         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
69959         doesn't have to include <stdio.h> before us.
69960         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
69961         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
69962         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
69963         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
69964         if not declared, so that we can use getpass.c code from libc without
69965         rewriting it.
69966         (flockfile, ftrylockfile, funlockfile): New macros.
69967
69968 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69969
69970         * modules/getpass: Depend on stdbool.
69971
69972 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69973
69974         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
69975
69976 2003-10-07  Karl Berry  <karl@gnu.org>
69977
69978         * config/config.{guess,sub}: update from config.
69979
69980 2003-10-06  Jim Meyering  <jim@meyering.net>
69981             Bruno Haible  <bruno@clisp.org>
69982
69983         This lets translators provide better translations for the
69984         "Written by ..." part of --version output.
69985         * lib/version-etc.h: Include stdarg.h.
69986         (version_etc_copyright): Declare as readonly.
69987         (version_etc): Make this function variadic with a NULL-terminated list
69988         of author name strings.
69989         (version_etc_va): New declaration.
69990         * lib/version-etc.c: Include stdarg.h, stdlib.h.
69991         (version_etc_copyright): Declare as readonly.
69992         (version_etc_va): New function. Provide a different translatable string
69993         for each possible number of authors < 10. Abbreviate when there are 10
69994         authors or more.
69995         (version_etc): Make this function variadic. Call version_etc_va.
69996         Suggestion from Gary V. Vaughan.
69997
69998         * lib/long-options.h (parse_long_options): Change prototype: the
69999         authors string is moved to the end and becomes variadic.
70000         * lib/long-options.c: Include stdarg.h.
70001         (parse_long_options): Make this function variadic, too.
70002         Call version_etc_va, not version_etc.
70003
70004 2003-10-06  Bruno Haible  <bruno@clisp.org>
70005
70006         * modules/version-etc-2: Remove file.
70007         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
70008
70009 2003-10-06  Bruno Haible  <bruno@clisp.org>
70010
70011         * modules/fatal-signal: New file.
70012         * MODULES.html.sh (func_all_modules): Add fatal-signal.
70013
70014 2003-10-06  Bruno Haible  <bruno@clisp.org>
70015
70016         * m4/fatal-signal.m4: New file.
70017         * m4/signalblocking.m4: New file, from GNU gettext.
70018
70019 2003-10-06  Bruno Haible  <bruno@clisp.org>
70020
70021         * lib/version-etc-2.h: Remove file.
70022         * lib/version-etc-2.c: Remove file.
70023
70024 2003-10-06  Bruno Haible  <bruno@clisp.org>
70025
70026         * lib/fatal-signal.h: New file, from GNU gettext.
70027         * lib/fatal-signal.c: New file, from GNU gettext.
70028
70029 2003-10-05  Paul Eggert  <eggert@twinsun.com>
70030
70031         * README: Rework advice for preventing empty .o files.
70032         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
70033         not <sys/types.h>.
70034
70035 2003-10-04  Karl Berry  <karl@gnu.org>
70036
70037         * lib/argp*: update from libc.
70038
70039 2003-10-04  Karl Berry  <karl@gnu.org>
70040
70041         * config/config.{guess,sub}: update from config.
70042
70043 2003-10-02  Bruno Haible  <bruno@clisp.org>
70044
70045         * modules/lchown (Include): Add lchown.h.
70046         * modules/time_r (Include): Use "..." syntax.
70047         * modules/xgetdomainname (Include): Add xgetdomainname.h.
70048
70049 2003-10-01  Simon Josefsson  <jas@extundo.com>
70050
70051         * MODULES.html.sh (func_all_modules): Move gethostname from section
70052         'based on' to section 'lacking' POSIX:2001.
70053
70054 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
70055
70056         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
70057         to output mode on the same stream.
70058
70059 2003-09-29  Paul Eggert  <eggert@twinsun.com>
70060
70061         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
70062         Fix arg typo in previous patch.
70063
70064 2003-09-28  Jim Meyering  <jim@meyering.net>
70065
70066         * lib/error.c: Correct cpp indentation.
70067
70068 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70069
70070         * modules/free: New file.
70071
70072 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70073
70074         * m4/free.m4: New file.
70075
70076 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70077
70078         * lib/minmax.h (MIN, MAX)
70079         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
70080         Omit the special code that used __typeof__, since we worry that
70081         it could be more trouble than it's worth.  See:
70082         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
70083         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
70084
70085         * lib/free.c: New file.
70086
70087 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
70088
70089         Trivial fixes to Makefile.am parts of module listings.
70090         * modules/strstr: Append strstr.h to lib_SOURCES.
70091         * modules/strcase: Likewise, for strcase.h.
70092
70093 2003-09-27  Karl Berry  <karl@gnu.org>
70094
70095         * config/mkinstalldirs: update from automake.
70096
70097 2003-09-26  Paul Eggert  <eggert@twinsun.com>
70098
70099         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
70100         (error_tail): Do not loop, reallocating temporary buffer, since
70101         the output cannot contain more wide characters than the input
70102         contains bytes, the size must be big enough already.  This avoids
70103         one potential size overflow calculation.  Check for size overflow
70104         when calculating temporary buffer size.  Free temporary buffer
70105         when done, if it was allocated with malloc; this plugs a memory
70106         leak.  Remove casts from void * to pointers, that are no longer
70107         needed now that we're assuming C89 or better.
70108
70109         Merge error changes from glibc.
70110
70111         * lib/error.c, error.h: Update copyright notice header to match glibc.
70112         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
70113         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
70114         Disable cancellation while printing error.
70115         * lib/error.h: Prepend __ to parameter names.
70116
70117 2003-09-26  Jim Meyering  <jim@meyering.net>
70118
70119         * lib/error.c (error_tail): Move some declarations
70120         into inner scope where the local variables are used.
70121
70122 2003-09-26  Bruno Haible  <bruno@clisp.org>
70123
70124         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
70125         stpncpy().
70126         Don't define stpncpy through config.h; it's now done through stpncpy.h.
70127
70128 2003-09-26  Bruno Haible  <bruno@clisp.org>
70129
70130         * lib/stpncpy.h (gnu_stpncpy): New declaration.
70131         (stpncpy): Define as alias for gnu_stpncpy.
70132         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
70133
70134 2003-09-25  Simon Josefsson  <jas@extundo.com>
70135
70136         * lib/xgetdomainname.h: New file.
70137         * lib/xgetdomainname.c: New file.
70138
70139 2003-09-25  Simon Josefsson  <jas@extundo.com>
70140             Bruno Haible  <bruno@clisp.org>
70141
70142         * modules/getdomainname: New file.
70143         * modules/xgetdomainname: New file.
70144         * MODULES.html.sh (func_all_modules): Add getdomainname,
70145         xgetdomainname.
70146
70147 2003-09-25  Simon Josefsson  <jas@extundo.com>
70148             Bruno Haible  <bruno@clisp.org>
70149
70150         * m4/getdomainname.m4: New file.
70151
70152 2003-09-25  Simon Josefsson  <jas@extundo.com>
70153             Bruno Haible  <bruno@clisp.org>
70154
70155         * lib/getdomainname.h: New file.
70156         * lib/getdomainname.c: New file.
70157
70158 2003-09-25  Karl Berry  <karl@gnu.org>
70159
70160         * lib/argp-fmtstream.c, argp-help.c: update from libc.
70161
70162 2003-09-25  Karl Berry  <karl@gnu.org>
70163
70164         * config/install-sh: update from automake.
70165
70166 2003-09-25  Bruno Haible  <bruno@clisp.org>
70167
70168         * modules/version-etc-2: New file, from modules/version-etc with
70169         modifications.
70170         * MODULES.html.sh (func_all_modules): Add version-etc-2.
70171
70172 2003-09-25  Bruno Haible  <bruno@clisp.org>
70173
70174         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
70175         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
70176
70177 2003-09-24  Simon Josefsson  <jas@extundo.com>
70178
70179         * modules/xgethostname: Add xgethostname.h.
70180
70181 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70182
70183         * lib/linebuffer.c (freebuffer): Don't free the argument, just
70184         the buffer associated with the argument.  Bug reported by
70185         Simon Josefsson.
70186
70187 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70188
70189         * README: Document assumptions that 'int' is at least 32 bits
70190         wide, that integer arithmetic is 2's complement without overflow,
70191         that there are no holes in integer values, that adding sizes of
70192         two nonoverlapping objects can't overflow, and that all-bits-zero
70193         yields scalar zero.  Fix spelling and capitalization typos.
70194
70195 2003-09-19  Karl Berry  <karl@gnu.org>
70196
70197         * lib/argp.h: update from libc.
70198
70199 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70200
70201         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
70202         to avoid spurious warnings like "AC_RUN_IFELSE was called before
70203         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
70204
70205 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70206
70207         * gnulib-tool: Use "test -h", not "test -L", for portability
70208         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
70209         (tags_regexp): Remove, since \| doesn't conform to POSIX.
70210         (sed_extract_prog): Issue s commands one-by-one, rather than
70211         using \| in one s command.
70212
70213 2003-09-16  Paul Eggert  <eggert@twinsun.com>
70214
70215         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
70216         input error, instead of returning NULL the next time we are called
70217         (and therefore losing track of errno).
70218
70219 2003-09-16  Bruno Haible  <bruno@clisp.org>
70220
70221         * gnulib-tool (func_create_testdir): Warn about duplicated
70222         dependencies.
70223
70224 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70225
70226         * modules/argmatch, modules/fatal, modules/obstack,
70227         modules/xalloc, modules/xgethostname: Sort dependencies by
70228         importance, not alphabetically.
70229
70230 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70231
70232         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
70233         fails, so that the caller gets the proper errno.
70234
70235         * lib/readutmp.c (read_utmp): Likewise.
70236         Check for fstat error.  Close stream and free storage
70237         when failing.
70238
70239 2003-09-14  Karl Berry  <karl@gnu.org>
70240
70241         * config/srclist.txt (strdup.c): disable for c89 changes.
70242
70243 2003-09-14  Jim Meyering  <jim@meyering.net>
70244
70245         * lib/getloadavg.c: Correct cpp indentation.
70246         * lib/strdup.c: Likewise.
70247         * lib/vasnprintf.c: Likewise.
70248
70249 2003-09-14  Bruno Haible  <bruno@clisp.org>
70250
70251         * modules/fwriteerror: New file.
70252         * MODULES.html.sh (func_all_modules): Add fwriteerror.
70253
70254 2003-09-14  Bruno Haible  <bruno@clisp.org>
70255
70256         * lib/fwriteerror.h: New file.
70257         * lib/fwriteerror.c: New file.
70258
70259 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70260
70261         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
70262         modules/xgethostname, modules/xalloc: Depend on exit.
70263
70264 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70265
70266         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
70267
70268         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
70269         and AC_MINIX, too, so that their extensions are available.
70270
70271         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
70272         This macro has been superseded by gl_BACKUPFILE.
70273
70274         More patches to assume C89 or better.
70275
70276         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
70277
70278         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
70279         unconditionally.
70280         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
70281         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
70282         Include <string.h>, <stdlib.h> unconditionally.
70283         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
70284         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
70285         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
70286         headers or for string.h.
70287         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
70288         or strtoul.
70289
70290         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
70291         headers.
70292         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
70293         * m4/userspec.m4 (gl_USERSPEC): Likewise.
70294         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
70295         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
70296         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70297         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
70298         memcpy, memset.
70299         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
70300         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
70301         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
70302         strtol.
70303         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
70304         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
70305         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
70306         strtoul.
70307
70308 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70309
70310         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
70311         * lib/obstack.c [!defined _LIBC]: Likewise.
70312         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
70313         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
70314         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
70315
70316         More changes to assume C89 or better.
70317
70318         * lib/error.c (error_tail): Assume vprintf.
70319
70320         * lib/argmatch.c (getenv): Remove decl.
70321         * lib/progreloc.c (get_full_program_name): Define via prototype.
70322         * lib/setenv.c (clearenv): Likewise.
70323         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
70324         needed.
70325         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
70326         (malloc, memcpy): Remove decls.
70327         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
70328         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
70329         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70330         (memcpy): Remove macro.
70331         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
70332         (__P): Remove.  All uses removed.
70333         (PTR): Remove.  All uses changed to void *.
70334         (CHAR_BIT, NULL): Remove.
70335         (spaces, zeros, memset_space, memset_zero)
70336         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
70337         Remove.
70338         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
70339         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
70340         Define with prototype.
70341         Remove now-unnecessary prototype decl.
70342         (extra_args_spec): Assume ANSI C.  All uses changed.
70343         (extra_args_spec_iso): Remove.
70344         (my_strftime, emacs_strftimeu): Define via prototype.
70345         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
70346         unconditionally.
70347         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
70348         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
70349         (strtoul, strtol): Remove decls.
70350         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
70351         LONG_MAX): Remove.
70352         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70353         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
70354         (LOCALE_PARAM_PROTO): New macro.
70355         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
70356         (INTERNAL (strtol), strtol): Define with a prototype.
70357         (PARAMS): Remove.  All uses removed.
70358         * lib/tempname.c: Include <string.h> unconditionally.
70359         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
70360         * lib/xgethostname.c (main): Define with a prototype.
70361         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
70362         Include <stdlib.h> unconditionally.
70363         (calloc, malloc, realloc, free): Remove decls.
70364         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
70365         Include <stdlib.h> unconditionally.  Sort include file names.
70366         (strtod): Remove.
70367         (xstrtod): Define with a prototype.
70368         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
70369         (strtol, strtoul): Remove decls.
70370
70371 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70372
70373         More patches to assume C89 or better.
70374         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
70375         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
70376         string.h, memchr, STDC_HEADERS.
70377
70378 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70379
70380         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
70381         Include <stdlib.h>, <string.h> unconditionally.
70382         Remove now-unnecessary cast to char *.
70383         * lib/strnlen.c: Include <string.h> unconditionally.
70384         * lib/yesno.c (yesno): Define with a prototype.
70385
70386 2003-09-11  Bruno Haible  <bruno@clisp.org>
70387
70388         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
70389
70390 2003-09-10  Jim Meyering  <jim@meyering.net>
70391
70392         * lib/error.c: Correct indentation of cpp directives.
70393
70394 2003-09-10  Bruno Haible  <bruno@clisp.org>
70395
70396         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
70397         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
70398         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
70399         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
70400         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
70401         <stdlib.h> and <string.h> checks.
70402         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
70403         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
70404
70405 2003-09-10  Bruno Haible  <bruno@clisp.org>
70406
70407         * lib/strcspn.c: Include <string.h> unconditionally.
70408         * lib/strpbrk.c: Include <string.h> unconditionally.
70409         * lib/strstr.c: Include <string.h> unconditionally.
70410         * lib/unicodeio.c: Include <string.h> unconditionally.
70411         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
70412         * lib/unsetenv.c: Likewise.
70413         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
70414         * lib/yesno.c: Include <stdlib.h> unconditionally.
70415         (rpmatch): Add prototype.
70416
70417 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70418
70419         More patches to assume C89 or better.
70420         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
70421         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
70422         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
70423         or for string.h.
70424         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
70425         stdlib.h.
70426         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
70427         C headers.
70428         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
70429         string.h.
70430         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
70431         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
70432         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
70433         or for string.h.
70434         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
70435         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
70436         C headers.
70437         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
70438         memcpy.
70439         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
70440         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
70441         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
70442         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
70443         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
70444         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
70445         string.h, free.
70446         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
70447         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
70448         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
70449         C headers, or for string.h.
70450         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
70451         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
70452         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
70453         headers, memory.h, stdlib.h, string.h, strings.h.
70454         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
70455         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
70456         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
70457         strchr.
70458         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
70459         headers, memory.h, string.h.
70460         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
70461         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
70462         free.
70463         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
70464         headers.
70465         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
70466         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
70467         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
70468         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
70469         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
70470
70471 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70472
70473         More K&R removal.
70474
70475         * lib/acosl.c (main): Use a prototype.
70476         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
70477         tanl.c: Likewise.
70478
70479         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
70480
70481         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
70482         (getopt, etopt_long, getopt_long_only, _getopt_internal)
70483         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
70484         with a prototype.
70485         * lib/getopt.c (const): Remove macro.
70486         Include <string.h> unconditionally.
70487         (my_index): Remove; all uses changed to strchr.
70488         (strlen): Remove decl.
70489         (exchange): Remove forward decl; no longer needed.
70490         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
70491         Define with prototype.
70492         * lib/getopt1.c (const): Remove macro.
70493         (getopt_long, getopt_long_only, main): Define with prototype.
70494
70495         * lib/getugroups.c: Include <string.h> unconditionally.
70496
70497         * lib/getusershell.c: Include <stdlib.h> unconditionally.
70498         (getusershell, setusershell, endusershell, readname, main):
70499         Define with prototypes.
70500
70501         * lib/group-member.c: Include group-member.h first.
70502         Include <stdlib.h> unconditionally.
70503
70504         * lib/hard-locale.c: Include hard-locale.h first.
70505         Include <stdlib.h>, <string.h> unconditionally.
70506
70507         * lib/hash.c (free, malloc): Remove decls.
70508         Include <stdlib.h> unconditionally.
70509
70510         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
70511         (getenv): Do not declare.
70512
70513         * lib/idcache.c: Include <string.h> unconditionally.
70514
70515         * lib/long-options.c: Include long-options.h first, to test interface.
70516         Include <stdlib.h> unconditionally.
70517
70518         * lib/makepath.c: Include makepath.h first, to test interface.
70519         Include <stdlib.h> and <string.h> unconditionally.
70520
70521         * lib/linebuffer.c: Include <stdlib.h>.
70522         (free): Remove decl.
70523
70524         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
70525         stddef.h. rpl_malloc returns void *, not char *.
70526         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
70527         prototype.
70528
70529         * lib/md5.h: Include <limits.h> unconditionally.
70530         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
70531         (__P): Remove; all uses removed.
70532         * lib/md5.c: Include "md5.h" first.
70533         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
70534         md5_buffer, md5_process_bytes, md5_process_block):
70535         Define with prototypes.
70536         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
70537         * lib/sha.c: Include "sha.h" first.
70538         Include <stdlib.h>, <string.h> unconditionally.
70539
70540         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
70541         * lib/memcmp.c (__ptr_t): Likewise.
70542         * lib/memrchr.c (__ptr_t): Likewise.
70543         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
70544         Include <string.h> unconditionally.
70545         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
70546         * lib/memchr.c: Include <stdlib.h> unconditionally.
70547         * lib/memchr.c (LONG_MAX): Remove.
70548         * lib/memrchr.c (LONG_MAX): Likewise.
70549         * lib/memchr.c (__memchr): Define via a prototype.
70550         * lib/memrchr.c (__memrchr): Likewise.
70551         * lib/memcmp.c (__P): Remove, and remove all uses.
70552         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
70553         Remove forward decls; no longer needed.
70554         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
70555         Use types required by C89 in prototype.
70556
70557         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
70558         * lib/savedir.c: Likewise.
70559         * lib/mkdir.c (free): Remove decl.
70560         * lib/rmdir.c (rmdir): Define with a prototype.
70561         * lib/savedir.c: Include savedir.h first, to test interface.
70562
70563         * lib/mktime.c (STDC_HEADERS): Remove.
70564         Include <stdlib.h>, <string.h> unconditionally.
70565
70566         * lib/modechange.c: Include <stdlib.h> unconditionally.
70567         (malloc): Remove decl.
70568
70569         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
70570         (free): Remove decl.
70571
70572         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
70573         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
70574         (This type really should be intptr_t, but that's a C99ism.)
70575         (_obstack_memcpy): Remove: all uses changed to memcpy.
70576         Include <string.h> unconditionally.
70577         (struct obstack): Assume __STDC__ for types of members
70578         chunkfun, freefun, extra_arg.
70579         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
70580         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
70581         obstack_begin, obstack_specify_allocation,
70582         obstack_specify_allocation_with_arg, obstack_chunkfun,
70583         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
70584         Remove unprototyped decls and the macros that use them.
70585         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
70586         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
70587         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
70588         (defined __STDC__ && __STDC__)]:
70589         Remove nonprototyped code.
70590         Include <stdlib.h> unconditionally.
70591         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
70592         _obstack_allocated_p, _obstack_free, obstack_free,
70593         _obstack_memory_used, print_and_abort):
70594         Define using prototypes.
70595         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
70596         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
70597         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
70598         obstack_next_free, obstack_object_size, obstack_room) [0]:
70599         Remove unused, unprototyped code.
70600
70601         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
70602
70603         * lib/physmem.c (physmem_total, physmem_available, main): Define
70604         with prototypes.
70605
70606         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
70607         (main): Define with a prototype.
70608
70609         * lib/posixver.c (getenv): Remove decl.
70610
70611         * lib/putenv.c (malloc): Returns void *, not char *.
70612         Include <string.h> unconditionally.
70613         (strchr, memcpy, NULL): Do not define.
70614
70615         * lib/readtokens.c: Include readtokens.h first, to test interface.
70616         Include <stdlib.h>, <string.h> unconditionally.
70617         (init_tokenbuffer): Define with a prototype.
70618
70619         * lib/regex.c (PARAMS): Remove.  All uses removed.
70620         All uses of _RE_ARGS removed, too.
70621         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70622         unconditionally.
70623         (bzero): Assume memset exists.
70624         (memcmp, memcpy, NULL): Remove.
70625         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
70626         char, or assignments to local vars of type signed char.
70627         (init_syntax_once, PREFIX(extract_number_and_incr),
70628         PREFIX(print_partial_compiled_pattern),
70629         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
70630         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
70631         PREFIX(regex_grow_registers), PREFIX(regex_compile),
70632         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
70633         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
70634         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
70635         wcs_compile_range, byte_compile_range, truncate_wchar,
70636         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
70637         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
70638         count_mbs_length, wcs_re_match_2_internal,
70639         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
70640         PREFIX(alt_match_null_string_p),
70641         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
70642         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
70643         regfree, PREFIX(extract_number)): Define with prototype.  Remove
70644         now-unnecessary declaration, if any.
70645         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
70646         regcomp, regexec):
70647         Remove now-unnecessary casts among pointer types.
70648         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
70649
70650         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
70651         (free): Remove decl.
70652
70653         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
70654
70655         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
70656         (free): Remove decl.
70657
70658         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
70659         * lib/xgetcwd.c: Likewise.
70660
70661         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
70662         (free): Remove decl.
70663
70664         * lib/strchrnul.c (strchrnul): Define with a prototype.
70665         Fix bug: c_in was not converted to char before searching.
70666
70667         The following changes are not K&R related:
70668
70669         * lib/group-member.h: Include <sys/types.h>, so that this file is
70670         self-contained.
70671         * lib/makepath.h: Likewise.
70672
70673         * lib/getusershell.c (readname, default_index, line_size, readname):
70674         Use size_t, not int, for sizes.
70675         (readname): If the size overflows, report an error instead of
70676         looping forever.
70677
70678 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70679
70680         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
70681         libc.
70682
70683 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70684
70685         * README: New section: portability guidelines.
70686
70687 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70688
70689         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
70690         C89 spec.
70691
70692 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70693
70694         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
70695
70696 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70697
70698         Assume C89 or better; remove K&R cruft.
70699         A few of these changes were first proposed by Derek Robert Price
70700         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
70701
70702         * lib/addext.c: Include <string.h> unconditionally.
70703         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
70704         Don't declare getenv or malloc.
70705
70706         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
70707         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
70708         (NULL): Remove.
70709         (find_stack_direction, alloca): Use prototypes.
70710
70711         * lib/atexit.c (atexit): Define using a prototype.
70712
70713         * lib/basename.c, dirname.c, stripslash.c:
70714         Include <string.h> unconditionally.
70715
70716         * lib/bcopy.c: Include <stddef.h>.
70717         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
70718
70719         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
70720
70721         * lib/error.h (error, error_at_line, error_print_progname)
70722         [! (defined (__STDC__) && __STDC__)]: Remove decls.
70723         * lib/error.c: Include error.h first, to check interface.
70724         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70725         (VA_START): Remove; all uses changeed to va_start.
70726         (exit, strerror): Remove decls.
70727         (error_print_progname): Prototype uncondionally.
70728         Don't include <errno.h>; no longer needed.
70729         (private_strerror): Remove.
70730         (error_tail): Always define.
70731         (error, error_at_line): Assume C89 or better; always use prototypes.
70732         * lib/fatal.c: Include "fatal.h" first, to test interface.
70733         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70734         (VA_START): Remove; all uses changed to va_start.
70735         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
70736         this case.
70737         (exit): Remove decl.
70738         (fatal): Prototype unconditionally.  Assume va_start works.
70739         Abort at end, to pacify gcc.
70740
70741         * lib/euidaccess.c (main): Define with a prototype.
70742
70743         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
70744
70745         * lib/exitfail.c: Include <stdlib.h> unconditionally.
70746
70747         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
70748         prototypes.
70749         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
70750         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
70751         (getenv): Remove decl.
70752         (fnmatch): Define using a prototype.
70753         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
70754         (FCT): Define using a prototype.
70755
70756         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
70757
70758         * lib/gethostname.c: Include <stddef.h>.
70759         (gethostname): Define with prototype.  Length is size_t, not int.
70760
70761 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70762
70763         Assume C89 or better; remove K&R cruft.
70764         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
70765         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
70766         string.h, getenv, malloc.
70767         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
70768         headers.
70769         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
70770         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
70771         do not check for strerror.
70772         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
70773         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
70774         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
70775         do not check for doprnt or vprintf.
70776         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
70777         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
70778
70779 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70780
70781         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
70782         getversion.c should have been removed then, but was accidentally
70783         preserved.
70784
70785         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
70786         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
70787
70788 2003-09-08  Karl Berry  <karl@gnu.org>
70789
70790         * config/config.sub, config.guess, srclistvars.sh: update from savannah
70791                 config, forget about prep.
70792
70793         * config/depcomp, missing: update from automake.
70794
70795 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70796
70797         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
70798         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70799
70800 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70801
70802         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
70803         copy_tm_result.  Bug reported by Simon Josefsson in
70804         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70805
70806 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70807
70808         * m4/time_r.m4: New file.
70809         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
70810         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
70811         is. Check for timegm declaration.
70812         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
70813         Do not check for gmtime_r.
70814         Replace mktime if __mktime_internal does not exist and if mktime
70815         hasn't been replaced already.
70816
70817 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70818
70819         * lib/time_r.c, lib/time_r.h: New files.
70820
70821         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
70822         __localtime_r.
70823         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
70824         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
70825
70826         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
70827         __gmtime_r.
70828         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
70829         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
70830         Include <time_r.h>.
70831
70832         * lib/timegm.c: Switch to glibc implementation, with the following
70833         changes:
70834         [defined HAVE_CONFIG_H]: Include <config.h>.
70835         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
70836         (__mktime_internal) [!defined _LIBC]: New decl.
70837         (__gmtime_r) [!defined _LIBC]: New macro and function.
70838         (timegm): Use a prototype, since gnulib assumes C89.
70839         Do not bother declaring tmp to be const, as it's not really usefu.
70840         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
70841         (timegm): Declare only if HAVE_DECL_TIMEGM.
70842
70843 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70844
70845         * MODULES.html.sh (func_all_modules): Add time_r.
70846         * modules/time_r: New file.
70847         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
70848         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
70849
70850 2003-09-03  Paul Eggert  <eggert@twinsun.com>
70851
70852         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
70853         Bug reported by Lute Kamstra in
70854         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
70855
70856         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
70857         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
70858         course with correspondingly smaller numbers for tomorrow and
70859         yesterday.  From Tadayoshi Funaba.  Originally installed into
70860         sh-utils on 1999-08-07, but the patch got lost (I guess during the
70861         coreutils merge?).
70862
70863 2003-08-31  Simon Josefsson  <jas@extundo.com>
70864
70865         * modules/timegm: New file.
70866         * MODULES.html.sh (func_all_modules): Add timegm.
70867
70868 2003-08-31  Simon Josefsson  <jas@extundo.com>
70869
70870         * m4/timegm.m4: New file.
70871
70872 2003-08-31  Simon Josefsson  <jas@extundo.com>
70873
70874         * lib/timegm.h: New file.
70875         * lib/timegm.c: New file.  Based on
70876         wget-1.8.2/src/http.c:mktime_from_utc.
70877
70878 2003-08-31  Karl Berry  <karl@gnu.org>
70879
70880         * lib/argp.h: update from libc.
70881
70882 2003-08-28  Bruno Haible  <bruno@clisp.org>
70883
70884         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
70885         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
70886         followed by '#define fnmatch fnmatch_posix' gives an error.
70887
70888 2003-08-28  Bruno Haible  <bruno@clisp.org>
70889
70890         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
70891         warning on QNX, which defines O_BINARY to 000000.
70892
70893 2003-08-27  Jim Meyering  <jim@meyering.net>
70894
70895         * m4/mkstemp.m4: Require that the system mkstemp be able to create
70896         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
70897         would fail after 32.  Reported by Danny Levinson.  Details here:
70898         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
70899
70900 2003-08-24  Bruno Haible  <bruno@clisp.org>
70901
70902         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
70903         MSVC7 <stdio.h> is included later.
70904
70905 2003-08-22  Simon Josefsson  <jas@extundo.com>
70906
70907         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
70908
70909 2003-08-20  Karl Berry  <karl@gnu.org>
70910
70911         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
70912
70913 2003-08-20  Bruno Haible  <bruno@clisp.org>
70914
70915         * modules/progname: New file.
70916         * MODULES.html.sh (func_all_modules): Add progname.
70917
70918 2003-08-20  Bruno Haible  <bruno@clisp.org>
70919
70920         * lib/progname.h: New file, from GNU gettext.
70921         * lib/progname.c: New file, from GNU gettext.
70922         * lib/progreloc.c: New file, from GNU gettext.
70923
70924 2003-08-19  Jim Meyering  <jim@meyering.net>
70925
70926         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
70927         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
70928
70929 2003-08-19  Bruno Haible  <bruno@clisp.org>
70930
70931         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
70932         more.
70933
70934 2003-08-19  Bruno Haible  <bruno@clisp.org>
70935
70936         * lib/xstrdup.c: Assume <string.h> exists.
70937
70938 2003-08-18  Paul Eggert  <eggert@twinsun.com>
70939
70940         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
70941         in makefile rules.
70942
70943 2003-08-18  Jim Meyering  <jim@meyering.net>
70944
70945         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
70946         * m4/lib-ld.m4: Likewise.
70947
70948 2003-08-18  Jim Meyering  <jim@meyering.net>
70949
70950         * lib/setenv.h: Indent nested cpp directive.
70951         * lib/vasnprintf.c: Remove trailing blanks.
70952
70953 2003-08-17  Simon Josefsson  <jas@extundo.com>
70954
70955         * modules/xstrndup: New file.
70956         * MODULES.html.sh (func_all_modules): Add xstrndup.
70957
70958 2003-08-17  Simon Josefsson  <jas@extundo.com>
70959
70960         * modules/argp: Fix autoconf macro name. Add more dependencies.
70961
70962 2003-08-17  Simon Josefsson  <jas@extundo.com>
70963
70964         * m4/xstrndup.m4: New file.
70965
70966 2003-08-17  Simon Josefsson  <jas@extundo.com>
70967
70968         * m4/argp.m4: New file.
70969
70970 2003-08-17  Simon Josefsson  <jas@extundo.com>
70971             Bruno Haible  <bruno@clisp.org>
70972
70973         * lib/xstrndup.h: New file.
70974         * lib/xstrndup.c: New file.
70975
70976 2003-08-17  Bruno Haible  <bruno@clisp.org>
70977
70978         * modules/strndup (Files, Include): Add lib/strndup.h.
70979
70980 2003-08-17  Bruno Haible  <bruno@clisp.org>
70981
70982         * modules/euidaccess (Files): Add lib/euidaccess.h.
70983
70984 2003-08-17  Bruno Haible  <bruno@clisp.org>
70985
70986         * lib/strndup.h: New file.
70987
70988 2003-08-17  Bruno Haible  <bruno@clisp.org>
70989
70990         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
70991         like AC_GNU_SOURCE.
70992         * modules/extensions (configure.ac): Comment out the invocation of
70993         gl_USE_SYSTEM_EXTENSIONS.
70994
70995 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70996
70997         Merges from coreutils, etc.
70998         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
70999         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
71000         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
71001         fixing a typo.
71002         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
71003         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
71004
71005 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71006
71007         Document merge from coreutils.
71008         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
71009         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
71010         * modules/utime: Add m4/utimes-null.m4.
71011
71012 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71013
71014         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
71015         space, undoing this 2003-08-12 change:
71016         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71017
71018 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71019
71020         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
71021         strtoul.c from libc, undoing this 2003-08-12 change:
71022         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71023
71024 2003-08-16  Jim Meyering  <jim@meyering.net>
71025
71026         Merges from coreutils.
71027         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
71028         prefix.  Adjust cache variables similarly.  Create 500 rather than
71029         just 300 files, to exercise bug on Darwin6.5, too.
71030         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
71031         $missing_dir.
71032         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
71033         AM_SYS_POSIX_TERMIOS.
71034         Reported by mkc@mathdogs.com.
71035         Also change use of $am_cv_sys_posix_termios
71036         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
71037         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
71038         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
71039         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
71040         in /proc/mounts until it finds one with matching device number.  This
71041         is unnecessary when the FILE argument *is* a mount point.  No stat call
71042         is necessary in that case.  So, disable the statvfs-testing code on
71043         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
71044         as RedHat bug# 84846.
71045         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71046         to 1MB, so as not to render systems with no stack size limit (e.g.,
71047         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71048         Include <unistd.h>.  On some systems,
71049         it is required for the definition of _SC_PAGESIZE.
71050
71051 2003-08-16  Jim Meyering  <jim@meyering.net>
71052
71053         Merge from coreutils.
71054         * lib/xstrtoimax.c: #else #if -> #elif.
71055         * lib/xstrtoumax.c: Likewise.
71056
71057 2003-08-16  Jim Meyering  <jim@meyering.net>
71058
71059         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
71060         * m4/utimes.m4: Removed.
71061         * m4/utimes-null.m4: Renamed from utimes.m4.
71062
71063         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71064         to 1MB, so as not to render systems with no stack size limit (e.g.,
71065         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71066         Include <unistd.h>.  On some systems,
71067         it is required for the definition of _SC_PAGESIZE.
71068
71069 2003-08-16  Jim Meyering  <jim@meyering.net>
71070         and Paul Eggert  <eggert@cs.ucla.edu>
71071
71072         Merges from coreutils, etc.
71073
71074         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
71075         using the latest version from cvs.  This avoids problems with #line
71076         directives using a vendor (Sun) compiler.
71077         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
71078         Don't set GETGROUPS_LIB here; now it's
71079         done via getgroups.m4's wrapper function.
71080         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
71081         rather than just in sh-util/configure.in, so that the
71082         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
71083         same.
71084         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
71085         AC_FUNC_GETLOADAVG where to find getloadavg.c.
71086         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
71087         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
71088         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
71089         Remove code that is now done by the newly-required macros.
71090         Append $(EXEEXT) to DF_PROG.
71091         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
71092         Do not invoke or require the following here,
71093         since prereq.m4 or some gnulib .m4 now does this for us:
71094         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
71095         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
71096         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
71097         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
71098         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
71099         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
71100         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
71101         AC_FUNC_OBSTACK.
71102         Do not replace the following functions, as this is now the job
71103         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
71104         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
71105         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
71106         atexit getpass, strdup, getpagesize.
71107         Replace 'raise'.
71108         Do not check for the following functions, as this is now the job
71109         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
71110         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
71111         setregid.
71112         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
71113         Check for sys/sysctl.h.
71114         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
71115         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
71116         of checking for ssize_t ourselves.
71117
71118         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
71119         Require every macro that gnulib/modules/* suggests for us.
71120         (jm_PREREQ_ADDEXT): New macro.
71121         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
71122         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
71123
71124         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
71125         (gl_PHYSMEM): Use it.
71126         Also check for `table' function.
71127         Check for new headers and functions.
71128         Add check for sys/sysmp.h.
71129         With suggestions from Kaveh Ghazi.
71130         Ignore headers that are present but cannot be compiled.  This
71131         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
71132         C 5.4.
71133
71134 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71135
71136         Document merge from coreutils.
71137         * modules/userspec: Depend on posixver.
71138         * modules/strftime: Depend on tzset.
71139
71140 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71141
71142         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
71143         rather than tab, after '#' in shell-script copyright notices.
71144         Suggested by Bruno Haible.
71145
71146 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71147
71148         * config/srclist-update: Use three spaces, rather than tab, after '#'
71149         in shell-script copyright notices.  Suggested by Bruno Haible.
71150         Remove unnecessary parenthesization in regular expression.
71151
71152 2003-08-15  Jim Meyering  <jim@meyering.net>
71153
71154         Merge from coreutils.
71155         * lib/xgethostname.c: Include <stdlib.h>.
71156         (xghostname): Don't exit for anything other than memory-related
71157         failure; just return NULL.
71158         * lib/userspec.c: Include "posixver.h".
71159         (parse_user_spec): Accept `.' as a separator only
71160         in pre-POSIX-200112 mode.
71161         * lib/strtoimax.c: Use #elif rather than #else #if.
71162         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
71163         Remove function, now that we can rely on a working tzset function.
71164         [!_LIBC]: Ensure that the required autoconf test has been run.
71165         [!defined _NL_CURRENT && HAVE_STRFTIME]:
71166         Use underlying_strftime for %r.
71167         * lib/sha.c: Merge in some clean-up and optimization changes from
71168         glibc.
71169         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
71170         Ensure that it is a multiple of 64.
71171         Rearrange loop exit tests so as to avoid performing an
71172         additional fread after encountering an error or EOF.
71173         * lib/realloc.c: Update copyright date.
71174
71175 2003-08-15  Jim Meyering  <jim@meyering.net>
71176         and Paul Eggert  <eggert@twinsun.com>
71177
71178         Merge from coreutils.
71179         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
71180         member but strut utmpx does not.  Needed for AIX 4.3.3.
71181         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
71182
71183 2003-08-15  Jim Meyering  <jim@meyering.net>
71184         and Paul Eggert  <eggert@cs.ucla.edu>
71185
71186         Merges from coreutils, etc.
71187         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
71188         Require gl_FUNC_TZSET_CLOBBER.
71189         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
71190         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
71191         members.
71192
71193 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71194
71195         Help the merge from coreutils.
71196         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
71197         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
71198         * m4/tzset.m4: Use it too.
71199
71200 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71201
71202         * modules/tzset: New file.
71203
71204 2003-08-14  Jim Meyering  <jim@meyering.net>
71205
71206         Merges from coreutils.
71207         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
71208         variable names, rather than @FNMATCH_H@.
71209         * modules/alloca: Likewise for $(ALLOCA_H).
71210
71211         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
71212         the three copies of the literal target, `fnmatch.h'.
71213         * modules/alloca (alloca.h): Likewise.
71214
71215 2003-08-14  Jim Meyering  <jim@meyering.net>
71216
71217         Merge from coreutils.
71218         * m4/tzset.m4: New file.
71219         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
71220         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
71221         otherwise, AIX 5.1 systems would end up using the latter.
71222         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
71223         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
71224         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
71225         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
71226
71227 2003-08-14  Jim Meyering  <jim@meyering.net>
71228
71229         Merge from coreutils.
71230         * lib/obstack.h: Whitespace changes.
71231         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
71232         and xcalloc return values.
71233         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
71234         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
71235         hang on OSF/1 5.1 for DIR on both local and remote file systems.
71236         Reported by (and fix confirmed by) Nelson H. F. Beebe.
71237         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71238         error from mntctl.
71239         Use mntctl's return value to drive the entry-processing loop, since
71240         we can't rely on the value of the vmt_length member in the last
71241         entry.  On some systems doing so could result in exhausting
71242         virtual memory.  Based in part on a patch from Mike Jetzer.
71243
71244 2003-08-14  Jim Meyering  <jim@meyering.net>
71245         and Paul Eggert  <eggert@twinsun.com>
71246
71247         Merges from coreutils, plus other fixes.
71248         * lib/physmem.c: Merge in portability changes from gcc/libiberty
71249         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
71250         for credits and details.  Thanks to Kaveh Ghazi for helping
71251         to keep these files in sync.
71252         (ARRAY_SIZE): Define it.
71253         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
71254         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
71255         (memcasecmp): Don't assume size_t fits in unsigned int.
71256         Remove casts and duplicate code.
71257         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
71258         (memcpy): Remove definition.
71259         Merge in some clean-up and optimization changes from glibc.
71260         [BLOCKSIZE]: Move definition to top of file.
71261         Ensure that it is a multiple of 64.
71262         Rearrange loop exit tests so as to avoid performing an
71263         additional fread after encountering an error or EOF.
71264         * lib/md5.h (md5_uintptr): Define.
71265         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
71266         return to the initial working directory.  Preserve errno
71267         for caller.
71268         * lib/idcache.c: Include "xalloc.h".
71269         (xmalloc, xrealloc): Remove decls.
71270         (getuser): Remove casts no longer required in C89.
71271         * lib/human.c: Include stdio.h, for sprintf.
71272         * lib/group-member.c: Include "xalloc.h".
71273         (xmalloc, xrealloc): Remove decls.
71274         (get_group_info): Remove casts no longer required in C89.
71275         * lib/getusershell.c (readname): Remove casts no longer required in
71276         C89.
71277         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
71278         * lib/getline.c: Whitespace fix, from coreutils.
71279
71280 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71281
71282         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
71283         Check for isascii.
71284
71285         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71286         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71287         Undo previous (whitespace-only) change.
71288
71289 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71290
71291         * lib/exclude.c: Include <ctype.h>
71292         (IN_CTYPE_DOMAIN): New macro.
71293         (is_space): New fn.
71294         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
71295         and empty lines.
71296
71297         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71298         Undo previous (whitespace-only) change.
71299
71300 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71301
71302         * config/srclist-update: Change update back to the old behavior,
71303         leaving whitespace alone.  Use one 'sed' command rather than a
71304         pipeline.
71305         (fixlicense): Now a variable, not a function.
71306         (remove_trailing_blanks): Remove.
71307         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
71308         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71309         Undo previous (whitespace-only) change.
71310
71311 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71312
71313         Merge from coreutils.
71314         * modules/euidaccess: Add lib_SOURCES, include for new
71315         file euidaccess.h
71316
71317 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71318
71319         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71320         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71321         Normalize leading white space and remove trailing white space.
71322
71323         Merge from coreutils
71324         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
71325
71326         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
71327         0.12.1.  These files are now being upgraded automatically by
71328         ../config/srclist-update.
71329
71330 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71331
71332         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71333         Normalize leading white space and remove trailing white space.
71334         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
71335         notice, as per ../config/srclist-update.
71336
71337         Merge from coreutils.
71338         * lib/euidaccess.h: New file.
71339         * lib/euidaccess.c: Include it.
71340         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
71341         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
71342         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
71343
71344 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71345
71346         * config/srclist-update: Add copyright notice.
71347         (remove_id_lines, remove_trailing_blanks): New constants.
71348         (fixfile): Use them to normalize spacing a bit in copied files.
71349         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71350         Normalize leading white space and remove trailing white space.
71351
71352         * config/texinfo.tex: Sync with texinfo.
71353
71354         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
71355         strtoul.c from libc, to merge coreutils whitespace changes.
71356
71357         * config/srclist.txt: Get the following m4 files from gettext:
71358         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
71359         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
71360         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
71361         wint_t.m4.
71362
71363 2003-08-12  Karl Berry  <karl@gnu.org>
71364
71365         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
71366         been made.
71367
71368 2003-08-11  Paul Eggert  <eggert@twinsun.com>
71369
71370         * modules/gnu-source, m4/gnu-source.m4:
71371         Remove; we're assuming Autoconf 2.54 or later now.
71372         Suggested by Bruno Haible.
71373         * MODULES.html.sh (func_all_modules): Remove gnu-source.
71374
71375 2003-08-11  Bruno Haible  <bruno@clisp.org>
71376
71377         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
71378
71379 2003-08-11  Bruno Haible  <bruno@clisp.org>
71380
71381         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
71382         (vasnprintf): Use it instead of wcslen.
71383
71384 2003-08-11  Bruno Haible  <bruno@clisp.org>
71385
71386         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
71387         value to ensure that _Bool promotes to int. Use #define for _Bool when
71388         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
71389
71390 2003-08-10  Karl Berry  <karl@gnu.org>
71391
71392         * lib/regex.h: update from libc (whitespace fix).
71393
71394 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71395
71396         Merge some files from coreutils.  These changes were
71397         originally made by Jim Meyering.
71398         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
71399         many older Unixes require this.
71400         * lib/alloca.c (alloca): Remove cast to argument of free;
71401         no longer needed in C89.
71402         * lib/alloca_.h, regex.h: Fix white space to match
71403         what GNU indent does.
71404
71405 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71406
71407         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
71408         apparently Emacs's Unicode mode got confused before my 2003-08-05
71409         checkin.
71410
71411 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71412
71413         * m4/extensions.m4: New file.
71414         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
71415         Require gl_USE_SYSTEM_EXTENSIONS.
71416         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
71417         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
71418
71419 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71420
71421         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
71422         * modules/extensions, modules/gnu-source: New files.
71423         * modules/timespec, modules/unlocked-io: Depend on extensions.
71424
71425 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71426
71427         * modules/restrict: New file.
71428         * MODULES.html.sh (func_all_modules): Add restrict.
71429         * modules/regex: Depend on restrict.
71430
71431 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71432
71433         * m4/restrict.m4: New file.
71434         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
71435
71436 2003-08-07  Bruno Haible  <bruno@clisp.org>
71437
71438         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
71439         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
71440
71441 2003-08-07  Bruno Haible  <bruno@clisp.org>
71442
71443         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
71444         makes the module 'getndelim2' compatible with the module 'getline'.
71445
71446 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71447
71448         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
71449         byte with "\201" to avoid glitches when editing that source file
71450         with multi-gnome-terminal.
71451
71452 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71453
71454         * lib/bumpalloc.h: Remove.
71455
71456 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71457
71458         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
71459         * modules/bumpalloc: Remove.
71460
71461 2003-08-04  Paul Eggert  <eggert@twinsun.com>
71462
71463         * lib/getloadavg.c: Change copyright notice and spacing to conform to
71464         GNU coding style.
71465
71466         Merge from coreutils.
71467         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
71468         1. From glibc.
71469         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
71470         from Karl Berry, implemented by Jim Meyering.
71471         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
71472         from Dmitry V. Levin.
71473         Remove anachronistic cast of xrealloc.
71474         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
71475         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
71476         type. Otherwise, it wouldn't compile with at least /bin/cc on
71477         ymp-cray-unicos9.0.2.X.
71478         Combine two mostly-identical uses of alloca into one.
71479         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
71480
71481 2003-08-04  Dave Love  <d.love@dl.ac.uk>
71482
71483         [From Emacs.]
71484
71485         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
71486         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
71487         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
71488         obsolete NLIST_NAME_UNION.
71489         [__GNU__]: Undef BSD and FSCALE.
71490         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
71491
71492 2003-08-03  Paul Eggert  <eggert@twinsun.com>
71493
71494         * lib/stdbool_.h (_Bool): Make it signed char, instead of
71495         an enum type, so that it's guaranteed to promote to int.  See:
71496         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
71497
71498 2003-08-03  Karl Berry  <karl@gnu.org>
71499
71500         * config/depcomp: update from automake.
71501
71502 2003-07-31  Paul Eggert  <eggert@twinsun.com>
71503
71504         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
71505         (strerror): Don't assume that a printable int fits in 14 bytes.
71506
71507 2003-07-31  Bruno Haible  <bruno@clisp.org>
71508
71509         * modules/getpass-gnu: New file.
71510         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
71511
71512 2003-07-31  Bruno Haible  <bruno@clisp.org>
71513
71514         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
71515
71516 2003-07-24  Karl Berry  <karl@gnu.org>
71517
71518         * config/missing: update from automake.
71519
71520 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
71521             Bruno Haible  <bruno@clisp.org>
71522
71523         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
71524         * lib/getline.c (getline, getdelim): Likewise.
71525         Remove _GNU_SOURCE define; now it's defined in config.h through
71526         m4/getline.m4.
71527
71528 2003-07-23  Karl Berry  <karl@gnu.org>
71529
71530         * config/config.sub: update from prep.
71531
71532 2003-07-22  Paul Eggert  <eggert@twinsun.com>
71533
71534         * modules/xalloc (Depends-on): Add exitfail.
71535         * modules/xmemcoll: Likewise.
71536
71537 2003-07-22  Paul Eggert  <eggert@twinsun.com>
71538
71539         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
71540         over-parenthesization in macros.
71541
71542         Sync with coreutils.
71543
71544         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
71545         required by C99.
71546
71547         Use `exit_failure' for xalloc and xmemcoll instead of their own
71548         private exit-failure variables.
71549         * lib/xalloc.h (xalloc_exit_failure): Remove.
71550         * lib/xmalloc.c: Likewise.  Include exitfail.h.
71551         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
71552         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
71553         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
71554         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
71555
71556 2003-07-20  Jim Meyering  <jim@meyering.net>
71557
71558         * modules/closeout (Depends-on): Add exitfail.
71559         Suggestion from Bruno Haible.
71560
71561 2003-07-19  Karl Berry  <karl@gnu.org>
71562
71563         * config/config.sub: update from prep.
71564
71565 2003-07-18  Paul Eggert  <eggert@twinsun.com>
71566
71567         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
71568         Remove.
71569         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
71570         to test that it can stand by itself.  Include "exitfail.h".
71571         Clients should set exit_failure instead.
71572         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
71573
71574 2003-07-18  Bruno Haible  <bruno@clisp.org>
71575
71576         * modules/getndelim2: New file.
71577         * modules/getline: Share files with module getndelim2.
71578         * modules/getnline: Depend on getndelim2 instead of sharing files with
71579         it. Add getnline.c to lib_SOURCES.
71580         * MODULES.html.sh (func_all_modules): Add getndelim2.
71581
71582 2003-07-18  Bruno Haible  <bruno@clisp.org>
71583
71584         * m4/getndelim2.m4: New file.
71585         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
71586         invoke gl_PREREQ_GETNDELIM2.
71587         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
71588         gl_PREREQ_GETNDELIM2.
71589         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
71590         gl_GETNDELIM2.
71591
71592 2003-07-18  Bruno Haible  <bruno@clisp.org>
71593
71594         * lib/getndelim2.h: New file.
71595         * lib/getndelim2.c: Make into a module of its own. Include config.h,
71596         getndelim2.h.
71597         (getndelim2): Make non-static. Change return type to ssize_t.
71598         * lib/getline.h: Change argument names.
71599         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
71600         * lib/getnline.c: Include getndelim2.h.
71601
71602 2003-07-18  Andreas Schwab  <schwab@suse.de>
71603
71604         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
71605
71606 2003-07-17  Karl Berry  <karl@gnu.org>
71607
71608         * config/config.sub: update from prep.
71609
71610 2003-07-17  Bruno Haible  <bruno@clisp.org>
71611
71612         * modules/getnline: New file.
71613         * modules/getline: Add lib/getndelim2.c to source file list.
71614         * MODULES.html.sh (func_all_modules): Add getnline.
71615
71616 2003-07-17  Bruno Haible  <bruno@clisp.org>
71617
71618         * m4/getnline.m4: New file.
71619
71620 2003-07-17  Bruno Haible  <bruno@clisp.org>
71621
71622         * m4/Makefile.am.in: Remove file.
71623         * m4/Makefile.am: Remove file.
71624         * m4/Makefile.in: Remove file.
71625
71626 2003-07-17  Bruno Haible  <bruno@clisp.org>
71627
71628         * lib/getnline.h: New file.
71629         * lib/getnline.c: New file.
71630         * lib/getndelim2.c: New file, extracted from getline.c.
71631         (getndelim2): Renamed from getdelim2, with added nmax argument.
71632         * lib/getline.c: Include getndelim2.c.
71633         (getdelim2): Moved out to getndelim2.c.
71634         (getline, getdelim): Update.
71635
71636 2003-07-17  Bruno Haible  <bruno@clisp.org>
71637
71638         * lib/Makefile.am: Remove file.
71639         * lib/Makefile.in: Remove file.
71640
71641 2003-07-17  Bruno Haible  <bruno@clisp.org>
71642
71643         * configure.in: Remove file.
71644         * Makefile.in: Remove file.
71645
71646 2003-07-17  Bruno Haible  <bruno@clisp.org>
71647
71648         * MODULES.html.sh: Put the </BODY> right before </HTML>.
71649
71650 2003-07-16  Karl Berry  <karl@gnu.org>
71651
71652         * config/srclist-update: was running fixlicense twice, which caused
71653                 texinfo.tex to be nullified for some reason.  Simplify,
71654                 $gplsrc is no longer needed as far as I can see?
71655
71656 2003-07-16  Jim Meyering  <jim@meyering.net>
71657
71658         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
71659
71660 2003-07-15  Paul Eggert  <eggert@twinsun.com>
71661
71662         * config/srclist.txt: Get the following files from gettext-runtime/intl
71663         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
71664         ref-del.sin.  From Bruno Haible.
71665         * config/srclist-update (fixfile): Change grep pattern again, since the
71666         previous fix didn't work (there was another trailing $).  Use
71667         '[$]' to escape the $s.
71668
71669 2003-07-15  Karl Berry  <karl@gnu.org>
71670
71671         * lib/vasnprintf.c: update from gettext.
71672
71673 2003-07-15  Karl Berry  <karl@gnu.org>
71674
71675         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
71676         gets expanded when surrounded by '$'.
71677
71678 2003-07-15  Jim Meyering  <jim@meyering.net>
71679
71680         * modules/save-cwd: Don't depend on error.  From Derek Price.
71681
71682 2003-07-15  Jim Meyering  <jim@meyering.net>
71683
71684         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
71685
71686 2003-07-14  Simon Josefsson  <jas@extundo.com>
71687
71688         * modules/mempcpy: New file.
71689         * MODULES.html.sh (func_all_modules): Add mempcpy.
71690
71691 2003-07-14  Simon Josefsson  <jas@extundo.com>
71692
71693         * m4/mempcpy.m4: New file.
71694
71695 2003-07-14  Simon Josefsson  <jas@extundo.com>
71696
71697         * lib/mempcpy.h: New file.
71698         * lib/mempcpy.c: New file.
71699
71700 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71701
71702         * modules/getdate, modules/posixtm: Depend on mktime.
71703
71704 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71705
71706         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
71707         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
71708         unicodeio.c, unicodeio.h, unlocked-io.h:
71709         Switch from LGPL to GPL.
71710
71711 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71712
71713         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
71714         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
71715         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
71716         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
71717         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
71718         updated automatically by ../config/srclist-update.  This changes
71719         their license from LPGL to GPL.
71720
71721 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71722
71723         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
71724         assumed to refer to the root of the most recent stable gettext version.
71725         * config/srclistvars.sh: Add defaults for eggert.
71726         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
71727         Match "This program" as well as "The program".  This is needed
71728         for gettext.
71729
71730 2003-07-14  Jim Meyering  <jim@meyering.net>
71731
71732         Don't emit diagnostics.  Let callers do that.
71733         * lib/save-cwd.c: Don't include "error.h".
71734         (save_cwd): Don't call error.  Ensure that errno is valid
71735         when returning nonzero.
71736
71737         * lib/save-cwd.h (restore_cwd): Update prototype.
71738         * lib/save-cwd.c (restore_cwd): Remove two parameters.
71739         Simplify.  Don't call error upon failure.  Let callers do that.
71740         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
71741         when auditing is enabled.  But don't bother updating the #if.
71742
71743 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
71744
71745         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
71746         it breaks C++ compilation.
71747         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
71748
71749 2003-07-10  Simon Josefsson  <jas@extundo.com>
71750
71751         * modules/strchrnul (Makefile.am): Add strchrnul.h.
71752
71753 2003-07-10  Jim Meyering  <jim@meyering.net>
71754
71755         * m4/clock_time.m4: Remove trailing blank.
71756         * m4/intmax_t.m4: Likewise.
71757
71758 2003-07-10  Jim Meyering  <jim@meyering.net>
71759
71760         * lib/vasnprintf.c: Remove trailing blanks.
71761         Make cpp indentation consistent.
71762
71763 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71764
71765         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
71766         posixver.c, strftime.c, strnlen.c, strverscmp.c:
71767         Switch from LGPL to GPL.
71768
71769 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71770
71771         * config/srclist.txt: Sort sublists.  Add
71772         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
71773         that differ from gnulib for one reason or another; we'd like this list
71774         to be smaller but for now let's document what we have.
71775
71776 2003-07-08  Paul Eggert  <eggert@twinsun.com>
71777
71778         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
71779         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
71780         and sweeter "eval x=$x".
71781         * config/srclist.txt: Get lib/argp* from glibc.
71782
71783 2003-07-07  Paul Eggert  <eggert@twinsun.com>
71784
71785         * lib/mktime.c: Fix some boundary cases and remove need for floating
71786         point.
71787
71788         Issue a compile-time diagnostic if time_t is floating point, or if
71789         two's complement arithmetic is not in effect, or if arithmetic
71790         right shift does not propagate the sign.  These assumptions were
71791         all in the original code but they weren't checked.
71792
71793         (TIME_T_MIDPOINT, verify): New macros.
71794         (__isleap): Remove; it has integer overflow problems.
71795         (leapyear): New function, without those problems.
71796         (ydhms_tm_diff): Remove; splitting into two parts.
71797         (ydhms_diff): New function, containing the arithmetic part of
71798         the old ydhms_tm_diff function.  Issue a compile-time
71799         diagnostic if we are not using C99 integer division.
71800         Avoid casts when possible.
71801         (guess_time_tm): New function, containing the checking part of
71802         the old ydhms_tm_diff function.  Return the new value, rather than
71803         the difference between it and the old.  Accept a new argument T
71804         so that *T specifies the old value.  Check for overflow in the result.
71805
71806         (__mktime_internal): Use a time_t offset, not a long int offset.
71807         This undoes the 2003-06-04 change, which is no longer needed now
71808         that we have better overflow checking.
71809         (localtime_offset): Likewise.
71810
71811         (__mktime_internal): Avoid harmful overflow on hosts where time_t
71812         and long are 64-bit but int is only 32-bit.
71813         (ydhms_diff): Use long int to store year1 and yday1.
71814         Issue a compile-time diagnostic if long int is not wide enough.
71815
71816         (__mktime_internal): Use long int to store adjusted year and yday.
71817         Use plain C rather than preprocessor commands, if that doesn't
71818         affect efficiency.
71819         Check for overflow (and try to repair) after each probe
71820         rather than checking only at the very end.  This avoids some bugs
71821         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
71822         does not equal GMT offset at maximum time).
71823         Use integer to check for overflow rather than floating point; this
71824         is more portable to non-IEEE hosts, and is a tad faster.
71825         When we detect that we are oscillating between two values,
71826         don't check whether tm_isdst has the requested value, since
71827         we already know the answer.  When tm_isdst has the wrong value,
71828         use a different heuristic to find the right one, based on the
71829         extreme values actually observed in practice in tz2003a,
71830         rather than the (overly optimistic) "previous 3 calendar quarters".
71831
71832         (not_equal_tm, print_tm, check_result): Use "const T" rather than
71833         "T const" to accommodate glibc style.
71834         (check_result): Use less-confusing report format.  "long" -> "long int.
71835         (main): Likewise.
71836         Don't loop if the iteration overflows time_t.
71837         Allow a negative step in the iteration.
71838
71839 2003-07-06  Karl Berry  <karl@gnu.org>
71840
71841         * config/depcomp: update from automake.
71842         * config/config.sub: update from prep.
71843
71844 2003-07-03  Karl Berry  <karl@gnu.org>
71845
71846         * config/config.guess: update from prep.
71847
71848 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71849
71850         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
71851         xreadlink.c now includes it unconditionally.
71852
71853 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71854
71855         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
71856         having it depend on HAVE_SYS_TYPES_H.
71857
71858 2003-07-01  Bruno Haible  <bruno@clisp.org>
71859
71860         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
71861         <sys/types.h> should be sufficient.
71862         Reported by Paul Eggert.
71863
71864 2003-06-26  Karl Berry  <karl@gnu.org>
71865
71866         * config/depcomp: update from automake.
71867
71868 2003-06-26  Bruno Haible  <bruno@clisp.org>
71869
71870         * modules/human: Depend on module stdbool.
71871
71872 2003-06-25  Bruno Haible  <bruno@clisp.org>
71873
71874         * modules/readlink: New file.
71875         * modules/xreadlink: Depend on it.
71876         * MODULES.html.sh (func_all_modules): Add readlink.
71877
71878 2003-06-25  Bruno Haible  <bruno@clisp.org>
71879
71880         * m4/readlink.m4: New file.
71881
71882 2003-06-25  Bruno Haible  <bruno@clisp.org>
71883
71884         * lib/readlink.c: New file.
71885
71886 2003-06-22  Karl Berry  <karl@gnu.org>
71887
71888         * config/srclist.txt: update mkinstalldirs from automake.
71889         * config/mkinstalldirs: update.
71890
71891 2003-06-22  Bruno Haible  <bruno@clisp.org>
71892
71893         Portability to mingw32.
71894         * m4/ssize_t.m4: New file, from GNU gettext.
71895         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
71896         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
71897
71898 2003-06-22  Bruno Haible  <bruno@clisp.org>
71899
71900         * modules/safe-read: Add m4/ssize_t.m4.
71901         * modules/xreadlink: Add m4/ssize_t.m4.
71902
71903 2003-06-20  Bruno Haible  <bruno@clisp.org>
71904
71905         Assume C89, so PARAMS isn't needed.
71906         * lib/unicodeio.h (PARAMS): Remove.
71907         * lib/unicodeio.c: Don't use PARAMS.
71908
71909 2003-06-18  Karl Berry  <karl@gnu.org>
71910
71911         * config/config.{guess,sub}: update from prep.
71912
71913 2003-06-18  Jim Meyering  <jim@meyering.net>
71914
71915         Merge changes from coreutils.
71916         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
71917         Remove explicit declarations of xmalloc and realloc.
71918         Include xalloc.h.
71919         (read_utmp): Remove anachronistic cast of xmalloc.
71920
71921 2003-06-17  Paul Eggert  <eggert@twinsun.com>
71922
71923         Assume C89, so PARAMS isn't needed.
71924         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
71925         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
71926         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
71927         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
71928         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
71929         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
71930         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
71931         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
71932         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
71933         lib/xstrtod.h, lib/xstrtol.h: Likewise.
71934         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
71935         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
71936         no longer needed. Anyway, config.h should always be included before any
71937         other file.
71938
71939 2003-06-11  Simon Josefsson  <jas@extundo.com>
71940
71941         * modules/sysexits: New file.
71942         * MODULES.html.sh (func_all_modules): Add sysexits.
71943
71944 2003-06-11  Simon Josefsson  <jas@extundo.com>
71945
71946         * lib/sysexit_.h: New file.
71947
71948 2003-06-11  Derek Price  <derek@ximbiot.com>
71949
71950         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
71951         necessary.
71952
71953 2003-06-11  Bruno Haible  <bruno@clisp.org>
71954
71955         * m4/sysexits.m4: New file.
71956
71957 2003-06-10  Simon Josefsson  <jas@extundo.com>
71958
71959         * lib/argp.h: New file, from glibc.
71960         * lib/argp-ba.c: New file, from glibc.
71961         * lib/argp-eexst.c: New file, from glibc.
71962         * lib/argp-fmtstream.c: New file, from glibc.
71963         * lib/argp-fmtstream.h: New file, from glibc.
71964         * lib/argp-fs-xinl.c: New file, from glibc.
71965         * lib/argp-help.c: New file, from glibc.
71966         * lib/argp-namefrob.h: New file, from glibc.
71967         * lib/argp-parse.c: New file, from glibc.
71968         * lib/argp-pv.c: New file, from glibc.
71969         * lib/argp-pvh.c: New file, from glibc.
71970         * lib/argp-xinl.c: New file, from glibc.
71971
71972 2003-06-10  Simon Josefsson  <jas@extundo.com>
71973
71974         * modules/strchrnul: New file.
71975
71976 2003-06-10  Simon Josefsson  <jas@extundo.com>
71977
71978         * modules/argp: New file.
71979
71980 2003-06-10  Simon Josefsson  <jas@extundo.com>
71981
71982         * m4/strchrnul.m4: New file.
71983
71984 2003-06-10  Simon Josefsson  <jas@extundo.com>
71985
71986         * lib/strchrnul.h: New file.
71987         * lib/strchrnul.c: New file.
71988
71989 2003-06-10  Bruno Haible  <bruno@clisp.org>
71990
71991         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
71992
71993 2003-06-07  Karl Berry  <karl@gnu.org>
71994
71995         * config/config.{guess,sub}: update from prep.
71996
71997 2003-06-07  Jim Meyering  <jim@meyering.net>
71998
71999         * modules/strtod: Use $(...) notation, not @...@ for
72000         AC_REPLACE'd variables.
72001         * modules/localcharset: Likewise.
72002
72003 2003-06-07  Jim Meyering  <jim@meyering.net>
72004
72005         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
72006         in place of my name in the copyright comment.
72007         Remove definition and uses of __P.
72008
72009         From coreutils.
72010         * lib/stat.c: Don't declare xmalloc explicitly.
72011         Instead, include "xalloc.h".
72012         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
72013         xrealloc, and xcalloc return values.
72014         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
72015         Improve comment.
72016         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
72017
72018 2003-06-07  Bruno Haible  <bruno@clisp.org>
72019
72020         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
72021         avoid AC_CONFIG_LINKS.
72022         * modules/fnmatch (Makefile.am): Use explicit creation rule for
72023         fnmatch.h, to avoid AC_CONFIG_LINKS.
72024         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
72025
72026 2003-06-07  Bruno Haible  <bruno@clisp.org>
72027
72028         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
72029         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
72030         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72031         directory.
72032         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
72033         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72034         directory.
72035
72036 2003-06-06  Jim Meyering  <jim@meyering.net>
72037
72038         Merge from coreutils.
72039         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
72040         Consolidate declarations and initializations of *_base* locals.
72041
72042         Merge from coreutils.
72043         This avoids a core dump on systems without GNU putenv,
72044         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
72045         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
72046         (unsetenv): New static function, from GNU libc.
72047         (rpl_putenv): Use it.
72048
72049         * lib/modechange.c: Remove trailing blanks.
72050
72051         Merge from coreutils.
72052         * lib/fsusage.c: Remove declaration of statfs.
72053         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
72054
72055         * lib/posixtm.c: Include <stdbool.h> unconditionally.
72056
72057 2003-06-06  Jim Meyering  <jim@meyering.net>
72058
72059         * lib/stdbool_.h: Renamed from stdbool.h.in.
72060
72061 2003-06-06  Jim Meyering  <jim@meyering.net>
72062             Bruno Haible  <bruno@clisp.org>
72063
72064         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
72065         Adjust Makefile.am snippet not to redirect directly to target.
72066         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
72067
72068 2003-06-05  Paul Eggert  <eggert@twinsun.com>
72069
72070         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
72071         mismatch, look in future quarters as well as past.  This fixes a
72072         bug when processing fall-backwards gaps immediately after a long
72073         period of daylight-saving time.
72074
72075         * lib/mktime.c: Assume freestanding C89 or better.
72076         (HAVE_LIMITS_H): Remove.  Assume it's 1.
72077         (__P): Remove; not used.
72078         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
72079         (mktime, not_equal_tm, print_tm, check_result,
72080         main): Use prototypes.  Use const * where appropriate.
72081         (main): Fix typo in testing code that uncovered by above changes.
72082         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
72083
72084 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72085
72086         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
72087         locale.h, localeconv.  This merges changes from coreutils.
72088
72089         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
72090         It can be removed after the next Autoconf is released.
72091         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
72092         needed.
72093
72094 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72095
72096         * lib/mktime.c: Fix Debian bug 177940
72097         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
72098         (localtime_offset): Now long int, not time_t, because we want it
72099         to be guaranteed to be signed.  All uses changed.
72100         (__mktime_internal): If overflow would occur when adding offset,
72101         don't add it.
72102
72103         Merge 'human' changes from coreutils.  Rewrite to support
72104         locale-specific notations like thousands separators.
72105         * lib/human.c: Simplify authorship notice.
72106         Include human.h immediately after config.h.
72107         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
72108         <limits.h>: Do not include, since human.h does.
72109         (SIZE_MAX, UINTMAX_MAX): New macros.
72110         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
72111         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
72112         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
72113         (power_letter): Renamed from suffixes.
72114         (generate_suffix_backwards): Remove.
72115         (adjust_value): Now takes int style (because of human.h changes)
72116         and long double value (for greater precision on some platforms).
72117         (group_number): New function.
72118         (human_readable): Use it.  Use integer options, not enum.
72119         Put the options before the sizes in the arg list.
72120         Support all the new options.
72121         The old human_readable function has been removed;
72122         use inttostr.h instead.
72123         (human_readable, default_block_size, humblock):
72124         Use uintmax_t, not int, for block sizes.
72125         (human_readable_inexact, block_size_types): Remove.
72126         (block_size_opts): New constant.
72127         (human_options): Renamed from human_block_size, with new signature
72128         that allows block sizes up to UINTMAX_MAX.  All callers changed.
72129         * lib/human.h: Add copyright and authorship notice.
72130         Include <limits.h> and <stdbool.h> unconditionally.
72131         (PARAMS): Remove.  All uses removed.
72132         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
72133         (enum human_inexact_style): Remove tag; now a nameless enum.
72134         (human_floor, human_ceiling, human_round_to_even): Now have
72135         values 2, 0, 1 rather than -1, 1, 0.
72136         (human_group_digits, human_suppress_point_zero, human_autoscale,
72137         human_base_1024, human_SI, human_B): New constants.
72138         (human_readable_inexact, human_block_size): Remove.
72139         (human_readable): Size args are now uintmax_t, not int.
72140         (human_options): New decl.
72141
72142         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
72143         unnecessary now that we assume C89 or better.  This change
72144         imported from coreutils.
72145
72146         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72147         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
72148         in the 2003-05-30 sync from glibc.
72149
72150         .h files should stand alone, but we shouldn't include <sys/types.h>
72151         if we can get away with just <stddef.h>.
72152
72153         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
72154         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
72155         rather than <sys/types.h>, as we merely need size_t.
72156         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
72157         to get size_t.
72158         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
72159         Include <stdio.h>, to get FILE.
72160         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
72161         memcasecmp.h has included <stddef.h> and all we need is size_t.
72162         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
72163         our interface, instead of including <sys/types.h>
72164
72165 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72166
72167         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
72168         now, as glibc mktime is buggy on non-glibc systems.
72169
72170 2003-06-03  Karl Berry  <karl@gnu.org>
72171
72172         * config/config.sub: update from prep.
72173
72174 2003-06-02  Paul Eggert  <eggert@twinsun.com>
72175
72176         [from coreutils]
72177         Fix some minor time-related bugs with POSIX time arguments.
72178         Some valid time stamps were being rejected (notably -1, and
72179         time stamps before 1900 on 64-bit hosts).  And some invalid
72180         time stamps were being accepted, e.g. September 31.
72181
72182         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
72183         that we can return (time_t) -1 successfully.
72184         * lib/posixtm.c: Likewise.
72185         [HAVE_STDBOOL_H]: Include <stdbool.h>.
72186         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
72187         (t): Remove static var.
72188         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
72189         of static var.  All uses changed.
72190         (year): Do not reject years before 1900; they can occur with
72191         64-bit time_t.
72192         (posix_time_parse): Do not check for out-of-range components;
72193         that is now the caller's responsibility, since our checks were
72194         only approximations.
72195         (posixtime): Use mktime to check for out-of-range components,
72196         since it knows them exactly.
72197         If mktime returns (time_t) -1, check whether an error actually occurred
72198         by invoking localtime on -1.
72199         (main) [TEST_POSIXTIME]: Check for input data errors, and report
72200         posixtime failures better.
72201         Improve the test data (in comments only).
72202
72203 2003-06-02  Karl Berry  <karl@gnu.org>
72204
72205         * config/mkinstalldirs (version): new variable.
72206         (--version): new option.
72207         (usage): improve message.
72208
72209 2003-05-30  Karl Berry  <karl@gnu.org>
72210
72211         * lib/mktime.c: update from libc.
72212
72213 2003-05-30  Bruno Haible  <bruno@clisp.org>
72214
72215         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
72216         * config/config.rpath: Upgrade to gettext-0.12.1.
72217
72218 2003-05-30  Bruno Haible  <bruno@clisp.org>
72219
72220         * m4/gettext.m4: Upgrade to gettext-0.12.1.
72221         * m4/nls.m4: New file, from gettext-0.12.1.
72222         * m4/po.m4: New file, from gettext-0.12.1.
72223         * m4/progtest.m4: Upgrade to gettext-0.12.1.
72224
72225 2003-05-30  Bruno Haible  <bruno@clisp.org>
72226
72227         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
72228         * lib/localcharset.h: Likewise.
72229         * lib/localcharset.c: Likewise.
72230
72231 2003-05-29  Karl Berry  <karl@gnu.org>
72232
72233         * config/config.rpath: update from gettext.
72234
72235 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72236
72237         Assume the headers required for C89 freestanding compilers.
72238         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
72239         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
72240         * m4/human.m4 (gl_HUMAN): Likewise.
72241         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
72242         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
72243         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72244         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
72245         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72246         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
72247
72248 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72249
72250         Assume the headers required for C89 freestanding compilers.
72251         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
72252         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
72253         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
72254         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
72255         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
72256         define, since <limits.h> is guaranteed to do that.
72257         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
72258         * lib/exclude.c: Include <stdbool.h> unconditionally.
72259         * lib/tempname.c: Include <stddef.h> unconditionally.
72260         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
72261         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
72262         <stddef.h> does that.
72263         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
72264         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
72265         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
72266         needed.
72267         * lib/xstrtol.c: Likewise.
72268         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
72269         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
72270
72271         * lib/addext.c (addext): Use assignment rather than cast, to avoid
72272         warnings on some platforms.
72273
72274         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72275         arbitrarily.
72276
72277 2003-05-26  Jim Meyering  <jim@meyering.net>
72278
72279         Merge in a change from coreutils:
72280         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
72281         that is guaranteed to be `no'.  Use `no_such_member' to indicate
72282         that condition, rather than `-1' which is slightly misleading.
72283         Change the name of the cache variable to have the gl_ prefix.
72284         Prompted by a patch from Richard Dawe for DJGPP.
72285
72286 2003-05-24  Karl Berry  <karl@gnu.org>
72287
72288         * config/config.guess: update from prep.
72289
72290 2003-05-22  Karl Berry  <karl@gnu.org>
72291
72292         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
72293
72294 2003-05-20  Karl Berry  <karl@gnu.org>
72295
72296         * config/config.guess: update from prep.
72297
72298 2003-05-18  Karl Berry  <karl@gnu.org>
72299
72300         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
72301         might actually be set by the user.
72302
72303         * config/depcomp, install-sh, mdate-sh: update from automake.
72304
72305 2003-05-17  Bruno Haible  <bruno@clisp.org>
72306
72307         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
72308         invalid expansion for AC_EGREP_CPP.
72309         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
72310         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
72311         Suggested by Akim Demaille <akim@epita.fr> in
72312         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
72313
72314 2003-05-12  Jim Meyering  <jim@meyering.net>
72315
72316         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
72317         the space-padded-by-default conversion specifiers, %e, %k, %l.
72318
72319 2003-05-12  Bruno Haible  <bruno@clisp.org>
72320
72321         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
72322         the string is longer than 4 KB.
72323
72324 2003-05-11  Karl Berry  <karl@gnu.org>
72325
72326         * config/config.{guess,sub}: update from prep.
72327
72328 2003-05-09  Bruno Haible  <bruno@clisp.org>
72329
72330         * modules/error: Add m4/strerror_r.m4 to file list.
72331
72332 2003-05-03  Bruno Haible  <bruno@clisp.org>
72333
72334         Upgrade to Unicode-4.0.
72335         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
72336         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
72337         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
72338         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
72339         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
72340         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
72341         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
72342         Change width of U+E0100..U+E01EF from 1 to 0.
72343
72344 2003-04-25  Jim Meyering  <jim@meyering.net>
72345
72346         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
72347         of type size_t, not int.
72348
72349 2003-04-25  Bruno Haible  <bruno@clisp.org>
72350
72351         * lib/copy-file.c: Include <stddef.h>, for size_t.
72352
72353 2003-04-21  Paul Eggert  <eggert@twinsun.com>
72354
72355         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
72356         code which expansion is under static control.  Patch imported from
72357         Akim Demaille's patch to Bison; see
72358         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
72359
72360 2003-04-14  Bruno Haible  <bruno@clisp.org>
72361
72362         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
72363
72364 2003-04-11  Jim Meyering  <jim@meyering.net>
72365
72366         Merge changes from Coreutils.
72367
72368         2003-03-22  Jim Meyering  <jim@meyering.net>
72369
72370         * lib/strftime.c (widen): Cast alloca return value to proper type.
72371
72372         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
72373
72374         From GNU libc.
72375         * lib/strftime.c (my_strftime): Handle very large width
72376         specifications for numeric values correctly.  Improve checks for
72377         overflow.
72378
72379         2003-01-19  Jim Meyering  <jim@meyering.net>
72380
72381         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
72382         definitions.
72383         (nl_get_alt_digit) [! defined my_strftime]: Define.
72384         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
72385         _nl_get_alt_digit and _nl_get_walt_digit.
72386
72387         * lib/strftime.c (my_strftime): Merge in locale-related changes from
72388         libc. These changes have no effect outside of _LIBC.
72389
72390 2003-04-10  Bruno Haible  <bruno@clisp.org>
72391
72392         * modules/findprog: New file.
72393         * MODULES.html.sh (func_all_modules): Add it.
72394
72395 2003-04-10  Bruno Haible  <bruno@clisp.org>
72396
72397         * m4/findprog.m4: New file.
72398         * m4/eaccess.m4: New file.
72399
72400 2003-04-10  Bruno Haible  <bruno@clisp.org>
72401
72402         * lib/findprog.h: New file, from GNU gettext.
72403         * lib/findprog.c: New file, from GNU gettext.
72404
72405 2003-04-05  Jim Meyering  <jim@meyering.net>
72406
72407         Merge changes from Coreutils.
72408
72409         * lib/exclude.h (PARAMS): Remove definition and uses.
72410         * lib/exclude.c: Remove uses of `PARAMS'.
72411
72412         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
72413         Add test-cases for DOS filenames. Declare program_name.
72414         (main): Set up program_name.  Patch by Rich Dawe.
72415
72416         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72417         error from mntctl.
72418         Use mntctl's return value to drive the entry-processing loop, since
72419         we can't rely on the value of the vmt_length member in the last
72420         entry.  On some systems doing so could result in exhausting
72421         virtual memory.  Based in part on a patch from Mike Jetzer.
72422
72423 2003-04-04  Bruno Haible  <bruno@clisp.org>
72424
72425         * modules/linebreak: New file.
72426         * MODULES.html.sh (func_all_modules): Add it.
72427
72428 2003-04-04  Bruno Haible  <bruno@clisp.org>
72429
72430         * m4/linebreak.m4: New file.
72431
72432 2003-04-04  Bruno Haible  <bruno@clisp.org>
72433
72434         * lib/linebreak.h: New file, from GNU gettext.
72435         * lib/linebreak.c: New file, from GNU gettext with slight
72436         modifications.
72437         * lib/lbrkprop.h: New file, from GNU gettext.
72438
72439 2003-04-03  Bruno Haible  <bruno@clisp.org>
72440
72441         * modules/utf8-ucs4: New file.
72442         * modules/utf16-ucs4: New file.
72443         * modules/ucs4-utf8: New file.
72444         * modules/ucs4-utf16: New file.
72445         * MODULES.html.sh (func_all_modules): Add them.
72446
72447 2003-04-03  Bruno Haible  <bruno@clisp.org>
72448
72449         * m4/utf-ucs4.m4: New file.
72450         * m4/ucs4-utf.m4: New file.
72451
72452 2003-04-03  Bruno Haible  <bruno@clisp.org>
72453
72454         * lib/utf8-ucs4.h: New file, from GNU gettext.
72455         * lib/utf16-ucs4.h: New file, from GNU gettext.
72456         * lib/ucs4-utf8.h: New file, from GNU gettext.
72457         * lib/ucs4-utf16.h: New file, from GNU gettext.
72458
72459 2003-04-02  Bruno Haible  <bruno@clisp.org>
72460
72461         * modules/binary-io: New file.
72462         * MODULES.html.sh (func_all_modules): Add it.
72463
72464 2003-04-02  Bruno Haible  <bruno@clisp.org>
72465
72466         * lib/binary-io.h: New file, from GNU gettext.
72467
72468 2003-04-01  Bruno Haible  <bruno@clisp.org>
72469
72470         * modules/pathname: New file.
72471         * MODULES.html.sh (func_all_modules): Add it.
72472
72473 2003-04-01  Bruno Haible  <bruno@clisp.org>
72474
72475         * lib/pathname.h: New file, from GNU gettext.
72476         * lib/concatpath.c: New file, from GNU gettext.
72477
72478 2003-03-30  Bruno Haible  <bruno@clisp.org>
72479
72480         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
72481
72482 2003-03-30  Bruno Haible  <bruno@clisp.org>
72483
72484         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
72485         function chown() doesn't exist.
72486
72487 2003-03-28  Bruno Haible  <bruno@clisp.org>
72488
72489         * modules/copy-file: New file.
72490         * MODULES.html.sh (func_all_modules): Add it.
72491
72492 2003-03-28  Bruno Haible  <bruno@clisp.org>
72493
72494         * m4/copy-file.m4: New file.
72495
72496 2003-03-28  Bruno Haible  <bruno@clisp.org>
72497
72498         * lib/copy-file.h: New file, from GNU gettext.
72499         * lib/copy-file.c: New file, from GNU gettext.
72500
72501 2003-03-18  Jim Meyering  <jim@meyering.net>
72502
72503         * lib/quote.c (quote_n): Fix typo in comment.
72504
72505 2003-03-18  Bruno Haible  <bruno@clisp.org>
72506
72507         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
72508         checking.
72509         * m4/onceonly_2_57.m4: Likewise.
72510
72511 2003-03-17  Bruno Haible  <bruno@clisp.org>
72512
72513         * m4/onceonly.m4: Require autoconf 2.54 or newer.
72514         (m4_quote): Remove macro.
72515         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
72516
72517 2003-03-14  Jim Meyering  <jim@meyering.net>
72518
72519         Merge changes from Coreutils.
72520         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
72521         to be const, in order to avoid warnings.
72522         (obstack_room): Likewise.
72523         (obstack_empty_p): Likewise.
72524
72525 2003-03-14  Bruno Haible  <bruno@clisp.org>
72526
72527         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
72528         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
72529
72530 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72531
72532         Merge changes from Bison.
72533         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
72534         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
72535         when compiling Bison 1.875's `bitset bset = obstack_alloc
72536         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
72537         * lib/hash.c: Include <stdbool.h> unconditionally.
72538
72539 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72540
72541         * m4/onceonly.m4 (m4_quote): New macro.
72542         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
72543         Quote AC_FOREACH variable-expansions properly.
72544
72545 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72546
72547         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
72548
72549 2003-03-09  Paul Eggert  <eggert@twinsun.com>
72550
72551         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
72552         Reported by Bruce Becker; see:
72553         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
72554
72555 2003-03-03  Paul Eggert  <eggert@twinsun.com>
72556             Bruno Haible  <bruno@clisp.org>
72557
72558         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
72559         Reported by John Hughes, see
72560         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
72561
72562 2003-02-20  Bruno Haible  <bruno@clisp.org>
72563
72564         * MODULES.html.sh (func_all_modules): Add poll.
72565
72566 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72567
72568         * modules/poll: New file.
72569
72570 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72571
72572         * lib/poll_.h: New file.
72573         * lib/poll.c: New file.
72574
72575 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72576
72577         * m4/poll.m4: New file.
72578
72579 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72580
72581         * modules/mathl: New file.
72582
72583 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72584
72585         * lib/mathl.h: New file.
72586         * lib/acosl.c: New file.
72587         * lib/asinl.c: New file.
72588         * lib/atanl.c: New file.
72589         * lib/ceill.c: New file.
72590         * lib/cosl.c: New file.
72591         * lib/expl.c: New file.
72592         * lib/floorl.c: New file.
72593         * lib/frexpl.c: New file.
72594         * lib/ldexpl.c: New file.
72595         * lib/logl.c: New file.
72596         * lib/sincosl.c: New file.
72597         * lib/sinl.c: New file.
72598         * lib/sqrtl.c: New file.
72599         * lib/tanl.c: New file.
72600         * lib/trigl.c: New file.
72601         * lib/trigl.h: New file.
72602
72603 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72604
72605         * m4/mathl.m4: New file.
72606
72607 2003-02-18  Bruno Haible  <bruno@clisp.org>
72608
72609         * MODULES.html.sh (func_all_modules): Add mathl.
72610
72611 2003-02-17  Bruno Haible  <bruno@clisp.org>
72612
72613         * modules/mkdtemp: New module.
72614         * MODULES.html.sh (func_all_modules): Add it.
72615
72616 2003-02-17  Bruno Haible  <bruno@clisp.org>
72617
72618         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
72619
72620 2003-02-17  Bruno Haible  <bruno@clisp.org>
72621
72622         * lib/mkdtemp.h: New file, from GNU gettext.
72623         * lib/mkdtemp.c: New file, from GNU gettext.
72624
72625 2003-02-02  Jim Meyering  <jim@meyering.net>
72626
72627         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
72628         e.g. glibc-2.2.93.
72629
72630 2003-01-31  Bruno Haible  <bruno@clisp.org>
72631
72632         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
72633         'rpl_rename'.
72634         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
72635         'rpl_strnlen'.
72636         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
72637         'rpl_strtod'.
72638         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
72639         'rpl_utime'.
72640
72641 2003-01-31  Bruno Haible  <bruno@clisp.org>
72642
72643         * lib/rename.c: #undef rename before defining rpl_rename.
72644         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
72645
72646 2003-01-30  Bruno Haible  <bruno@clisp.org>
72647
72648         * modules/vasnprintf, modules/vasprintf: New modules.
72649         * MODULES.html.sh (func_all_modules): Add them.
72650
72651 2003-01-30  Bruno Haible  <bruno@clisp.org>
72652
72653         * m4/signed.m4: New file, from GNU gettext.
72654         * m4/longdouble.m4: New file, from GNU gettext.
72655         * m4/wchar_t.m4: New file, from GNU gettext.
72656         * m4/wint_t.m4: New file, from GNU gettext.
72657         * m4/vasnprintf.m4: New file.
72658         * m4/vasprintf.m4: New file.
72659
72660 2003-01-30  Bruno Haible  <bruno@clisp.org>
72661
72662         * lib/printf-args.h: New file, from GNU gettext.
72663         * lib/printf-args.c: New file, from GNU gettext.
72664         * lib/printf-parse.h: New file, from GNU gettext.
72665         * lib/printf-parse.c: New file, from GNU gettext.
72666         * lib/vasnprintf.h: New file, from GNU gettext.
72667         * lib/vasnprintf.c: New file, from GNU gettext.
72668         * lib/asnprintf.c: New file, from GNU gettext.
72669         * lib/vasprintf.h: New file, from GNU gettext with modifications.
72670         * lib/vasprintf.c: New file, from GNU gettext.
72671         * lib/asprintf.c: New file, from GNU gettext.
72672
72673 2003-01-29  Bruno Haible  <bruno@clisp.org>
72674
72675         * modules/stpncpy: New module.
72676         * MODULES.html.sh (func_all_modules): Add it.
72677
72678 2003-01-29  Bruno Haible  <bruno@clisp.org>
72679
72680         * m4/stpncpy.m4: New file.
72681
72682 2003-01-29  Bruno Haible  <bruno@clisp.org>
72683
72684         * lib/stpncpy.h: New file, from GNU gettext with modifications.
72685         * lib/stpncpy.c: New file, from GNU gettext with modifications.
72686
72687 2003-01-28  Bruno Haible  <bruno@clisp.org>
72688
72689         * modules/c-ctype: New module.
72690         * MODULES.html.sh (func_all_modules): Add it.
72691
72692 2003-01-28  Bruno Haible  <bruno@clisp.org>
72693
72694         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
72695         Paul Eggert.
72696         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
72697         Paul Eggert.
72698
72699 2003-01-27  Bruno Haible  <bruno@clisp.org>
72700
72701         * modules/xsetenv: New module.
72702         * MODULES.html.sh (func_all_modules): Add it.
72703
72704 2003-01-27  Bruno Haible  <bruno@clisp.org>
72705
72706         * lib/xsetenv.h: New file, from GNU gettext.
72707         * lib/xsetenv.c: New file, from GNU gettext.
72708
72709 2003-01-23  Jim Meyering  <jim@meyering.net>
72710
72711         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
72712         from working on systems without dirfd (at least Irix and OSF1/Tru64).
72713
72714 2003-01-23  Bruno Haible  <bruno@clisp.org>
72715
72716         * modules/minmax: New module.
72717         * MODULES.html.sh (func_all_modules): Add it.
72718
72719 2003-01-23  Bruno Haible  <bruno@clisp.org>
72720
72721         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
72722         Eggert.
72723
72724 2003-01-22  Bruno Haible  <bruno@clisp.org>
72725
72726         * modules/exit: New module.
72727         * MODULES.html.sh (func_all_modules): Add it.
72728
72729 2003-01-22  Bruno Haible  <bruno@clisp.org>
72730
72731         * lib/exit.h: New file, from GNU gettext.
72732
72733 2003-01-19  Bruno Haible  <bruno@clisp.org>
72734
72735         * gnulib-tool: Recognize option --extract-maintainer.
72736         (func_get_maintainer): New function.
72737         * modules/*: Add Maintainer entry.
72738
72739 2003-01-16  Jim Meyering  <jim@meyering.net>
72740
72741         * m4/regex.m4: The `regex' struct is both input and output.
72742         Initialize it before each use.  Patch by Tim Waugh.
72743
72744 2003-01-16  Bruno Haible  <bruno@clisp.org>
72745
72746         * MODULES.html.sh: Add a table of contents. Add the module name as
72747         leftmost column. Add hyperlinks.
72748
72749 2003-01-15  Bruno Haible  <bruno@clisp.org>
72750
72751         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
72752
72753 2003-01-15  Bruno Haible  <bruno@clisp.org>
72754
72755         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
72756         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
72757         suffix.
72758
72759 2003-01-15  Bruno Haible  <bruno@clisp.org>
72760
72761         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
72762
72763 2003-01-15  Bruno Haible  <bruno@clisp.org>
72764
72765         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
72766         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
72767
72768 2003-01-14  Jim Meyering  <jim@meyering.net>
72769
72770         * lib/same.c (same_name): Tweak a comment.
72771
72772 2003-01-14  Bruno Haible  <bruno@clisp.org>
72773
72774         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
72775         when a string comparison is sufficient.
72776
72777 2003-01-14  Bruno Haible  <bruno@clisp.org>
72778
72779         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
72780         'unsigned int'.
72781
72782 2003-01-14  Bruno Haible  <bruno@clisp.org>
72783
72784         * lib/hash-pjw.c: Add comment about low quality of this function.
72785
72786 2003-01-13  Bruno Haible  <bruno@clisp.org>
72787
72788         * modules/stpcpy: Distribute lib/stpcpy.h.
72789         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
72790
72791 2003-01-13  Bruno Haible  <bruno@clisp.org>
72792
72793         * modules/*: Add a description.
72794         * modules/strpbrk: Fix Makefile.am snippet.
72795         * modules/strtoimax: Fix dependencies.
72796         * modules/strtoumax: Likewise.
72797
72798 2003-01-13  Bruno Haible  <bruno@clisp.org>
72799
72800         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
72801         * modules/alloca (Makefile.am): All object files depend on alloca.h.
72802         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
72803
72804 2003-01-13  Bruno Haible  <bruno@clisp.org>
72805
72806         * gnulib-tool (func_create_testdir): Store config/* files in the main
72807         directory.
72808         * config.rpath: Move to ...
72809         * config/config.rpath: ... here.
72810         * modules/gettext: Contains config/config.rpath, not config.rpath.
72811         * modules/iconv: Likewise.
72812
72813 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72814
72815         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72816         to avoid collisions with libcurses and libreadline.
72817
72818         * m4/getstr.m4: Remove.
72819         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
72820
72821 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72822
72823         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72824         to avoid collisions with libcurses and libreadline.
72825
72826         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
72827         * lib/getstr.h, getstr.c: Remove.
72828         * lib/getline.c: Include "getline.h", to check interface.
72829         Move body of old getstr.c here: this defines MIN_CHUNK and
72830         declares getdelim2, which is renamed from getstr.
72831         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
72832
72833         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
72834         All uses changed.
72835         * lib/linebuffer.h: Likewise.
72836         (readline): Remove backward-compatibility macro.
72837
72838 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72839
72840         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72841         to avoid collisions with libcurses and libreadline.
72842         * getstr: Remove.
72843         * MODULES.html.sh: Remove getstr.
72844         * modules/getline: Depend on unlocked-io, not getstr.
72845
72846 2003-01-12  Jim Meyering  <jim@meyering.net>
72847
72848         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
72849
72850 2003-01-10  Bruno Haible  <bruno@clisp.org>
72851
72852         * modules/alloca: Change Makefile.am requirements. Simplify Include
72853         requirements. Add lib/alloca_.h to file list.
72854
72855 2003-01-10  Bruno Haible  <bruno@clisp.org>
72856
72857         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
72858
72859 2003-01-10  Bruno Haible  <bruno@clisp.org>
72860
72861         * lib/alloca_.h: New file.
72862         * lib/getdate.y: Unconditionally include alloca.h.
72863         * lib/makepath.c: Likewise.
72864         * lib/setenv.c: Likewise.
72865         * lib/userspec.c: Likewise.
72866
72867 2003-01-09  Karl Berry  <karl@gnu.org>
72868
72869         * MODULES.html.sh: include `dirname $0` in PATH, to find
72870         gnulib-tool.
72871
72872 2003-01-09  Bruno Haible  <bruno@clisp.org>
72873
72874         * modules/stdbool: Change configure.ac, Makefile.am requirements.
72875         Simplify Include requirements. Add lib/stdbool.h.in to file list.
72876
72877 2003-01-09  Bruno Haible  <bruno@clisp.org>
72878
72879         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
72880
72881 2003-01-09  Bruno Haible  <bruno@clisp.org>
72882
72883         * lib/stdbool.h.in: New file.
72884
72885 2003-01-09  Bruno Haible  <bruno@clisp.org>
72886
72887         * gnulib-tool (func_all_modules): Ignore files ending in ~.
72888         * MODULES.html.sh: Likewise.
72889
72890 2003-01-08  Jim Meyering  <jim@meyering.net>
72891
72892         * lib/full-write.c: Undefine and define-away `const' after inclusion
72893         of errno.h, not before.  Suggestion from Bruno Haible.
72894
72895 2003-01-08  Bruno Haible  <bruno@clisp.org>
72896
72897         * modules/full-read: Depend on full-write.
72898
72899 2003-01-08  Bruno Haible  <bruno@clisp.org>
72900
72901         * lib/safe-read.c: Include specification header first, to ensure its
72902         selfcontainedness.
72903         * lib/full-write.c: Likewise.
72904
72905 2003-01-07  Jim Meyering  <jim@meyering.net>
72906
72907         * lib/full-write.c: Rework so that it may serve to define full_read,
72908         too.
72909         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
72910
72911 2003-01-07  Bruno Haible  <bruno@clisp.org>
72912
72913         * lib/strtoimax.c: Include <stdint.h> as an alternative to
72914         <inttypes.h>.
72915         * lib/xstrtol.h: Likewise.
72916         * lib/xstrtoimax.c: Likewise.
72917         * lib/xstrtoumax.c: Likewise.
72918         * lib/human.h: Likewise.
72919
72920         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
72921         on systems that have <inttypes.h> but not <stdint.h>.
72922
72923 2003-01-07  Bruno Haible  <bruno@clisp.org>
72924
72925         * MODULES.html.sh: Add copyright notice.
72926         (missed_files): Omit CVS directory entries.
72927         (func_module): Make it work with sed-3.02.
72928         * MODULES.txt: Remove file.
72929
72930 2003-01-06  Jim Meyering  <jim@meyering.net>
72931
72932         * lib/version-etc.c: Update year in translatable copyright string.
72933
72934 2003-01-03  Karl Berry  <karl@gnu.org>
72935
72936         * config/config.{guess,sub}: update from prep.
72937
72938 2003-01-02  Karl Berry  <karl@gnu.org>
72939
72940         * doc/COPYING.DOC: belatedly updated to 1.2.
72941
72942 2003-01-01  Karl Berry  <karl@gnu.org>
72943
72944         * gnulib-tool (func_verify_module): report module name $module in
72945         error message, not $1.
72946         * gnulib-tool (create-testdir): don't complain if destdir couldn't
72947         be created, only if it doesn't exist.
72948         * gnulib-tool (last_checkin_date): don't expand the $Date here.
72949
72950 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72951
72952         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
72953
72954 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72955
72956         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
72957         memcmp if strcoll doesn't work.
72958
72959 2002-12-31  Bruno Haible  <bruno@clisp.org>
72960
72961         * lib/utime.c (utime_null): No need to call ftruncate if the file was
72962         nonempty.
72963
72964 2002-12-31  Bruno Haible  <bruno@clisp.org>
72965
72966         * lib/memcoll.c (STRCOLL): New macro.
72967         (memcoll): Use it.
72968
72969 2002-12-31  Bruno Haible  <bruno@clisp.org>
72970
72971         * lib/localcharset.h: New file.
72972         * lib/localcharset.c: Include it.
72973         * lib/unicodeio.c: Likewise.
72974
72975 2002-12-31  Bruno Haible  <bruno@clisp.org>
72976
72977         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
72978         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
72979
72980 2002-12-31  Bruno Haible  <bruno@clisp.org>
72981
72982         * lib/getline.h: Include <stddef.h>, for size_t.
72983
72984         * lib/unicodeio.h: Include <stddef.h>, for size_t.
72985         * lib/unicodeio.c: Don't include <stddef.h>.
72986
72987 2002-12-31  Bruno Haible  <bruno@clisp.org>
72988
72989         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
72990         HAVE_TM_ZONE.
72991
72992 2002-12-24  Karl Berry  <karl@gnu.org>
72993
72994         * config/config.guess: update from prep.
72995
72996 2002-12-24  Bruno Haible  <bruno@clisp.org>
72997
72998         General infrasructure.
72999         * m4/README: Rewritten.
73000         * m4/onceonly.m4: New file.
73001         * m4/onceonly_2_57.m4: New file.
73002
73003         Module atexit.
73004         * m4/atexit.m4: New file.
73005
73006         Module strtod.
73007         * m4/strtod.m4: New file.
73008
73009         Module strtol.
73010         * m4/strtol.m4: New file.
73011
73012         Module strtoul.
73013         * m4/strtoul.m4: New file.
73014
73015         Module memchr.
73016         * m4/memchr.m4: New file.
73017
73018         Module memcmp.
73019         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
73020         (jm_FUNC_MEMCMP): Invoke it.
73021
73022         Module memcpy.
73023         * m4/memcpy.m4: New file.
73024
73025         Module memmove.
73026         * m4/memmove.m4: New file.
73027
73028         Module memset.
73029         * m4/memset.m4: New file.
73030
73031         Module strcspn.
73032         * m4/strcspn.m4: New file.
73033
73034         Module strpbrk.
73035         * m4/strpbrk.m4: New file.
73036
73037         Module strstr.
73038         * m4/strstr.m4: New file.
73039
73040         Module strerror.
73041         * m4/strerror.m4: New file.
73042
73043         Module mktime.
73044         * m4/mktime.m4: Renamed from jm-mktime.m4.
73045         (gl_PREREQ_MKTIME): New macro.
73046         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
73047
73048         Module malloc.
73049         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
73050         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
73051         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
73052
73053         Module realloc.
73054         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
73055         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
73056         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
73057
73058         Module strftime.
73059         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
73060         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
73061         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
73062         gl_TM_GMTOFF.
73063         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
73064
73065         Module xalloc.
73066         * m4/xalloc.m4: New file.
73067
73068         Module alloca.
73069         * m4/alloca.m4: New file.
73070
73071         Module putenv.
73072         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
73073         (jm_FUNC_PUTENV): Invoke it.
73074
73075         Module setenv.
73076         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
73077         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
73078         when invoked twice.
73079         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
73080         gt_FUNC_SETENV.
73081
73082         Module memrchr.
73083         * m4/memrchr.m4: New file.
73084
73085         Module stpcpy.
73086         * m4/stpcpy.m4: New file.
73087
73088         Module strcase.
73089         * m4/strcase.m4: New file.
73090
73091         Module strdup.
73092         * m4/strdup.m4: New file.
73093
73094         Module strnlen.
73095         * m4/strnlen.m4: New file.
73096
73097         Module strndup.
73098         * m4/strndup.m4: New file.
73099
73100         Module xstrtod.
73101         * m4/xstrtod.m4: New file.
73102
73103         Module xstrtol.
73104         * m4/xstrtol.m4: New file.
73105
73106         Module getdate.
73107         * m4/getdate.m4: New file.
73108
73109         Module unlocked-io.
73110         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
73111         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
73112         * m4/jm-glibc-io.m4n: Remove file.
73113
73114         Module long-options.
73115         * m4/long-options.m4: New file.
73116
73117         Module md5.
73118         * m4/md5.m4: New file.
73119
73120         Module sha.
73121         * m4/sha.m4: New file.
73122
73123         Module getstr.
73124         * m4/getstr.m4: New file.
73125
73126         Module getline.
73127         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
73128         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
73129         <sys/types.h>, for size_t. Use the function name gnu_getline, not
73130         simply getline. Infoke gl_PREREQ_GETLINE.
73131
73132         Module obstack.
73133         * m4/obstack.m4: New file.
73134
73135         Module hash.
73136         * m4/hash.m4: New file.
73137
73138         Module readtokens.
73139         * m4/readtokens.m4: New file.
73140
73141         Module strverscmp.
73142         * m4/strverscmp.m4: New file.
73143
73144         Module stdbool.
73145         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
73146         OSF/1.
73147
73148         Module strtoll.
73149         * m4/strtoll.m4: New file.
73150
73151         Module strtoull.
73152         * m4/strtoull.m4: New file.
73153
73154         Module strtoimax.
73155         * m4/strtoimax.m4: New file.
73156
73157         Module strtoumax.
73158         * m4/strtoumax.m4: New file.
73159
73160         Module xstrtoimax.
73161         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
73162         jm_AC_PREREQ_XSTRTOIMAX.
73163         Moved the strtol prerequisites to strtol.m4.
73164         Moved the strtoll prerequisites to strtoll.m4.
73165         Moved the strtoimax prerequisites to strtoimax.m4.
73166
73167         Module xstrtoumax.
73168         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
73169         jm_AC_PREREQ_XSTRTOUMAX.
73170         Moved the strtoul prerequisites to strtoul.m4.
73171         Moved the strtoull prerequisites to strtoull.m4.
73172         Moved the strtoumax prerequisites to strtoumax.m4.
73173
73174         Module chown.
73175         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
73176         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
73177
73178         Module dup2.
73179         * m4/dup2.m4: New file.
73180
73181         Module ftruncate.
73182         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
73183         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
73184
73185         Module getgroups.
73186         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
73187         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
73188
73189         Module gettimeofday.
73190         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
73191         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
73192         gl_PREREQ_GETTIMEOFDAY.
73193
73194         Module mkdir.
73195         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
73196         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
73197
73198         Module mkstemp.
73199         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
73200         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
73201         jm_AC_TYPE_UINTMAX_T.
73202         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
73203
73204         Module stat.
73205         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
73206         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
73207
73208         Module lstat.
73209         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
73210         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
73211
73212         Module timespec.
73213         * m4/timespec.m4 (gl_TIMESPEC): New macro.
73214         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
73215         * m4/st_mtim.m4: Indentation.
73216
73217         Module nanosleep.
73218         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
73219         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
73220         gl_PREREQ_NANOSLEEP.
73221
73222         Module regex.
73223         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
73224         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
73225         (gl_REGEX): New macro.
73226
73227         Module rename.
73228         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
73229         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
73230
73231         Module rmdir.
73232         * m4/rmdir.m4: New file.
73233
73234         Module utime.
73235         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
73236         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
73237         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
73238
73239         Module dirname.
73240         * m4/dirname.m4: New file.
73241
73242         Module getopt.
73243         * m4/getopt.m4: New file.
73244
73245         Module unistd-safer.
73246         * m4/unistd-safer.m4: New file.
73247
73248         Module fnmatch.
73249         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
73250         declaration.
73251         (gl_PREREQ_FNMATCH_EXTRA): New macro.
73252         (gl_FUNC_FNMATCH_POSIX): New macro.
73253         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
73254         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
73255         simply fnmatch.
73256
73257         Module exclude.
73258         * m4/exclude.m4: New file.
73259
73260         Module human.
73261         * m4/human.m4: New file.
73262
73263         Module acl.
73264         * m4/acl.m4: Nop.
73265
73266         Module backupfile.
73267         * m4/backupfile.m4: New file.
73268         * m4/d-ino.m4: Indentation.
73269
73270         Module fsusage.
73271         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
73272         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
73273         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
73274
73275         Module dirfd.
73276         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
73277         requirements.
73278
73279         Module euidaccess.
73280         * m4/euidaccess.m4: New file.
73281
73282         Module file-type.
73283         * m4/file-type.m4: New file.
73284
73285         Module fileblocks.
73286         * m4/fileblocks.m4: New file.
73287
73288         Module filemode.
73289         * m4/filemode.m4: New file.
73290
73291         Module isdir.
73292         * m4/isdir.m4: New file.
73293
73294         Module lchown.
73295         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
73296         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
73297
73298         Module makepath.
73299         * m4/makepath.m4: New file.
73300
73301         Module modechange.
73302         * m4/modechange.m4: New file.
73303
73304         Module mountlist.
73305         * m4/mountlist.m4: New file.
73306         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
73307         Indentation.
73308
73309         Module path-concat.
73310         * m4/path-concat.m4: New file.
73311
73312         Module pathmax.
73313         * m4/pathmax.m4: New file.
73314
73315         Module same.
73316         * m4/same.m4: New file.
73317
73318         Module save-cwd.
73319         * m4/save-cwd.m4: New file.
73320
73321         Module savedir.
73322         * m4/savedir.m4: New file.
73323
73324         Module xgetcwd.
73325         * m4/xgetcwd.m4: New file.
73326         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
73327
73328         Module xreadlink.
73329         * m4/xreadlink.m4: New file.
73330
73331         Module safe-read.
73332         * m4/safe-read.m4: New file.
73333
73334         Module safe-write.
73335         * m4/safe-write.m4: New file.
73336
73337         Module closeout.
73338         * m4/closeout.m4: New file.
73339
73340         Module stdio-safer.
73341         * m4/stdio-safer.m4: New file.
73342
73343         Module getpass.
73344         * m4/getpass.m4: New file.
73345
73346         Module getugroups.
73347         * m4/getugroups.m4: New file.
73348
73349         Module group-member.
73350         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
73351         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
73352
73353         Module idcache.
73354         * m4/idcache.m4: New file.
73355
73356         Module userspec.
73357         * m4/userspec.m4: New file.
73358
73359         Module gettime.
73360         * m4/clock_time.m4: New file.
73361         * m4/gettime.m4: New file.
73362
73363         Module settime.
73364         * m4/settime.m4: New file.
73365
73366         Module posixtm.
73367         * m4/posixtm.m4: New file.
73368
73369         Module gethostname.
73370         * m4/gethostname.m4: New file.
73371
73372         Module canon-host.
73373         * m4/canon-host.m4: New file.
73374
73375         Module gettext.
73376         * m4/codeset.m4: New file, from gettext-0.11.5.
73377         * m4/gettext.m4: New file, from gettext-0.11.5.
73378         * m4/glibc21.m4: New file, from gettext-0.11.5.
73379         * m4/iconv.m4: New file, from gettext-0.11.5.
73380         * m4/intdiv0.m4: New file, from gettext-0.11.5.
73381         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
73382         * m4/inttypes.m4: New file, from gettext-0.11.5.
73383         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
73384         * m4/isc-posix.m4: New file, from gettext-0.11.5.
73385         * m4/lcmessage.m4: New file, from gettext-0.11.5.
73386         * m4/lib-ld.m4: New file, from gettext-0.11.5.
73387         * m4/lib-link.m4: New file, from gettext-0.11.5.
73388         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
73389         * m4/progtest.m4: New file, from gettext-0.11.5.
73390         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
73391         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
73392         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
73393
73394         Module localcharset.
73395         * m4/localcharset.m4: New file.
73396
73397         Module hard-locale.
73398         * m4/hard-locale.m4: New file.
73399
73400         Module mbswidth.
73401         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
73402         onceonly macros.
73403         * m4/mbrtowc.m4: Add comment.
73404
73405         Module memcasecmp.
73406         * m4/memcasecmp.m4: New file.
73407
73408         Module memcoll.
73409         * m4/memcoll.m4: New file.
73410
73411         Module unicodeio.
73412         * m4/unicodeio.m4: New file.
73413
73414         Module rpmatch.
73415         * m4/rpmatch.m4: New file.
73416
73417         Module yesno.
73418         * m4/yesno.m4: New file.
73419
73420         Module exitfail.
73421         * m4/exitfail.m4: New file.
73422
73423         Module c-stack.
73424         * m4/c-stack.m4 (gl_C_STACK): New macro.
73425         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
73426
73427         Module error.
73428         * m4/error.m4 (gl_ERROR): New macro.
73429         (jm_PREREQ_ERROR): Use onceonly macros.
73430
73431         Module fatal.
73432         * m4/fatal.m4: New file.
73433
73434         Module getloadavg.
73435         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
73436         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
73437
73438         Module getpagesize.
73439         * m4/getpagesize.m4: New file.
73440
73441         Module getusershell.
73442         * m4/getusershell.m4: New file.
73443
73444         Module physmem.
73445         * m4/physmem.m4: New file.
73446
73447         Module posixver.
73448         * m4/posixver.m4: New file.
73449
73450         Module quotearg.
73451         * m4/quotearg.m4: New file.
73452
73453         Module quote.
73454         * m4/quote.m4: New file.
73455
73456         Module readutmp.
73457         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
73458
73459         Module sig2str.
73460         * m4/sig2str.m4: New file.
73461
73462         Other.
73463         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
73464         ulonglong.m4.
73465         * m4/intmax_t.m4: New file.
73466         * m4/d-type.m4: Indentation.
73467         * m4/jm-macros.m4: Update.
73468         * m4/prereq.m4 (jm_PREREQ): Update.
73469         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
73470         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
73471         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
73472         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
73473         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
73474         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
73475         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
73476         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
73477         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
73478         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
73479         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
73480         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
73481         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
73482         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
73483         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
73484         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
73485         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
73486         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
73487         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
73488
73489 2002-12-24  Bruno Haible  <bruno@clisp.org>
73490
73491         * MODULES.txt: Update according to m4/ changes.
73492
73493         Module gettext.
73494         * config.rpath: New file, from gettext-0.11.5.
73495
73496         * modules/*: New module descriptions.
73497         * gnulib-tool: New file.
73498         * MODULES.html.sh: New file.
73499
73500 2002-12-21  Karl Berry  <karl@gnu.org>
73501
73502         * doc/fdl.texi: update to version 1.2.
73503
73504 2002-12-19  Karl Berry  <karl@gnu.org>
73505
73506         * config/config.guess: update from prep.
73507
73508 2002-12-18  Bruno Haible  <bruno@clisp.org>
73509
73510         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
73511         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
73512
73513 2002-12-17  Bruno Haible  <bruno@clisp.org>
73514
73515         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
73516         stdlib.h, string.h.
73517
73518 2002-12-17  Bruno Haible  <bruno@clisp.org>
73519
73520         * lib/canon-host.c (strdup): Remove unused declaration.
73521
73522         * lib/fsusage.c: Include full_read.h.
73523         (get_fs_usage): Use full_read instead of safe_read.
73524
73525         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
73526
73527 2002-12-12  Karl Berry  <karl@gnu.org>
73528
73529         * config/config.guess: update from prep.
73530
73531 2002-12-11  Bruno Haible  <bruno@clisp.org>
73532
73533         * m4/setenv.m4: New file, from gettext-0.11.5.
73534
73535 2002-12-11  Bruno Haible  <bruno@clisp.org>
73536
73537         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
73538         not unsetenv().
73539         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
73540         modifications:
73541
73542         2002-12-11  Bruno Haible  <bruno@clisp.org>
73543
73544                 * setenv.c (alloca): Fall back to malloc.
73545                 (freea): New macro.
73546                 (setenv): Use freea() to free memory allocated with alloca().
73547
73548         2002-11-13  Bruno Haible  <bruno@clisp.org>
73549
73550                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
73551                 function declarations.
73552                 * unsetenv.c (unsetenv): Likewise.
73553
73554         2002-03-04  Bruno Haible  <bruno@clisp.org>
73555
73556                 Portability to AIX 4.3.3.
73557                 * unsetenv.c: New file, extracted from setenv.c.
73558                 * setenv.c: Move the unsetenv() function to unsetenv.c.
73559
73560         2001-12-20  Bruno Haible  <bruno@clisp.org>
73561
73562                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
73563                 use malloc instead. For SunOS 4.
73564
73565         2001-12-11  Bruno Haible  <bruno@clisp.org>
73566
73567                 * setenv.c: Declare alloca.
73568                 (compar_fn_t): New typedef.
73569                 (KNOWN_VALUE, STORE_VALUE): Use it.
73570
73571         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
73572         setenv.h.
73573
73574 2002-12-10  Paul Eggert  <eggert@twinsun.com>
73575
73576         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
73577         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
73578         Choose values that are less likely to collide with system fnmatch
73579         options.
73580         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
73581         defined (e.g., a pure POSIX system).
73582         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
73583         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
73584
73585 2002-12-06  Paul Eggert  <eggert@twinsun.com>
73586
73587         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
73588         a pain in practice to deal with generated m4 files.  This change
73589         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
73590
73591         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
73592         and jm-glibc-io.m4, as they are no longer a special case.
73593         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
73594         kludge and the auto-generation stuff.  Check only whether the
73595         functions are declared, not whether they exist, since older hosts
73596         that don't declare the functions can't use the optimization anyway.
73597
73598 2002-12-06  Jim Meyering  <jim@meyering.net>
73599
73600         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
73601
73602         Merge in changes from libc's misc/error.c, in preparation
73603         for the merge of gnulib's changes back into libc.
73604
73605         * lib/error.c (_): Define only if not already defined.
73606         Move definition to follow all #include directives.
73607         Include unlocked-io.h only if !_LIBC.
73608         [_LIBC]: Include <libio/libioP.h>.
73609         [USE_IN_LIBIO]: Include <libio/iolibio.h>
73610         (fflush): Tweak definition to use INTUSE.
73611         (putc): Define.
73612
73613 2002-12-05  Paul Eggert  <eggert@twinsun.com>
73614
73615         * lib/alloca.c [defined emacs]: Include "lisp.h".
73616         (xalloc_die) [defined emacs]: New macro.
73617         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
73618         [! defined emacs]: Include <xalloc.h>.
73619         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
73620         (pointer): Typedef to POINTER_TYPE *.
73621         (malloc): Remove decl; we now always use xmalloc.
73622         (alloca): Use old-style definition, since Emacs needs this.
73623         Check for arithmetic overflow when computing combined size.
73624
73625 2002-12-04  Paul Eggert  <eggert@twinsun.com>
73626
73627         Do not generate unlocked-io.h automatically, since it's easier to
73628         maintain it by hand.
73629
73630         * lib/unlocked-io.h: New file, from GNU diffutils,
73631         but with proper copyright notice and attribution.
73632         * lib/gen-uio: Remove.
73633         * lib/Makefile.am: Add copyright notice.
73634         (libfetish_a_SOURCES): Add unlocked-io.h.
73635         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
73636         (DISTCLEANFILES, io_functions): Remove macros.
73637         (EXTRA_DIST): Remove gen_uio.
73638         (unlocked-io.h): Remove rule.
73639
73640 2002-12-04  Jim Meyering  <jim@meyering.net>
73641
73642         Reflect the fact that stat.c and lstat.c are no longer generated.
73643         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
73644         (DISTCLEANFILES): Likewise.
73645         (EXTRA_DIST): Likewise.
73646         (all_local): Don't depend on stat.c or lstat.c.
73647         (stat.c, lstat.c): Remove rules.
73648         (EXTRA_DIST): Remove xstat.in.
73649
73650         * lib/xstat.in: Remove file.  Contents moved into stat.c.
73651         * lib/stat.c: New file.  Contents mostly from xstat.in.
73652         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
73653         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
73654
73655         * lib/safe-read.c: Rework so that it may serve to define safe_write,
73656         too.
73657         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
73658
73659 2002-12-03  Jim Meyering  <jim@meyering.net>
73660
73661         * lib/safe-read.c, safe-write.c: Change variable names and comments,
73662         but not semantics, to minimize the differences between these two files.
73663         (safe_read): Change comment to mention SAFE_READ_ERROR.
73664
73665         * lib/safe-read.c (IS_EINTR): Define.
73666         (safe_read): Use IS_EINTR in place of in-function cpp directives.
73667
73668 2002-12-02  Jim Meyering  <jim@meyering.net>
73669
73670         * lib/safe-read.c (EINTR): Define.
73671         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
73672         (INT_MAX): Provide fallback.
73673         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
73674
73675         * lib/safe-read.h (SAFE_READ_ERROR): Define.
73676
73677 2002-12-02  Bruno Haible  <bruno@clisp.org>
73678
73679         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
73680         Define, taken from safe-read.c.
73681         (INT_MAX): Provide fallback.
73682         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
73683         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
73684
73685         * lib/safe-read.c (EINTR): Remove definition.
73686         (safe_read): Don't use EINTR if it is absent.
73687
73688 2002-12-01  Jim Meyering  <jim@meyering.net>
73689
73690         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
73691         zero.
73692         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
73693
73694 2002-11-27  Paul Eggert  <eggert@twinsun.com>
73695
73696         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
73697         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
73698         with `if (! (value < limit)) abort ();', for readability.
73699
73700 2002-11-26  Karl Berry  <karl@gnu.org>
73701
73702         * lib/strdup.c: copy from libc again, with jim's ok.
73703         * lib/.cppi-disable: re-add strdup.c
73704
73705 2002-11-25  Karl Berry  <karl@gnu.org>
73706
73707         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
73708         instead of "strtol.c".
73709
73710 2002-11-25  Karl Berry  <karl@gnu.org>
73711
73712         * config/install-sh: update from automake for variable quoting, $0 in
73713         error msgs, etc.
73714
73715         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
73716         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
73717         entry.
73718
73719 2002-11-25  Jim Meyering  <jim@meyering.net>
73720
73721         * lib/mktime.c: Sync from libc, now that it has the latest fix.
73722
73723 2002-11-24  Karl Berry  <karl@gnu.org>
73724
73725         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
73726         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
73727
73728 2002-11-24  Jim Meyering  <jim@meyering.net>
73729
73730         Update from coreutils:
73731
73732         * lib/mktime.c: Merge in changes from libc.
73733
73734         Avoid a link-time failure on some Linux systems.
73735         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
73736         (otherwise).
73737         (__mon_yday): Declare with the STATIC attribute.
73738         (__mktime_internal): Likewise.
73739         Based on a report from Greg Schafer.
73740
73741 2002-11-23  Jim Meyering  <jim@meyering.net>
73742
73743         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
73744         Use `unsigned', not `int', as type of index.
73745
73746         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
73747
73748         * lib/fsusage.c: Remove unneeded parentheses around operands of
73749         `defined'.
73750
73751 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73752
73753         * lib/quotearg.h: Allow multiple inclusion by surrounding with
73754         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
73755         so that we can be included first.
73756         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
73757         * lib/quotearg.c: Include quotearg.h immediately after config.h.
73758         No need to include stddef.h or sys/types.h any more.
73759         Surround local include files with "", not "<>".
73760         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
73761         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
73762         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
73763         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
73764         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
73765         (ISPRINT): Remove; no longer needed now that we assume C89.
73766
73767         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
73768         Preserve errno.
73769
73770         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
73771         quotearg_char): Use SIZE_MAX rather than
73772         (size_t) -1 when we are talking about "infinity".
73773
73774         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
73775
73776 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73777
73778         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
73779         hint that one should use `if (! x) abort ();' rather than `assert
73780         (x);', and anyway it's one less thing to worry about configuring.
73781         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
73782         hash_rehash, hash_insert): Use abort rather than assert.
73783
73784 2002-11-22  Bruno Haible  <bruno@clisp.org>
73785
73786         * lib/safe-read.h: Assume C89. Add comments.
73787         (safe_read): Change return type to size_t.
73788         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
73789         byte counts > SSIZE_MAX correctly.
73790         * lib/safe-write.h: New file.
73791         * lib/safe-write.c: New file.
73792         * lib/full-read.h: New file.
73793         * lib/full-read.c: New file.
73794         * lib/full-write.h: Assume C89. Add comments.
73795         * lib/full-write.c: Include safe-write.h.
73796         (full_write): Rewritten to use safe_write.
73797         Suggested by Jim Meyering and Paul Eggert.
73798
73799 2002-11-21  Jim Meyering  <jim@meyering.net>
73800
73801         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
73802
73803         Merge in changes from the coreutils.
73804
73805         2002-09-25  Paul Eggert  <eggert@twinsun.com>
73806         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
73807         <stdint.h>.
73808         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
73809         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
73810         int.  Work more efficiently if X is the same width as uintmax_t.
73811         Do not compare X to -1, to avoid bogus compiler warning.
73812         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
73813         Don't assume that f_frsize and f_bsize are the same type.
73814
73815         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
73816         warning on FreeBSD.
73817
73818         * lib/makepath.c (make_path): Restore umask *before* creating the final
73819         component.
73820         (make_path): Minor reformatting.
73821
73822         * lib/xmalloc.c: Adjust to work with new autoconf macros,
73823         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
73824         HAVE_MALLOC/HAVE_REALLOC.
73825
73826         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
73827         dummy ones.  At least on GNU/Linux systems, `auto' means something
73828         else.
73829         From Michael Stone.
73830
73831 2002-11-21  Bruno Haible  <bruno@clisp.org>
73832
73833         Remove case insensitive option matching.
73834         * lib/argmatch.h (argcasematch): Remove declaration.
73835         (ARGCASEMATCH): Remove macro.
73836         (__xargmatch_internal): Remove case_sensitive argument.
73837         (XARGMATCH): Update.
73838         (XARGCASEMATCH): Remove macro.
73839         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
73840         case_sensitive argument.
73841         (argcasematch): Remove function.
73842         (__xargmatch_internal): Remove case_sensitive argument.
73843         (main): Use XARGMATCH instead of XARGCASEMATCH.
73844
73845         * lib/xmalloc.c: Change compile-time error message. Add comment about
73846         required autoconf version.
73847
73848 2002-11-20  Paul Eggert  <eggert@twinsun.com>
73849
73850         Merge argmatch cleanups from Bison.  Assume C89.
73851
73852         * lib/argmatch.c: Include config.h here, not in argmatch.h.
73853         Include stdlib.h, for EXIT_FAILURE.
73854         Always include <string.h>, since we assume C89.
73855         (EXIT_FAILURE): Remove pre-C89 bug workaround.
73856         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
73857         Include <stddef.h> instead, since it's all we need for size_t.
73858         (PARAMS): Remove.  All uses removed.
73859         (ARRAY_CARDINALITY): Do not bother to #undef.
73860         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
73861         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73862         Remove unnecessary parentheses.
73863         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73864         Insert necessary parentheses.
73865         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
73866         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
73867
73868 2002-11-19  Bruno Haible  <bruno@clisp.org>
73869
73870         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
73871         * lib/mbswidth.h: Include <stddef.h>, for size_t.
73872
73873         * lib/mbswidth.h (PARAMS): Remove macro.
73874         (mbswidth, mbsnwidth): Use ANSI C function declarations.
73875         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
73876
73877         * lib/gcd.h (PARAMS): Remove macro.
73878         (gcd): Use ANSI C function declarations.
73879         * lib/gcd.c (gcd): Likewise.
73880
73881 2002-11-15  Bruno Haible  <bruno@clisp.org>
73882
73883         * lib/strcspn.c: Include <stddef.h>.
73884         (strcspn): Use ANSI C function declaration. Change return type to
73885         size_t. Use NULL.
73886         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
73887         (strpbrk): Use NULL.
73888         * lib/strpbrk.h (PARAMS): Remove macro.
73889         (strpbrk): Use ANSI C function declaration.
73890         * lib/strstr.c: Don't include <sys/types.h>.
73891         * lib/strstr.h (PARAMS): Remove macro.
73892         (strstr): Use ANSI C function declarations.
73893
73894 2002-11-14  Karl Berry  <karl@gnu.org>
73895
73896         * config/mkinstalldirs: `do' on separate line, instead of
73897         `for var; do'.
73898
73899 2002-11-06  Bruno Haible  <bruno@clisp.org>
73900
73901         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
73902         * lib/gcd.c (gcd): Likewise.
73903
73904 2002-11-05  Bruno Haible  <bruno@clisp.org>
73905
73906         * lib/gcd.h: New file, from gettext-0.11.5.
73907         * lib/gcd.c: New file, from gettext-0.11.5.
73908
73909 2002-11-05  Bruno Haible  <bruno@clisp.org>
73910
73911         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73912         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73913         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73914         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73915
73916         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
73917         <libintl.h>.
73918         * lib/makepath.c: Include gettext.h instead of <locale.h> and
73919         <libintl.h>.
73920
73921         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
73922         * lib/human.c: Include gettext.h instead of <libintl.h>.
73923         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
73924         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
73925         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
73926         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
73927         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
73928         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
73929         (textdomain): Remove definition.
73930         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
73931
73932         * lib/long-options.c: Remove include of <libintl.h> and definition of
73933         _.
73934         * lib/same.c: Remove include of <libintl.h> and definition of _.
73935
73936 2002-11-04  Owen Taylor  <otaylor@redhat.com>
73937
73938         * lib/config.charset: A few additions for Solaris.
73939
73940 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73941
73942         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
73943         * lib/localcharset.c (locale_charset): Declare as extern "C".
73944
73945 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73946
73947         * lib/config.charset: msdos in uk_UA uses CP1125.
73948
73949 2002-11-04  Bruno Haible  <bruno@clisp.org>
73950
73951         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
73952         * lib/strcase.h: New file, from GNU gettext-0.11.5.
73953         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
73954         * lib/strstr.h: New file, from GNU gettext-0.11.5.
73955         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
73956
73957 2002-11-04  Bruno Haible  <bruno@clisp.org>
73958
73959         * lib/localcharset.c (locale_charset): Don't return an empty string.
73960
73961 2002-11-04  Bruno Haible  <bruno@clisp.org>
73962
73963         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
73964         aliases.
73965
73966 2002-11-04  Bruno Haible  <bruno@clisp.org>
73967
73968         * lib/config.charset: Update for newest glibc. Add canonical names
73969         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
73970
73971 2002-11-04  Bruno Haible  <bruno@clisp.org>
73972
73973         * lib/config.charset: Add support for NetBSD.
73974
73975 2002-11-04  Bruno Haible  <bruno@clisp.org>
73976
73977         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
73978
73979 2002-11-01  Bruno Haible  <bruno@clisp.org>
73980
73981         * configure.in: Add AC_CONFIG_AUX_DIR call.
73982         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
73983         test/Makefile.
73984         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
73985
73986 2002-09-28  Karl Berry  <karl@gnu.org>
73987
73988         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
73989         installed automake until the next release, since changes have been
73990         made.
73991
73992 2002-09-25  Karl Berry  <karl@gnu.org>
73993
73994         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
73995         * lib/getopt*: copy from libc/posix.
73996         * lib/gettext.h: copy from gettext.
73997         * lib/.cppi-disable: add strdup.c, gettext.h.
73998
73999 2002-09-25  Karl Berry  <karl@gnu.org>
74000
74001         * config/srclist.txt: enable gettext.h check.
74002         * config/config.{guess,sub}: update from prep.
74003         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
74004                 from automake 1.6.3.
74005         See srclist*.
74006
74007 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
74008
74009         * regex.c (PATFETCH): Remove the translating fetch.
74010         (PATFETCH_RAW): Rename to PATFETCH.
74011         (set_image_of_range): New fun.
74012         (SET_RANGE_TABLE_WORK_AREA): Use it.
74013         (regex_compile): Don't translate the pattern chars so eagerly.
74014         Only do it when inserting an `exactn' bytecode or when handling
74015         a char-range.
74016         (mutually_exclusive_p): Avoid empty statement.
74017
74018 2002-07-06  Jim Meyering  <meyering@lucent.com>
74019
74020         * m4/README: Don't mention Makefile.am.in.
74021         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
74022
74023 2002-07-01  Jim Meyering  <meyering@lucent.com>
74024
74025         * lib/c-stack.c: Include sys/time.h.
74026         From Volker Borchert.
74027
74028 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74029
74030         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
74031
74032 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74033
74034         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
74035         New macro.  Use it uniformly instead of
74036         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
74037         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
74038         reported by Vin Shelton.
74039
74040 2002-06-22  Paul Eggert  <eggert@twinsun.com>
74041
74042         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
74043         Do not assume SA_SIGINFO behavior.
74044         Bug reported by Jim Meyering on NetBSD 1.5.2.
74045
74046 2002-06-22  Jim Meyering  <meyering@lucent.com>
74047
74048         * m4/c-stack.m4: New file, from diffutils-2.8.2.
74049         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
74050
74051         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
74052         now that configure.ac uses AC_GNU_SOURCE.
74053         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
74054         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
74055
74056         Update to latest tools.  Suggestions from Paul Eggert.
74057         * m4/stdbool.m4: New file, from diffutils-2.8.2.
74058         * m4/gnu-source.m4: Update from diffutils-2.8.2.
74059         * m4/fnmatch.m4: Likewise.
74060         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
74061         to AC_HEADER_STDBOOL
74062
74063 2002-06-22  Jim Meyering  <meyering@lucent.com>
74064
74065         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
74066         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
74067
74068 2002-06-22  Jim Meyering  <meyering@lucent.com>
74069
74070         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
74071
74072         * lib/exitfail.c, exitfail.h: Likewise.
74073         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
74074
74075         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
74076         of fnmatch.h.
74077         (EXTRA_DIST): Add fnmatch_loop.c.
74078         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
74079
74080         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
74081         * lib/fnmatch.c: Update from diffutils-2.8.2.
74082         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
74083         * lib/fnmatch.h: Remove file.
74084
74085 2002-06-21  Jim Meyering  <meyering@lucent.com>
74086
74087         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
74088         * m4/mbrtowc.m4: Likewise.
74089
74090         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
74091         * m4/mbswidth.m4: Reflect name change:
74092         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
74093         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74094
74095         * m4/lib-link.m4: Update from gettext-0.11.2.
74096         * m4/gettext.m4: Likewise.
74097
74098         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
74099         From Alfred M. Szmidt.
74100
74101 2002-06-18  Paul Eggert  <eggert@twinsun.com>
74102
74103         * lib/file-type.h: Report an error if neither S_ISREG nor
74104         S_IFREG is defined, instead of using a test specific to glibc
74105         2.2.  This should be safe, since POSIX requires S_ISREG and
74106         Unix Version 7 had S_IFREG.  We don't need to check for
74107         <sys/types.h> since we don't use any symbols that it defines.
74108
74109 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
74110
74111         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
74112         $@-t, so that each temporary file name is unique and valid in the first
74113         8 characters, for operation under DOS.
74114
74115 2002-06-15  Paul Eggert  <eggert@twinsun.com>
74116
74117         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
74118
74119 2002-06-15  Jim Meyering  <meyering@lucent.com>
74120
74121         Work even with DJGPP 2.03, which lacks support for symlinks.
74122         From Richard Dawe.
74123         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
74124         is defined.
74125         * lib/lchown.c (S_ISLNK): Likewise.
74126
74127 2002-06-15  Jim Meyering  <meyering@lucent.com>
74128
74129         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
74130         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
74131         have been included before this file.
74132
74133 2002-06-14  Jim Meyering  <meyering@lucent.com>
74134
74135         * lib/file-type.h: Use the version from diffutils-2.8.2.
74136         * lib/file-type.c: Likewise.
74137
74138 2002-06-07  Jim Meyering  <meyering@lucent.com>
74139
74140         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
74141         They're needed at least for NetBSD 1.5.2.
74142         ($statxfs_includes): Include those same headers.
74143         ($statxfs_includes): Include sys/vfs.h if available.
74144         ($statxfs_includes): Likewise for sys/statvfs.h.
74145         Check for the following members in both structs statfs and statvfs:
74146         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
74147
74148 2002-06-01  Jim Meyering  <meyering@lucent.com>
74149
74150         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
74151         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
74152
74153 2002-05-28  Jim Meyering  <meyering@lucent.com>
74154
74155         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
74156         Reported by Volker Borchert.
74157
74158 2002-05-27  Jim Meyering  <meyering@lucent.com>
74159
74160         Fix a problem seen only on nonconforming systems whereby ls.c's
74161         use of localtime, and then of gettimeofday would cause trouble:
74162         the localtime call used to initialize rpl_gettimeofday's save
74163         mechanism would clobber ls's current local time information so
74164         that in any long listing the first file would always be listed
74165         with date 1970-01-01.  Analysis by Volker Borchert.
74166
74167         * lib/gettimeofday.c (localtime): Undefine.
74168         (rpl_localtime): New function.
74169
74170 2002-05-27  Jim Meyering  <meyering@lucent.com>
74171
74172         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
74173         localtime.
74174
74175         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
74176         use the replacement function; it wouldn't resolve at link time.
74177         Reported by Volker Borchert.
74178
74179 2002-05-22  Jim Meyering  <meyering@lucent.com>
74180
74181         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
74182         file-type.h.
74183         * lib/file-type.h: New file.
74184         * lib/file-type.c (file_type): New file/function.  Extracted from
74185         diffutils.
74186
74187 2002-04-30  Jim Meyering  <meyering@lucent.com>
74188
74189         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
74190
74191 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74192
74193         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
74194
74195 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74196
74197         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
74198         Do not check for alloca.h (no longer used) or stdbool.h (was never
74199         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
74200
74201 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74202
74203         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
74204
74205 2002-04-29  Jim Meyering  <meyering@lucent.com>
74206
74207         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
74208         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
74209         Use AC_FUNC_STRNLEN here instead.
74210
74211         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
74212         With autoconf-2.53a, it's part of AC_PROG_CC.
74213
74214 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74215
74216         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
74217         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
74218
74219 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74220
74221         * lib/sig2str.h, lib/sig2str.c: New files.
74222         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
74223
74224 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74225
74226         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
74227         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
74228         of 127, since 64 is the largest conceivable number for ancient
74229         nonstandard hosts.
74230         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
74231
74232 2002-04-28  Jim Meyering  <meyering@lucent.com>
74233
74234         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
74235
74236 2002-04-24  Jim Meyering  <meyering@lucent.com>
74237
74238         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
74239         (jm_PREREQ): Use it.
74240
74241         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
74242         mach/mach.h fcntl.h.
74243         Check for this function: setlocale.
74244
74245 2002-04-24  Jim Meyering  <meyering@lucent.com>
74246
74247         * lib/gettext.h: New file, from Gettext.
74248         * lib/Makefile.am (INCLUDES): Remove -I../intl.
74249         (libfetish_a_SOURCES): Add gettext.h.
74250
74251 2002-04-16  Jim Meyering  <meyering@lucent.com>
74252
74253         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
74254         ut_pid, ut_id, ut_exit.
74255
74256 2002-04-16  Jim Meyering  <meyering@lucent.com>
74257
74258         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
74259         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
74260         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
74261
74262 2002-04-12  Jim Meyering  <meyering@lucent.com>
74263
74264         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
74265         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
74266         existence of the getmntinfo function.  Needed for Darwin 5.3.
74267
74268         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
74269         This is necessary at least on Darwin 5.3.
74270
74271         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
74272         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
74273         strnlen.o in the library, and that makes some versions of ranlib
74274         object.
74275
74276 2002-04-12  Jim Meyering  <meyering@lucent.com>
74277
74278         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
74279
74280 2002-04-09  Jim Meyering  <meyering@lucent.com>
74281
74282         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
74283         to be more precise.  Rather than saying we're checking whether the
74284         function `works', say what we're testing.
74285         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
74286         Reported by Bruno Haible.
74287
74288 2002-03-10  Jim Meyering  <meyering@lucent.com>
74289
74290         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
74291         Suggestion from Santiago Vila.
74292
74293 2002-03-08  Jim Meyering  <meyering@lucent.com>
74294
74295         * lib/rename.c: Mention that this wrapper is needed also on
74296         mips-dec-ultrix4.4 systems.
74297
74298 2002-03-02  Jim Meyering  <meyering@lucent.com>
74299
74300         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
74301         not HAVE_CLOCK_SETTIME.
74302
74303 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74304
74305         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
74306         Check for clock_settime.
74307
74308 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74309
74310         * lib/nanosleep.h: Rename to....
74311         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
74312
74313         * lib/gettime.c: New file.
74314         * lib/settime.c: New file.
74315         * lib/stime.c: Remove.
74316
74317         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
74318         timespec.h.  Remove nanosleep.h.
74319
74320 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74321
74322         * m4/acl.m4: New file.
74323         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
74324         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
74325
74326 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74327
74328         * lib/acl.c, lib/acl.h: New files.
74329         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
74330
74331 2002-02-24  Jim Meyering  <meyering@lucent.com>
74332
74333         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
74334         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
74335         cause trouble.  Reported by Nelson Beebe.
74336
74337 2002-02-23  Paul Eggert  <eggert@twinsun.com>
74338
74339         * lib/path-concat.c (xpath_concat): Reorder code to pacify
74340         compilers that don't know that xalloc_die never returns.
74341
74342 2002-02-20  Jim Meyering  <meyering@lucent.com>
74343
74344         * lib/getdate.c: Regenerate using bison-1.33.
74345
74346 2002-02-17  Jim Meyering  <meyering@lucent.com>
74347
74348         * config/config.guess (main): Don't use `head -1'; it's no longer
74349         portable. Use `sed 1q' instead.
74350
74351 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
74352
74353         * m4/codeset.m4: Upgrade to gettext-0.11.
74354         * m4/gettext.m4: Upgrade to gettext-0.11.
74355         * m4/glibc21.m4: Upgrade to gettext-0.11.
74356         * m4/iconv.m4: Upgrade to gettext-0.11.
74357         * m4/isc-posix.m4: Upgrade to gettext-0.11.
74358         * m4/lcmessage.m4: Upgrade to gettext-0.11.
74359         * m4/lib-ld.m4: New file, from gettext-0.11.
74360         * m4/lib-link.m4: New file, from gettext-0.11.
74361         * m4/lib-prefix.m4: New file, from gettext-0.11.
74362         * m4/progtest.m4: Upgrade to gettext-0.11.
74363
74364 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74365
74366         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
74367         (jm_PREREQ): Use it.
74368
74369 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74370
74371         * lib/posixver.c, lib/posixver.h: New files.
74372         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74373
74374 2002-02-02  Paul Eggert  <eggert@twinsun.com>
74375             Bruno Haible  <bruno@clisp.org>
74376
74377         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
74378         (fwrite_success_callback): New declaration.
74379         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
74380         print_unicode_char. Call failure callback instead of error.
74381         (fwrite_success_callback): New function.
74382         (exit_failure_callback): New function.
74383         (fallback_failure_callback): New function.
74384         (print_unicode_char): Call unicode_to_mb.
74385
74386 2002-01-26  Jim Meyering  <meyering@lucent.com>
74387
74388         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
74389         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
74390
74391 2002-01-26  Jim Meyering  <meyering@lucent.com>
74392
74393         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
74394
74395 2002-01-22  Paul Eggert  <eggert@twinsun.com>
74396
74397         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
74398
74399 2002-01-22  Jim Meyering  <meyering@lucent.com>
74400
74401         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
74402         Otherwise, some versions of automake would omit the rule that makes
74403         Makefile from Makefile.in.
74404
74405 2002-01-21  Paul Eggert  <eggert@twinsun.com>
74406
74407         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
74408         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74409         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
74410         (memcoll): Set errno to zero if there is no error.
74411
74412         * lib/quotearg.c (quotearg_buffer_restyled):
74413         Fix bug with quoting buffers containing NUL when backslashing escapes.
74414         This bug was exposed by the other changes in this patch.
74415         (quotearg_n_options): New arg ARGSIZE.
74416         All callers changed.
74417         (quoting_options_from_style): New function.
74418         (quotearg_n_style): Use it.
74419         (quotearg_n_style_mem): New function.
74420
74421         * lib/quotearg.h (quotearg_n_style_mem): New function.
74422
74423 2002-01-19  Jim Meyering  <meyering@lucent.com>
74424
74425         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
74426         Remove useless quotes: DF_PROG="df".
74427         * m4/strnlen.m4: New file.
74428
74429 2002-01-16  Paul Eggert  <eggert@twinsun.com>
74430
74431         * lib/backupfile.c (ISDIGIT): Comment fix.
74432         * lib/getdate.y (ISDIGIT): Likewise.
74433         * lib/posixtm.c (ISDIGIT, year): Likewise.
74434         * lib/strverscmp.c (ISDIGIT): Likewise.
74435         * lib/userspec.c (ISDIGIT): Likewise.
74436
74437 2002-01-16  Jim Meyering  <meyering@lucent.com>
74438
74439         * lib/getdate.y: Add three semicolons, each just before a closing
74440         brace. Bison (as of version 1.31) no longer papers over that mistake.
74441
74442 2002-01-05  Jim Meyering  <meyering@lucent.com>
74443
74444         * lib/version-etc.c (version_etc_copyright): Update copyright year.
74445
74446 2001-12-19  Paul Eggert  <eggert@twinsun.com>
74447
74448         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
74449         not silently exit merely because the output buffer happens to
74450         have nothing pending.
74451
74452 2001-12-18  Paul Eggert  <eggert@twinsun.com>
74453
74454         See the big note in ../ChangeLog.
74455         * lib/human.c (suffixes): Prefer K to k for 1024.
74456         (generate_suffix_backwards): New function.
74457         (human_readable_inexact): Use it.
74458         * lib/xstrtol.c (__xstrtol): If there is no number but there
74459         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
74460         Accept 'K' as well as 'k'.
74461
74462 2001-12-15  Jim Meyering  <meyering@lucent.com>
74463
74464         * lib/regex.h (__restrict_arr): Update from libc.
74465
74466         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
74467         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
74468         (STREQ): Define.
74469
74470 2001-12-14  Jim Meyering  <meyering@lucent.com>
74471
74472         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
74473         Suggestion from Bruno Haible.
74474
74475 2001-12-10  Jim Meyering  <meyering@lucent.com>
74476
74477         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
74478         xrealloc, Instead, include "xalloc.h".
74479         (initbuffer): Don't cast xmalloc return value to char*.
74480         (readline): Reword comment.
74481         Don't cast xrealloc return value to char*
74482         Return NULL, not 0.
74483
74484 2001-12-09  Jim Meyering  <meyering@lucent.com>
74485
74486         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
74487         about `signed and unsigned type in conditional expression'.
74488         * lib/posixtm.c (posix_time_parse): Likewise.
74489
74490         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
74491
74492         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
74493         to avoid a pedantic warning.
74494
74495         * lib/getstr.c: Don't include assert.h.
74496         (getstr): Remove warning-evoking assertions.
74497         Return -1 if offset parameter is out of bounds.
74498         Change the type of a local from int to size_t.
74499
74500         * lib/strftime.c (my_strftime_localtime_r): Include this function
74501         definition in the `#if ! HAVE_TM_GMTOFF' block.
74502
74503         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
74504         Include xalloc.h instead.
74505
74506 2001-12-02  Jim Meyering  <meyering@lucent.com>
74507
74508         * lib/tempname.c: Don't declare getenv, thus reverting the change of
74509         2001-11-18.  It's no longer necessary, now that stdlib.h is always
74510         included.
74511
74512         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
74513         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
74514
74515 2001-11-30  Akim Demaille  <akim@epita.fr>
74516
74517         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
74518         before being defined.
74519
74520 2001-11-27  Paul Eggert  <eggert@twinsun.com>
74521
74522         * lib/quotearg.h (quotearg_n, quotearg_n_style):
74523         First arg is int, not unsigned.
74524         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
74525         (SIZE_MAX, UINT_MAX): New macros.
74526         (quotearg_n_options): Abort if N is negative.
74527         Avoid overflow check on hosts where size_t is 64 bits and int
74528         is 32 bits, as overflow is impossible there.
74529         Fix off-by-one typo that caused unnecessary reallocation.
74530
74531 2001-11-27  Jim Meyering  <meyering@lucent.com>
74532
74533         * lib/tempname.c: Merge with version from libc.
74534         * lib/regex.c: Likewise.
74535
74536         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
74537         systems for which STDC_HEADERS is 0, it was not included, resulting in
74538         a warning about an integer-to-pointer conversion problem with getenv.
74539         Reported by Volker Borchert.
74540
74541 2001-11-26  Jim Meyering  <meyering@lucent.com>
74542
74543         * lib/gtod.h: Remove file.
74544         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
74545         * lib/gettimeofday.c: Don't include gtod.h.
74546         (GTOD_init): Remove function.
74547         (rpl_gettimeofday): Do its job here instead, rather than aborting.
74548         Suggestion from Volker Borchert.
74549
74550 2001-11-23  Jim Meyering  <meyering@lucent.com>
74551
74552         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
74553         it.
74554         * lib/hash.c (struct hash_table): Define it here instead.
74555
74556 2001-11-22  Jim Meyering  <meyering@lucent.com>
74557
74558         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
74559
74560 2001-11-20  Jim Meyering  <meyering@lucent.com>
74561
74562         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
74563         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
74564
74565 2001-11-19  Jim Meyering  <meyering@lucent.com>
74566
74567         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
74568         directory.  Use "conftestXXXXXX" as the template.
74569         Suggestion from Paul Eggert.
74570
74571         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
74572         immediately, so the test doesn't mistakenly hit the max-open-files
74573         limit.
74574
74575 2001-11-18  Paul Eggert  <eggert@twinsun.com>
74576
74577         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
74578         (TEMPORARIES): New macro.
74579         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
74580         removes an artificial limitation (e.g. HP-UX 10.20, where
74581         TMP_MAX is 17576).
74582
74583 2001-11-18  Jim Meyering  <meyering@lucent.com>
74584
74585         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
74586
74587 2001-11-18  Jim Meyering  <meyering@lucent.com>
74588
74589         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
74590         on SunOS 4.
74591
74592         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
74593         files will be created before anything else.
74594
74595 2001-11-17  Paul Eggert  <eggert@twinsun.com>
74596
74597         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
74598         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
74599
74600 2001-11-17  Jim Meyering  <meyering@lucent.com>
74601
74602         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
74603         Prompted by a report from Bob Proulx.
74604
74605         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
74606         Instead, require UTILS_FUNC_MKSTEMP.
74607
74608 2001-11-17  Jim Meyering  <meyering@lucent.com>
74609
74610         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
74611         Now, that's done as part of AC_FUNC_STRTOD.
74612
74613 2001-11-17  Jim Meyering  <meyering@lucent.com>
74614
74615         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
74616         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
74617         rather than group writable.  Patch by Juan F. Codagnone.
74618
74619         * lib/readtokens.c: Remove explicit declarations of xmalloc and
74620         xrealloc, Instead, include "xalloc.h".
74621
74622         * lib/mountlist.c: Include unlocked-io.h after all system headers.
74623         Remove explicit declarations of xmalloc, xrealloc,
74624         and xstrdup.  Instead, include "xalloc.h".
74625
74626         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
74627         unlocked-io.h.
74628         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
74629         Likewise.
74630         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
74631
74632         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
74633         Reported by Padraig Brady.
74634
74635         * lib/mkstemp.c: #undef mkstemp.
74636         Include config.h.
74637         (rpl_mkstemp): Rename from mkstemp.
74638         Protoize.
74639
74640 2001-11-16  Jim Meyering  <meyering@lucent.com>
74641
74642         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
74643         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
74644         determine the amount of total physical memory, use pstat_getstatic.
74645         HPUX-11 doesn't define _SC_PHYS_PAGES.
74646         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
74647         If sysconf couldn't be used to determine the amount of available
74648         physical memory, use both pstat_getstatic and pstat_getdynamic.
74649         Based on a patch from Bob Proulx.
74650
74651 2001-11-10  Jim Meyering  <meyering@lucent.com>
74652
74653         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
74654         (jm_PREREQ): Use it.
74655
74656 2001-11-09  Jim Meyering  <meyering@lucent.com>
74657
74658         * m4/jm-macros.m4: Require autoconf-2.52f.
74659         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
74660         Use these AC_-prefixed names, not the AM_-prefixed ones.
74661
74662         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
74663
74664 2001-11-05  Jim Meyering  <meyering@lucent.com>
74665
74666         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
74667
74668 2001-11-04  Jim Meyering  <meyering@lucent.com>
74669
74670         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
74671         $DEFS.
74672
74673 2001-11-03  Jim Meyering  <meyering@lucent.com>
74674
74675         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
74676         of AC_DEFUN.
74677
74678         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
74679         know the name of the variable in the macro definition.
74680
74681 2001-11-03  Jim Meyering  <meyering@lucent.com>
74682
74683         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
74684         in argmatch_to_argument call.
74685
74686         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
74687         argument.
74688
74689         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
74690         e.g., a fault due to an attempt to free a NULL pointer.
74691
74692 2001-11-01  Jim Meyering  <meyering@lucent.com>
74693
74694         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
74695         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
74696
74697 2001-11-01  Jim Meyering  <meyering@lucent.com>
74698
74699         * lib/dirfd.c, lib/dirfd.h: New files.
74700         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
74701
74702         * lib/hash.c (hash_print) [TESTING]: Clean up.
74703
74704 2001-10-22  Paul Eggert  <eggert@twinsun.com>
74705
74706         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
74707         to avoid a warning if -Wall.
74708
74709 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
74710
74711         * README: New file
74712         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
74713         (per RMS's instructions, this is now the canonical source)
74714         * lgpl/, gpl/: New directories.
74715
74716 2001-10-21  Paul Eggert  <eggert@twinsun.com>
74717
74718         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
74719
74720 2001-10-21  Jim Meyering  <meyering@lucent.com>
74721
74722         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
74723         this code would end up calling gettext even in packages built
74724         with --disable-nls.
74725         * lib/getopt.c (_): Likewise.
74726         * lib/regex.c (_): Likewise.
74727
74728 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74729
74730         * m4/error.m4 (jm_PREREQ_ERROR):
74731         Do not invoke AC_CHECK_FUNCS with strerror_r, as
74732         AC_FUNC_STRERROR_R does that.
74733         Check for strerror declaration.
74734
74735         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
74736         are supposed to have them these days.
74737         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
74738         Merge changes from latest Autoconf CVS.
74739         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
74740         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
74741         POSIX decided to standardize on the int flavor of strerror_r.
74742
74743 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74744
74745         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
74746         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
74747         Use strerror_r that is only a macro, even if it is not a function.
74748         (strerror): Check for HAVE_DECL_STRERROR before declaring.
74749         (private_strerror): Use prototypes, not old-style function definition.
74750         (print_errno_message): New function.
74751         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
74752         char*-flavored one.
74753         (error_tail, error, error_at_line): Use it.
74754
74755 2001-10-11  Jim Meyering  <meyering@lucent.com>
74756
74757         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
74758         and quote_n (1, ... to avoid clobbering a buffer.
74759
74760 2001-10-05  Jim Meyering  <meyering@lucent.com>
74761
74762         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
74763         hash-pjw.h.
74764         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
74765         * lib/hash-pjw.h: New file.
74766
74767 2001-09-30  Jim Meyering  <meyering@lucent.com>
74768
74769         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
74770         `struct fsstat' has the `f_fstypename' member.
74771         Use that to define FS_TYPE, which is now used to make
74772         the getfsstat link test tighter.
74773
74774 2001-09-30  Jim Meyering  <meyering@lucent.com>
74775
74776         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
74777         Include <sys/ucred.h>, for Apple Darwin.
74778         Include sys/mount.h and sys/fs_types.h only if available.
74779         (FS_TYPE): Define.
74780         (read_filesystem_list): Use FS_TYPE.
74781
74782 2001-09-29  Paul Eggert  <eggert@twinsun.com>
74783
74784         * lib/exclude.c (excluded_filename): 0 -> false, since it's
74785         a boolean context.
74786
74787 2001-09-29  Jim Meyering  <meyering@lucent.com>
74788
74789         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74790         [one-argument getmntent function]): Include stdio.h before mntent.h.
74791         SunOS 4.1.x needs it for the declaration of `FILE'.
74792         Patch by Volker Borchert.
74793
74794         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74795         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
74796         sys/fs_types.h, and make the link-test for getfsstat guard #include
74797         directives with appropriate #if HAVE_*_H tests so that we can
74798         detect getfsstat on Apple Darwin1.3.7 systems.
74799         Reported by Nelson Beebe.
74800         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
74801
74802 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74803
74804         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74805         #defines strtoimax.  Also treat the other strto* functions
74806         like strtoimax.
74807
74808         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74809         Check for strtoul and strtoumax,
74810         as those declarations are made even in the signed case.
74811         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
74812         Likewise, for strtol and strtoimax.
74813
74814 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74815
74816         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74817         #defines strtoimax.  Also treat the other strto* functions
74818         like strtoimax.
74819
74820         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
74821         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
74822         (strtoimax, strtoumax): Do not declare if already defined as a macro.
74823
74824 2001-09-26  Jim Meyering  <meyering@lucent.com>
74825
74826         Most macros in unlocked-io.h had the wrong number of arguments.
74827         * lib/gen-uio: New script.
74828         (USE_UNLOCKED_IO): Define to 1 if not already defined.
74829         * lib/unlocked-io.hin: Remove file.
74830         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
74831         rather than trying to embed it here.
74832         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
74833         Reported by Padraig Brady.
74834
74835 2001-09-25  Volker Borchert  <bt@teknon.de>
74836
74837         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
74838         `result'.
74839
74840 2001-09-24  Jim Meyering  <meyering@lucent.com>
74841
74842         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
74843
74844 2001-09-23  Jim Meyering  <meyering@lucent.com>
74845
74846         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
74847         instead of the mere test for existence of mntent.h.  The latter
74848         would get a false-positive on AIX 3.4 systems.
74849         In the outer getmntent if-block, don't die if neither of the getmntent
74850         tests succeeds.  Instead, just fall through and continue with the
74851         remaining tests.
74852
74853 2001-09-23  Jim Meyering  <meyering@lucent.com>
74854
74855         * lib/mountlist.c: Remove useless parentheses in #if directives.
74856         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
74857         the deprecated MOUNTED symbol is no longer defined in mntent.h.
74858
74859 2001-09-22  Jim Meyering  <meyering@lucent.com>
74860
74861         * m4/gettext.m4: New file.  From gettext.
74862         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
74863         * m4/progtest.m4: Likewise
74864         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
74865         * m4/glibc21.m4: Likewise.
74866
74867         * m4/libintl.m4: Remove.  No longer used.
74868
74869 2001-09-22  Jim Meyering  <meyering@lucent.com>
74870
74871         * lib/localcharset.c: Update from latest gettext.
74872         * lib/config.charset: Likewise.
74873
74874 2001-09-20  Jim Meyering  <meyering@lucent.com>
74875
74876         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
74877         strtoimax.
74878         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
74879         strtoumax.
74880
74881 2001-09-20  Jim Meyering  <meyering@lucent.com>
74882
74883         * lib/xstrtol.c (strtoimax): Guard declaration with
74884         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
74885         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
74886         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
74887         (strtoumax): Likewise, for completeness (it wasn't necessary).
74888
74889 2001-09-17  Paul Eggert  <eggert@twinsun.com>
74890
74891         * lib/strtoimax.c (HAVE_LONG_LONG):
74892         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
74893         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
74894         to work around bug in IBM C compiler.
74895
74896 2001-09-17  Jim Meyering  <meyering@lucent.com>
74897
74898         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
74899         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
74900         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
74901         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
74902         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
74903         whenever the right hand side need not be expanded by the shell.
74904
74905 2001-09-16  Paul Eggert  <eggert@twinsun.com>
74906
74907         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
74908         library.  It's not correct, as some older glibcs are buggy.
74909         fnmatch wasn't fixed until glibc 2.2.
74910
74911         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
74912         special shell magic here.
74913
74914 2001-09-16  Jim Meyering  <meyering@lucent.com>
74915
74916         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
74917         * m4/jm-macros.m4: Require it.
74918
74919 2001-09-16  Jim Meyering  <meyering@lucent.com>
74920
74921         * lib/mkdir.c: New file.
74922
74923 2001-09-15  Jim Meyering  <meyering@lucent.com>
74924
74925         * m4/jm-macros.m4: Check for help2man.
74926
74927 2001-09-11  Jim Meyering  <meyering@lucent.com>
74928
74929         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
74930         The body, by Paul Eggert, was moved here from configure.in.
74931         * m4/jm-macros.m4: Require UTILS_HOST_OS.
74932
74933 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74934
74935         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
74936         (jm_PREREQ): Use it.
74937
74938 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74939
74940         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
74941         Use ssize_t, not int, to store result of readlink.
74942         Check for ssize_t overflow as well as size_t overflow,
74943         as POSIX says the result of readlink is implementation-defined
74944         when ssize_t overflows.
74945         Remove unnecessary cast to char*.
74946         Use free+malloc instead of realloc, as the storage doesn't need
74947         to be preserved and it's clearer and can be more efficient that way.
74948         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
74949         * lib/xreadlink.h (xreadlink): Update prototype.
74950
74951 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74952
74953         * lib/xgetcwd.c: Revert some of the previous change; intead,
74954         fix the HAVE_GETCWD_NULL code to behave more like the
74955         !HAVE_GETCWD_NULL code used to.
74956
74957         Include "xalloc.h".
74958         (xgetcwd): Do not return NULL when memory is exhausted; instead,
74959         invoke xalloc_die.
74960
74961 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74962
74963         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
74964         sys/param.h, as pathmax.h includes them.
74965
74966 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74967
74968         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
74969         (jm_PREREQ_XGETCWD): New macro.
74970
74971         * m4/getcwd.m4: New file.
74972
74973 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74974
74975         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
74976         like the HAVE_GETCWD_NULL code.
74977         Include pathmax.h if not HAVE_GETCWD.
74978         Do not include xalloc.h.
74979         (INITIAL_BUFFER_SIZE): New symbol.
74980         Do not use xmalloc / xrealloc, since the caller is responsible for
74981         handling errors.  Preserve errno around `free' during failure.
74982         Do not overrun buffer when using getwd.
74983
74984 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74985
74986         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
74987         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
74988         getcwd (NULL, 0).
74989
74990 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74991
74992         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
74993         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
74994         spotted by Jim Meyering.
74995
74996 2001-09-03  Jim Meyering  <meyering@lucent.com>
74997
74998         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
74999         failure.
75000
75001 2001-09-02  Jim Meyering  <meyering@lucent.com>
75002
75003         * lib/error.c: Update from GNU libc.
75004
75005 2001-09-01  Jim Meyering  <meyering@lucent.com>
75006
75007         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
75008         Used by df.
75009
75010 2001-09-01  Jim Meyering  <meyering@lucent.com>
75011
75012         * lib/xreadlink.c: New file.
75013         * lib/xreadlink.h: New file.
75014         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
75015         xreadlink.h.
75016
75017         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
75018         doesn't conflict with sparc Solaris 7's definition in
75019         /usr/include/sys/int_types.h.
75020
75021         * lib/exclude.c: Use `""', not `<>' to #include non-system header
75022         files.
75023         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
75024         and strncasecmp as r-values.  Unixware didn't have declarations.
75025
75026 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75027
75028         * lib/xstrtol.h: Add copyright notice.
75029         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
75030         LONGINT_INVALID_SUFFIX_CHAR.
75031
75032 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75033
75034         * lib/xstrtol.c (strtoimax): New decl.
75035
75036 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75037
75038         * lib/xgetcwd.c: Don't include pathmax.h.
75039         Include stdlib.h and unistd.h if available.
75040         Include xalloc.h.
75041         (xmalloc, xstrdup, free): Remove decls.
75042         (xgetcwd): Don't assume sizes fit in unsigned.
75043         Check for overflow when computing sizes.
75044         Simplify reallocation code.
75045
75046 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75047
75048         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
75049         a directory's st_size can have an arbitrary value, so the old
75050         usage could waste an arbitrary amount of memory.  All uses
75051         changed.
75052         * lib/savedir.h: Update prototype.
75053
75054 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75055
75056         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
75057
75058         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
75059         old strtoimax.c.
75060
75061         Also, make the following further changes to make this file's
75062         configuration more similar to that of strtol.c:
75063         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
75064         (strtoumax, uintmax_t, strtoull, strtol): Remove.
75065         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
75066         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
75067         changed to signed values.
75068
75069         And make the following changes as well:
75070         Fix copyright notice, as 1999 was missing.
75071         (verify): New macro.
75072         (strtoimax): Check sizes at compile-time, not run-time.
75073         Prefer strtol to strtoll if both work.
75074         (main): Remove; it was not that useful and was a pain to maintain.
75075
75076         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
75077
75078 2001-08-31  Jim Meyering  <meyering@lucent.com>
75079
75080         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
75081         Use an initial, malloc'd, buffer of length 128 rather than
75082         a statically allocated one of length 1024.
75083
75084 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75085
75086         Simplify code, partly by assuming autoconf 2.52 semantics.
75087
75088         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
75089
75090         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
75091         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
75092         All uses removed.
75093         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
75094         Move AC_REQUIRE to next-to-top level, to avoid confusion.
75095         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
75096         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
75097         jm_AC_HEADER_INTTYPES_H.
75098         * m4/jm-macros.m4 (jm_MACROS): Likewise.
75099
75100         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
75101
75102         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75103         Quote first arg of AC_DEFUN.
75104         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
75105         since they are needed to parse the include file even if we need
75106         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
75107         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
75108         but with opposite signedness.
75109
75110 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75111
75112         Merge 'exclude' changes from tar 1.13.22.
75113         This fixes one or two unlikely storage allocation overflow bugs,
75114         but doesn't change user-visible behavior otherwise.
75115
75116 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75117
75118         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
75119         (jm_PREREQ_EXCLUDE): New macro.
75120
75121 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75122
75123         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
75124         tm to be declared.
75125
75126 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75127
75128         * lib/hash.c: Remove '2001' from copyright notice.
75129
75130 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75131
75132         * lib/full-write.h: New file.
75133         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
75134         * lib/full-write.c: Correct credits, as cccp.c no longer
75135         exists and anyway it was so heavily changed from the old cccp
75136         code as to be unrecognizable.  Include full-write.h.
75137         (full_write) Return size_t, with short writes meaning failure.
75138         All callers changed.  This fixes a bug with large buffers
75139         on 64-bit hosts.
75140         * lib/utime.c: Include full-write.h.
75141
75142 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75143
75144         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
75145         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
75146         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
75147         Include if available.
75148         (<xalloc.h>): Include
75149         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
75150         (verify): New macro.  Use it to verify that EXCLUDE macros do not
75151         collide with FNM macros.
75152         (struct patopts): New struct.
75153         (struct exclude): Use it, as exclude patterns now come with options.
75154         (new_exclude): Support above changes.
75155         (new_exclude, add_exclude_file):
75156         Initial size must now be a power of two to simplify overflow checking.
75157         (free_exclude, fnmatch_no_wildcards): New function.
75158         (excluded_filename): No longer requires options arg, as the options
75159         are determined by add_exclude.  Now returns bool, not int.
75160         (excluded_filename, add_exclude):
75161         Add support for the fancy new exclusion options.
75162         (add_exclude, add_exclude_file): Now takes int options arg.
75163         Check for arithmetic overflow when computing sizes.
75164         (add_exclude_file): xrealloc might modify errno, so don't
75165         realloc until after errno might be used.
75166
75167         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
75168         New macros.
75169         (free_exclude): New decl.
75170         (add_exclude, add_exclude_file): Now takes int options arg.
75171         (excluded_filename): No longer requires options arg, as the options
75172         are determined by add_exclude.  Now returns bool, not int.
75173
75174 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75175
75176         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
75177
75178 2001-08-27  Jim Meyering  <meyering@lucent.com>
75179
75180         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
75181
75182         * lib/version-etc.c (N_): Remove definition.
75183         Revert most of last change.
75184         Instead, simply don't mark the `Copyright...' string for translation.
75185         Based on advice from Paul Eggert.
75186
75187         * lib/strtoxmax.c: Tweak comment.
75188
75189 2001-08-26  Jim Meyering  <meyering@lucent.com>
75190
75191         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
75192
75193         * m4/xstrtoimax.m4: New file.
75194         * m4/xstrtoumax.m4: Add comments explaining why we
75195         AC_REPLACE_FUNCS(strtol).
75196
75197 2001-08-26  Jim Meyering  <meyering@lucent.com>
75198
75199         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
75200         of copyright with `%s' so translators don't get an untranslated
75201         message in 2002.
75202         (COPYRIGHT_YEAR): Define.
75203         (version_etc): Use fprintf rather than fputs.
75204         Suggestion from Ulrich Drepper.
75205
75206         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
75207
75208         * lib/strtoll.c: New file, from GNU libc.
75209         * lib/xstrtoimax.c: New file.
75210
75211         * lib/xstrtol.h: Add xstrtoimax.
75212         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
75213         * lib/strtoimax.c: New file.  Likewise, but first define
75214         STRTOUXMAX_SIGNED.
75215
75216         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
75217         ...
75218         * lib/strtoxmax.c: ... then renamed to this.
75219
75220 2001-08-18  Paul Eggert  <eggert@twinsun.com>
75221
75222         * m4/inttypes.m4: Add AC_PREREQ(2.13).
75223         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
75224         (jm_AC_TYPE_INTMAX_T): New macro.
75225         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
75226
75227         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
75228
75229         * m4/longlong.m4: Renamed from ulonglong.m4.
75230         * m4/inttypes.m4: Renamed from inttypes_h.m4.
75231         * m4/uintmax_t.m4: Removed.
75232
75233 2001-08-13  Paul Eggert  <eggert@twinsun.com>
75234
75235         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
75236         Port to Solaris 8, where 'sed' requires a space after the 'r'
75237         command, and where sh dislikes "$/".  Clean up the spacing a bit.
75238         Redirect output to $tmp just once.
75239
75240 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
75241
75242         * lib/addext.c (<errno.h>): Include.
75243         (errno): Declare if not defined.
75244         (addext): Work correctly when pathconf returns -1 and leaves
75245         errno alone because there is no limit.  Also, work even if
75246         pathconf returns a value greater than SIZE_MAX.
75247
75248 2001-08-12  Jim Meyering  <meyering@lucent.com>
75249
75250         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
75251         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
75252         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
75253         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
75254         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
75255         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
75256         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
75257         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
75258         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
75259         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
75260         utime.m4, utimes.m4, xstrtoumax.m4:
75261         Quote the first argument in each use of AC_DEFUN.
75262
75263 2001-08-12  Jim Meyering  <meyering@lucent.com>
75264
75265         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
75266         Simply `return getcwd (NULL, 0);'.
75267         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
75268         Use 1300 as initial value for length, not PATH_MAX.
75269
75270         * lib/pathmax.h: Clean up cpp syntax.
75271
75272 2001-08-12  Jim Meyering  <meyering@lucent.com>
75273
75274         * lib/gettimeofday.c: New file.
75275         * lib/gtod.h: New file.
75276         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
75277
75278 2001-08-05  Jim Meyering  <meyering@lucent.com>
75279
75280         * m4/jm-macros.m4: Require autoconf-2.52.
75281
75282 2001-08-04  Jim Meyering  <meyering@lucent.com>
75283
75284         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
75285         stmt, to get in sync with glibc.
75286
75287 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75288
75289         The following changes are from gettext 0.10.39 as maintained by
75290         Bruno Haible.
75291
75292         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
75293         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
75294         with inverted sense.  All uses changed.
75295
75296         * lib/mbswidth.c: Don't include <limits.h>.
75297         Include <stdlib.h> and <string.h> unconditionally.
75298         (iswcntrl, mbsinit, ISCNTRL): New macros.
75299         (mbsnwidth): Use K&R style function declarations.
75300         Don't bother checking for MB_LEN_MAX == 1, since the compiler
75301         can optimize it when MB_CUR_MAX == 1.
75302         The width of control characters is zero, not 1.
75303
75304 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75305
75306         The following changes are from gettext 0.10.39 as maintained by
75307         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
75308
75309         * m4/codeset.m4: Upgrade to serial AM1.
75310         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
75311         all uses changed.  Quote first arg of AC_DEFUN.
75312         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
75313
75314         * m4/iconv.m4: Upgrade to serial AM2.
75315         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
75316         Add --with-libconv-prefix.
75317         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
75318         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
75319         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
75320         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
75321         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
75322
75323         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
75324         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
75325         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
75326         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
75327         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
75328         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
75329         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
75330         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
75331         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75332
75333         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
75334         string.h any more.
75335
75336         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
75337         not the default value.
75338
75339         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
75340         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
75341         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
75342         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
75343         Also check for iswcntrl, used for wcwidth fallback.
75344         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
75345         to Autoconf 2.13.
75346
75347 2001-08-03  Jim Meyering  <meyering@lucent.com>
75348
75349         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
75350         as it was in the original.  Reported by Paul Eggert.
75351
75352 2001-07-16  Jim Meyering  <meyering@lucent.com>
75353
75354         * m4/gettimeofday.m4: New file.
75355         Prompted by a report from Bernhard Baehr.
75356
75357 2001-07-15  Jim Meyering  <meyering@lucent.com>
75358
75359         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
75360         stuff. Now it's in ../Makefile.cfg.
75361
75362 2001-07-15  Jim Meyering  <meyering@lucent.com>
75363
75364         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
75365         (BUILT_SOURCES): Add unlocked-io.h.
75366         (io_functions): Define.
75367         (unlocked-io.h): New rule.
75368         (DISTCLEANFILES): Add unlocked-io.h.
75369         (all-local): Depend on unlocked-io.h, to ensure it is created.
75370
75371         * lib/unlocked-io.hin: New file
75372
75373         * lib/regex.c: Update from glibc.
75374
75375 2001-07-05  Jim Meyering  <meyering@lucent.com>
75376
75377         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
75378         recommendation.
75379         (libfetish_a_SOURCES): Put all .h files here instead.
75380         Remove a thus-exposed (better checks in automake) duplicate and
75381         two unnecessary .h files.
75382
75383 2001-07-04  Jim Meyering  <meyering@lucent.com>
75384
75385         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
75386         that generates jm-glibc-io.m4 so that it doesn't trigger any make
75387         distcheck failure.
75388
75389 2001-07-02  Jim Meyering  <meyering@lucent.com>
75390
75391         The following changes were prompted by suggestions from Bruno Haible.
75392
75393         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
75394         is now generated.
75395         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
75396         definition of EXTRA_DIST.
75397         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
75398         ensure that the generated file is created/updated whenever the list
75399         of $(unlocked_functions) is changed.
75400         (jm-glibc-io.m4): New rule.
75401         (unlocked-io.h): New rule -- currently unused.
75402
75403 2001-06-24  Jim Meyering  <meyering@lucent.com>
75404
75405         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
75406         unmatched right bracket, rather than kludging it with an extra,
75407         falsely-matching quote in a comment.  Patch by Akim Demaille.
75408
75409 2001-06-11  Jim Meyering  <meyering@lucent.com>
75410
75411         * lib/regex.c: Update from GNU libc.
75412
75413 2001-05-27  Jim Meyering  <meyering@lucent.com>
75414
75415         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
75416         Check for ut_type in struct utmp.
75417
75418 2001-05-27  Jim Meyering  <meyering@lucent.com>
75419
75420         * lib/readutmp.h (UT_TYPE): Define.
75421
75422 2001-05-24  Jim Meyering  <meyering@lucent.com>
75423
75424         * lib/argmatch.c: Include "quote.h".
75425         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
75426         quote function.  Reported by Göran Uddeborg.
75427
75428 2001-05-22  Jim Meyering  <meyering@lucent.com>
75429
75430         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
75431         now that we use the package-supplied version unconditionally.
75432         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
75433
75434 2001-05-21  Jim Meyering  <meyering@lucent.com>
75435
75436         * m4/regex.m4: Change a couple backticks to single quotes to avoid
75437         shell syntax errors.
75438
75439 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75440
75441         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
75442
75443 2001-05-20  Paul Eggert  <eggert@twinsun.com>
75444
75445         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
75446         Don't bother to check library strftime, since
75447         we'll be using our own my_strftime function anyway.
75448         Define my_strftime instead of strftime.
75449
75450 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
75451
75452         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
75453         which is not yet declared.
75454
75455 2001-05-15  Jim Meyering  <meyering@lucent.com>
75456
75457         * m4/regex.m4: Use proper quoting so brackets appear in the test
75458         program.
75459         Reported by, and with help from, Bruno Haible.
75460
75461 2001-05-13  Jim Meyering  <meyering@lucent.com>
75462
75463         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
75464         undefined.
75465
75466 2001-05-11  Paul Eggert  <eggert@twinsun.com>
75467
75468         dirname code cleanup.  base_name now behaves more compatibly
75469         with POSIX basename when given file names that have trailing
75470         slashes, and similarly for dir_name.  Add new primitives
75471         base_len and dir_len.  Put the directory-name-related decls
75472         into dirname.h.
75473
75474         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
75475         * lib/backupfile.c (base_name): Likewise.
75476         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
75477         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
75478         * lib/makepath.c (strip_trailing_slashes): Likewise.
75479         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
75480         ISSLASH): Likewise.
75481         * lib/rename.c (strip_trailing_slashes): Likewise.
75482         * lib/same.c (base_name): Likewise.
75483         * lib/stripslash.c (ISSLASH): Likewise.
75484
75485         * lib/addext.c: Include <dirname.h> after size_t is defined.
75486         * lib/backupfile.c: Likewise.
75487
75488         * lib/addext.c (addext): Use base_len to trim redundant
75489         trailing slashes instead of doing it ourselves.
75490         But do not trim the last slash if it is not redundant.
75491
75492         * lib/backupfile.c (find_backup_file_name,
75493         max_backup_version): Use base_len instead of rolling it ourselves.
75494         Handle the case of "" and (on DOS) "C:" correctly.
75495
75496         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
75497         needed. Include <string.h>, <dirname.h>.
75498         (base_name): Allow file names ending in slashes, other than names
75499         that are all slashes.  In this case, return the basename followed
75500         by the slashes.  This is more general, and can be used in places
75501         where the original base_name purposely had an assertion failure.
75502         (base_len): New function.
75503
75504         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
75505         Do not include <assert.h>; no longer needed.
75506         Include xalloc.h.
75507         (memrchr): Remove decl.
75508         (dir_name_r): Remove.
75509         (dir_len): Renamed from dirlen.  All callers changed.
75510         Rewrite in terms of base_name, for simplicity and consistency.
75511         (dir_name): Never return NULL.  All callers changed.
75512         Do not include <stdlib.h> in test program; no longer needed.
75513         return 0; is fine for test program.
75514
75515         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
75516         New macros.
75517         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
75518
75519         * lib/path-concat.c (path_concat): Use base_len to compute
75520         base length, not strlen; this means we cannot rely on memcpy
75521         to null-terminate.
75522
75523         * lib/same.c (STREQ): Remove.
75524         (same_name): Handle the case where the basename ends in trailing '/'.
75525
75526         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
75527         a slash was stripped.  Do not strip the last slash after a
75528         file system prefix.
75529
75530 2001-05-11  Paul Eggert  <eggert@twinsun.com>
75531
75532         * lib/Makefile.am (libfetish_a_SOURCES):
75533         Add strftime.c, since we now compile it on all hosts.
75534
75535         * lib/strftime.c (my_strftime):
75536         Define to nstrftime if emacs, but only if my_strftime is not defined.
75537         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
75538         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
75539         Add one more extra argument: a nanoseconds value.
75540         All uses changed.
75541         (ns): New macro.
75542         (my_strftime function): Add %N format.
75543         (emacs_strftimeu): Renamed from emacs_strftime,
75544         with extra ut argument.
75545
75546 2001-05-09  Paul Eggert  <eggert@twinsun.com>
75547
75548         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
75549
75550 2001-04-21  Jim Meyering  <meyering@lucent.com>
75551
75552         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
75553         doesn't interfere.
75554
75555 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75556
75557         * m4/ftruncate.m4: Check for chsize.
75558         Link with ftruncate.o unconditionally if ftruncate is missing.
75559         This was required when cross-compiling to i586-mingw32msvc.
75560
75561 2001-04-08  Jim Meyering  <meyering@lucent.com>
75562
75563         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
75564         recomputed; that's necessary when the offset spans a DST transition.
75565         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
75566
75567 2001-04-02  Jim Meyering  <meyering@lucent.com>
75568
75569         * lib/regex.h, regex.c: Update from GNU libc.
75570
75571 2001-03-24  Jim Meyering  <meyering@lucent.com>
75572
75573         * m4/jm-macros.m4: Require autoconf-2.49d.
75574
75575 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
75576
75577         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
75578
75579 2001-03-19  Paul Eggert  <eggert@twinsun.com>
75580
75581         * lib/version-etc.c (version_etc_copyright): Update to 2001.
75582
75583 2001-03-17  Jim Meyering  <meyering@lucent.com>
75584
75585         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
75586         now that the version in autoconf is equivalent.
75587         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
75588
75589         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
75590         Suggestion from Akim Demaille.
75591
75592         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
75593         (jm_PREREQ_TEMPNAME): New function.
75594
75595 2001-03-16  Paul Eggert  <eggert@twinsun.com>
75596
75597         * lib/tempname.c (uint64_t): Define to uintmax_t if
75598         not defined, and if UINT64_MAX is not defined.
75599         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
75600         Reported by John David Anglin.
75601
75602 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
75603
75604         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
75605         resolve alias if codeset is empty.
75606         * lib/config.charset (BeOS): Use wildcard syntax.
75607
75608 2001-03-13  Jim Meyering  <meyering@lucent.com>
75609
75610         * lib/path-concat.c (path_concat)
75611         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
75612         concatenating e.g., `C:' and `foo'.
75613         From Bruno Haible.
75614
75615 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75616
75617         * lib/localcharset.c (locale_charset): Don't use
75618         setlocale(LC_CTYPE,NULL). Don't return NULL.
75619         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
75620
75621 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75622
75623         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
75624         support for DOS/DJGPP.
75625
75626 2001-03-01  Paul Eggert  <eggert@twinsun.com>
75627
75628         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
75629         lacks mkstemp.  Compile our own tempname.c if we compile our own
75630         mkstemp.c, as mkstemp relies on tempname.
75631
75632 2001-03-01  Jim Meyering  <meyering@lucent.com>
75633
75634         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
75635         AH_VERBATIM really does output its argument verbatim.
75636
75637 2001-02-28  Paul Eggert  <eggert@twinsun.com>
75638
75639         * lib/Makefile.am (libfetish_a_SOURCES):
75640         Add dup-safer.c, fopen-safer.c.
75641         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
75642
75643         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
75644         * lib/unistd-safer.h: New files.
75645
75646 2001-02-25  Paul Eggert  <eggert@twinsun.com>
75647
75648         The mkstemp replacement is taken from glibc 2.2.2, with some
75649         portability fixes for use outside glibc, as follows:
75650
75651         * lib/tempname.c (struct_stat64): New macro.
75652         (direxists, __gen_tempname): Use it.
75653         This avoids a portability problem with Solaris 8.
75654
75655         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
75656         (<stddef.h>, <stdint.h>, <string.h>):
75657         Include only if STDC_HEADERS || _LIBC.
75658         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
75659         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
75660         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
75661         (__set_errno): Define this macro if <errno.h> doesn't.
75662         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
75663         Define these macros if <stdio.h> doesn't.
75664         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
75665         Define these macros if <sys/stat.h>
75666         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
75667         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
75668         __xstat64): Define if not _LIBC.
75669         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
75670         (__gen_tempname): Invoke gettimeofday only if
75671         HAVE_GETTIMEOFDAY || _LIBC;
75672         otherwise, fall back on plain "time".
75673         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
75674
75675         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
75676
75677         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
75678
75679 2001-02-18  Paul Eggert  <eggert@twinsun.com>
75680
75681         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
75682
75683 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75684
75685         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
75686         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
75687         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
75688         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75689
75690 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75691
75692         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
75693         Remove workaround macros for hosts that have mbrtowc but not
75694         mbstate_t, as we now insist on proper declarations for both
75695         before using mbrtowc.
75696
75697 2001-02-17  Jim Meyering  <meyering@lucent.com>
75698
75699         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
75700         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
75701         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
75702         UnixWare 7.1.1.
75703
75704         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
75705         rather than AC_CACHE_VAL.
75706
75707 2001-02-17  Jim Meyering  <meyering@lucent.com>
75708
75709         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
75710         around included file name.
75711
75712         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
75713
75714         * lib/strftime.c: Update from GNU libc (the only changes were to
75715         comments).
75716
75717 2001-02-17  Jim Meyering  <meyering@lucent.com>
75718
75719         * lib/regex.c: Update from libc.
75720
75721 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
75722
75723         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
75724         clash.
75725
75726 2001-02-16  Paul Eggert  <eggert@twinsun.com>
75727
75728         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
75729         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
75730         Reported by Mark Hounschell via Paul Eggert.
75731
75732 2001-02-07  Jim Meyering  <meyering@lucent.com>
75733
75734         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
75735
75736 2001-02-05  Jim Meyering  <meyering@lucent.com>
75737
75738         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
75739         it includes the patch required for `large file' support with at least
75740         HP-UX's 10.20 /bin/cc.
75741
75742 2001-02-03  Jim Meyering  <meyering@lucent.com>
75743
75744         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
75745         AS_IF, now that it works once again (mysteriously).
75746         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75747
75748 2001-01-30  Jim Meyering  <meyering@lucent.com>
75749
75750         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
75751         * m4/chown.m4: Rename conftestchown to conftest.chown.
75752         * m4/rename.m4: s/conftestdir/conftest.d1/ and
75753         s/conftestdir2/conftest.d2/.
75754         * m4/utimes.m4: s/conftestdata/conftest.data/
75755         Inspired by Pavel Roskin's change in autoconf.
75756
75757 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
75758
75759         * lib/config.charset: Update for FreeBSD 4.2.
75760
75761 2001-01-27  Jim Meyering  <meyering@lucent.com>
75762
75763         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
75764         a use of AS_IF.
75765         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75766
75767 2001-01-26  Jim Meyering  <meyering@lucent.com>
75768
75769         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
75770         quotearg.c includes it.
75771
75772 2001-01-26  Jim Meyering  <meyering@lucent.com>
75773
75774         * lib/quotearg.c: Include stddef.h.
75775         * lib/quote.c: Include stddef.h.
75776         Reported by Axel Kittenberger.
75777
75778         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
75779         line in double quotes so that it evokes a better diagnostic.
75780         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
75781         Reported by Axel Kittenberger.
75782
75783 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
75784
75785         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
75786         as if it was a `charset'.
75787
75788 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75789
75790         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
75791         has const.
75792
75793 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75794
75795         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
75796         to avoid a warning.  Add back 'const' to inptr.
75797
75798 2001-01-20  Jim Meyering  <meyering@lucent.com>
75799
75800         Be sure that headers are checked before used in code compiled
75801         for the type checks.
75802         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
75803         In place of that, invoke jm_CHECK_ALL_TYPES.
75804         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
75805         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
75806         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
75807         The check for ssize_t was mistakenly run before the test for unistd.h.
75808
75809         The configure-time check for stdbool.h was missing.
75810         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
75811         (jm_PREREQ_HASH): New function.
75812
75813 2001-01-17  Jim Meyering  <meyering@lucent.com>
75814
75815         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
75816         for autoconf-2.49c.
75817         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
75818
75819 2001-01-16  Jim Meyering  <meyering@lucent.com>
75820
75821         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
75822         From Bruno Haible.
75823
75824 2001-01-14  Jim Meyering  <meyering@lucent.com>
75825
75826         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
75827         foo and bar.  Create conftestdir/ in the script, not in the C code.
75828         Remove directories in the script, not in the C code.
75829         Remove conftestdir{,2} before trying to create the directory.
75830         Make the entire configure script fail if the mkdir fails.
75831
75832 2001-01-14  Jim Meyering  <meyering@lucent.com>
75833
75834         * lib/rename.c: New file.  From Volker Borchert.
75835         Include stdlib.h, string.h or strings.h, and xalloc.h.
75836         Use strip_trailing_slashes rather than open-coding it.
75837
75838 2001-01-03  Paul Eggert  <eggert@twinsun.com>
75839
75840         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
75841
75842 2001-01-03  Jim Meyering  <meyering@lucent.com>
75843
75844         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
75845         of local `inptr' to avoid warning with some system declarations of
75846         iconv.
75847
75848 2001-01-02  Volker Borchert  <bt@teknon.de>
75849
75850         * m4/rename.m4: New file.
75851         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
75852
75853 2001-01-01  Jim Meyering  <meyering@lucent.com>
75854
75855         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
75856         even on systems with utmpx.h.  It's necessary for the declaration of
75857         utmp's ut_user member.  Reported by Andreas Jaeger.
75858
75859         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
75860         available. They are required for the declarations of getgrgid and
75861         getpwuid resp.
75862         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
75863         Reported by Andreas Jaeger.
75864
75865 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
75866
75867         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
75868         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
75869         so `make install' also works in VPATH builds.
75870
75871 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
75872
75873         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
75874         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
75875         can be used in subdirectories.
75876
75877 2000-12-29  Paul Eggert  <eggert@twinsun.com>
75878
75879         * lib/modechange.c: Do not assume that mode_t uses the
75880         traditional octal encoding.  E.g. "chmod 1 FOO" should set
75881         the other-execute bit of FOO even if S_IXOTH != 1.
75882
75883         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
75884         WOTH, XOTH, ALLM): New macros.
75885         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
75886          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
75887         Use them.
75888         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
75889         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
75890         (mode_compile):
75891         No need to use uintmax_t; unsigned long is long enough.
75892         Don't bother to get suffix since we don't use it.
75893
75894 2000-12-26  Jim Meyering  <meyering@lucent.com>
75895
75896         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
75897         better with autoheader.
75898
75899 2000-12-24  Jim Meyering  <meyering@lucent.com>
75900
75901         * lib/hash.c (is_prime): Return explicit boolean values.
75902         (hash_get_first): Return NULL to appease Irix5.6's 89.
75903         Reported by Nelson Beebe.
75904
75905 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
75906
75907         * lib/localcharset.c (locale_charset): Add support for Win32.
75908
75909 2000-12-18  Paul Eggert  <eggert@twinsun.com>
75910
75911         * lib/physmem.h, lib/physmem.c: New files.
75912
75913         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
75914         (noinst_HEADERS): Add physmem.h.
75915
75916         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
75917         't' for compatibility with Solaris 8 sort.
75918
75919 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
75920
75921         * lib/config.charset: Add support for BeOS.
75922
75923 2000-12-17  Jim Meyering  <meyering@lucent.com>
75924
75925         * m4/dos.m4 (jm_AC_DOS): New file and macro.
75926         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
75927
75928 2000-12-16  Jim Meyering  <meyering@lucent.com>
75929
75930         This bug had a serious impact on chown: `chown N:M FILE' (for integer
75931         N and M) would have treated it like `chown N:N FILE'.
75932
75933         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
75934
75935 2000-12-16  Jim Meyering  <meyering@lucent.com>
75936
75937         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
75938         SHELLS_FILE to a file name that's useful on djgpp systems.
75939         Include stdlib.h.
75940         (ADDITIONAL_DEFAULT_SHELLS): Define.
75941         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
75942         Based mostly on a patch from Prashant TR.
75943
75944 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
75945
75946         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
75947         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
75948         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
75949
75950 2000-12-08  Andreas Schwab  <schwab@suse.de>
75951
75952         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
75953         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
75954
75955 2000-12-07  Jim Meyering  <meyering@lucent.com>
75956
75957         * lib/stripslash.c (ISSLASH): Define.
75958         (strip_trailing_slashes): Use ISSLASH rather than comparing against
75959         `/'.
75960         From Prashant TR.
75961
75962         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
75963         (dir_name_r): Declare this function as static.
75964         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
75965         manifest itself on a name containing a mix of slashes and
75966         backslashes.
75967         Make this function work with names starting with a DOS-style
75968         drive letter and colon prefix.
75969         (dir_name): Append `.' if necessary.
75970         Based mostly on patches from Prashant TR and Eli Zaretskii.
75971
75972         * lib/dirname.h (dir_name_r): Remove prototype.
75973
75974 2000-12-06  Paul Eggert  <eggert@twinsun.com>
75975
75976         * m4/off_t-format.m4: Remove this file.
75977         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
75978
75979 2000-12-06  Jim Meyering  <meyering@lucent.com>
75980
75981         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
75982         replacement strtoull, we may well need the replacement strtoul, too.
75983         Check for declarations of strtoul and strtoull.
75984         Check for strtol.  Mainly as a cue to cause automake to include
75985         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
75986         Check for limits.h -- strtol.c needs it.
75987
75988 2000-12-05  Jim Meyering  <meyering@lucent.com>
75989
75990         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
75991
75992 2000-12-04  Jim Meyering  <meyering@lucent.com>
75993
75994         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
75995         Also include memory.h, stdlib.h, unistd.h if appropriate.
75996         Reported by Andreas Jaeger (conflicting declaration of malloc).
75997
75998 2000-12-02  Jim Meyering  <meyering@lucent.com>
75999
76000         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
76001         * m4/jm-macros.m4 (jm_MACROS): require it.
76002
76003 2000-12-02  Jim Meyering  <meyering@lucent.com>
76004
76005         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
76006
76007 2000-12-01  Paul Eggert  <eggert@twinsun.com>
76008
76009         * lib/memrchr.c: Include <config.h> before any system include file.
76010
76011 2000-11-30  Jim Meyering  <meyering@lucent.com>
76012
76013         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
76014
76015 2000-11-30  Jim Meyering  <meyering@lucent.com>
76016
76017         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
76018
76019 2000-11-29  Paul Eggert  <eggert@twinsun.com>
76020
76021         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
76022
76023 2000-11-26  Jim Meyering  <meyering@lucent.com>
76024
76025         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
76026
76027 2000-11-22  Paul Eggert  <eggert@twinsun.com>
76028
76029         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
76030         size of (size_t) -1; it's not portable.
76031
76032 2000-11-17  Jim Meyering  <meyering@lucent.com>
76033
76034         * lib/strstr.c: Update from GNU libc.
76035
76036 2000-11-17  Akim Demaille  <akim@epita.fr>
76037
76038         * lib/obstack.h: Formatting changes.
76039         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
76040         prevent type checking.
76041         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
76042         cast the value to (void *): assigning a `foo *' to a `void *'
76043         variable is valid.
76044         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
76045
76046 2000-11-16  Jim Meyering  <meyering@lucent.com>
76047
76048         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
76049
76050 2000-11-11  Jim Meyering  <meyering@lucent.com>
76051
76052         * lib/error.c: Add a couple #includes, merging from GNU libc version.
76053
76054 2000-11-10  Jim Meyering  <meyering@lucent.com>
76055
76056         * lib/obstack.h: Update from GNU libc.
76057         * lib/obstack.c: Likewise.
76058
76059 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
76060
76061         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
76062
76063 2000-11-06  Paul Eggert  <eggert@twinsun.com>
76064
76065         * lib/getusershell.c (setusershell): Use rewind rather than
76066         fseek/fseeko, to avoid configuration hassles with fseeko.
76067         Don't bother opening SHELLS_FILE if shellstream is NULL;
76068         it's not necessary.
76069
76070 2000-11-05  Jim Meyering  <meyering@lucent.com>
76071
76072         * lib/makepath.h (make_dir): Declare.
76073         * lib/makepath.c (make_dir): Remove `static' attribute.
76074         Tweak a comment.
76075
76076 2000-11-04  Jim Meyering  <meyering@lucent.com>
76077
76078         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
76079
76080 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
76081
76082         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
76083         last one in a bucket, advance to the next bucket.
76084
76085 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
76086
76087         * lib/fnmatch.c: Do not comment out all the code if we are using
76088         the GNU C library, because in some cases we are replacing buggy
76089         code in the GNU C library itself.
76090
76091 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
76092
76093         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
76094         (regex_compile): Catch bogus \(\1\).
76095
76096 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76097
76098         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
76099         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
76100         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
76101
76102 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76103
76104         * lib/error.h, getline.h, modechange.h:
76105         Remove "2000" from Copyright line, as the file hasn't been
76106         changed this year other than in the copyright notice.
76107
76108         * lib/xalloc.h: Add "2000" to Copyright line, as this file
76109         was changed this year.
76110
76111 2000-10-29  Jim Meyering  <meyering@lucent.com>
76112
76113         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
76114         renaming.
76115         * m4/ls-mntd-fs.m4: Likewise
76116
76117 2000-10-29  Jim Meyering  <meyering@lucent.com>
76118
76119         * lib/xstat.in: Fix grammar in comment.
76120
76121 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
76122
76123         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
76124         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
76125         doesn't define __restrict_arr.
76126
76127 2000-10-28  Jim Meyering  <meyering@lucent.com>
76128
76129         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
76130         (jm_PREREQ_MEMCHR): New function.
76131
76132 2000-10-28  Jim Meyering  <meyering@lucent.com>
76133
76134         * lib/memchr.c: Update from libc.
76135         Adjust for portability:
76136         [HAVE_STDLIB_H]: Include stdlib.h.
76137         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
76138         Undef __memchr, too.
76139         [!weak_alias]: Define __memchr to memchr.
76140
76141         * lib/regex.c: Update from libc.
76142         * lib/regex.h: Likewise.
76143         * lib/getopt1.c: Likewise.
76144         * lib/memcmp.c: Likewise.
76145
76146         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
76147         Avoid using fseek, when possible -- it's broken by design.
76148         Patch by Ulrich Drepper.
76149
76150 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
76151
76152         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
76153         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
76154         Giving in to popular pressure to shut up the compiler with casts.
76155
76156 2000-10-26  Jim Meyering  <meyering@lucent.com>
76157
76158         * lib/strftime.c: Update from libc.
76159
76160 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
76161
76162         * regex.c: More `unsigned char' -> `re_char' changes.
76163         Also change several `int' into `re_wchar_t'.
76164         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
76165         (PUSH_FAILURE_POINTER): Don't cast any more.
76166         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
76167         We want GCC to complain, since this piece of code makes
76168         re_match non-reentrant, which *should* be fixed.
76169         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
76170         (EXTEND_BUFFER): Use RETALLOC.
76171         (SET_LIST_BIT): Don't cast.
76172         (re_wchar_t): New type.
76173         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
76174         that those two functions will always properly return.
76175         (IMMEDIATE_QUIT_CHECK): Cast to void.
76176         (analyse_first): Use recursion rather than an explicit stack.
76177         (re_compile_fastmap): Can't fail anymore.
76178         (re_search_2): Don't check re_compile_fastmap for failure.
76179         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
76180         Now also sets the new value (passed in a new argument).
76181         (re_match_2_internal): Use it.
76182         Also, use a new var `reg' of type size_t when looping through regs
76183         rather than reuse the inappropriate `mcnt'.
76184
76185 2000-10-25  Jim Meyering  <meyering@lucent.com>
76186
76187         * lib/obstack.c: Update from libc.
76188
76189 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
76190
76191         * regex.c (regex_compile): Change the way of handling a range from
76192         a char less than 256 to a char not less than 256.
76193
76194 2000-10-24  Andrew Innes  <andrewi@gnu.org>
76195
76196         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
76197         NT-Emacs only.
76198         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
76199         so that re_search functions only quit when callers expect them to.
76200
76201 2000-10-23  Jim Meyering  <meyering@lucent.com>
76202
76203         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
76204         wrong.  That set_locale call must not have any side effects.
76205         From Paul Eggert.
76206
76207 2000-10-22  Jim Meyering  <meyering@lucent.com>
76208
76209         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
76210         [CYCLIC]: Remove now-unused definition.
76211
76212         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
76213         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
76214         Suggestion from Ulrich Drepper.
76215
76216 2000-10-21  Jim Meyering  <meyering@lucent.com>
76217
76218         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
76219         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
76220         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
76221
76222 2000-10-21  Jim Meyering  <meyering@lucent.com>
76223
76224         * lib/dirname.c (memrchr): Declare if necessary.
76225         (dir_name): Remove the restriction that there be no
76226         trailing slashes.  Now, this code skips past them, effectively
76227         ignoring them.
76228         [TEST_DIRNAME] (main): New unit tests.
76229
76230         * lib/memrchr.c: New file from GNU libc.
76231         Undef __memrchr, too.
76232         [!weak_alias]: Define __memrchr to memrchr.
76233         Guard weak_alias use with `#ifdef weak_alias'.
76234
76235 2000-10-21  Jim Meyering  <meyering@lucent.com>
76236
76237         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
76238         (dir_name): Use dir_name_r.
76239         * lib/dirname.h (dir_name_r): Declare it.
76240
76241 2000-10-17  Jim Meyering  <meyering@lucent.com>
76242
76243         * lib/quote.h (PARAMS): Define and use.
76244         Reported by Akim Demaille.
76245
76246         * lib/getopt.c: Update from libc.
76247
76248 2000-10-16  Jim Meyering  <meyering@lucent.com>
76249
76250         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
76251         setlocale.
76252         From Jan Fedak.
76253
76254 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
76255
76256         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
76257
76258 2000-09-25  Jim Meyering  <meyering@lucent.com>
76259
76260         * lib/md5.h (rol): Define (from GnuPG).
76261
76262         * lib/sha.c: Give credit (GnuPG) where due.
76263         (M): Use rol rather than open-coding it.
76264         Add a FIXME comment.
76265
76266 2000-09-21  Jim Meyering  <meyering@lucent.com>
76267
76268         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
76269         Reported by Michael Stone.
76270
76271 2000-09-20  Jim Meyering  <meyering@lucent.com>
76272
76273         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
76274         (noinst_HEADERS): Add sha.h.
76275         Based on code from Scott G. Miller and from GnuPG.
76276
76277 2000-09-18  Jim Meyering  <meyering@lucent.com>
76278
76279         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
76280         LIBS. Otherwise, everyone ends up linking with -lelf for some
76281         configurations.
76282         Reported by Mike Stone.
76283
76284 2000-09-15  Jim Meyering  <meyering@lucent.com>
76285
76286         * lib/regex.c: Update from libc.
76287
76288 2000-09-10  Jim Meyering  <meyering@lucent.com>
76289
76290         * lib/getopt.c (_getopt_internal): Update from glibc.
76291
76292 2000-09-09  Jim Meyering  <meyering@lucent.com>
76293
76294         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
76295         think it should be used as a general replacement for isascii.
76296         * lib/fnmatch.c: Likewise.
76297         * lib/mbswidth.c: Likewise
76298         * lib/regex.c: Likewise.
76299
76300         Don't use atoi.
76301         * lib/userspec.c: Include sys/param.h and limits.h.
76302         Include xstrtol.h.
76303         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76304         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
76305         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
76306         UID, GID.  Check range.
76307
76308 2000-09-06  Jim Meyering  <meyering@lucent.com>
76309
76310         * lib/getopt.c (_getopt_internal): Update from glibc.
76311
76312 2000-08-30  Jim Meyering  <meyering@lucent.com>
76313
76314         * lib/strftime.c: Merge in changes from GNU libc.
76315
76316 2000-08-26  Jim Meyering  <meyering@lucent.com>
76317
76318         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
76319         * m4/fpending.m4: New file.
76320
76321 2000-08-26  Jim Meyering  <meyering@lucent.com>
76322
76323         * lib/closeout.c: Include "__fpending.h".
76324         (close_stdout_status): Return right away if there's nothing to flush.
76325
76326         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
76327         * lib/__fpending.c: New file.
76328         * lib/__fpending.h: New file.
76329
76330 2000-08-20  Jim Meyering  <meyering@lucent.com>
76331
76332         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
76333         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
76334         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
76335
76336 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
76337
76338         Improve fileutils installation on systems where running
76339         programs (like install) can't be unlinked.
76340         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
76341         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
76342
76343 2000-08-07  Paul Eggert  <eggert@twinsun.com>
76344
76345         Standardize on "memory exhausted" instead of "Memory exhausted"
76346         or "virtual memory exhausted".
76347         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
76348         "virtual memory exhausted".
76349         * lib/same.c (same_name): Invoke xalloc_die instead of printing
76350         our own message.
76351         * lib/userspec.c (parse_user_spec): Likewise.
76352         * lib/bumpalloc.h: comment fix
76353         * lib/same.c, userspec.c: Include xalloc.h.
76354
76355         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
76356         not char *const and pointing to a constant array.
76357         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
76358         (xrealloc): Comment fix.
76359
76360         * lib/userspec.c (parse_user_spec):
76361         Don't translate a message until just before returning,
76362         to avoid unnecessary translation.
76363
76364 2000-08-07  Jim Meyering  <meyering@lucent.com>
76365
76366         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
76367         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
76368         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
76369         getgroups.c, gethostname.c, getopt.h, group-member.c,
76370         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
76371         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
76372         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
76373         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
76374         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
76375         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
76376         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
76377         yesno.c: Back out Copyright date changes for each file with no change
76378         this year.  This eases coordination with other programs using the same
76379         source code modules.  From Paul Eggert.
76380
76381 2000-08-06  Paul Eggert  <eggert@twinsun.com>
76382
76383         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
76384         not char, for compatibility with glibc 2.1.3 strftime.c.
76385
76386 2000-08-03  Greg McGary  <greg@mcgary.org>
76387
76388         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
76389         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
76390         (EXTEND_BUFFER): Use them.
76391
76392 2000-08-01  Jim Meyering  <meyering@lucent.com>
76393
76394         * lib/dirname.c (ISSLASH): Define.
76395         (BACKSLASH_IS_PATH_SEPARATOR): Define.
76396         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
76397         both `\' and `/' may be use as path separators.
76398         Based on a patch from Prashant TR.
76399
76400 2000-07-31  Paul Eggert  <eggert@twinsun.com>
76401
76402         * lib/quotearg.c (quotearg_n_options): Don't make the initial
76403         slot vector a constant, since it might get modified.
76404
76405 2000-07-31  Jim Meyering  <meyering@lucent.com>
76406
76407         * lib/xmalloc.c: Use `virtual memory exhausted', not
76408         `Memory exhausted'.
76409         * lib/obstack.c (print_and_abort): Likewise.
76410
76411 2000-07-30  Paul Eggert  <eggert@twinsun.com>
76412
76413         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
76414         buffer, so that the caller can always quote one small
76415         component of a "memory exhausted" message in slot 0.
76416         From a suggestion by Jim Meyering.
76417
76418 2000-07-30  Jim Meyering  <meyering@lucent.com>
76419
76420         * lib/makepath.c (make_path): Quote the other instance, too.
76421
76422         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
76423         (STATIC_BUF_SIZE): Define.
76424         (quotearg_n_options): Use only statically allocated storage when
76425         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
76426         than STATIC_BUF_SIZE.
76427
76428 2000-07-29  Jim Meyering  <meyering@lucent.com>
76429
76430         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
76431         * lib/dirname.c (dir_name): Likewise.
76432
76433         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
76434         `/'.
76435
76436         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
76437         (dir_name): Assert that there are no trailing slashes.
76438
76439 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
76440
76441         * lib/mbswidth.h (mbswidth): Add a flags argument.
76442         (mbswidth): New declaration.
76443         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
76444         * lib/mbswidth.c (mbswidth): Add a flags argument.
76445         (mbsnwidth): New function.
76446
76447 2000-07-24  Jim Meyering  <meyering@lucent.com>
76448
76449         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
76450
76451 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76452
76453         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
76454
76455 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76456
76457         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
76458         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
76459         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
76460         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
76461         invoke multibyte primitives.
76462
76463 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76464
76465         * lib/quotearg.c:
76466         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
76467         so that mbstate_t is always defined.
76468
76469         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
76470         be 1 in at least one GCC installation, and this configuration
76471         error is likely to be common.  Ignoring MB_LEN_MAX hurts
76472         performance on hosts that have mbrtowc but have only unibyte
76473         locales, but I assume these hosts are rare.
76474
76475 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76476
76477         * lib/mbswidth.c (_XOPEN_SOURCE):
76478         Don't define; this causes problems on Solaris 7.
76479         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
76480
76481 2000-07-23  Jim Meyering  <meyering@lucent.com>
76482
76483         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
76484         too: getgrgid, getpwuid, getuid.
76485
76486 2000-07-23  Jim Meyering  <meyering@lucent.com>
76487
76488         * lib/basename.c (base_name): Add an assertion.
76489
76490 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
76491
76492         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
76493         shadow its mbsinit function.
76494
76495 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76496
76497         * lib/mbswidth.h: New file.
76498         * lib/mbswidth.c: New file.
76499         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
76500         (noinst_HEADERS): Add mbswidth.h.
76501
76502 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76503
76504         * lib/config.charset: Add support for FreeBSD. Improve support for
76505         HP-UX and IRIX 6.
76506
76507 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
76508
76509         * m4/mbswidth.m4: New file.
76510         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
76511
76512 2000-07-15  Jim Meyering  <meyering@lucent.com>
76513
76514         * lib/makepath.c: Include quote.h.
76515         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
76516         corresponding argument in a `quote (...)' call.
76517         Give better diagnostics.
76518
76519         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
76520         (noinst_HEADERS): Add quote.h.
76521
76522         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
76523         from tar's src/misc.c.
76524         * lib/quote.h: New file.  Prototypes for same.
76525
76526 2000-07-14  Paul Eggert  <eggert@twinsun.com>
76527
76528         From a suggestion by Bruno Haible.
76529         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
76530         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
76531         to decide whether to define the BeOS workaround macro;
76532         this adjusts to the change to AC_MBSTATE_T.
76533
76534 2000-07-14  Jim Meyering  <meyering@lucent.com>
76535
76536         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
76537         jm_AC_TYPE_UINTMAX_T.
76538
76539 2000-07-13  Paul Eggert  <eggert@twinsun.com>
76540
76541         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
76542
76543         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
76544         quotearg_buffer_restyled): Add support for
76545         clocale_quoting_style.  Undo previous change to
76546         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
76547         and "{RIGHT QUOTATION MARK}" msgids.
76548
76549 2000-07-10  Paul Eggert  <eggert@twinsun.com>
76550
76551         From a suggestion by Bruno Haible.
76552         * m4/mbstate_t.m4 (AC_MBSTATE_T):
76553         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
76554         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
76555         and mbstate_t, to a single-part test that simply defines mbstate_t.
76556         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
76557         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
76558
76559 2000-07-10  Jim Meyering  <meyering@lucent.com>
76560
76561         * m4/strerror_r.m4: Mirror the correction made in autoconf.
76562
76563         * m4/gnu-source.m4: Output to confdefs.h directly.
76564         Suggestion from Akim Demaille.
76565
76566 2000-07-09  Paul Eggert  <eggert@twinsun.com>
76567
76568         The old behavior of quoting `like this' doesn't look good with
76569         newer, ISO-style fonts.  See:
76570         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
76571
76572         Instead, quote "like this" by default.  Let the translator
76573         tailor the locale-specific quoting behavior by providing
76574         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
76575
76576         * lib/quotearg.c (N_): New macro.
76577         (gettext_default): New function.
76578         (quotearg_buffer_restyled): Use
76579         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
76580         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
76581
76582 2000-07-09  Jim Meyering  <meyering@lucent.com>
76583
76584         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
76585         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
76586
76587         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
76588         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
76589
76590 2000-07-09  Jim Meyering  <meyering@lucent.com>
76591
76592         * lib/Most files: Update copyright dates to include 2000.
76593
76594 2000-07-08  Jim Meyering  <meyering@lucent.com>
76595
76596         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
76597         if not defined.
76598         (xgethostname): Remove now-unnecessary #ifdef.
76599         Move declaration of `err' into loop where it's used.
76600
76601 2000-07-05  Paul Eggert  <eggert@twinsun.com>
76602         and Bruno Haible  <haible@clisp.cons.org>
76603
76604         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
76605         only if the test for an object-type mbstate_t fails.  This
76606         prevents us from mistakenly reporting that mbstate_t is a
76607         system object type after we "#define mbstate_t int" to work
76608         around its lack.
76609
76610 2000-07-05  Paul Eggert  <eggert@twinsun.com>
76611         and Bruno Haible  <haible@clisp.cons.org>
76612
76613         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
76614
76615 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76616
76617         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
76618         to strerror_r.
76619         Include <ctype.h> for use of isalpha.
76620
76621 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76622
76623         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
76624         by allocating a larger buffer. Test the gethostname return value for
76625         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
76626         returns an error and ENAMETOOLONG isn't defined.
76627
76628 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76629
76630         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
76631         dimension.
76632
76633 2000-07-04  Jim Meyering  <meyering@lucent.com>
76634
76635         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
76636         of the deprecated AC_CHECKING.
76637
76638 2000-07-04  Jim Meyering  <meyering@lucent.com>
76639
76640         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
76641         Reported by Bruno Haible.
76642
76643 2000-07-04  Jim Meyering  <meyering@lucent.com>
76644
76645         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
76646         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
76647         lacks mbrtowc.
76648
76649 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76650
76651         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
76652         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
76653
76654 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76655         and Bruno Haible  <haible@clisp.cons.org>
76656
76657         * lib/quotearg.c (mbrtowc):
76658         Assign to *pwc, and return 1 only if result is nonzero.
76659         (iswprint): Use ISPRINT when substituting our own mbrtowc.
76660
76661 2000-07-03  Jim Meyering  <meyering@lucent.com>
76662
76663         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
76664
76665 2000-07-03  Jim Meyering  <meyering@lucent.com>
76666
76667         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
76668         This is necessary to get a definition of e.g., UTMP_FILE on
76669         HP-UX 10.20.
76670         From Bob Proulx.
76671
76672 2000-07-02  Jim Meyering  <meyering@lucent.com>
76673
76674         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
76675
76676         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
76677         AC_LIBOBJ(function_name).
76678         * m4/chown.m4: Likewise.
76679         * m4/fnmatch.m4: Likewise.
76680         * m4/ftruncate.m4: Likewise.
76681         * m4/getgroups.m4: Likewise.
76682         * m4/getline.m4: Likewise.
76683         * m4/group-member.m4: Likewise.
76684         * m4/jm-macros.m4: Likewise.
76685         * m4/lstat.m4: Likewise.
76686         * m4/malloc.m4: Likewise.
76687         * m4/memcmp.m4: Likewise.
76688         * m4/nanosleep.m4: Likewise.
76689         * m4/putenv.m4: Likewise.
76690         * m4/realloc.m4: Likewise.
76691         * m4/regex.m4: Likewise.
76692         * m4/stat.m4: Likewise.
76693         * m4/strftime.m4: Likewise.
76694
76695 2000-07-02  Jim Meyering  <meyering@lucent.com>
76696
76697         * lib/quotearg.c (mbstate_t): Don't define here.
76698
76699 2000-07-02  Jim Meyering  <meyering@lucent.com>
76700
76701         * lib/nanosleep.c (SIGCONT): Define if not already defined.
76702
76703 2000-07-01  Jim Meyering  <meyering@lucent.com>
76704
76705         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
76706
76707 2000-07-01  Jim Meyering  <meyering@lucent.com>
76708
76709         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
76710         problem.
76711
76712 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76713
76714         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
76715         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
76716
76717 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76718
76719         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
76720         per change in ../m4/ls-mntd-fs.m4.
76721         (read_filesystem_list): Ignore symbolic links.
76722
76723 2000-06-29  Jim Meyering  <meyering@lucent.com>
76724
76725         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
76726         for declaration of strcmp.
76727
76728         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
76729
76730         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
76731         Avoid warning by casting result to `char *' to remove `const'.
76732
76733 2000-06-28  Jim Meyering  <meyering@lucent.com>
76734
76735         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
76736         included by quotearg.c, for which we perform this test.  From
76737         Bruno Haible.
76738
76739 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76740
76741         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
76742         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
76743         <utmpx.h> exists, put readutmp.o into LIBOBJS.
76744
76745 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76746
76747         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
76748
76749 2000-06-26  Paul Eggert  <eggert@twinsun.com>
76750
76751         savedir now sets errno on failure and invokes xmalloc to get memory.
76752         Fix a couple of other minor bugs while we're at it.
76753
76754         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
76755         (NAMLEN): Remove macro.
76756         (malloc, realloc): Remove decls.
76757         (stpcpy): Likewise.
76758         ("xalloc.h"): Include.
76759         (NAME_SIZE_DEFAULT): New macro.
76760         (savedir): Use xmalloc / xrealloc to allocate memory.
76761         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
76762         Skip "" directory entries.
76763         Use strlen to calculate directory entry length, since the old method
76764         is rarely used these days and isn't worth supporting.
76765         Don't use a pointer after freeing it.
76766         Check for integer overflow when calculating allocation size.
76767         Use memcpy to copy entries, instead of stpcpy.
76768         Set errno properly when returning NULL.
76769         Check for readdir error.
76770
76771 2000-06-26  Jim Meyering  <meyering@lucent.com>
76772
76773         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
76774
76775 2000-06-25  Jim Meyering  <meyering@lucent.com>
76776
76777         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
76778         Linux header bug when _XOPEN_SOURCE is defined to 500.
76779
76780 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76781
76782         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
76783         deficiency.
76784
76785 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76786
76787         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
76788         Include xalloc.h.
76789         Don't include <stdlib.h>.  Don't declare malloc, realloc.
76790
76791 2000-06-24  Jim Meyering  <meyering@lucent.com>
76792
76793         * m4/strerror_r.m4: Revive this file -- to try out an experimental
76794         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
76795         for which strerror does return char*, but which lacks a conveniently
76796         accessible declaration of the function.  If the compile-test says
76797         strerror_r doesn't work, then resort to a `run'-test that works on
76798         BeOS and segfaults on DEC Unix.
76799
76800 2000-06-24  Jim Meyering  <meyering@lucent.com>
76801
76802         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
76803
76804 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76805
76806         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
76807         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
76808
76809 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76810
76811         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
76812         (mbrtowc, mbstate_t): Define substitutes if
76813         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
76814         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
76815         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
76816
76817 2000-06-23  Jim Meyering  <meyering@lucent.com>
76818
76819         * m4/afs.m4: Add missing AC_MSG_RESULT.
76820         Reported by Bruno Haible.
76821
76822         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
76823         Suggestion from Bruno Haible.
76824
76825 2000-06-23  Jim Meyering  <meyering@lucent.com>
76826
76827         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
76828
76829 2000-06-21  Jim Meyering  <meyering@lucent.com>
76830
76831         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
76832
76833 2000-06-21  Jim Meyering  <meyering@lucent.com>
76834
76835         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
76836         (noinst_HEADERS): Add getstr.h.
76837
76838         * lib/getline.c (getstr): Move into a separate file.
76839         * lib/getstr.c (getstr): New file, extracted from getline.c, with
76840         the following changes: new parameter, delim2; both delim[12]
76841         parameters have type `int', not `char'.  The latter would lose
76842         with 8-bit delimiters.
76843         * lib/getstr.h: New file.
76844
76845 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76846
76847         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
76848         than 1024, return a memory chunk of least possible size, instead
76849         of size PATH_MAX + 2. In the loop, increment the size proportionally.
76850         Use free/xmalloc instead of xrealloc to avoid copying for very long
76851         paths.
76852
76853 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76854
76855         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
76856         the empty string.
76857
76858 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76859
76860         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
76861         address, not strdup.  Include <stdlib.h> and don't declare free().
76862
76863 2000-06-19  Jim Meyering  <meyering@lucent.com>
76864
76865         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
76866
76867 2000-06-18  Jim Meyering  <meyering@lucent.com>
76868
76869         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
76870
76871         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
76872         `checking whether...' message to be consistent with that of the
76873         lstat test.
76874
76875 2000-06-18  Jim Meyering  <meyering@lucent.com>
76876
76877         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
76878         Besides, these days every porting target provides a mkdir function.
76879
76880         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
76881         needed. (this snippet comes from src/system.h).
76882
76883 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
76884
76885         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
76886
76887 2000-06-15  Paul Eggert  <eggert@twinsun.com>
76888
76889         * lib/human.c (adjust_value): New function.
76890         (human_readable_inexact): Apply rounding style even when
76891         printing approximate values.
76892
76893 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76894
76895         * lib/human.c (human_readable_inexact): Allow an input block
76896         size that is not a multiple of the output block size, and vice versa.
76897         Reported by Piergiorgio Sartor.
76898
76899 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76900
76901         * lib/getdate.y (get_date): Apply relative times after time
76902         zone indicator, not before.  Reported by Todd A. Jacobs.
76903
76904 2000-06-13  Jim Meyering  <meyering@lucent.com>
76905
76906         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
76907
76908         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
76909
76910 2000-06-12  Paul Eggert  <eggert@twinsun.com>
76911
76912         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
76913
76914 2000-06-12  Jim Meyering  <meyering@lucent.com>
76915
76916         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
76917         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
76918         optional argument.
76919         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
76920         the optional argument, `lib'.
76921
76922 2000-06-08  Jim Meyering  <meyering@lucent.com>
76923
76924         * m4/largefile.m4: Remove file (now that it's part of autoconf).
76925
76926 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76927
76928         Rewrite largefile configuration so that we don't need to run
76929         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
76930         AC_CANONICAL_HOST in configure.in -- jmm]
76931
76932         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
76933         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
76934         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
76935         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
76936         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
76937         All uses changed.
76938         Instead of inspecting the output of getconf, try to compile the
76939         test program without and with the macro definition.
76940         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
76941         for getconf.  Instead, check for the needed flags by compiling
76942         test programs.
76943
76944 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76945
76946         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
76947
76948 2000-06-04  Jim Meyering  <meyering@lucent.com>
76949
76950         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
76951         SunOS 4.1.4 for which gid_t is an unsigned type.
76952
76953 2000-06-03  Jim Meyering  <meyering@lucent.com>
76954
76955         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
76956         now that autoconf requires that.
76957
76958         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
76959         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
76960         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
76961
76962 2000-06-03  Jim Meyering  <meyering@lucent.com>
76963
76964         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
76965
76966 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76967
76968         * m4/glibc21.m4: New file.
76969         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
76970
76971 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76972
76973         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
76974         newer, don't install charset.alias.
76975         * lib/config.charset: Change the Linux/glibc rules so they become empty
76976         on glibc-2.1 or newer.
76977
76978 2000-06-02  Jim Meyering  <meyering@lucent.com>
76979
76980         * lib/mountlist.c: Back out last change.  Instead, do this...
76981         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
76982         me_dummy member using the same `ignore'-testing code.
76983         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
76984         fs_type strings.
76985         From Mark D. Roth.
76986
76987 2000-05-29  Jim Meyering  <meyering@lucent.com>
76988
76989         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
76990         mounts with the `ignore' attribute.  Based on a patch from
76991         Mark D. Roth.
76992
76993 2000-05-28  Jim Meyering  <meyering@lucent.com>
76994
76995         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
76996         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76997         * m4/stat.m4: Likewise.
76998         * m4/lstat.m4: Likewise.
76999         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
77000
77001         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
77002         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
77003
77004 2000-05-26  Jim Meyering  <meyering@lucent.com>
77005
77006         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
77007
77008 2000-05-24  Jim Meyering  <meyering@lucent.com>
77009
77010         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
77011         autoconf requires that.
77012         * m4/lib-check.m4: Likewise.
77013         * m4/jm-macros.m4: Likewise.
77014         * m4/strftime.m4: Likewise.
77015
77016         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
77017         AC_CHECK_DECLS, now that autoconf requires that.
77018
77019 2000-05-22  Jim Meyering  <meyering@lucent.com>
77020
77021         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77022         * m4/lstat.m4: Likewise.
77023
77024 2000-05-22  Jim Meyering  <meyering@lucent.com>
77025
77026         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
77027
77028 2000-05-20  Jim Meyering  <meyering@lucent.com>
77029
77030         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
77031         (jm_PREREQ): Use it.
77032
77033 2000-05-18  Jim Meyering  <meyering@lucent.com>
77034
77035         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
77036         back, too, since it may have been modified by allocate_entry.
77037         (hash_delete): Rewrite to use neither the assignment operator
77038         nor the comma operator in an if-expression.
77039
77040 2000-05-15  Paul Eggert  <eggert@twinsun.com>
77041
77042         * lib/closeout.c:
77043         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
77044         Remove; no longer needed.
77045         "quotearg.h": Add include.
77046         (file_name): Do not bother to explicitly initialize to NULL; it's less
77047         efficient on some hosts.
77048         (close_stdout_status): Remove test as to whether stdout was already
77049         closed; it breaks for the case "echo x | sort >&-".
77050         Quote file name colons.
77051         Do not assume that _("write error") lacks format strings.
77052
77053 2000-05-15  Jim Meyering  <meyering@lucent.com>
77054
77055         * lib/version-etc.c (version_etc_copyright): Update the copyright
77056         string used in all --version output.
77057
77058 2000-05-14  Jim Meyering  <meyering@lucent.com>
77059
77060         * lib/closeout.c (close_stdout_set_file_name): New function.
77061         (close_stdout_status): Use new file-scoped global.
77062         Return right away if fstat says the stdout file descriptor is invalid.
77063         * lib/closeout.h (close_stdout_set_file_name): Declare.
77064
77065 2000-05-10  Jim Meyering  <meyering@lucent.com>
77066
77067         * lib/closeout.c [default_exit_status]: New file-scoped variable.
77068         (close_stdout_set_status): New function.
77069         * lib/closeout.h (close_stdout_set_status): Declare.
77070
77071 2000-05-09  Jim Meyering  <meyering@lucent.com>
77072
77073         * m4/gettext.m4: Rename this...
77074         * m4/libintl.m4: ...to this.
77075
77076 2000-05-08  Jim Meyering  <meyering@lucent.com>
77077
77078         * lib/long-options.c: Don't include closeout.h.
77079         (parse_long_options): Don't call close_stdout for --version.
77080
77081 2000-05-06  Paul Eggert  <eggert@twinsun.com>
77082
77083         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
77084         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
77085         2.1.3 bug.  This avoids a clash when files like regex.c define
77086         _GNU_SOURCE.
77087
77088 2000-05-06  Jim Meyering  <meyering@lucent.com>
77089
77090         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
77091         (AC_REPLACE_FUNCS): Add strnlen.
77092
77093         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
77094         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
77095
77096         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
77097         AC_SEARCH_LIBS call for nanosleep.
77098         (LIB_NANOSLEEP): Set and AC_SUBST.
77099
77100 2000-05-06  Jim Meyering  <meyering@lucent.com>
77101
77102         * lib/strnlen.c: Undefine __strnlen and strnlen.
77103         [!weak_alias]: Define __strnlen to strnlen.
77104
77105         * lib/atexit.c: New file, from libiberty.
77106
77107 2000-05-06  Jim Meyering  <meyering@lucent.com>
77108
77109         * lib/closeout.c (close_stdout_status): Also check for errors on the
77110         stderr stream.
77111
77112 2000-05-05  Jim Meyering  <meyering@lucent.com>
77113
77114         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
77115         AC_SEARCH_LIBS call for clock_gettime.
77116         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
77117
77118         * m4/search-libs.m4: Update from autoconf.
77119
77120         su doesn't work on Solaris 2.6.
77121         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
77122         <shadow.h>.  Reported by Dragos Harabor.
77123
77124 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
77125
77126         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
77127         memcpy instead of xmalloc, xrealloc, path_concat.
77128         (locale_charset): Treat empty environment variables as absent.
77129         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
77130
77131 2000-05-04  Jim Meyering  <meyering@lucent.com>
77132
77133         * lib/getopt.c: Update from glibc.
77134         * lib/obstack.c: Likewise.
77135         * lib/obstack.h: Likewise.
77136         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
77137         file
77138
77139         * lib/regex.h: Likewise.
77140         * lib/strndup.c: Likewise.
77141         * lib/strnlen.c: New file, from glibc.
77142
77143 2000-05-03  Jim Meyering  <meyering@lucent.com>
77144
77145         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
77146
77147 2000-05-02  Paul Eggert  <eggert@twinsun.com>
77148
77149         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
77150         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
77151         compile-time test, rather than inspecting host and OS, to
77152         decide whether to define _LARGEFILE_SOURCE.
77153
77154 2000-05-01  Jim Meyering  <meyering@lucent.com>
77155
77156         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
77157
77158         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
77159         Based on a patch from Bruno Haible.
77160
77161 2000-05-01  Jim Meyering  <meyering@lucent.com>
77162
77163         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
77164
77165 2000-04-29  Jim Meyering  <meyering@lucent.com>
77166
77167         * lib/path-concat.c: Declare strdup only if it's not defined.
77168         * lib/canon-host.c: Likewise.
77169
77170 2000-04-28  Jim Meyering  <meyering@lucent.com>
77171
77172         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
77173         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
77174         is included first, then limits.h is included by locale.h by libintl.h.
77175         From John David Anglin.
77176
77177 2000-04-25  Jim Meyering  <meyering@lucent.com>
77178
77179         * lib/makepath.c (S_IRWXUGO): Define.
77180         (make_path): Always perform explicit chmod if MODE specifies any
77181         of the `special' permission bits.  Prompted by a bug report against
77182         install from Mate Wierdl and Joost van Baal.
77183
77184 2000-04-18  Jim Meyering  <meyering@lucent.com>
77185
77186         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
77187         (jm_PREREQ): Use it.
77188
77189 2000-04-18  Jim Meyering  <meyering@lucent.com>
77190
77191         * lib/README: New file.
77192
77193         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
77194         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
77195
77196 2000-04-17  Jim Meyering  <meyering@lucent.com>
77197
77198         Get it right :-)
77199         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
77200         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
77201         Suggestion from Akim Demaille.
77202
77203 2000-04-17  Jim Meyering  <meyering@lucent.com>
77204
77205         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
77206         the definition of it to rpl_strftime also defined-away the system's
77207         declaration.
77208
77209 2000-04-15  Jim Meyering  <meyering@lucent.com>
77210
77211         Use `C' to denote so-called `contiguous' files, the same way
77212         that tar does.
77213         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
77214         (ftypelet): Use S_ISCTG.
77215         From Michael Deutschmann.
77216
77217 2000-04-14  Jim Meyering  <meyering@lucent.com>
77218
77219         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
77220         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
77221         clobbered.
77222
77223 2000-04-14  Jim Meyering  <meyering@lucent.com>
77224
77225         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
77226
77227 2000-04-13  Jim Meyering  <meyering@lucent.com>
77228
77229         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
77230         AH_VERBATIM to insert required #ifndef into config.h.in.
77231         Suggestion from Akim Demaille.
77232
77233 2000-04-12  Jim Meyering  <meyering@lucent.com>
77234
77235         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
77236         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
77237         Christian Krackowizer.
77238
77239         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
77240         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
77241         (AC_SYS_LARGEFILE): Require.
77242         (AM_C_PROTOTYPES): Require.
77243
77244 2000-04-08  Jim Meyering  <meyering@lucent.com>
77245
77246         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
77247         names don't conflict.  Reported by Eli Zaretskii.
77248
77249 2000-04-07  Jim Meyering  <meyering@lucent.com>
77250
77251         * lib/putenv.c: Move inclusion of errno.h so it follows that of
77252         sys/types.h, to work around system header problems on AIX 3.2.5.
77253         From Bruno Haible.
77254
77255 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
77256
77257         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
77258         bug.  Deal with the different error behavior of Irix iconv.
77259
77260 2000-04-05  Paul Eggert  <eggert@twinsun.com>
77261
77262         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
77263         IRIX if the installer said otherwise.
77264
77265 2000-04-05  Jim Meyering  <meyering@lucent.com>
77266
77267         Portability tweaks required for ultrix4.3.
77268         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
77269         (jm_CHECK_DECLS): Add getutent to the list of functions.
77270         (_jm_DECL_HEADERS): Add utmpx.h.
77271         From John David Anglin.
77272
77273         * m4/strftime.m4: Back out the 2000-04-02 change.
77274         Instead of that change, simply undefine putenv in the test program.
77275
77276 2000-04-05  Jim Meyering  <meyering@lucent.com>
77277
77278         Portability tweaks required for ultrix4.3.
77279         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
77280         getutent.
77281         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
77282         * lib/canon-host.c: Declare strdup.
77283         * lib/path-concat.c: Likewise.
77284         From John David Anglin.
77285
77286 2000-04-04  Jim Meyering  <meyering@lucent.com>
77287
77288         Be more DOS 8.3-friendly.
77289         * lib/ref-add.sin: Renamed from ref-add.sed.in.
77290         * lib/ref-del.sin: Renamed from ref-del.sed.in.
77291         * lib/Makefile.am: Reflect renaming.
77292         Reported by Eli Zaretskii.
77293
77294         Use a temporary file name that won't clash with `charset.alias'
77295         in the DOS 8.3 name space.
77296         * lib/Makefile.am (charset_tmp): Define.
77297         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
77298         (uninstall-local): Likewise.
77299         Reported by Eli Zaretskii.
77300
77301 2000-04-03  Jim Meyering  <meyering@lucent.com>
77302
77303         * m4/gettext.m4: Fix typo in comment.
77304
77305         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
77306         textutils/configure.in).  Suggestion from Paul Eggert.
77307         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
77308
77309 2000-04-02  Paul Eggert  <eggert@twinsun.com>
77310
77311         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
77312         variable in the shell rather than using putenv, which isn't
77313         portable.  This avoids the configure-time inter-test dependency
77314         on the potentially-renamed putenv function.
77315
77316 2000-03-30  Paul Eggert  <eggert@twinsun.com>
77317
77318         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
77319         before checking struct stat.st_blksize, so that
77320         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
77321
77322 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77323
77324         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
77325         since strftime.c uses HAVE_STRFTIME to decide whether to use
77326         the underlying strftime.
77327
77328 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77329
77330         * lib/time/strftime.c (my_strftime): Make sure we call the system
77331         strftime, not ourselves, when invoking the underlying strftime.
77332
77333 2000-03-24  Jim Meyering  <meyering@lucent.com>
77334
77335         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
77336         (charset_alias): Define.
77337         (install-exec-local): Factor out common code.
77338         (uninstall-local): Split lines longer than 80.
77339         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
77340         (SUFFIXES): Define.
77341         (.sed.in.sed): New rule.  Don't redirect directly to $@.
77342         (CLEANFILES): Add ref-add.sed and ref-del.sed.
77343
77344 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
77345
77346         * lib/config.charset: Output a line containing "Packages using this
77347         file".
77348         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
77349         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
77350         ref-del.sed): New rules.
77351
77352 2000-03-17  Jim Meyering  <meyering@lucent.com>
77353
77354         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
77355         Otherwise, include <strings.h>
77356
77357 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
77358
77359         * lib/unicodeio.c (utf8_wctomb): New function.
77360         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
77361         format instead of in UCS-4 with platform dependent endianness.
77362
77363 2000-03-10  Jim Meyering  <meyering@lucent.com>
77364
77365         * m4/lib-check.m4: Look for getspnam in -lgen, too.
77366         From Marco Franzen.
77367
77368 2000-03-07  Paul Eggert  <eggert@twinsun.com>
77369
77370         * lib/savedir.c (savedir): Work even if directory size is
77371         negative; this can happen with some screwy NFS configurations.
77372
77373 2000-03-06  Jim Meyering  <meyering@lucent.com>
77374
77375         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
77376         if it's NULL (because we ran out of memory).  From Bruno Haible.
77377
77378 2000-03-05  Jim Meyering  <meyering@lucent.com>
77379
77380         * lib/localcharset.c ("path-concat.h"): Include.
77381         (get_charset_aliases): Use path_concat instead of ANSI string
77382         concatenation.
77383
77384         * lib/unicodeio.h (PARAMS): Define.
77385         Use it to guard prototype.
77386
77387 2000-03-04  Jim Meyering  <meyering@lucent.com>
77388
77389         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
77390         for lib/localcharset.c.
77391
77392 2000-03-04  Jim Meyering  <meyering@lucent.com>
77393
77394         * lib/Makefile.am (install-exec-local): Create $(libdir) before
77395         installing into it.
77396         (uninstall-local): Uncomment this rule so `make distcheck' works
77397         once again.
77398
77399         * lib/unicodeio.c (<errno.h>): Include it.
77400         (errno): Declare if not defined.
77401
77402         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
77403
77404         * lib/config.charset: New version, incorporating remarks from a linux
77405         i18n mailing list.  From Bruno Haible.
77406
77407 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
77408
77409         * m4/codeset.m4: New file.
77410         * m4/iconv.m4: New file.
77411         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
77412
77413 2000-03-03  Jim Meyering  <meyering@lucent.com>
77414
77415         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
77416
77417 2000-03-02  Jim Meyering  <meyering@lucent.com>
77418
77419         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
77420         the messages come out on separate lines.
77421
77422         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
77423         rather than jm_CHECK_DECLARATIONS.
77424         * m4/decl.m4: Remove now-unused file.
77425
77426         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
77427         geteuid.
77428
77429 2000-03-02  Jim Meyering  <meyering@lucent.com>
77430
77431         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
77432
77433 2000-03-01  Jim Meyering  <meyering@lucent.com>
77434
77435         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
77436         * lib/unicodeio.c: Likewise.
77437
77438 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
77439
77440         * lib/config.charset: New file.
77441         * lib/localcharset.c: New file.
77442         * lib/unicodeio.h, lib/unicodeio.c: New files.
77443         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
77444         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
77445         (noinst_HEADERS): Add unicodeio.h.
77446         (all-local, install-exec-local, charset.alias): New targets.
77447
77448 2000-02-28  Paul Eggert  <eggert@twinsun.com>
77449
77450         * lib/quotearg.c (ALERT_CHAR): New macro.
77451         (quotearg_buffer_restyled): Use it.
77452
77453 2000-02-27  Jim Meyering  <meyering@lucent.com>
77454
77455         * m4/check-decl.m4: Add getenv to the list.
77456
77457 2000-02-27  Jim Meyering  <meyering@lucent.com>
77458
77459         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
77460         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
77461
77462         * lib/backupfile.c: Guard inclusion of stdlib.h with
77463         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
77464         Declare malloc if needed.
77465
77466         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
77467         `#ifndef HAVE_DECL..'
77468         now that autoconf always defines the HAVE_DECL_ symbols.
77469         * lib/human.c: Likewise.
77470         * lib/same.c: Likewise.
77471         * lib/strtoumax.c: Likewise.
77472
77473         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
77474         declaration check was not run.
77475         * lib/hash.c: Likewise.
77476         * lib/human.c: Likewise.
77477         * lib/same.c: Likewise.
77478         * lib/strtoumax.c: Likewise.
77479
77480         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
77481         `.', then first look up the entire `.'-containing string as a login
77482         name.
77483
77484 2000-02-23  Jim Meyering  <meyering@lucent.com>
77485
77486         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
77487         in place of my hack.
77488
77489 2000-02-18  Paul Eggert  <eggert@twinsun.com>
77490
77491         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
77492         (textint): New typedef.
77493         (parser_control): Member year changed from int to textint.
77494         All uses changed.
77495         (YYSTYPE): Removed; replaced by %union with int and textint members.
77496         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
77497         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
77498         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
77499         (tSNUMBER, tUNUMBER): Now of type <textintval>.
77500         (date, number, to_year): Use width of number in digits, not its value,
77501         to determine whether it's a 2-digit year, or a 2-digit time.
77502         (yylex): Store number of digits of numeric tokens.
77503         Reported by John Kendall.
77504
77505         (parser_control): Changed from struct parser_control to typedef (for
77506         consistency).  All uses changed.
77507
77508         (tID): Removed; not used.
77509         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
77510
77511 2000-02-14  Paul Eggert  <eggert@twinsun.com>
77512
77513         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
77514         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
77515
77516 2000-02-12  Jim Meyering  <meyering@lucent.com>
77517
77518         * lib/userspec.c (ISDIGIT): Define it.
77519         (isdigit): Remove definition.
77520         (is_number): Use ISDIGIT, not isdigit.
77521         <libintl.h>: Include.
77522         (_ and N_): Define.
77523         (parse_user_spec): Mark translatable strings.
77524
77525 2000-02-10  Jim Meyering  <meyering@lucent.com>
77526
77527         With these changes, nanosleep.[ch] are finally enough like the other
77528         lib/* replacement files to compile on a few more losing systems.
77529
77530         * lib/nanosleep.h: Don't include config.h.
77531         Remove prototype from declaration of nanosleep.
77532         (PARAMS): Remove now-unneeded definition.
77533         * lib/nanosleep.c: #undef nanosleep.
77534         (rpl_nanosleep): Rename from nanosleep.
77535
77536 2000-02-10  Jim Meyering  <meyering@lucent.com>
77537
77538         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
77539         gnu_nanosleep to rpl_nanosleep.
77540
77541 2000-02-09  Jim Meyering  <meyering@lucent.com>
77542
77543         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
77544         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
77545
77546 2000-02-08  Akim Demaille  <akim@epita.fr>
77547
77548         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
77549         `[' and `]' and remove uses of `changequote'.
77550         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
77551         (AC_SYS_LARGEFILE): Likewise.
77552         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
77553         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
77554         of changequote.
77555         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
77556         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
77557         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
77558         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
77559
77560 2000-02-05  Jim Meyering  <meyering@lucent.com>
77561
77562         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
77563         Remove explicit use of AC_HEADER_TIME.  It is required by
77564         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
77565         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
77566         in autoconf whereby the expansion of the latter ended up preceding
77567         the expansion of its prerequisite, AC_HEADER_TIME.
77568         Reported by Volker Borchert.
77569
77570 2000-02-03  Jim Meyering  <meyering@lucent.com>
77571
77572         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
77573
77574 2000-02-03  Jim Meyering  <meyering@lucent.com>
77575
77576         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
77577         rather than with `#if HAVE_UTMPNAME'.
77578
77579 2000-02-02  Jim Meyering  <meyering@lucent.com>
77580
77581         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
77582         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
77583         Reported by Eli Zaretskii.
77584
77585 2000-02-01  Jim Meyering  <meyering@lucent.com>
77586
77587         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
77588
77589 2000-01-31  Jim Meyering  <meyering@lucent.com>
77590
77591         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
77592         functions.  Add the time.h and sys/time.h headers along with the
77593         AC_REQUIRE'ment of AC_HEADER_TIME.
77594
77595 2000-01-31  Jim Meyering  <meyering@lucent.com>
77596
77597         * lib/nanosleep.h (nanosleep): Guard declaration with
77598         `#if ! HAVE_DECL_NANOSLEEP'.
77599         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
77600         the declaration in that vendor's sys/timers.h.
77601         Reported by Christian Krackowizer.
77602
77603         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
77604         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
77605         (ISPRINT): Likewise.
77606         Reported by Tom Tromey.
77607
77608 2000-01-30  Jim Meyering  <meyering@lucent.com>
77609
77610         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
77611
77612         * m4/prereq.m4 (utmp_includes): Define.
77613         Check for ut_user and ut_name members in both struct utmpx
77614         and struct utmp.
77615
77616 2000-01-30  Jim Meyering  <meyering@lucent.com>
77617
77618         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
77619         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
77620         header files where only utmpx.ut_user is declared.
77621
77622         * lib/readutmp.h (UT_USER): Define.
77623
77624 2000-01-29  Jim Meyering  <meyering@lucent.com>
77625
77626         * m4/lib-check.m4: New file containing library-related checks from
77627         fileutils and sh-utils (textutils had none).
77628
77629 2000-01-28  Jim Meyering  <meyering@lucent.com>
77630
77631         * m4/perl.m4: Change format of warning message to look more like that
77632         from the missing script.  Suggestion from François Pinard.
77633
77634 2000-01-25  Jim Meyering  <meyering@lucent.com>
77635
77636         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
77637         well as time.h in the compile check.
77638         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
77639         Fix typo in cross-compiling case: s/yes/no/.
77640
77641 2000-01-23  Jim Meyering  <meyering@lucent.com>
77642
77643         * m4/jm-macros.m4: Move df-related tests here from
77644         fileutils/configure.in
77645
77646         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
77647         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
77648
77649         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
77650         s/space/ac_fsusage_space/.
77651         (jm_FILE_SYSTEM_USAGE): Take two parameters.
77652
77653         * m4/ftruncate.m4: New file (derived from part of
77654         fileutils/configure.in).
77655         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
77656         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
77657
77658         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
77659         AC_SUBST these here, rather than just in sh-util/configure.in, so
77660         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
77661         all the same.
77662         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
77663         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
77664         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
77665         (AC_SUBST(POW_LIBM)): Likewise.
77666         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
77667
77668 2000-01-23  Jim Meyering  <meyering@lucent.com>
77669
77670         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
77671         obstack.c.
77672
77673 2000-01-22  Jim Meyering  <meyering@lucent.com>
77674
77675         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
77676
77677         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
77678
77679         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
77680         configure.in
77681         (AC_CHECK_HEADERS): Likewise for sh-utils.
77682         (AC_CHECK_HEADERS): Likewise for textutils.
77683         Merge the three lists of headers.
77684
77685         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
77686         from fileutils' configure.in.
77687
77688         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
77689         code. Moved tests into their own function (_jm_DECL_HEADERS) in
77690         check-decl.m4.
77691
77692         * m4/check-decl.m4: Use #if rather than #ifdef.
77693         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
77694         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
77695         (_jm_DECL_HEADERS): Define new function.
77696         (jm_CHECK_DECLARATIONS): Require it.
77697
77698 2000-01-22  Jim Meyering  <meyering@lucent.com>
77699
77700         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
77701         [! HAVE_DECL_STRTOULL]: Declare strtoull.
77702         Required for some AIX systems.  Reported by Christian Krackowizer.
77703         [TESTING] (main): New function.
77704
77705         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
77706         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
77707         letters.
77708
77709         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
77710         iswprint.
77711
77712         * lib/strverscmp.c (ISDIGIT): Define.
77713         (strverscmp): Use ISDIGIT, not isdigit.
77714
77715 2000-01-19  Jim Meyering  <meyering@lucent.com>
77716
77717         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
77718         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
77719         defines `struct timespec' in <sys/time.h>
77720
77721         * m4/c-bs-a.m4: Remove uses of changequote altogether.
77722         Thanks to Akim for explaining.
77723
77724 2000-01-17  Paul Eggert  <eggert@twinsun.com>
77725
77726         * lib/nanosleep.c (nanosleep):
77727         Don't use SA_INTERRUPT to decide whether to call sigaction, as
77728         POSIX.1 doesn't require SA_INTERRUPT and some systems
77729         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
77730         it's been part of POSIX.1 since day 1 (in 1988).
77731
77732 2000-01-17  Jim Meyering  <meyering@lucent.com>
77733
77734         * lib/interlock: Remove unused file.  Reported by François Pinard.
77735
77736 2000-01-16  Paul Eggert  <eggert@twinsun.com>
77737
77738         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
77739         alert, backslash, formfeed, and vertical tab unnecessarily in
77740         shell quoting style.
77741
77742 2000-01-16  Jim Meyering  <meyering@lucent.com>
77743
77744         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
77745         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
77746         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
77747         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
77748
77749 2000-01-16  Jim Meyering  <meyering@lucent.com>
77750
77751         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
77752         because the latter didn't work.
77753
77754 2000-01-15  Jim Meyering  <meyering@lucent.com>
77755
77756         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
77757         (AC_REPLACE_FUNCS): Add memcpy and memset.
77758         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
77759         Add strpbrk.
77760         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
77761
77762 2000-01-12  Jim Meyering  <meyering@lucent.com>
77763
77764         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
77765         (jm_PREREQ): Use it.
77766         (jm_PREREQ_READUTMP): New macro.
77767         (jm_PREREQ): Use it.
77768
77769 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77770
77771         Quote multibyte characters correctly.
77772         * m4/c-bs-a.m4: New file.
77773         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
77774         (jm_PREREQ): Use it.
77775
77776 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77777
77778         * m4/uintmax_t.m4: Port to autoconf 2.13.
77779
77780 2000-01-08  Jim Meyering  <meyering@ascend.com>
77781
77782         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
77783         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
77784
77785 2000-01-04  Jim Meyering  <meyering@ascend.com>
77786
77787         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
77788         jm_STRUCT_DIRENT_D_TYPE.
77789         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
77790         jm_STRUCT_DIRENT_D_INO.
77791         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
77792         jm_STRUCT_UTIMBUF.
77793         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
77794         renamings.
77795         * m4/utime.m4: Likewise.
77796
77797         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
77798         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
77799
77800 2000-01-03  Paul Eggert  <eggert@twinsun.com>
77801
77802         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
77803         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
77804
77805 2000-01-02  Jim Meyering  <meyering@ascend.com>
77806
77807         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
77808         remember if this is necessary.
77809
77810 1999-12-26  Jim Meyering  <meyering@ascend.com>
77811
77812         * m4/jm-macros.m4: Use it here.
77813         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
77814
77815 1999-12-23  Jim Meyering  <meyering@ascend.com>
77816
77817         * m4/jm-macros.m4: Check for clock_gettime (moved from
77818         fileutils/configure.in)
77819         Check for gettimeofday.
77820
77821 1999-12-20  Jim Meyering  <meyering@ascend.com>
77822
77823         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
77824         autoconf-2.14a-1999-12-20.
77825
77826 1999-12-19  Jim Meyering  <meyering@ascend.com>
77827
77828         * m4/lstat-slash.m4: New file.
77829         * m4/jm-macros.m4: Use the new macro:
77830         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77831
77832 1999-12-07  Jim Meyering  <meyering@ascend.com>
77833
77834         * m4/perl.m4: Require that File::Compare be available, too.
77835         Too many systems seem to lack it.
77836
77837         * m4/strftime.m4: Add checks for most of the cpp macros tested in
77838         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
77839
77840 1999-11-18  Paul Eggert  <eggert@twinsun.com>
77841
77842         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
77843         problem with the QNX 4.25 shell, which doesn't propagate exit
77844         status of failed commands inside shell assignments.
77845
77846 1999-11-17  Jim Meyering  <meyering@ascend.com>
77847
77848         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
77849
77850 1999-11-07  Jim Meyering  <meyering@ascend.com>
77851
77852         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
77853
77854 1999-11-06  Jim Meyering  <meyering@ascend.com>
77855
77856         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
77857         * m4/jm-macros.m4 (jm_MACROS): Use it here.
77858
77859 1999-11-05  Jim Meyering  <meyering@ascend.com>
77860
77861         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
77862         configure.in of textutils, fileutils, and sh-utils into this one
77863         (shared between those packages) file.
77864         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
77865         AC_STRUCT_ST_BLKSIZE.
77866
77867 1999-11-03  Jim Meyering  <meyering@ascend.com>
77868
77869         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
77870         of AC_CHECK_TYPE checks includes unistd.h.
77871         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
77872         Suggestion from Akim Demaille.
77873
77874 1999-10-30  Jim Meyering  <meyering@ascend.com>
77875
77876         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
77877         m4-quoted string.
77878         * m4/ls-mntd-fs.m4: Likewise.
77879         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
77880         * m4/jm-winsz1.m4: Likewise.
77881
77882         * m4/const.m4: Remove file, since the fix made it into the experimental
77883         version of autoconf.
77884         * m4/mktime.m4: Likewise.
77885
77886         * m4/check-type.m4: Remove file, now that the latest version of
77887         AC_CHECK_TYPE takes a third arg to specify additional #includes.
77888
77889         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
77890         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
77891         AC_CHECK_TYPE.
77892
77893 1999-10-04  Jim Meyering  <meyering@ascend.com>
77894
77895         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
77896
77897 1999-09-22  Paul Eggert  <eggert@twinsun.com>
77898
77899         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
77900         2.95.1 bug with HP-UX 10.20.
77901
77902 1999-09-17  Jim Meyering  <meyering@ascend.com>
77903
77904         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
77905         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
77906         due to missing strdup (against sh-utils-2.0).
77907
77908 1999-08-29  Jim Meyering  <meyering@ascend.com>
77909
77910         * m4/jm-macros.m4: Require jm_BISON.
77911         * m4/bison.m4: New file.
77912
77913 1999-08-17  Paul Eggert  <eggert@twinsun.com>
77914
77915         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
77916         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
77917
77918 1999-08-05  Jim Meyering  <meyering@ascend.com>
77919
77920         * m4/getline.m4: Rename test file from conftestdata to conftest.data
77921         to avoid conflicts with `conftest' on 8+3 filesystems.
77922         Suggestion from Eli Zaretskii.
77923
77924 1999-08-04  Jim Meyering  <meyering@ascend.com>
77925
77926         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
77927         fileutils and sh-utils (textutils's getline test was inadequate).
77928         (AM_FUNC_GETLINE): Run this test.
77929         (AC_CHECK_FUNCS): Check for getdelim.
77930         Reported by Bob Proulx.
77931
77932 1999-08-02  Jim Meyering  <meyering@ascend.com>
77933
77934         * m4/jm-macros.m4: Add a comment.
77935
77936 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77937
77938         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
77939         <inttypes.h> defines strtoumax as a macro (and not as a
77940         function).
77941
77942 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77943
77944         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
77945         that we can shift, multiply and divide unsigned long long
77946         values; Ultrix cc can't do it.
77947
77948 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77949
77950         * m4/mktime.m4: New file, which is a preview of what should appear
77951         in the next public autoconf release.
77952
77953 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77954
77955         * m4/lfs.m4: Remove this file.
77956         * m4/largefile.m4: New file.  It contains the old contents of
77957         lfs.m4, except that all names with prefix AC_LFS have been
77958         changed to use the prefix AC_SYS_LARGEFILE instead, to be
77959         compatible with future autoconf versions.  Also, some minor m4
77960         quoting problems have been fixed.
77961
77962 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77963
77964         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
77965         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
77966         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
77967         and simplify the shell code.
77968
77969 1999-08-01  Jim Meyering  <meyering@ascend.com>
77970
77971         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
77972         m4.
77973
77974 1999-07-20  Jim Meyering  <meyering@ascend.com>
77975
77976         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
77977
77978 1999-07-15  Jim Meyering  <meyering@ascend.com>
77979
77980         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
77981
77982 1999-05-22  Jim Meyering  <meyering@ascend.com>
77983
77984         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
77985
77986 1999-05-20  Jim Meyering  <meyering@ascend.com>
77987
77988         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
77989         Add a colon after each `then' in case $4 is empty.
77990
77991 1999-05-16  Jim Meyering  <meyering@ascend.com>
77992
77993         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
77994
77995 1999-05-10  Jim Meyering  <meyering@ascend.com>
77996
77997         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
77998
77999         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
78000         AC_FUNC_MKTIME.
78001
78002 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
78003
78004         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
78005
78006 1999-05-04  Paul Eggert  <eggert@twinsun.com>
78007
78008         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
78009         not CPPFLAGS, so that linking works correctly in IRIX.
78010
78011 1999-04-30  Paul Eggert  <eggert@twinsun.com>
78012
78013         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
78014
78015 1999-04-20  Paul Eggert  <eggert@twinsun.com>
78016
78017         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
78018         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
78019         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
78020         jm_AC_TYPE_UNSIGNED_LONG_LONG.
78021         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
78022
78023         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
78024
78025 1999-04-20  Jim Meyering  <meyering@ascend.com>
78026
78027         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
78028         AC_REPLACE xstroull if necessary.  From Paul Eggert.
78029         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
78030
78031 1999-04-18  Jim Meyering  <meyering@ascend.com>
78032
78033         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
78034         * m4/jm-macros.m4: Use it.
78035
78036 1999-04-06  Jim Meyering  <meyering@ascend.com>
78037
78038         * m4/strftime.m4: Remove test for %f.
78039
78040 1999-03-29  Jim Meyering  <meyering@ascend.com>
78041
78042         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
78043         superset of the AC_TYPE_* checks in the textutils, fileutils,
78044         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
78045         AC_TYPE_PID_T.
78046
78047 1999-03-28  Jim Meyering  <meyering@ascend.com>
78048
78049         * m4/jm-macros.m4: Define GNU_PACKAGE here.
78050         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
78051         replaced e.g., in the *.sh files of the sh-utils.
78052
78053 1999-03-20  Jim Meyering  <meyering@ascend.com>
78054
78055         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
78056         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
78057         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
78058
78059 1999-03-19  Jim Meyering  <meyering@ascend.com>
78060
78061         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
78062
78063 1999-03-12  Jim Meyering  <meyering@ascend.com>
78064
78065         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
78066
78067 1999-03-07  Jim Meyering  <meyering@ascend.com>
78068
78069         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
78070         declared.
78071
78072 1999-02-17  Jim Meyering  <meyering@ascend.com>
78073
78074         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
78075         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
78076
78077 1999-02-07  Jim Meyering  <meyering@ascend.com>
78078
78079         * m4/group-member.m4: New file -- extracted from sh-utils'
78080         configure.in.
78081
78082         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
78083         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
78084
78085 1999-02-06  Jim Meyering  <meyering@ascend.com>
78086
78087         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
78088         * m4/fnmatch.m4: Likewise.
78089         * m4/getgroups.m4: Likewise.
78090         * m4/lstat.m4: Likewise.
78091         * m4/malloc.m4: Likewise.
78092         * m4/putenv.m4: Likewise.
78093         * m4/realloc.m4: Likewise.
78094         * m4/regex.m4: Likewise.
78095         * m4/stat.m4: Likewise.
78096         * m4/strftime.m4: Likewise.
78097         Suggestion from Alain Magloire.
78098
78099         * m4/chown.m4: Use `.$ac_objext', not `.o'.
78100         * m4/fnmatch.m4: Likewise.
78101         * m4/getgroups.m4: Likewise.
78102         * m4/getline.m4: Likewise.
78103         * m4/lstat.m4: Likewise.
78104         * m4/malloc.m4: Likewise.
78105         * m4/memcmp.m4: Likewise.
78106         * m4/putenv.m4: Likewise.
78107         * m4/realloc.m4: Likewise.
78108         * m4/regex.m4: Likewise.
78109         * m4/stat.m4: Likewise.
78110         * m4/strftime.m4: Likewise.
78111         Suggestion from Alain Magloire.
78112
78113         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
78114         an argument.
78115
78116         * m4/regex.m4: Add a run-time Test for proper operation of
78117         re_compile_pattern.
78118
78119 1999-01-31  Jim Meyering  <meyering@ascend.com>
78120
78121         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
78122
78123 1999-01-30  Jim Meyering  <meyering@ascend.com>
78124
78125         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
78126
78127         * m4/jm-mktime.m4: Make this a wrapper around the official
78128         AM_FUNC_MKTIME rather than my private copy, now that the official one
78129         is up to date.
78130         * m4/mktime.m4: Remove file.
78131
78132         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
78133         * m4/uptime.m4: Likewise.
78134         * m4/uintmax_t.m4: Likewise.
78135
78136 1999-01-28  Jim Meyering  <meyering@ascend.com>
78137
78138         * m4/jm-macros.m4: Use jm_AFS.
78139         * m4/afs.m4: New file (from fileutils' configure.in).
78140
78141         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
78142         * m4/chown.m4: Likewise.
78143         * m4/d-ino.m4: Likewise.
78144         * m4/d-type.m4: Likewise.
78145         * m4/fnmatch.m4: Likewise.
78146         * m4/getgroups.m4: Likewise.
78147         * m4/gettext.m4: Likewise.
78148         * m4/jm-mktime.m4: Likewise.
78149         * m4/jm-winsz2.m4: Likewise.
78150         * m4/lcmessage.m4: Likewise.
78151         * m4/ls-mntd-fs.m4: Likewise.
78152         * m4/malloc.m4: Likewise.
78153         * m4/memcmp.m4: Likewise.
78154         * m4/putenv.m4: Likewise.
78155         * m4/realloc.m4: Likewise.
78156         * m4/st_mtim.m4: Likewise.
78157         * m4/strftime.m4: Likewise.
78158
78159 1999-01-16  Jim Meyering  <meyering@ascend.com>
78160
78161         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
78162         (ARGMATCH_DIE_DECL): Define.
78163
78164 1999-01-12  Jim Meyering  <meyering@ascend.com>
78165
78166         * m4/Makefile.am.in: Rewrite to avoid using fmt.
78167         Reported by Lars Hecking.
78168
78169 1999-01-10  Jim Meyering  <meyering@ascend.com>
78170
78171         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
78172         gross kludge.
78173         * m4/inttypes_h.m4: Likewise.
78174         * m4/lstat.m4: Likewise.
78175         * m4/malloc.m4: Likewise.
78176         * m4/readdir.m4: Likewise.
78177         * m4/realloc.m4: Likewise.
78178         * m4/st_dm_mode.m4: Likewise.
78179         * m4/stat.m4: Likewise.
78180         * m4/utimbuf.m4: Likewise.
78181         * m4/utimes.m4: Likewise.
78182
78183         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
78184         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
78185         comments in config.h.in are meaningful.
78186
78187         * m4/jm-macros.m4: Require autoconf-2.13 here.
78188
78189         * m4/regex.m4: By default, don't use the included regex.c on systems
78190         with glibc 2.  Suggestion from Uli Drepper.
78191
78192 1999-01-02  Jim Meyering  <meyering@ascend.com>
78193
78194         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
78195
78196 1998-12-18  Jim Meyering  <meyering@ascend.com>
78197
78198         * m4/Makefile.am.in (Makefile.am): Simplify rule.
78199         Based on a suggestion from Lars Hecking.
78200
78201 1998-11-16  Paul Eggert  <eggert@twinsun.com>
78202
78203         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
78204
78205 1998-11-16  Jim Meyering  <meyering@ascend.com>
78206
78207         * m4/lfs.m4: Double-quote the `uname...` expression.
78208
78209 1998-11-14  Jim Meyering  <meyering@ascend.com>
78210
78211         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
78212         * m4/stat.m4: Likewise.
78213
78214 1998-11-03  Jim Meyering  <meyering@ascend.com>
78215
78216         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
78217         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
78218
78219 1998-10-18  Jim Meyering  <meyering@ascend.com>
78220
78221         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
78222
78223 1998-10-17  Jim Meyering  <meyering@ascend.com>
78224
78225         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
78226         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
78227         calls for those previously hard-coded headers.  Instead, take a new
78228         parameter.
78229         (jm_CHECK_DECLARATIONS): Reflect interface change.
78230         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
78231         (jm_CHECK_DECL_LOCALTIME_R): New macro.
78232
78233         * m4/mktime.m4: Test for spring-forward gap before long-running test.
78234
78235 1998-10-14  Jim Meyering  <meyering@ascend.com>
78236
78237         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
78238         instead of "TZ=America/Vancouver".  From Paul Eggert.
78239
78240 1998-10-11  Jim Meyering  <meyering@ascend.com>
78241
78242         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
78243         This adds a test for a recently added compatibility fix for mktime.c.
78244         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
78245
78246 1998-09-27  Jim Meyering  <meyering@ascend.com>
78247
78248         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
78249
78250         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
78251         ../configure.in, including a change from Gordon Matzigkeit to allow
78252         cross-compiling for the Hurd.
78253
78254         * m4/glibc.m4: New file/macro to test for the GNU C Library
78255         versions 1 and 2.  From Gordon Matzigkeit.
78256         Indent.
78257
78258 1998-09-21  Jim Meyering  <meyering@ascend.com>
78259
78260         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
78261
78262 1998-08-18  Paul Eggert  <eggert@twinsun.com>
78263
78264         Port nanosecond-resolution times to UnixWare 2.1.2 and
78265         pedantic Solaris 2.6.
78266
78267         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
78268         AC_STRUCT_ST_MTIM.
78269         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
78270         Generate name of ns member, instead of just 1 or undef.
78271         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
78272
78273 1998-08-15  Jim Meyering  <meyering@ascend.com>
78274
78275         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
78276         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
78277         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
78278         instead of jm_TYPE_SSIZE_T.
78279
78280 1998-08-12  Jim Meyering  <meyering@ascend.com>
78281
78282         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
78283
78284 1998-08-02  Jim Meyering  <meyering@ascend.com>
78285
78286         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
78287         in acconfig.h manually.
78288
78289 1998-07-31  Paul Eggert  <eggert@twinsun.com>
78290
78291         * m4/st_mtim.m4: New file.
78292
78293 1998-07-28  Jim Meyering  <meyering@ascend.com>
78294
78295         * m4/utimes.m4: Undef stat.
78296
78297 1998-07-25  Jim Meyering  <meyering@ascend.com>
78298
78299         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
78300         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
78301
78302 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
78303
78304         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
78305         uid and gid actually remain unchanged.
78306
78307 1998-07-07  Jim Meyering  <meyering@ascend.com>
78308
78309         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
78310
78311 1998-07-04  Jim Meyering  <meyering@ascend.com>
78312
78313         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
78314         to prove that this macro can be used in packages without regex.c.
78315
78316 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
78317
78318         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
78319         is to be used.
78320
78321 1998-07-03  Jim Meyering  <meyering@ascend.com>
78322
78323         * m4/gettext.m4: Add -lintl if it's found to be necessary.
78324
78325         * m4/gettext.m4: New file -- from gettext-0.10.35.
78326         * m4/lcmessage.m4: Likewise.
78327         * m4/progtest.m4: Likewise.
78328
78329         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
78330         * m4/jm-macros.m4: Require the new macro.
78331
78332 1998-06-29  Jim Meyering  <meyering@ascend.com>
78333
78334         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
78335         for the definition of NGROUPS (used in a system header included
78336         by sys/mount.h).
78337
78338 1998-06-28  Jim Meyering  <meyering@ascend.com>
78339
78340         * m4/ls-mntd-fs.m4: New file.
78341         * m4/fstypename.m4: New file.
78342
78343         * m4/jm-macros.m4: Require the new macro.
78344         * m4/jm-glibc-io.m4: New file.
78345
78346 1998-05-19  Jim Meyering  <meyering@ascend.com>
78347
78348         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
78349         * m4/lchown.m4: New file.
78350
78351         * m4/Makefile.am.in: New file.
78352         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
78353
78354 1998-05-14  Jim Meyering  <meyering@ascend.com>
78355
78356         * m4/Makefile.am (EXTRA_DIST): Add them.
78357         * m4/jm-macros.m4: New file.
78358         * m4/utimbuf.m4: New file.
78359
78360 1998-05-12  Jim Meyering  <meyering@ascend.com>
78361
78362         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
78363
78364 1998-05-11  Jim Meyering  <meyering@ascend.com>
78365
78366         * m4/isc-posix.m4: New file.
78367
78368 1998-05-10  Jim Meyering  <meyering@ascend.com>
78369
78370         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
78371
78372 1998-05-09  Jim Meyering  <meyering@ascend.com>
78373
78374         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
78375         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
78376         with automake.
78377
78378         * m4/ssize_t.m4: New file.
78379         * m4/mktime.m4: Remove file -- the new automake has this now.
78380
78381 1998-04-26  Jim Meyering  <meyering@ascend.com>
78382
78383         * m4/assert.m4: New file.
78384         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
78385
78386 1998-04-05  Jim Meyering  <meyering@ascend.com>
78387
78388         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
78389         (jm_PREREQ): Use it here.
78390
78391 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
78392
78393         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
78394         in acconfig.h.
78395
78396 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
78397
78398         * m4/prereq.m4: New file.
78399         * m4/error.m4: New file.
78400         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
78401
78402 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
78403
78404         * m4/getline.m4: Don't set am_cv_func_working_getline before the
78405         cache-check for the same variable -- that defeated the purpose of
78406         the test; the test program was never run.  This was a problem only
78407         on systems with losing getline functions -- HP-UX 10.20 is one.
78408         Reported by Bjorn Helgaas.
78409
78410 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
78411
78412         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
78413
78414 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
78415
78416         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
78417
78418         * m4/const.m4: New file.  Use an initializer in this declaration
78419         typedef int charset[2]; const charset x;
78420         Reported by Bob Glickstein.
78421
78422 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
78423
78424         * m4/chown.m4: Fix reversed types on -1 args to chown.
78425         From Kaveh Ghazi.
78426
78427 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
78428
78429         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
78430         Add lseek and memchr.
78431
78432         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
78433         T.E.Dickey <dickey@clark.net> said that some older preprocessors
78434         have a 20-character limit on names.
78435
78436 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
78437
78438         * m4/inttypes_h.m4: New file.
78439         * m4/uintmax_t.m4: New file.
78440         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
78441
78442
78443         -----
78444
78445         Local Variables:
78446         coding: utf-8
78447         End:
78448
78449         Copyright (C) 1997-2011 Free Software Foundation, Inc.
78450
78451         Copying and distribution of this file, with or without
78452         modification, are permitted provided the copyright notice
78453         and this notice are preserved.